PageRenderTime 3265ms queryTime 577ms sortTime 412ms getByIdsTime 123ms findMatchingLines 194ms

100+ results results for 'php exp' (3265 ms)

Not the results you expected?
ParameterTest.php https://gitlab.com/x33n/respond | PHP | 416 lines
                    
1<?php
                    
2
                    
120    /**
                    
121     * @expectedException InvalidArgumentException
                    
122     * @expectedExceptionMessage A [method] value must be specified for each complex filter
                    
                
Core.class.php https://gitlab.com/adamlwalker/generatedata | PHP | 511 lines
                    
46	// left as public, because they're often modified / accessed, and it's just too fussy otherwise. The
                    
47	// PHPDoc helps my IDE figure out what the hell each of them are
                    
48
                    
79	public static $dataTypePlugins;
                    
80	public static $exportTypePlugins;
                    
81
                    
208	 */
                    
209	public static function getDefaultExportType() {
                    
210		return self::$defaultExportType;
                    
313	/**
                    
314	 * Full installation of the program is determined by (a) the settings.php file existing and (b)
                    
315	 * the "installationComplete" setting value existing in the database. Note: this function assumes
                    
481		}
                    
482		self::$exportTypePlugins = ExportTypePluginHelper::getExportTypePlugins($runtimeContext);
                    
483	}
                    
                
SYLK.php https://gitlab.com/kimting254/wbms | PHP | 450 lines
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
44 */
                    
45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
                    
46{
                    
213	/**
                    
214	 * Loads PHPExcel from file into PHPExcel instance
                    
215	 *
                    
216	 * @param 	string 		$pFilename
                    
217	 * @param	PHPExcel	$objPHPExcel
                    
218	 * @return 	PHPExcel
                    
220	 */
                    
221	public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
                    
222	{
                    
                
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
1<?php
                    
2
                    
187        } else {
                    
188            list($host, $port) = explode(':', $host);
                    
189            $this->host = $host;
                    
350    {
                    
351        return array_slice(explode('/', $this->getPath()), 1);
                    
352    }
                    
                
eventapi.html.md https://gitlab.com/ggsaavedra/PredictionIO | Markdown | 412 lines
                    
28```
                    
29$ PATH=$PATH:/home/yourname/PredictionIO/bin; export PATH
                    
30```
                    
109  </div>
                    
110  <div data-tab="PHP SDK" data-lang="php">
                    
111```php
                    
111```php
                    
112<?php
                    
113  require_once("vendor/autoload.php");
                    
204  </div>
                    
205  <div data-tab="PHP SDK" data-lang="php">
                    
206```php
                    
206```php
                    
207<?php
                    
208  require_once("vendor/autoload.php");
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
122			// Split the keys by delimiter
                    
123			$keys = explode($delimiter, $path);
                    
124		}
                    
210		// Split the keys by delimiter
                    
211		$keys = explode($delimiter, $path);
                    
212
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
552			// Create a static method callable command
                    
553			$command = explode('::', $command, 2);
                    
554		}
                    
                
innodb.lib.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 411 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin-Engines
                    
7 */
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
14 *
                    
15 * @package PhpMyAdmin-Engines
                    
16 */
                    
362     * http://www.innodb.com/products/innodb_plugin
                    
363     * (do not confuse this with phpMyAdmin's storage engine plugins!)
                    
364     *
                    
376     * http://www.innodb.com/products/innodb_plugin
                    
377     * (do not confuse this with phpMyAdmin's storage engine plugins!)
                    
378     *
                    
                
File.php https://gitlab.com/devtoannh/cafe | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
209            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
210            throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock');
                    
211        }
                    
293            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
294            throw new Zend_CodeGenerator_Php_Exception('Expecting either an array or an instance of Zend_CodeGenerator_Php_Class');
                    
295        }
                    
                
OperationResponseParserTest.php https://gitlab.com/cuitianze/eduwind | PHP | 335 lines
                    
1<?php
                    
2
                    
243    /**
                    
244     * @expectedException \Guzzle\Service\Exception\ResponseClassException
                    
245     * @expectedExceptionMessage must exist
                    
260    /**
                    
261     * @expectedException \Guzzle\Service\Exception\ResponseClassException
                    
262     * @expectedExceptionMessage and implement
                    
                
wpsc-swfupload-handlers.js https://gitlab.com/endomorphosis/reservationtelco | JavaScript | 348 lines
                    
43	else {
                    
44		jQuery('#media-item-' + fileObj.id).load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()});
                    
45	}
                    
61		// Tell the server to delete it. TODO: handle exceptions
                    
62		jQuery.ajax({url:'admin-ajax.php',type:'post',success:deleteSuccess,error:deleteError,id:fileObj.id,data:{
                    
63			id : this.id.replace(/[^0-9]/g,''),
                    
85	if ( data == '-1' )
                    
86		return itemAjaxError(this.id, 'You do not have permission. Has your session expired?');
                    
87	if ( data == '0' )
                    
150		output_html += "	<div id='gallery_image_"+image_id+"' class='previewimage'>\n";
                    
151		output_html += "		<a class='thickbox' rel='product_extra_image_"+image_id+"' href='admin.php?wpsc_admin_action=crop_image&amp;imagename="+image_src+"&amp;imgheight=480&amp;imgwidth=600&amp;product_id=103&amp;width=640&amp;height=342' id='extra_preview_link_"+image_id+"'>\n";
                    
152		output_html += "		<img title='Preview' alt='Preview' src='"+WPSC_IMAGE_URL+image_src+"' class='previewimage'/>\n";
                    
195			postVars = "product_id="+product_id+"&order="+order;
                    
196			jQuery.post( 'index.php?wpsc_admin_action=rearrange_images', postVars, function(returned_data) {
                    
197					eval(returned_data);
                    
                
RouteCollectionBuilderTest.php https://gitlab.com/ealexis.t/trends | PHP | 324 lines
                    
1<?php
                    
2
                    
18
                    
19class RouteCollectionBuilderTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
24        $resolver = $this->getMock('Symfony\Component\Config\Loader\LoaderResolverInterface');
                    
25        $resolver->expects($this->once())
                    
26            ->method('resolve')
                    
30        $originalRoute = new Route('/foo/path');
                    
31        $expectedCollection = new RouteCollection();
                    
32        $expectedCollection->add('one_test_route', $originalRoute);
                    
32        $expectedCollection->add('one_test_route', $originalRoute);
                    
33        $expectedCollection->addResource(new FileResource(__DIR__.'/Fixtures/file_resource.yml'));
                    
34
                    
35        $resolvedLoader
                    
36            ->expects($this->once())
                    
37            ->method('load')
                    
                
Index.php https://gitlab.com/tonycodes/october | PHP | 458 lines
                    
1<?php namespace Cms\Controllers;
                    
2
                    
92        $this->addJs('/modules/cms/assets/js/october.dragcomponents.js', 'core');
                    
93        $this->addJs('/modules/cms/assets/js/october.tokenexpander.js', 'core');
                    
94        $this->addJs('/modules/backend/formwidgets/codeeditor/assets/js/codeeditor.js', 'core');
                    
97
                    
98        // Preload Ace editor modes explicitly, because they could be changed dynamically
                    
99        // depending on a content block type
                    
284
                    
285    public function onExpandMarkupToken()
                    
286    {
                    
290
                    
291        // Can only expand components at this stage
                    
292        if ((!$type = post('tokenType')) && $type != 'component') {
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
59	 */
                    
60	protected static $tags_regexp;
                    
61
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
532	 */
                    
533	public static function getTagsRegexp() {
                    
534		if ( empty( self::$tags_regexp ) ) {
                    
                
COOKBOOK-FIXERS.md https://gitlab.com/yousafsyed/easternglamor | Markdown | 466 lines
                    
23If possible, try to get acquainted with the public interface for the
                    
24[Symfony/CS/Tokenizer/Tokens.php](Symfony/CS/Tokenizer/Tokens.php)
                    
25and [Symfony/CS/Tokenizer/Token.php](Symfony/CS/Tokenizer/Token.php)
                    
30* You are familiar with Test Driven Development.
                    
31* Forked FriendsOfPHP/PHP-CS-Fixer into your own Github Account.
                    
32* Cloned your forked repository locally.
                    
32* Cloned your forked repository locally.
                    
33* Downloaded PHP CS Fixer and have executed `php composer.phar
                    
34install`.
                    
47Create a new file in
                    
48`PHP-CS-Fixer/Symfony/CS/Fixer/Contrib/RemoveCommentsFixer.php`.
                    
49Put this content inside:
                    
151    		array(
                    
152    			'<?php echo "This should be changed"; ', // This is expected output
                    
153    			'<?php echo "This should be changed"; /* Comment */', // This is input
                    
                
pageTranslations.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 217 lines
                    
1<?php
                    
2
                    
192    'professionnelTranslator'=> 'Professionnel Translator',
                    
193    'expertTranslator'      => 'Expert Translator',
                    
194    'people_update'         => 'People Update',
                    
                
grid.subgrid.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 298 lines
                    
18			openicon: "ui-icon-carat-1-sw",
                    
19			expandOnLoad:  false,
                    
20			delayOnLoad : 50,
                    
195						_id = tr.id;
                    
196						if(ts.p.subGridOptions.reloadOnExpand === true || ( ts.p.subGridOptions.reloadOnExpand === false && !$(r).hasClass('ui-subgrid') ) ) {
                    
197							atd = pos >=1 ? "<td colspan='"+pos+"'>&#160;</td>":"";
                    
197							atd = pos >=1 ? "<td colspan='"+pos+"'>&#160;</td>":"";
                    
198							bfsc = $(ts).triggerHandler("jqGridSubGridBeforeExpand", [pID + "_" + _id, _id]);
                    
199							bfsc = (bfsc === false || bfsc === 'stop') ? false : true;
                    
206							if( $.isFunction(ts.p.subGridRowExpanded)) {
                    
207								ts.p.subGridRowExpanded.call(ts, pID+"_"+ _id,_id);
                    
208							} else {
                    
287				} else {
                    
288					sgc = $("td.sgexpanded",rc)[0];
                    
289					if(sgc) {
                    
                
DeleteComment.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 355 lines
                    
1<?php
                    
2
                    
5 */
                    
6require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
                    
7
                    
51	 * Test as a privilged user (administrator)
                    
52	 * Expects test to pass
                    
53	 * @param mixed $comment Comment object
                    
71		$_POST['_page']       = 1;
                    
72		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
73
                    
108	 * Test as a non-privileged user (subscriber)
                    
109	 * Expects test to fail
                    
110	 * @param mixed $comment Comment object
                    
128		$_POST['_page']       = 1;
                    
129		$_POST['_url']        = admin_url( 'edit-comments.php' );
                    
130
                    
                
HTMLModuleManager.php https://gitlab.com/hop23typhu/list-theme | PHP | 403 lines
                    
1<?php
                    
2
                    
171        if (!$overload && isset($this->registeredModules[$module->name])) {
                    
172            trigger_error('Overloading ' . $module->name . ' without explicit overload parameter', E_USER_WARNING);
                    
173        }
                    
369
                    
370            // attribute value expansions
                    
371            $this->attrCollections->performInclusions($def->attr);
                    
371            $this->attrCollections->performInclusions($def->attr);
                    
372            $this->attrCollections->expandIdentifiers($def->attr, $this->attrTypes);
                    
373
                    
                
AclVoterTest.php https://gitlab.com/TouirMohamedMarwen/Symfony2 | PHP | 432 lines
                    
1<?php
                    
2
                    
22
                    
23class AclVoterTest extends \PHPUnit_Framework_TestCase
                    
24{
                    
32        $permissionMap
                    
33            ->expects($this->once())
                    
34            ->method('contains')
                    
92        $permissionMap
                    
93            ->expects($this->atLeastOnce())
                    
94            ->method('getMasks')
                    
107        $permissionMap
                    
108            ->expects($this->once())
                    
109            ->method('getMasks')
                    
128        $permissionMap
                    
129            ->expects($this->once())
                    
130            ->method('getMasks')
                    
                
FilesystemTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 240 lines
                    
1<?php
                    
2
                    
22     */
                    
23    public function testFindShortestPathCode($a, $b, $directory, $expected)
                    
24    {
                    
25        $fs = new Filesystem;
                    
26        $this->assertEquals($expected, $fs->findShortestPathCode($a, $b, $directory));
                    
27    }
                    
70     */
                    
71    public function testFindShortestPath($a, $b, $expected, $directory = false)
                    
72    {
                    
73        $fs = new Filesystem;
                    
74        $this->assertEquals($expected, $fs->findShortestPath($a, $b, $directory));
                    
75    }
                    
120     */
                    
121    public function testRemoveDirectoryPhp()
                    
122    {
                    
                
ses_ml.php https://gitlab.com/zenfork/vektor | PHP | 454 lines
                    
1<?php
                    
2/**
                    
21    'minusSign' => '-',
                    
22    'exponential' => 'E',
                    
23    'perMille' => '‰',
                    
                
functions.inc.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 346 lines
                    
15        'nombre' => array(
                    
16            'filter' => FILTER_VALIDATE_REGEXP,
                    
17            'options' => array('regexp' => '/^[a-zA-Z0-9](_(?!(\.|_))|\.(?!(_|\.))|[a-zA-Z0-9]){0,18}[a-zA-Z0-9]$/')
                    
37          'filter' => FILTER_VALIDATE_REGEXP,
                    
38          'options' => array('regexp' => '/^[a-zA-Z0-9, _]*$/')
                    
39          ),
                    
53            'filter' => FILTER_VALIDATE_REGEXP,
                    
54            'options' => array('regexp' => '/^.{6,12}$/')
                    
55        ),
                    
56        'password2' => array(
                    
57            'filter' => FILTER_VALIDATE_REGEXP,
                    
58            'options' => array('regexp' => '/^.{6,12}$/')
                    
278    if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
                    
279        if (filter_var($email, FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => '/^.{5,50}$/')))) {
                    
280            return $email;
                    
                
jquery.mask.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 281 lines
                    
9 *
                    
10 * The MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
11 *
                    
24 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
                    
25 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
                    
26 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
                    
                
index.html https://gitlab.com/essere.lab.public/qualitas.class-corpus | HTML | 305 lines
                    
89<br>
                    
90<span class="element"><a href="http://jasperforge.org/scm/viewvc.php/tags/jr-3-7-4/jasperreports/demo/samples/xlsdatasource/?root=jasperreports" target="_blank">Browse Sample Source Files on SVN</a></span>
                    
91<table cellspacing="0" cellpadding="0" border="0" width="100%">
                    
184Report filling is one of the basic operations during the report generation. After the report compilation, 
                    
185report data are read from the report data source, and/or calculated from report expressions, 
                    
186and the generated report sections are filled one by one. 
                    
200Report-field mapping for this data source implementation is very similar to the CSV data 
                    
201source field-mapping explained in the <a href="../csvdatasource" target="_blank"><span class="element">CSV Data Source</span></a> sample. It works on the assumption that 
                    
202the workbook contains data in a tabular form (rows are records and columns contain 
                    
276<br>
                    
277&nbsp;&nbsp;&lt;filterExpression&gt;&lt;![CDATA[$P{IncludedStates}.contains($F{state}) ? Boolean.TRUE : Boolean.FALSE]]&gt;&lt;/filterExpression&gt;
                    
278</code>
                    
                
config.values.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 277 lines
                    
188$cfg_db['Export']['csv_terminated'] = 'short_string';
                    
189$cfg_db['Export']['csv_enclosed'] = 'short_string';
                    
190$cfg_db['Export']['csv_escaped'] = 'short_string';
                    
191$cfg_db['Export']['csv_null'] = 'short_string';
                    
192$cfg_db['Export']['excel_null'] = 'short_string';
                    
193$cfg_db['Export']['excel_edition'] = array(
                    
197);
                    
198$cfg_db['Export']['sql_structure_or_data'] = $cfg_db['Export']['_sod_select'];
                    
199$cfg_db['Export']['sql_type'] = array('INSERT', 'UPDATE', 'REPLACE');
                    
207$cfg_db['Export']['xlsx_null'] = 'short_string';
                    
208$cfg_db['Export']['htmlword_structure_or_data'] = $cfg_db['Export']['_sod_select'];
                    
209$cfg_db['Export']['htmlword_null'] = 'short_string';
                    
212$cfg_db['Export']['odt_structure_or_data'] = $cfg_db['Export']['_sod_select'];
                    
213$cfg_db['Export']['texytext_structure_or_data'] = $cfg_db['Export']['_sod_select'];
                    
214$cfg_db['Export']['texytext_null'] = 'short_string';
                    
                
class-wp-ms-users-list-table.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 301 lines
                    
159			<tr class="<?php echo $alt; ?>">
                    
160			<?php
                    
161
                    
175						<th scope="row" class="check-column">
                    
176							<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>"><?php echo sprintf( __( 'Select %s' ), $user->user_login ); ?></label>
                    
177							<input type="checkbox" id="blog_<?php echo $user->ID ?>" name="allusers[]" value="<?php echo esc_attr( $user->ID ) ?>" />
                    
178						</th>
                    
179					<?php
                    
180					break;
                    
186						echo "<td $attributes>"; ?>
                    
187							<?php echo $avatar; ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php
                    
188							if ( in_array( $user->user_login, $super_admins ) )
                    
191							<br/>
                    
192							<?php
                    
193								$actions = array();
                    
                
tbl_structure.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 469 lines
                    
12 */
                    
13require_once 'libraries/common.inc.php';
                    
14require_once 'libraries/mysql_charsets.lib.php';
                    
18 */
                    
19require_once 'libraries/structure.lib.php';
                    
20require_once 'libraries/index.lib.php';
                    
105            . '.' . PMA_Util::backquote($table);
                    
106            include 'sql.php';
                    
107            exit;
                    
137require_once 'libraries/tbl_common.inc.php';
                    
138$url_query .= '&amp;goto=tbl_structure.php&amp;back=tbl_structure.php';
                    
139$url_params['goto'] = 'tbl_structure.php';
                    
166
                    
167require_once 'libraries/Index.class.php';
                    
168
                    
                
ibase_driver.php https://gitlab.com/joshuacurci/swim-crm | PHP | 396 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
20 *
                    
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                    
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                    
                
shortcodes.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 334 lines
                    
1<?php
                    
2/**
                    
3 * WordPress API for creating bbcode like tags or what WordPress calls
                    
4 * "shortcodes." The tag and attribute parsing or regular expression code is
                    
5 * based on the Textpattern tag parser.
                    
154/**
                    
155 * Retrieve the shortcode regular expression for searching.
                    
156 *
                    
156 *
                    
157 * The regular expression combines the shortcode tags in the regular expression
                    
158 * in a regex class.
                    
159 *
                    
160 * The regular expression contains 6 different sub matches to help with parsing.
                    
161 *
                    
171 *
                    
172 * @return string The shortcode search regular expression
                    
173 */
                    
                
service.php https://gitlab.com/alexprowars/bitrix | PHP | 416 lines
                    
1<?php
                    
2/**
                    
36	const AUTHORIZE = "/register/";
                    
37	const REDIRECT_URI = "/bitrix/tools/seo_client.php";
                    
38
                    
188
                    
189		[$group, $type] = explode('.', $engine, 2);
                    
190
                    
                
BaseVarDumper.php https://gitlab.com/Sang240892/ecommerce | PHP | 272 lines
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
144     *
                    
145     * This method is similar to `var_export()`. The main difference is that
                    
146     * it generates more compact string representation using short array syntax.
                    
149     *
                    
150     * PHP 5.4 or above is required to parse the exported value.
                    
151     *
                    
162    /**
                    
163     * @param mixed $var variable to be exported
                    
164     * @param integer $level depth level
                    
182                        if ($outputKeys) {
                    
183                            self::exportInternal($key, 0);
                    
184                            self::$_output .= ' => ';
                    
                
Tabs.php https://gitlab.com/Sang240892/ecommerce | PHP | 268 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * ```php
                    
19 * echo Tabs::widget([
                    
72     * - active: boolean, optional, whether this item tab header and pane should be active. If no item is marked as
                    
73     *   'active' explicitly - the first one will be activated.
                    
74     * - visible: boolean, optional, whether the item tab header and pane should be visible or not. Defaults to true.
                    
                
walkthrough_test.php https://gitlab.com/JrLucena/moodle | PHP | 309 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
30global $CFG;
                    
31require_once(dirname(__FILE__) . '/../../../engine/lib.php');
                    
32require_once(dirname(__FILE__) . '/../../../engine/tests/helpers.php');
                    
51        $this->check_current_mark(null);
                    
52        $this->check_current_output($this->get_contains_question_text_expectation($tf),
                    
53                $this->get_does_not_contain_feedback_expectation());
                    
55                $this->quba->get_right_answer_summary($this->slot));
                    
56        $this->assertRegExp('/' . preg_quote($tf->questiontext, '/') . '/',
                    
57                $this->quba->get_question_summary($this->slot));
                    
59
                    
60        // Process a true answer and check the expected result.
                    
61        $this->process_submission(array('answer' => 1));
                    
65        $this->check_current_mark(null);
                    
66        $this->check_current_output($this->get_contains_tf_true_radio_expectation(true, true),
                    
67                $this->get_does_not_contain_correctness_expectation(),
                    
                
Curl.php https://gitlab.com/blingbang2016/shop | PHP | 576 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
252     *
                    
253     * @param string $uri uri relative to host, ex. "/index.php"
                    
254     */
                    
302        foreach( $this->_responseHeaders['Set-Cookie'] as $row) {
                    
303            $values = explode("; ", $row);
                    
304            $c = count($values);
                    
307            }
                    
308            list($key, $val) = explode("=", $values[0]);
                    
309            if(is_null($val)) {
                    
                
mssql_driver.php https://gitlab.com/Illprotectyew/xlt | PHP | 517 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
20 *
                    
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                    
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                    
462				$select = array();
                    
463				$field_regexp = ($this->_quoted_identifier)
                    
464					? '("[^\"]+")' : '(\[[^\]]+\])';
                    
466				{
                    
467					$select[] = preg_match('/(?:\s|\.)'.$field_regexp.'$/i', $this->qb_select[$i], $m)
                    
468						? $m[1] : $this->qb_select[$i];
                    
                
sitemailer_.php https://gitlab.com/nvtdn2006/azora | PHP | 384 lines
                    
1<?php
                    
2class SiteMailer
                    
52		$this->headers .= "MIME-Version: 1.0\r\n";		
                    
53		//$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";
                    
54		$this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
                    
90			{
                    
91				$this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
                    
92				$this->msgBody .= $this->attachment;				
                    
92				$this->msgBody .= $this->attachment;				
                    
93				$this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
                    
94			}*/		
                    
130				break;	
                    
131			case 'sendPointshavebeenexpired':				
                    
132				$this->sendPointshavebeenexpired($property);			
                    
133				break;	
                    
134			case 'sendReminderforpointexpiration':				
                    
135				$this->sendReminderforpointexpiration($property);			
                    
                
db_operations.php https://gitlab.com/luyxtran264/myproject | PHP | 315 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
13 */
                    
14use PMA\libraries\plugins\export\ExportSql;
                    
15
                    
19require_once 'libraries/common.inc.php';
                    
20require_once 'libraries/mysql_charsets.inc.php';
                    
21require_once 'libraries/display_create_table.lib.php';
                    
25 */
                    
26require_once 'libraries/check_user_privileges.lib.php';
                    
27require_once 'libraries/operations.lib.php';
                    
71
                    
72        include_once "libraries/plugin_interface.lib.php";
                    
73        // remove all foreign key constraints, otherwise we can get errors
                    
73        // remove all foreign key constraints, otherwise we can get errors
                    
74        /* @var $export_sql_plugin ExportSql */
                    
75        $export_sql_plugin = PMA_getPlugin(
                    
                
CakeValidationSetTest.php https://gitlab.com/shubam39/CakeTooDoo | PHP | 337 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
15 * @since         CakePHP(tm) v 2.2.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
50		$result = $Field->validate($data);
                    
51		$expected = array('This field cannot be left blank');
                    
52		$this->assertEquals($expected, $result);
                    
66		$result = $Field->validate($data);
                    
67		$expected = array('notEmpty');
                    
68		$this->assertEquals($expected, $result);
                    
                
CreditCard.php https://gitlab.com/devtoannh/cafe | PHP | 317 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: CreditCard.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
40    const ALL              = 'All';
                    
41    const AMERICAN_EXPRESS = 'American_Express';
                    
42    const UNIONPAY         = 'Unionpay';
                    
68        self::CONTENT        => "'%value%' must contain only digits",
                    
69        self::INVALID        => "Invalid type given. String expected",
                    
70        self::LENGTH         => "'%value%' contains an invalid amount of digits",
                    
81    protected $_cardLength = array(
                    
82        self::AMERICAN_EXPRESS => array(15),
                    
83        self::DINERS_CLUB      => array(14),
                    
                
Db.php https://gitlab.com/devtoannh/cafe | PHP | 286 lines
                    
1<?php
                    
2
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Db.php 24417 2011-08-28 10:15:47Z padraic $
                    
21 */
                    
101     * }
                    
102     * var_export($const);
                    
103     */
                    
226             */
                    
227            require_once 'Zend/Db/Exception.php';
                    
228            throw new Zend_Db_Exception('Adapter parameters must be in an array or a Zend_Config object');
                    
237             */
                    
238            require_once 'Zend/Db/Exception.php';
                    
239            throw new Zend_Db_Exception('Adapter name must be specified in a string');
                    
261        if (!class_exists($adapterName)) {
                    
262            require_once 'Zend/Loader.php';
                    
263            Zend_Loader::loadClass($adapterName);
                    
                
mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
                    
238	"php.ini-development" => "php.ini-development",
                    
239	"php.ini-production" => "php.ini-production",
                    
240	"win32/install.txt" => "install.txt",
                    
240	"win32/install.txt" => "install.txt",
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
250$general_files = array(
                    
251	"php.gif"			=>	"php.gif",
                    
252);
                    
461}
                    
462copy('run-tests.php', $test_dir . '/run-test.php');
                    
463
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
FreeBusyGenerator.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 322 lines
                    
1<?php
                    
2
                    
243
                    
244                            $values = explode(',', $freebusy);
                    
245                            foreach($values as $value) {
                    
245                            foreach($values as $value) {
                    
246                                list($startTime, $endTime) = explode('/', $value);
                    
247                                $startTime = DateTimeParser::parseDateTime($startTime);
                    
                
PwDesignUserDataService.php https://gitlab.com/wuhang2003/phpwind | PHP | 311 lines
                    
1<?php
                    
2Wind::import('SRV:design.srv.model.PwDesignModelBase');
                    
12 * @author xiaoxia.xu <xiaoxia.xuxx@aliyun-inc.com>
                    
13 * @copyright ©2003-2103 phpwind.com
                    
14 * @license http://www.windframework.com
                    
14 * @license http://www.windframework.com
                    
15 * @version $Id: PwDesignUserDataService.php 24726 2013-02-18 06:15:04Z gao.wanggao $
                    
16 * @package src.service.design.srv.model.user
                    
20	/**
                    
21	 * (non-PHPdoc)
                    
22	 * @see src/service/design/srv/model/PwDesignModelBase::decorateAddProperty()
                    
30	/**
                    
31	 * (non-PHPdoc)
                    
32	 * @see src/service/design/srv/model/PwDesignModelBase::decorateEditProperty()
                    
42	/**
                    
43	 * (non-PHPdoc)
                    
44	 * @see src/service/design/srv/model/PwDesignModelBase::decorateSaveProperty()
                    
                
OracleSchemaManager.php https://gitlab.com/oytunistrator/92five | PHP | 322 lines
                    
1<?php
                    
2/*
                    
3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
                    
4 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                    
5 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                    
                
Attribute.php https://gitlab.com/geeta7/drupal | PHP | 351 lines
                    
1<?php
                    
2
                    
45 * Html::escape(). No protocol filtering is applied, so when using user-entered
                    
46 * input as a value for an attribute that expects an URI (href, src, ...),
                    
47 * UrlHelper::stripDangerousProtocols() should be used to ensure dangerous
                    
                
BlockCommentSniff.php https://gitlab.com/0072016/PHP_CodeSniffer | PHP | 357 lines
                    
27 * @version   Release: @package_version@
                    
28 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
29 */
                    
64     */
                    
65    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
66    {
                    
67        if ($this->_tabWidth === null) {
                    
68            $cliValues = $phpcsFile->phpcs->cli->getCommandLineValues();
                    
69            if (isset($cliValues['tabWidth']) === false || $cliValues['tabWidth'] === 0) {
                    
86        if ($tokens[$stackPtr]['code'] === T_DOC_COMMENT_OPEN_TAG) {
                    
87            $nextToken = $phpcsFile->findNext(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true);
                    
88            $ignore    = array(
                    
105
                    
106            $prevToken = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr - 1), null, true);
                    
107            if ($tokens[$prevToken]['code'] === T_OPEN_TAG) {
                    
                
template-bootstrap.php https://gitlab.com/danielortiz1982/spicer | PHP | 198 lines
                    
25    </head>
                    
26    <body data-tempdir="<?php echo PAGEDIR; ?>" id="<?php echo get_post( $post )->post_name; ?>" <?=(returnMobile() == 'true')? 'class="mobileMode"' : 'class="desktopMode"';?>>
                    
27
                    
75                        <a class="navbar-brand" href="<?php echo home_url(); ?>">
                    
76                            <img src="<?php echo PAGEDIR; ?>/images/graphics/logo.png" alt="<?php bloginfo('name');?>" />
                    
77                        </a>
                    
171            <div>
                    
172                <script src="<?php echo PAGEDIR; ?>/machines/libraries/owlcarousel/owlcarousel.js"></script>
                    
173                <script src="<?php echo PAGEDIR; ?>/machines/libraries/modernizr/modernizr.js"></script>
                    
173                <script src="<?php echo PAGEDIR; ?>/machines/libraries/modernizr/modernizr.js"></script>
                    
174                <script src="<?php echo PAGEDIR; ?>/machines/libraries/backstretch/backstretch.js"></script>
                    
175                <script src="<?php echo PAGEDIR; ?>/machines/libraries/validate/validate.js"></script>
                    
191                </script>
                    
192                <?php if (returnBrowser() !== "internet-explorer-8"): ?>
                    
193                    <script src="<?php echo PAGEDIR; ?>/machines/libraries/dynamics/dynamics.js"></script>
                    
                
Matcher.php https://gitlab.com/karora/awl | PHP | 308 lines
                    
61 */
                    
62class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation
                    
63{
                    
179        catch (PHPUnit_Framework_ExpectationFailedException $e) {
                    
180            throw new PHPUnit_Framework_ExpectationFailedException(
                    
181              sprintf(
                    
251        catch (PHPUnit_Framework_ExpectationFailedException $e) {
                    
252            throw new PHPUnit_Framework_ExpectationFailedException(
                    
253              sprintf(
                    
268     * @throws PHPUnit_Framework_Exception
                    
269     * @throws PHPUnit_Framework_ExpectationFailedException
                    
270     */
                    
296        catch (PHPUnit_Framework_ExpectationFailedException $e) {
                    
297            throw new PHPUnit_Framework_ExpectationFailedException(
                    
298              sprintf(
                    
                
font_metrics.cls.php https://gitlab.com/narugamy/inventariado | PHP | 363 lines
                    
1<?php
                    
2/**
                    
10
                    
11require_once DOMPDF_LIB_DIR . "/class.pdf.php";
                    
12
                    
18 * with Font_Metrics::save_font_families().
                    
19 * This is typically done only from command line with load_font.php on converting
                    
20 * ttf fonts to ufm with php-font-lib.
                    
21 *
                    
22 * Declared here because PHP5 prevents constants from being declared with expressions
                    
23 */
                    
23 */
                    
24define('__DOMPDF_FONT_CACHE_FILE', DOMPDF_FONT_DIR . "dompdf_font_family_cache.php");
                    
25
                    
52   *
                    
53   * Usually cached by the {@link load_font.php} script
                    
54   *
                    
                
SnsClient.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 378 lines
                    
1<?php
                    
2
                    
6
                    
7w3_require_once(W3TC_LIB_W3_DIR . '/Enterprise/SnsBase.php');
                    
8
                    
182    /**
                    
183     * Reloads/compiles a PHP file.
                    
184     * @param string $filename
                    
191    /**
                    
192     * Reloads/compiles a PHP file.
                    
193     * @param string[] $filenames
                    
201    /**
                    
202     * Deletes files based on regular expression matching.
                    
203     * @param string $mask
                    
                
Explosion.php https://gitlab.com/wesleyvanneck/ImagicalMine | PHP | 277 lines
                    
2/**
                    
3 * src/pocketmine/level/Explosion.php
                    
4 *
                    
50use pocketmine\nbt\tag\CompoundTag;
                    
51use pocketmine\network\protocol\ExplodePacket;
                    
52use pocketmine\block\Redstone;
                    
92     */
                    
93    public function explode()
                    
94    {
                    
182        $explosionSize = $this->size * 2;
                    
183        $minX = Math::floorFloat($this->source->x - $explosionSize - 1);
                    
184        $maxX = Math::ceilFloat($this->source->x + $explosionSize + 1);
                    
184        $maxX = Math::ceilFloat($this->source->x + $explosionSize + 1);
                    
185        $minY = Math::floorFloat($this->source->y - $explosionSize - 1);
                    
186        $maxY = Math::ceilFloat($this->source->y + $explosionSize + 1);
                    
                
meta.js https://gitlab.com/Mirros/cdnjs | JavaScript | 181 lines
                    
4(function(mod) {
                    
5  if (typeof exports == "object" && typeof module == "object") // CommonJS
                    
6    mod(require("../lib/codemirror"));
                    
87    {name: "Perl", mime: "text/x-perl", mode: "perl", ext: ["pl", "pm"]},
                    
88    {name: "PHP", mime: "application/x-httpd-php", mode: "php", ext: ["php", "php3", "php4", "php5", "phtml"]},
                    
89    {name: "Pig", mime: "text/x-pig", mode: "pig", ext: ["pig"]},
                    
                
componentbase.php https://gitlab.com/alexprowars/bitrix | PHP | 558 lines
                    
1<?php
                    
2
                    
145			{
                    
146				$this->addError(new Error(Loc::getMessage('TRANSLATE_FILTER_ERROR_PHP_EDIT_RIGHTS'), self::STATUS_DENIED));
                    
147				$this->includeComponentTemplate(self::TEMPLATE_ERROR);
                    
165		{
                    
166			$conf = Main\Application::getConnection()->query("SHOW VARIABLES LIKE 'regexp_time_limit'")->fetch();
                    
167			if ($conf['Variable_name'] == 'regexp_time_limit')
                    
170				{
                    
171					$this->addWarning(new Error(Loc::getMessage('TRANSLATE_MYSQL_CONFIG_ERROR_REGEXP_TIME_LIMIT'), self::STATUS_ERROR));
                    
172				}
                    
198		{
                    
199			$params['SHOW_SOURCE_PATH'] = '/bitrix/admin/translate_show_php.php';
                    
200		}
                    
202		{
                    
203			$params['EDIT_SOURCE_PATH'] = '/bitrix/admin/translate_edit_php.php';
                    
204		}
                    
                
CakeValidationSetTest.php https://gitlab.com/nghiep5890/bakery | PHP | 337 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
15 * @since         CakePHP(tm) v 2.2.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
50		$result = $Field->validate($data);
                    
51		$expected = array('This field cannot be left blank');
                    
52		$this->assertEquals($expected, $result);
                    
66		$result = $Field->validate($data);
                    
67		$expected = array('notBlank');
                    
68		$this->assertEquals($expected, $result);
                    
                
AuthenticationHttpTest.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 458 lines
                    
98
                    
99        $mockResponse->expects($this->exactly($set_title))
                    
100            ->method('getHeader')
                    
195     * @param string $passIndex      index to test username against
                    
196     * @param string $expectedReturn expected return value from test
                    
197     * @param string $expectedUser   expected username to be set
                    
197     * @param string $expectedUser   expected username to be set
                    
198     * @param string $expectedPass   expected password to be set
                    
199     * @param string $old_usr        value for $_REQUEST['old_usr']
                    
204    public function testAuthCheck($user, $pass, $userIndex, $passIndex,
                    
205        $expectedReturn, $expectedUser, $expectedPass, $old_usr = ''
                    
206    ) {
                    
366        $GLOBALS['server'] = 3;
                    
367        $GLOBALS['PHP_AUTH_USER'] = 'testUser';
                    
368        $GLOBALS['PHP_AUTH_PW'] = 'testPass';
                    
                
u8g_dev_ssd1322_nhd31oled_bw.c https://gitlab.com/uc_projects/arduino_meter | C | 338 lines
                    
23  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 
                    
24  CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 
                    
25  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
                    
56  http://www.newhavendisplay.com/app_notes/OLED_25664.txt 
                    
57  http://www.newhavendisplay.com/forum/viewtopic.php?f=15&t=3758
                    
58*/
                    
                
file_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
7 * @package		CodeIgniter
                    
8 * @author		ExpressionEngine Dev Team
                    
9 * @copyright	Copyright (c) 2008 - 2014, EllisLab, Inc.
                    
23 * @category	Helpers
                    
24 * @author		ExpressionEngine Dev Team
                    
25 * @link		http://codeigniter.com/user_guide/helpers/file_helpers.html
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
269* Given a file and path, returns the name, path, size, date modified
                    
270* Second parameter allows you to explicitly declare what information you want returned
                    
271* Options are: name, server_path, size, date, readable, writable, executable, fileperms
                    
                
server.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 407 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_HTTP_SERVER_SERVER_H_
                    
18#define incl_HPHP_HTTP_SERVER_SERVER_H_
                    
                
assignment_expression.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 314 lines
                    
16
                    
17#include "hphp/compiler/expression/assignment_expression.h"
                    
18#include "hphp/compiler/expression/array_element_expression.h"
                    
20#include "hphp/compiler/analysis/code_error.h"
                    
21#include "hphp/compiler/expression/constant_expression.h"
                    
22#include "hphp/compiler/expression/simple_variable.h"
                    
26#include "hphp/compiler/analysis/file_scope.h"
                    
27#include "hphp/compiler/expression/unary_op_expression.h"
                    
28#include "hphp/parser/hphp.tab.hpp"
                    
32#include "hphp/compiler/analysis/function_scope.h"
                    
33#include "hphp/compiler/expression/scalar_expression.h"
                    
34#include "hphp/compiler/expression/expression_list.h"
                    
62ExpressionPtr AssignmentExpression::clone() {
                    
63  AssignmentExpressionPtr exp(new AssignmentExpression(*this));
                    
64  Expression::deepCopy(exp);
                    
                
Pgsql.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pgsql.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
132     * DATA_TYPE        => string; SQL datatype name of column
                    
133     * DEFAULT          => string; default expression of column, null if none
                    
134     * NULLABLE         => boolean; true if column can have nulls
                    
212                $primary = true;
                    
213                $primaryPosition = array_search($row[$attnum], explode(',', $row[$conkey])) + 1;
                    
214                $identity = (bool) (preg_match('/^nextval/', $row[$default_value]));
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
                
Pgsql.php https://gitlab.com/luisrepo/ClienteWS | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pgsql.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
132     * DATA_TYPE        => string; SQL datatype name of column
                    
133     * DEFAULT          => string; default expression of column, null if none
                    
134     * NULLABLE         => boolean; true if column can have nulls
                    
212                $primary = true;
                    
213                $primaryPosition = array_search($row[$attnum], explode(',', $row[$conkey])) + 1;
                    
214                $identity = (bool) (preg_match('/^nextval/', $row[$default_value]));
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
                
upload.php https://gitlab.com/plusplusminus/aevitas | PHP | 245 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * upload.php
                    
9 *
                    
109
                    
110		$allowed_extensions = ! empty( $field->allowedExtensions ) ? GFCommon::clean_extensions( explode( ',', strtolower( $field->allowedExtensions ) ) ) : array();
                    
111
                    
195				// Read binary input stream and append it to temp file
                    
196				$in = @fopen( 'php://input', 'rb' );
                    
197
                    
                
HelperRegistryTest.php https://gitlab.com/18runt88/cakephp | PHP | 334 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         2.0.0
                    
12 * @since         2.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
103     *
                    
104     * @expectedException \Cake\View\Exception\MissingHelperException
                    
105     * @return void
                    
174     *
                    
175     * @expectedException \Cake\View\Exception\MissingHelperException
                    
176     * @return void
                    
                
shipping.php https://gitlab.com/firstrate/firstrate | PHP | 268 lines
                    
1<?php
                    
2class ControllerApiShipping extends Controller {
                    
238				} else {
                    
239					$shipping = explode('.', $this->request->post['shipping_method']);
                    
240
                    
                
grid.locale-en.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 224 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 * http://www.gnu.org/licenses/gpl.html
                    
28            pgrecs: "Records per Page",
                    
29            showhide: "Toggle Expand Collapse Grid",
                    
30			savetext: "Saving..."
                    
158                masks: {
                    
159                    // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
                    
160                    // and see http://docs.jquery.com/UI/Datepicker/formatDate
                    
163                    // information about date, time, numbers and currency formats used in different countries
                    
164                    // one should just convert the information in PHP format
                    
165                    // short date:
                    
                
about.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 208 lines
                    
88		/* Translators: 1: singular.php; 2: single.php; 3:page.php */
                    
89		'description' => sprintf( __( 'Added %1$s as a fallback for %2$s and %3$s' ), '<code>singular.php</code>', '<code>single.php</code>', '<code>page.php</code>.' ),
                    
90	),
                    
104		<h2 class="nav-tab-wrapper">
                    
105			<a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What&#8217;s New' ); ?></a>
                    
106			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
106			<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
                    
107			<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
                    
108		</h2>
                    
171				<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
                    
172					<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
                    
173						<?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' ); ?>
                    
175				<?php endif; ?>
                    
176				<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
                    
177			</div>
                    
                
WARCReader.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 290 lines
                    
71        // Records end in 2*CRLF.  Suck it up.
                    
72        readExpectedChar(getIn(), CRLF.charAt(0));
                    
73        readExpectedChar(getIn(), CRLF.charAt(1));
                    
73        readExpectedChar(getIn(), CRLF.charAt(1));
                    
74        readExpectedChar(getIn(), CRLF.charAt(0));
                    
75        readExpectedChar(getIn(), CRLF.charAt(1));
                    
77    
                    
78    protected void readExpectedChar(final InputStream is, final int expected)
                    
79    throws IOException {
                    
80        int c = is.read();
                    
81        if (c != expected) {
                    
82            throw new IOException("Unexpected character " +
                    
82            throw new IOException("Unexpected character " +
                    
83                Integer.toHexString(c) + "(Expecting " +
                    
84                Integer.toHexString(expected) + ")");
                    
                
helpers.php https://gitlab.com/VTTE/sitios-vtte | PHP | 312 lines
                    
1<?php
                    
2use GutenPress\Forms;
                    
23			if (!empty($url)) {
                    
24				$id=array_pop(explode('/',$url));
                    
25				$iframe='<iframe src="http://player.vimeo.com/video/'.$id.'" width="'.$width.'" height="'.$height.'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
                    
76
                    
77				$id=array_pop(explode('/',$url));
                    
78				$request = new WP_Http;
                    
78				$request = new WP_Http;
                    
79				$result = $request->request( 'http://vimeo.com/api/v2/video/'.$id.'.php' , $args );
                    
80				//$iframe='<iframe src="http://player.vimeo.com/video/'.$id.'?title=0&amp;byline=0&amp;portrait=0" width="'.$width.'" height="'.$height.'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
                    
179		$out = substr( strip_tags($str), 0, $n );
                    
180		$out = explode(" ",$out);
                    
181		array_pop( $out );
                    
227/*
                    
228	Super PHP Plugin to add Full SVG Media support to WordPress
                    
229	Author URI: http://www.lewiscowles.co.uk/
                    
                
emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
                    
1<?php defined('_JEXEC') or die('Restricted access'); ?>
                    
2<?php
                    
16    2009-10-29  Fixed so that selectors appearing later in the CSS will have precedence over identical selectors appearing earlier.
                    
17    2009-11-04  Explicitly declared static functions static to get rid of E_STRICT notices.
                    
18    2010-05-18  Fixed bug where full url filenames with protocols wouldn't get split improperly when we explode on ':'... Thanks Mark!
                    
20    2010-06-16  Added static caching for less processing overhead in situations where multiple emogrification takes place
                    
21    2010-07-26  Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott!
                    
22    2010-09-03  Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted
                    
96                // else split by commas and duplicate attributes so we can sort by selector precedence
                    
97                $selectors = explode(',',$selectorString);
                    
98                foreach ($selectors as $selector) {
                    
203                               "(strlen('\\1') ? '\\1' : '*').'[@id=\"\\2\"]'",
                    
204                               "(strlen('\\1') ? '\\1' : '*').'[contains(concat(\" \",@class,\" \"),concat(\" \",\"'.implode('\",\" \"))][contains(concat(\" \",@class,\" \"),concat(\" \",\"',explode('.',substr('\\2',1))).'\",\" \"))]'",
                    
205            );
                    
211	private function cssStyleDefinitionToArray($style) {
                    
212	    $definitions = explode(';',$style);
                    
213	    $retArr = array();
                    
                
function_scope.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 444 lines
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
19
                    
20#include "hphp/compiler/expression/user_attribute.h"
                    
21#include <list>
                    
25#include "hphp/compiler/analysis/block_scope.h"
                    
26#include "hphp/compiler/option.h"
                    
27#include "hphp/compiler/json.h"
                    
52
                    
53typedef std::pair< ParameterExpressionPtr, int >
                    
54        ParameterExpressionPtrIdxPair;
                    
299
                    
300  typedef hphp_hash_map<std::string, ExpressionPtr, string_hashi,
                    
301    string_eqstri> UserAttributeMap;
                    
                
Loader.php https://gitlab.com/filly/e-hrm | PHP | 481 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
27 *
                    
28 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                    
29 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                    
352		{
                    
353			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
354		}
                    
480/** load the CI class for Modular Separation **/
                    
481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
production.js https://gitlab.com/pentacode/poweraire-erp | JavaScript | 351 lines
                    
2
                    
3module.exports = {
                    
4  secure: {
                    
19  log: {
                    
20    // logging with Morgan - https://github.com/expressjs/morgan
                    
21    // Can specify one of 'combined', 'common', 'dev', 'short', 'tiny'
                    
141        code: 'CURRENCY',
                    
142        value: 'PHP',
                    
143        descriptionOne: 'Philippines Peso',
                    
                
permissions.inc.php git://github.com/modxcms/revolution.git | PHP | 192 lines
                    
1<?php
                    
2/**
                    
60$_lang['perm.error_log_view_desc'] = 'Untuk melihat log kesalahan.';
                    
61$_lang['perm.export_static_desc'] = 'Untuk mengekspor situs ke HTML statis.';
                    
62$_lang['perm.file_create_desc'] = 'Untuk membuat file.';
                    
                
SqlServerGrammar.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 344 lines
                    
1<?php
                    
2
                    
107        // We need to add the row number to the query so we can compare it to the offset
                    
108        // and limit values given for the statements. So we will add an expression to
                    
109        // the "select" that will give back the row numbers on each of the records.
                    
123        // We are now ready to build the final SQL query so we'll create a common table
                    
124        // expression from the query and get the records with row numbers within our
                    
125        // given limit and offset value that we just put on as a query constraint.
                    
125        // given limit and offset value that we just put on as a query constraint.
                    
126        return $this->compileTableExpression($sql, $constraint);
                    
127    }
                    
129    /**
                    
130     * Compile the over statement for a table expression.
                    
131     *
                    
159    /**
                    
160     * Compile a common table expression for a query.
                    
161     *
                    
                
CategoryRepositoryTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 277 lines
                    
1<?php
                    
2/**
                    
21    /**
                    
22     * @magentoApiDataFixture Magento/Catalog/_files/category_backend.php
                    
23     */
                    
25    {
                    
26        $expected = [
                    
27            'parent_id' => 2,
                    
44        unset($result['created_at'], $result['updated_at'], $result['children'], $result['custom_attributes']);
                    
45        ksort($expected);
                    
46        ksort($result);
                    
46        ksort($result);
                    
47        $this->assertEquals($expected, $result);
                    
48    }
                    
81     *
                    
82     * @magentoApiDataFixture Magento/Catalog/Model/Category/_files/service_category_create.php
                    
83     */
                    
                
schema.php https://gitlab.com/alexprowars/bitrix | PHP | 414 lines
                    
1<?php
                    
2namespace Bitrix\Perfmon\Sql;
                    
8\Bitrix\Main\Loader::includeModule('perfmon');
                    
9$dir = new \Bitrix\Main\IO\Directory("/opt/php03.cp1251.www/mercurial/bitrix/modules");
                    
10foreach ($dir->getChildren()  as $child)
                    
167				{
                    
168					throw new NotSupportedException("'CREATE TABLE' expected. line:".$tokenizer->getCurrentToken()->line);
                    
169				}
                    
199					{
                    
200						throw new NotSupportedException("'CREATE INDEX' expected. line:".$tokenizer->getCurrentToken()->line);
                    
201					}
                    
204				{
                    
205					throw new NotSupportedException("'NOT EXISTS' expected. line:".$tokenizer->getCurrentToken()->line);
                    
206				}
                    
209			{
                    
210				throw new NotSupportedException("'OBJECT_ID' expected. line:".$tokenizer->getCurrentToken()->line);
                    
211			}
                    
                
site_speed.php https://gitlab.com/alexprowars/bitrix | PHP | 297 lines
                    
5 */
                    
6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
7require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
7require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/prolog.php");
                    
8define("HELP_FILE", "settings/site_speed.php");
                    
9
                    
23$APPLICATION->SetTitle(Loc::getMessage("MAIN_SITE_SPEED_TITLE"));
                    
24require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
                    
25
                    
93
                    
94			<div class="site-speed-explanation">
                    
95				<b><?=Loc::getMessage("MAIN_SITE_SPEED_TITLE")?></b> &mdash; <?=Loc::getMessage("MAIN_SITE_SPEED_TITLE_DESC")?>
                    
100				if (\Bitrix\Main\ModuleManager::isModuleInstalled("perfmon")):
                    
101					$mark = (double)COption::GetOptionString("perfmon", "mark_php_page_rate", "");
                    
102				?>
                    
                
ClassMetadataTest.php https://gitlab.com/freebird/WebApp | PHP | 280 lines
                    
1<?php
                    
2
                    
20
                    
21class ClassMetadataTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
40    {
                    
41        $this->setExpectedException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
                    
42
                    
47    {
                    
48        $this->setExpectedException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
                    
49
                    
224    {
                    
225        $this->setExpectedException('Symfony\Component\Validator\Exception\GroupDefinitionException');
                    
226
                    
231    {
                    
232        $this->setExpectedException('Symfony\Component\Validator\Exception\GroupDefinitionException');
                    
233
                    
                
wp_posts.php https://gitlab.com/meixnertobias/thaimaidaiproductionwp | PHP | 348 lines
                    
1<?php
                    
2defined('WYSIJA') or die('Restricted access');
                    
74    if(isset($args['category_ids']) && strlen(trim($args['category_ids'])) > 0) {
                    
75      $args['category'] = explode(',', trim($args['category_ids']));
                    
76    } else {
                    
320            // multiple values
                    
321            $values = "'" . join("','", explode(',', $value)) . "'";
                    
322            $query .= $data['sign'] . ' (' . $values . ')';
                    
                
landing.php https://gitlab.com/NucleusStudios/Mercado-BTX | PHP | 259 lines
                    
23										 data-start="1000"
                    
24										 data-easing="easeOutExpo"><img src="<?php echo Yii::app()->baseUrl . '/images' ?>/slides/slide-title-border.png" alt=""></div>
                    
25
                    
30										 data-start="500"
                    
31										 data-easing="easeOutExpo" id=promoText"><?php echo Yii::t('translation', 'promo_home_text_1'); ?></div>
                    
32
                    
37										 data-start="1000"
                    
38										 data-easing="easeOutExpo"><img src="<?php echo Yii::app()->baseUrl . '/images' ?>/slides/slide-title-border.png" alt=""></div>
                    
39
                    
98									<div class="get-started">
                    
99										<a href="<?php echo Yii::app()->baseUrl . '/'. Yii::t('urls','register'); ?>" class="btn btn-lg btn-primary"><span id ="registerButton"><?php echo Yii::t('translation', 'top_side_main_text'); ?></a>
                    
100										<div class="learn-more"><a href="<?php echo Yii::app()->baseUrl . '/'. Yii::t('urls','preguntas_frecuentes'); ?>"><span id="moreInformationButton"><?php echo Yii::t('translation', 'top_side_main_text2'); ?></span></a></div>
                    
246								<div class="center">
                    
247									<h3><?php echo Yii::t('translation', 'bottom_main_text_bottom'); ?><a href="<?php echo Yii::app()->baseUrl . '/'. Yii::t('urls','register'); ?>" class="btn btn-lg btn-primary" data-appear-animation="bounceIn"><?php echo Yii::t('translation', 'bottom_main_button'); ?></a> <span class="arrow hlb" data-appear-animation="rotateInUpLeft" style="top: -22px;"></span></h3>
                    
248								</div>
                    
                
apc.object-cache.php https://gitlab.com/endomorphosis/falkenstein | PHP | 380 lines
                    
19if ( version_compare( '5.2.4', phpversion(), '>=' ) ) {
                    
20	wp_die( 'The APC object cache backend requires PHP 5.2 or higher. You are running ' . phpversion() . '. Please remove the <code>object-cache.php</code> file from your content directory.' );
                    
21}
                    
84
                    
85function wp_cache_set( $key, $data, $group = '', $expire = 0 ) {
                    
86	global $wp_object_cache;
                    
121	var $cache_enabled = true;
                    
122	var $default_expiration = 0;
                    
123	var $abspath = '';
                    
143
                    
144		$expire = ( $expire == 0 ) ? $this->default_expiration : $expire;
                    
145
                    
285
                    
286		$expire = ( $expire == 0 ) ? $this->default_expiration : $expire;
                    
287		$result = apc_store( $key, $store_data, $expire );
                    
                
after-the-deadline.php https://gitlab.com/endomorphosis/falkenstein | PHP | 286 lines
                    
28include( 'after-the-deadline/config-unignore.php' );
                    
29include( 'after-the-deadline/proxy.php' );
                    
30
                    
90
                    
91	/* kill the spellchecker.. don't need no steenkin PHP spell checker */
                    
92	foreach ( $buttons as $key => $button ) {
                    
123	$init_array['atd_rpc_url']        = admin_url( 'admin-ajax.php?action=proxy_atd&url=' );
                    
124	$init_array['atd_ignore_rpc_url'] = admin_url( 'admin-ajax.php?action=atd_ignore&phrase=' );
                    
125	$init_array['atd_rpc_id']         = 'WPORG-' . md5(get_bloginfo('wpurl'));
                    
183
                    
184			'menu_option_explain'         => __( 'Explain...', 'jetpack' ),
                    
185			'menu_option_ignore_once'     => __( 'Ignore suggestion', 'jetpack' ),
                    
252
                    
253	$pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'admin.php', 'profile.php' );
                    
254
                    
                
autoptimizeBase.php https://gitlab.com/hop23typhu/list-theme | PHP | 317 lines
                    
1<?php
                    
2if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
                    
38			}
                    
39		} else if ((strpos($url,'//')===false) && (strpos($url,parse_url(AUTOPTIMIZE_WP_SITE_URL,PHP_URL_HOST))===false)) {
                    
40			$url = AUTOPTIMIZE_WP_SITE_URL.$url;
                    
43		// first check; hostname wp site should be hostname of url
                    
44		$thisHost=@parse_url($url,PHP_URL_HOST);
                    
45		if ($thisHost!==parse_url(AUTOPTIMIZE_WP_SITE_URL,PHP_URL_HOST)) {
                    
47			* first try to get all domains from WPML (if available)
                    
48			* then explicitely declare $this->cdn_url as OK as well
                    
49			* then apply own filter autoptimize_filter_cssjs_multidomain takes an array of hostnames
                    
59			if (!empty($this->cdn_url)) {
                    
60				$multidomains[]=parse_url($this->cdn_url,PHP_URL_HOST);
                    
61			}
                    
66				if (in_array($thisHost,$multidomains)) {
                    
67					$url=str_replace($thisHost, parse_url(AUTOPTIMIZE_WP_SITE_URL,PHP_URL_HOST), $url);
                    
68				} else {
                    
                
editor.php https://gitlab.com/che234/adn | PHP | 343 lines
                    
1<?php
                    
2
                    
107                // load mobile detect class
                    
108                require_once(dirname(__FILE__) . '/mobile.php');
                    
109            }
                    
135                // check user groups - a value should always be set
                    
136                $groups = array_intersect($keys, explode(',', $item->types));
                    
137
                    
140                    // no additional users set or no user match
                    
141                    if (empty($item->users) || in_array($user->id, explode(',', $item->users)) === false) {
                    
142                        continue;
                    
146                // check component
                    
147                if ($option !== 'com_jce' && $item->components && in_array($option, explode(',', $item->components)) === false) {
                    
148                    continue;
                    
156                // check device
                    
157                if (in_array($device, explode(',', $item->device)) === false) {
                    
158                    continue;
                    
                
file_helper.php https://gitlab.com/ahsanullah716/auth_master | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
7 * @package		CodeIgniter
                    
8 * @author		ExpressionEngine Dev Team
                    
9 * @copyright	Copyright (c) 2008 - 2011, EllisLab, Inc.
                    
23 * @category	Helpers
                    
24 * @author		ExpressionEngine Dev Team
                    
25 * @link		http://codeigniter.com/user_guide/helpers/file_helpers.html
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
269* Given a file and path, returns the name, path, size, date modified
                    
270* Second parameter allows you to explicitly declare what information you want returned
                    
271* Options are: name, server_path, size, date, readable, writable, executable, fileperms
                    
                
BigMath.php https://gitlab.com/ahsanullah716/auth_master | PHP | 451 lines
                    
39     *
                    
40     * @param integer $long The long number (can be a normal PHP
                    
41     * integer or a number created by one of the available long number
                    
181/**
                    
182 * Exposes BCmath math library functionality.
                    
183 *
                    
246            $square = $this->mod($this->mul($square, $square), $modulus);
                    
247            $exponent = $this->div($exponent, 2);
                    
248        }
                    
251
                    
252    function powmod($base, $exponent, $modulus)
                    
253    {
                    
254        if (function_exists('bcpowmod')) {
                    
255            return bcpowmod($base, $exponent, $modulus);
                    
256        } else {
                    
                
inputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
                    
2/**
                    
3 *  @class: InputFilter (PHP4 & PHP5, with comments)
                    
4 * @project: PHP Input Filter
                    
5 * @date: 10-05-2005
                    
6 * @version: 1.2.2_php4/php5
                    
7 * @author: Daniel Morris
                    
58	/**
                    
59	 * Method to be called by another php script. Processes for XSS and
                    
60	 * specified bad code.
                    
192				$isCloseTag		= true;
                    
193				list ($tagName)	= explode(' ', $currentTag);
                    
194				$tagName		= substr($tagName, 1);
                    
198				$isCloseTag		= false;
                    
199				list ($tagName)	= explode(' ', $currentTag);
                    
200			}
                    
                
Think.class.php https://gitlab.com/xuebutayan/yshop | PHP | 344 lines
                    
39
                    
40      $runtimefile  = RUNTIME_PATH.APP_MODE.'~runtime.php';
                    
41      if(!APP_DEBUG && Storage::has($runtimefile)){
                    
47          // 读取应用模式
                    
48          $mode   =   include is_file(CONF_PATH.'core.php')?CONF_PATH.'core.php':MODE_PATH.APP_MODE.'.php';
                    
49          // 加载核心文件
                    
85          // 加载框架底层语言包
                    
86          L(include THINK_PATH.'Lang/'.strtolower(C('DEFAULT_LANG')).'.php');
                    
87
                    
89              $content  .=  "\nnamespace { Think\Think::addMap(".var_export(self::$_map,true).");";
                    
90              $content  .=  "\nL(".var_export(L(),true).");\nC(".var_export(C(),true).');Think\Hook::import('.var_export(Hook::get(),true).');}';
                    
91              Storage::put($runtimefile,strip_whitespace('<?php '.$content));
                    
299            if(IS_CLI){
                    
300                exit(iconv('UTF-8','gbk',$e['message']).PHP_EOL.'FILE: '.$e['file'].'('.$e['line'].')'.PHP_EOL.$e['trace']);
                    
301            }
                    
                
fa.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 313 lines
                    
1<?php
                    
2$translations = array(
                    
16	'No extension' => 'پسوند نامعتبر',
                    
17	'None of the supported PHP extensions (%s) are available.' => ' پسوند پی اچ پی در دسترس نیست (%s) تعداد',
                    
18	'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد',
                    
18	'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد',
                    
19	'Session expired, please login again.' => 'نشست پايان يافته، لطفا دوباره وارد شويد',
                    
20	'%s version: %s through PHP extension %s' => 'نسخه %s : %s توسعه پی اچ پی %s',
                    
67	
                    
68	'Export' => 'استخراج',
                    
69	'Output' => 'خروجي',
                    
                
class-config.php https://gitlab.com/iamgraeme/royalmile | PHP | 452 lines
                    
142
                    
143		if ( 'import-export' === $tool && filter_input( INPUT_POST, WPSEO_Export::NONCE_NAME ) !== null ) {
                    
144			$this->do_yoast_export();
                    
151	private function do_yoast_export() {
                    
152		check_admin_referer( WPSEO_Export::NONCE_ACTION, WPSEO_Export::NONCE_NAME );
                    
153
                    
159		$include_taxonomy = ! empty( $wpseo_post['include_taxonomy'] );
                    
160		$export           = new WPSEO_Export( $include_taxonomy );
                    
161
                    
179
                    
180		$export = new WPSEO_Export( $include_taxonomy );
                    
181		if ( $export->success ) {
                    
181		if ( $export->success ) {
                    
182			return $export->export_zip_url;
                    
183		}
                    
                
server_side.html https://gitlab.com/betanurlaila/UI_onlineshop | HTML | 233 lines
                    
32		serverSide: true,
                    
33		ajax: "../../../../examples/server_side/scripts/objects.php",
                    
34		columns: [
                    
54			<div class="info">
                    
55				<p>Server-side processing can be exceptionally useful in DataTables when dealing with massive data sets, and ColReorder works with this as would be expected.</p>
                    
56				<p>It is recommend that you use object based data with server-side processing and ColReorder, as this provides easily understandable mapping between the the
                    
93		serverSide: true,
                    
94		ajax: &quot;../../../../examples/server_side/scripts/objects.php&quot;,
                    
95		columns: [
                    
140				</div>
                    
141				<div class="php">
                    
142					<p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side
                    
                
theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
                    
1<?php
                    
2/**
                    
9/** WordPress Administration Bootstrap */
                    
10require_once( dirname( __FILE__ ) . '/admin.php' );
                    
11require( ABSPATH . 'wp-admin/includes/theme-install.php' );
                    
18if ( is_multisite() && ! is_network_admin() ) {
                    
19	wp_redirect( network_admin_url( 'theme-install.php' ) );
                    
20	exit();
                    
23$title = __( 'Add Themes' );
                    
24$parent_file = 'themes.php';
                    
25
                    
54		'collapseSidebar'    => __( 'Collapse Sidebar' ),
                    
55		'expandSidebar'      => __( 'Expand Sidebar' ),
                    
56	),
                    
313			<div class="wp-full-overlay-footer">
                    
314				<button type="button" class="collapse-sidebar button-secondary" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">
                    
315					<span class="collapse-sidebar-arrow"></span>
                    
                
2008-11-06-usability-vs-discoverability.aspx.markdown https://gitlab.com/Blueprint-Marketing/haacked.com | Markdown | 167 lines
                    
29> everything. Learnable user interfaces may be extremely cumbersome to
                    
30> experienced users. If you make people walk through a fifteen-step
                    
31> wizard to print, people will be pleased the first time, less pleased
                    
35> Sometimes all you care about is learnability: for example, if you
                    
36> expect to have only occasional users. An information kiosk at a
                    
37> tourist attraction is a good example; almost everybody who uses your
                    
41Rick Osborne in his post, [Usability vs
                    
42Discoverability](http://rickosborne.org/blog/index.php/2007/04/19/usability-vs-discoverability/ "Usability vs Discoverability"),
                    
43also covers this distinction, while Scott Berkun points out in his post
                    
64One of the ways you can specify the value of a constraint is via a
                    
65regular expression string like so:
                    
66
                    
78We figure that in 99.9% of the cases, developers will use regular
                    
79expression constraints. However, there are several cases we identified
                    
80in which a regular expression string isn’t really appropriate, such as
                    
                
TagTest.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 313 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * phpDocumentor Var Tag Test
                    
4 * 
                    
4 * 
                    
5 * PHP version 5.3
                    
6 *
                    
8 * @copyright 2010-2011 Mike van Riel / Naenius. (http://www.naenius.com)
                    
9 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
10 * @link      http://phpdoc.org
                    
12
                    
13namespace phpDocumentor\Reflection\DocBlock;
                    
14
                    
14
                    
15use phpDocumentor\Reflection\DocBlock;
                    
16use phpDocumentor\Reflection\DocBlock\Context;
                    
                
ParameterBagTest.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 224 lines
                    
1<?php
                    
2
                    
15
                    
16class ParameterBagTest extends \PHPUnit_Framework_TestCase
                    
17{
                    
77     * @dataProvider getInvalidPaths
                    
78     * @expectedException \InvalidArgumentException
                    
79     */
                    
                
GISPointTest.php https://gitlab.com/luyxtran264/myproject | PHP | 362 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin-test
                    
7 */
                    
10
                    
11require_once 'GISGeomTest.php';
                    
12require_once 'libraries/tcpdf/tcpdf.php';
                    
16 *
                    
17 * @package PhpMyAdmin-test
                    
18 */
                    
95     * @param array  $row_data array of GIS data
                    
96     * @param string $shape    expected shape in WKT
                    
97     *
                    
266     * @param array  $scale_data  array containing data related to scaling
                    
267     * @param string $output      expected output
                    
268     *
                    
                
main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 371 lines
                    
1<?php
                    
2/*
                    
101		$this->image = $image;
                    
102		$this->tags = Tag::explode($tags);
                    
103	}
                    
292
                    
293		$search_set = Tag::explode(strtolower($search), false);
                    
294		$replace_set = Tag::explode(strtolower($replace), false);
                    
350	private function mass_source_edit($tags, $source) {
                    
351		$tags = Tag::explode($tags);
                    
352
                    
                
AdvancedServerDatabaseConfig.cs https://openHistorian.svn.codeplex.com/svn | C# | 388 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
13//  Unless agreed to in writing, the subject software distributed under the License is distributed on an
                    
14//  "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the
                    
15//  License for the specific language governing permissions and limitations.
                    
                
PMA_relation_cleanup_test.php https://gitlab.com/luyxtran264/myproject | PHP | 511 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * tests for relation_cleanup.lib.php
                    
5 *
                    
5 *
                    
6 * @package PhpMyAdmin-test
                    
7 */
                    
13
                    
14require_once 'libraries/database_interface.inc.php';
                    
15
                    
15
                    
16require_once 'libraries/relation.lib.php';
                    
17require_once 'libraries/relation_cleanup.lib.php';
                    
58        $GLOBALS['cfg']['Server']['designer_settings'] = 'designer_settings';
                    
59        $GLOBALS['cfg']['Server']['export_templates'] = 'pma__export_templates';
                    
60
                    
                
SCP.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 360 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Pure-PHP implementation of SCP.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
                    
9 *
                    
11 * <code>
                    
12 * <?php
                    
13 *    include 'Net/SCP.php';
                    
13 *    include 'Net/SCP.php';
                    
14 *    include 'Net/SSH2.php';
                    
15 *
                    
                
helper.php https://gitlab.com/wuhang2003/core | PHP | 297 lines
                    
16		$result = OC_Helper::humanFileSize($input);
                    
17		$this->assertEquals($expected, $result);
                    
18	}
                    
35	 */
                    
36	public function testPhpFileSize($expected, $input)
                    
37	{
                    
37	{
                    
38		$result = OC_Helper::phpFileSize($input);
                    
39		$this->assertEquals($expected, $result);
                    
139			->will($this->returnValue(true)); // filename.ext exists
                    
140		$viewMock->expects($this->at(1))
                    
141			->method('file_exists')
                    
189	 */
                    
190	public function testStreamCopy($expectedCount, $expectedResult, $source, $target) {
                    
191
                    
                
RedirectPluginTest.php https://gitlab.com/cuitianze/eduwind | PHP | 277 lines
                    
1<?php
                    
2
                    
72            $client->get('/foo')->send();
                    
73            $this->fail('Did not throw expected exception');
                    
74        } catch (TooManyRedirectsException $e) {
                    
176    /**
                    
177     * @expectedException \Guzzle\Http\Exception\CouldNotRewindStreamException
                    
178     */
                    
                
gruntfile.js https://gitlab.com/MichaelSchober/bambooclassesmompiche | JavaScript | 312 lines
                    
1'use strict';
                    
2module.exports = function(grunt){
                    
3
                    
58            build: {
                    
59                expand: true,
                    
60                src: ['**', '!node_modules/**', '!build/**', '!readme.md', '!Gruntfile.js', '!package.json' ],
                    
70                },
                    
71                expand: true,
                    
72                cwd: 'build/',
                    
85                    {
                    
86                        expand: true,     // Enable dynamic expansion.
                    
87                        cwd: 'layout/js/',      // Src matches are relative to this path.
                    
120                    src: [
                    
121                        '**/*.php',
                    
122                        '!**/node_modules/**',
                    
                
class-popup-public.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 407 lines
                    
1<?php
                    
2// Load dependencies.
                    
2// Load dependencies.
                    
3require_once PO_INC_DIR . 'class-popup-base.php';
                    
4
                    
32		// In theory the "public" class does not need this, but to avoid
                    
33		// unexpected problems we initialize only after current user is known...
                    
34		if ( ! did_action( 'set_current_user' ) ) {
                    
60		/**
                    
61		 * Experimental hook to dynamically create popups on your site.
                    
62		 * Call the action hook `wdev-popup` with param 1 being the content and
                    
237
                    
238		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
239			// Data is loaded via a normal WordPress ajax request.
                    
261
                    
262		if ( ! in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ) {
                    
263			/*
                    
                
 

Source

Language