PageRenderTime 709ms queryTime 331ms sortTime 29ms getByIdsTime 47ms findMatchingLines 58ms

100+ results results for 'php strtolower repo:alvinpd/monsterninja' (709 ms)

Not the results you expected?
Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
                    
1<?php
                    
2/**
                    
156     *
                    
157     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
158     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
175     *
                    
176     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
177     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
270                $customOption['options'][$index]['is_delete'] = '';
                    
271                $customOption['options'][$index]['price_type'] = strtolower($option['price_type']);
                    
272            }
                    
299        }
                    
300        return strtolower($optionName);
                    
301    }
                    
308     *
                    
309     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
310     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
                
class-wc-api-webhooks.php https://gitlab.com/webkod3r/tripolis | PHP | 465 lines
                    
1<?php
                    
2/**
                    
181			// validate topic
                    
182			if ( empty( $data['topic'] ) || ! wc_is_webhook_valid_topic( strtolower( $data['topic'] ) ) ) {
                    
183				throw new WC_API_Exception( 'woocommerce_api_invalid_webhook_topic', __( 'Webhook topic is required and must be valid', 'woocommerce' ), 400 );
                    
262
                    
263				if ( wc_is_webhook_valid_topic( strtolower( $data['topic'] ) ) ) {
                    
264
                    
                
date_helper.php https://gitlab.com/BeyondeLabs/tweet-daily | PHP | 611 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 *
                    
43
                    
44		if (strtolower($CI->config->item('time_reference')) == 'gmt')
                    
45		{
                    
68 *
                    
69 * This function is identical to PHPs date() function,
                    
70 * except that it allows date codes to be formatted using
                    
474		{
                    
475			$ampm = strtolower($split['2']);
                    
476
                    
609
                    
610/* End of file date_helper.php */
                    
611/* Location: ./system/helpers/date_helper.php */
                    
                
legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
                    
1<?php
                    
2/**
                    
156			case 'model':
                    
157				$filename = strtolower($parts['name']) . '.php';
                    
158				break;
                    
229
                    
230			$this->option = 'com_' . strtolower($r[1]);
                    
231		}
                    
417
                    
418			$this->name = strtolower($r[1]);
                    
419		}
                    
                
ResponseHeader34.php https://gitlab.com/yousafsyed/easternglamor | PHP | 406 lines
                    
139                if (3 > $argc) {
                    
140                    #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
                    
141                    throw new Zend_Test_PHPUnit_Constraint_Exception('No response code provided against which to match');
                    
148                if (3 > $argc) {
                    
149                    #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
                    
150                    throw new Zend_Test_PHPUnit_Constraint_Exception('No header provided against which to match');
                    
157                if (4 > $argc) {
                    
158                    #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
                    
159                    throw new Zend_Test_PHPUnit_Constraint_Exception('Both a header name and content to match are required for ' . __FUNCTION__);
                    
176            default:
                    
177                #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
                    
178                throw new Zend_Test_PHPUnit_Constraint_Exception('Invalid assertion type ' . __FUNCTION__);
                    
193    {
                    
194        #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
                    
195        switch ($this->_assertType) {
                    
                
PwTagService.php https://gitlab.com/wuhang2003/phpwind | PHP | 482 lines
                    
1<?php
                    
2Wind::import('SRV:tag.dm.PwTagDm');
                    
6 * @author peihong <peihong.zhangph@aliyun-inc.com>
                    
7 * @copyright ©2003-2103 phpwind.com
                    
8 * @license http://www.phpwind.com
                    
8 * @license http://www.phpwind.com
                    
9 * @version $Id: PwTagService.php 3833 2012-02-16 03:32:27Z peihong.zhangph $
                    
10 * @package src.service.tag.srv
                    
25		foreach ($_tagsInfo as $k => $tag){
                    
26		    $tagsKeys[] = strtolower($k);
                    
27		    $k = strtolower($k);
                    
31		foreach ($dmArray as $k => $dm){
                    
32			$k = strtolower($k);
                    
33		    $dmArrays[$k] = $dm;
                    
36		foreach ($dmArrays as $k => $dm) {
                    
37			$k = strtolower(trim($k));
                    
38			if (!$k || !$dm instanceof PwTagDm) continue;
                    
                
mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
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",
                    
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 */
                    
                
Profiler.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 473 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 25127 2012-11-16 15:17:42Z rob $
                    
21 */
                    
260        if (null === $queryType) {
                    
261            switch (strtolower(substr(ltrim($queryText), 0, 6))) {
                    
262                case 'insert':
                    
282         */
                    
283        require_once 'Zend/Db/Profiler/Query.php';
                    
284        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
310             */
                    
311            require_once 'Zend/Db/Profiler/Exception.php';
                    
312            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
321             */
                    
322            require_once 'Zend/Db/Profiler/Exception.php';
                    
323            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
                
StorageEngine.class.php https://gitlab.com/albert925/lading-ach | PHP | 424 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
6 * @version $Id$
                    
7 * @package phpMyAdmin
                    
8 */
                    
24 * base Storage Engine Class
                    
25 * @package phpMyAdmin
                    
26 */
                    
41     */
                    
42    var $comment = 'If you read this text inside phpMyAdmin, something went wrong...';
                    
43
                    
74     * @uses    PMA_StorageEngine::getStorageEngines()
                    
75     * @uses    strtolower()
                    
76     * @uses    htmlspecialchars()
                    
237            } elseif (! $like
                    
238             && strpos(strtolower($row['Variable_name']), strtolower($this->engine)) !== 0) {
                    
239                continue;
                    
                
font_container.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 298 lines
                    
1<?php
                    
2
                    
145				foreach ( $fonts as $font_name => $font_data ) {
                    
146					$data['font_family'] .= '<option value="' . $font_name . '" class="' . vc_build_safe_css_class( $font_name ) . '" ' . ( strtolower( $values['font_family'] ) == strtolower( $font_name ) ? 'selected="selected"' : '' ) . ' data[font_family]="' . urlencode( $font_data ) . '">' . __( $font_name, 'js_composer' ) . '</option>';
                    
147				}
                    
                
main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 430 lines
                    
1<?php
                    
2/**
                    
41		$this->hash = $this->metadata['hash'];
                    
42		$this->type = strtolower($metadata['extension']);
                    
43	}
                    
74		if($min_free_space > 0) {
                    
75			// SHIT: fucking PHP "security" measures -_-;;;
                    
76			$free_num = @disk_free_space(realpath("./images/"));
                    
105		$sb->position = 10;
                    
106		// Output the limits from PHP so the user has an idea of what they can set.
                    
107		$sb->add_int_option("upload_count", "Max uploads: ");
                    
107		$sb->add_int_option("upload_count", "Max uploads: ");
                    
108		$sb->add_label("<i>PHP Limit = ".ini_get('max_file_uploads')."</i>");
                    
109		$sb->add_shorthand_int_option("upload_size", "<br/>Max size per file: ");
                    
109		$sb->add_shorthand_int_option("upload_size", "<br/>Max size per file: ");
                    
110		$sb->add_label("<i>PHP Limit = ".ini_get('upload_max_filesize')."</i>");
                    
111		$sb->add_choice_option("transload_engine", $tes, "<br/>Transload: ");
                    
                
filter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 547 lines
                    
1<?php
                    
2/**
                    
3 * Akeeba Engine
                    
4 * The modular PHP5 site backup engine
                    
5 * @copyright Copyright (c)2009-2011 Nicholas K. Dionysopoulos
                    
7 * @package akeebaengine
                    
8 * @version $Id: filter.php 409 2011-01-24 09:30:22Z nikosdion $
                    
9 */
                    
15{
                    
16	/** @var string Filter's internal name; defaults to filename without .php extension */
                    
17	public $filter_name = '';
                    
39		// Set the filter name if it's missing (filename in lowercase, minus the .php extension)
                    
40		if(empty($this->filter_name)) $this->filter_name = strtolower(basename(__FILE__,'.php'));
                    
41	}
                    
                
ValidClassNamePass.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 344 lines
                    
1<?php
                    
2
                    
13
                    
14use PhpParser\Node;
                    
15use PhpParser\Node\Expr;
                    
15use PhpParser\Node\Expr;
                    
16use PhpParser\Node\Expr\ClassConstFetch;
                    
17use PhpParser\Node\Expr\New_ as NewExpr;
                    
17use PhpParser\Node\Expr\New_ as NewExpr;
                    
18use PhpParser\Node\Expr\StaticCall;
                    
19use PhpParser\Node\Stmt;
                    
19use PhpParser\Node\Stmt;
                    
20use PhpParser\Node\Stmt\Class_ as ClassStmt;
                    
21use PhpParser\Node\Stmt\Interface_ as InterfaceStmt;
                    
21use PhpParser\Node\Stmt\Interface_ as InterfaceStmt;
                    
22use PhpParser\Node\Stmt\Trait_ as TraitStmt;
                    
23use Psy\Exception\FatalErrorException;
                    
                
SimpleCommandMap.php https://gitlab.com/Skull3x/Genisys | PHP | 364 lines
                    
1<?php
                    
2
                    
183		}
                    
184		$label = strtolower(trim($label));
                    
185		$fallbackPrefix = strtolower(trim($fallbackPrefix));
                    
267
                    
268		$sentCommandLabel = strtolower(array_shift($args));
                    
269		$target = $this->getCommand($sentCommandLabel);
                    
354			if(count($targets) > 0){
                    
355				$this->knownCommands[strtolower($alias)] = new FormattedCommandAlias(strtolower($alias), $targets);
                    
356			}else{
                    
356			}else{
                    
357				unset($this->knownCommands[strtolower($alias)]);
                    
358			}
                    
                
Images.class.php https://gitlab.com/karl3/gs_libs | PHP | 376 lines
                    
1<?php
                    
2
                    
41    {
                    
42        return array(1 => _('The uploaded file exceeds the upload_max_filesize directive in php.ini'),
                    
43                     2 => _('The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'),
                    
47                     7 => _('Failed to write file to disk.'),
                    
48                     8 => _('A PHP extension stopped the file upload.'));
                    
49    }
                    
72        // Determine format from MIME-Type
                    
73        $image['format'] = strtolower(preg_replace('/^.*?\//', '', $image['mime']));
                    
74
                    
117            // Create thumbnail
                    
118            switch (strtolower(preg_replace('/^.*\./', '', $dest_image))) {
                    
119                case 'jpg' :
                    
239     * Thanks to ZeBadger for original example, and Davide Gualano for pointing me to it
                    
240     * Original at http://it.php.net/manual/en/function.imagecreatefromgif.php#59787
                    
241     *
                    
                
App.class.php https://gitlab.com/fangjianwei/weifenxiao | PHP | 202 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
12/**
                    
13 * ThinkPHP 应用程序类 执行应用过程管理
                    
14 */
                    
32        define('IS_DELETE',     REQUEST_METHOD =='DELETE' ? true : false);
                    
33        define('IS_AJAX',       ((isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') || !empty($_POST[C('VAR_AJAX_SUBMIT')]) || !empty($_GET[C('VAR_AJAX_SUBMIT')])) ? true : false);
                    
34
                    
65            }
                    
66            $actionName     =   strtolower(ACTION_NAME);
                    
67            if(class_exists($namespace.$actionName)){
                    
                
Compiler.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 485 lines
                    
1<?PHP
                    
2/**
                    
4 *
                    
5 * $Id: Compiler.php 10094 2008-03-02 04:35:10Z instance $
                    
6 *
                    
10 * @subpackage	Compiler
                    
11 * @author		Stephan Schmidt <schst@php.net>
                    
12 */
                    
19 *
                    
20 * $Id: Compiler.php 10094 2008-03-02 04:35:10Z instance $
                    
21 *
                    
25 * @subpackage	Compiler
                    
26 * @author		Stephan Schmidt <schst@php.net>
                    
27 *
                    
79   		$this->_fp	=	fopen( $compileFile, 'w' );
                    
80		$this->_addToCode( '<?PHP' );
                    
81		$this->_addToCode( '/**' );
                    
                
author-template.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 401 lines
                    
1<?php
                    
2/**
                    
106	$field = str_replace('-', '', $field);
                    
107	$field = strtolower($field);
                    
108	$user_field = "user_$field";
                    
                
ApiGenerator.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 519 lines
                    
174
                    
175		$version = strtolower( CLI::prompt('Version name', 'v1') );
                    
176		$version = $version == 'na' ? '' : $version;
                    
197	{
                    
198		$model_name = ucfirst($name) .'_model.php';
                    
199
                    
227			'today'             => date( 'Y-m-d H:ia' ),
                    
228			'model_name'        => strtolower($single) .'_model',
                    
229			'plural'            => $plural,
                    
257
                    
258        $destination = APPPATH ."language/english/api_{$plural}_lang.php";
                    
259
                    
284		// Load the model so we can use the correct table to use
                    
285        $model = strtolower( str_replace('.php', '', $model) );
                    
286		$this->load->model( $model, $model, true );
                    
                
Loader.php https://gitlab.com/cassianod2/IATec | 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 *
                    
154
                    
155		$class = strtolower(basename($library));
                    
156
                    
159
                    
160		($_alias = strtolower($object_name)) OR $_alias = $class;
                    
161
                    
207		/* check module */
                    
208		list($path, $_model) = Modules::find(strtolower($model), $this->_module, 'models/');
                    
209
                    
249
                    
250		$_alias = strtolower(basename($module));
                    
251		CI::$APP->$_alias = Modules::load(array($module => $params));
                    
                
CookieJar.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 385 lines
                    
21 *
                    
22 * @file     CAS/CookieJar.php
                    
23 * @category Authentication
                    
23 * @category Authentication
                    
24 * @package  PhpCAS
                    
25 * @author   Adam Franco <afranco@middlebury.edu>
                    
26 * @license  http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
27 * @link     https://wiki.jasig.org/display/CASC/phpCAS
                    
28 */
                    
38 * @license  http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
39 * @link     https://wiki.jasig.org/display/CASC/phpCAS
                    
40 */
                    
127     * Parse Cookies without PECL
                    
128     * From the comments in http://php.net/manual/en/function.http-parse-cookie.php
                    
129     *
                    
                
class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
                    
1<?php
                    
2/**
                    
236		if ( $filename ) {
                    
237			$file_ext = strtolower( pathinfo( $filename, PATHINFO_EXTENSION ) );
                    
238			$file_mime = $this->get_mime_type( $file_ext );
                    
241			// If no file specified, grab editor's current extension and mime-type.
                    
242			$file_ext = strtolower( pathinfo( $this->file, PATHINFO_EXTENSION ) );
                    
243			$file_mime = $this->mime_type;
                    
294		$name = wp_basename( $this->file, ".$ext" );
                    
295		$new_ext = strtolower( $extension ? $extension : $ext );
                    
296
                    
                
site-users.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 330 lines
                    
88					/**
                    
89					  * Fires after a user has been created via the network site-users.php page.
                    
90					  *
                    
205<h1 id="edit-site"><?php echo $title; ?></h1>
                    
206<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p>
                    
207<?php
                    
272if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
                    
273<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2>
                    
274<form action="site-users.php?action=adduser" id="adduser" method="post">
                    
274<form action="site-users.php?action=adduser" id="adduser" method="post">
                    
275	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
276	<table class="form-table">
                    
302<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
                    
303<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
                    
304	<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
                    
                
SSDB.php https://gitlab.com/dleonov/my-framework-two | PHP | 576 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * SSDB PHP client SDK.
                    
9 */
                    
142	function __call($cmd, $params=array()){
                    
143		$cmd = strtolower($cmd);
                    
144		if($this->async_auth_password !== null){
                    
                
smarty_internal_data.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 163 lines
                    
1<?php //0046a
                    
2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);
                    
3?>
                    
887BOIGr8tNZVJMU5Ylw8/uV5gz3tEBqyot19y1gERe52ZCmRmC0QvapMPESjhy0QUVCRfgZ1/e3gg
                    
89P7SE2PohYYcbEigqVebdGoKSjbm7hQ4NjkhBIwqUlCrOLEVvdX7UabV+0wwYTlpHpkd+kJLjZ72w
                    
90BoqhlvbMe2imRDCzlf/sxViBuBNunwe78EZLUuBeVAfy3gSwyE5jFwIB7Avsvc0dyNUC3wpIzaOv
                    
                
Adapter.php https://gitlab.com/jalon/doadoronline | PHP | 388 lines
                    
1<?php
                    
2/**
                    
241    {
                    
242        switch (strtolower($name)) {
                    
243            case 'driver':
                    
278
                    
279        $driverName = strtolower($parameters['driver']);
                    
280        switch ($driverName) {
                    
                
App.class.php https://gitlab.com/llwhois/woaimm | PHP | 198 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
12/**
                    
13 * ThinkPHP 应用程序类 执行应用过程管理
                    
14 * 可以在模式扩展中重新定义 但是必须具有Run方法接口
                    
46        define('IS_DELETE',     REQUEST_METHOD =='DELETE' ? true : false);
                    
47        define('IS_AJAX',       ((isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') || !empty($_POST[C('VAR_AJAX_SUBMIT')]) || !empty($_GET[C('VAR_AJAX_SUBMIT')])) ? true : false);
                    
48
                    
133                        case 'PUT':
                    
134                            parse_str(file_get_contents('php://input'), $vars);
                    
135                            break;
                    
                
SqlServerGrammar.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 344 lines
                    
1<?php
                    
2
                    
280
                    
281        if (strpos(strtolower($table), '] as [') !== false) {
                    
282            $segments = explode('] as [', $table);
                    
                
emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
                    
1<?php defined('_JEXEC') or die('Restricted access'); ?>
                    
2<?php
                    
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
                    
76        $nodes = @$xpath->query('//*[@style]');
                    
77        if ($nodes->length > 0) foreach ($nodes as $node) $node->setAttribute('style',preg_replace('/[A-z\-]+(?=\:)/Se',"strtolower('\\0')",$node->getAttribute('style')));
                    
78
                    
129                    $style = '';
                    
130                    foreach ($combinedArr as $k => $v) $style .= (strtolower($k) . ':' . $v . ';');
                    
131                } else {
                    
                
CLocale.php https://gitlab.com/dwi.nurhadi17/uns-log | PHP | 472 lines
                    
1<?php
                    
2/**
                    
80				$fullPath=$dataPath.DIRECTORY_SEPARATOR.$file;
                    
81				if(substr($file,-4)==='.php' && is_file($fullPath))
                    
82					$locales[]=substr($file,0,-4);
                    
100		$dataPath=self::$dataPath===null ? dirname(__FILE__).DIRECTORY_SEPARATOR.'data' : self::$dataPath;
                    
101		$dataFile=$dataPath.DIRECTORY_SEPARATOR.$this->_id.'.php';
                    
102		if(is_file($dataFile))
                    
115	{
                    
116		return strtolower(str_replace('-','_',$id));
                    
117	}
                    
                
Column.php https://gitlab.com/yousafsyed/easternglamor | PHP | 501 lines
                    
1<?php
                    
2/**
                    
234     * @return bool
                    
235     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
236     */
                    
392    {
                    
393        $type = strtolower($this->getType());
                    
394        $rendererClass = isset(
                    
449    {
                    
450        $type = $this->getFilterType() ? strtolower($this->getFilterType()) : strtolower($this->getType());
                    
451        $filterClass = isset($this->_filterTypes[$type]) ? $this->_filterTypes[$type] : $this->_filterTypes['default'];
                    
                
SCP.php https://gitlab.com/yousafsyed/easternglamor | 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 *
                    
                
Input.php https://gitlab.com/dleonov/my-framework-two | PHP | 419 lines
                    
1<?php
                    
2
                    
399					// Convert global name to input name.
                    
400					$global = strtolower($global);
                    
401					$global = substr($global, 1);
                    
                
Think.class.php https://gitlab.com/fangfangchen/xianpipa | 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          // 加载核心文件
                    
71          // 加载应用别名定义文件
                    
72          if(is_file(CONF_PATH.'alias.php'))
                    
73              self::addMap(include CONF_PATH.'alias.php');
                    
85          // 加载框架底层语言包
                    
86          L(include THINK_PATH.'Lang/'.strtolower(C('DEFAULT_LANG')).'.php');
                    
87
                    
299            if(IS_CLI){
                    
300                exit(iconv('UTF-8','gbk',$e['message']).PHP_EOL.'FILE: '.$e['file'].'('.$e['line'].')'.PHP_EOL.$e['trace']);
                    
301            }
                    
                
Dispatcher.class.php https://gitlab.com/xuebutayan/yshop | PHP | 232 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
12/**
                    
13 * ThinkPHP API模式的Dispatcher类
                    
14 * 完成URL解析、路由和调度
                    
31            unset($_GET[$varPath]);
                    
32        }elseif(IS_CLI){ // CLI模式下 index.php module/controller/action/params/...
                    
33            $_SERVER['PATH_INFO'] = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : '';
                    
112        // URL后缀
                    
113        define('__EXT__', strtolower(pathinfo($_SERVER['PATH_INFO'],PATHINFO_EXTENSION)));
                    
114
                    
                
compatibility_helper.php https://gitlab.com/ablu/invertika-backup-web | PHP | 498 lines
                    
21 * This helper contains some functions based on the PEAR PHP_Compat library
                    
22 * http://pear.php.net/package/PHP_Compat
                    
23 *
                    
48 * Writes a string to a file
                    
49 * http://us.php.net/manual/en/function.file_put_contents.php
                    
50 * argument 4, $context, not supported
                    
160 * Format line as CSV and write to file pointer
                    
161 * http://us.php.net/manual/en/function.fputcsv.php
                    
162 *
                    
242 * Find position of first occurrence of a case-insensitive string
                    
243 * http://us.php.net/manual/en/function.stripos.php
                    
244 *
                    
296 * Find position of first occurrence of a case-insensitive string
                    
297 * http://us.php.net/manual/en/function.str-ireplace.php
                    
298 * (parameter 4, $count, is not supported as to do so in PHP 4 would make
                    
                
inihelper.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 380 lines
                    
1<?php
                    
2/**
                    
3 * Akeeba Engine
                    
4 * The modular PHP5 site backup engine
                    
5 * @copyright Copyright (c)2009-2011 Nicholas K. Dionysopoulos
                    
7 * @package akeebaengine
                    
8 * @version $Id: inihelper.php 409 2011-01-24 09:30:22Z nikosdion $
                    
9 */
                    
58						{
                    
59							if( (strtolower(substr($filename, -4)) == '.ini') && @is_file($path.$ds.$filename) )
                    
60							{
                    
117						{
                    
118							if( (strtolower(substr($filename, -4)) == '.ini') && @is_file($path.$ds.$filename) )
                    
119							{
                    
169						{
                    
170							if( (strtolower(substr($filename, -4)) == '.ini') && @is_file($path.$ds.$filename) )
                    
171							{
                    
                
Common.php https://gitlab.com/zulkufadsiz/kosanlar.com | PHP | 565 lines
                    
34*
                    
35* Since there are a few places where we conditionally test for PHP > 5
                    
36* we'll set a static variable.
                    
41*/
                    
42if ( ! function_exists('is_php'))
                    
43{
                    
50		{
                    
51			$_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE;
                    
52		}
                    
167			// self-referencing loop with the Excptions class
                    
168			exit('Unable to locate the specified class: '.$class.'.php');
                    
169		}
                    
205/**
                    
206* Loads the main config.php file
                    
207*
                    
                
font_metrics.cls.php https://gitlab.com/ntphuc/BackendFeedy | PHP | 382 lines
                    
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
                    
199  static function get_family($family) {
                    
200    $family = str_replace( array("'", '"'), "", mb_strtolower($family));
                    
201    
                    
219    // replace the path to the DOMPDF font directories with the corresponding constants (allows for more portability)
                    
220    $cache_data = sprintf("<?php return array (%s", PHP_EOL);
                    
221    foreach (self::$_font_lookup as $family => $variants) {
                    
334  static function register_font($style, $remote_file, $context = null) {
                    
335    $fontname = mb_strtolower($style["family"]);
                    
336    $families = Font_Metrics::get_font_families();
                    
                
PositionCalculator.php https://gitlab.com/staging06/myproject | PHP | 221 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * position-calculator.php
                    
4 *
                    
5 * This file implements the calculator for the position elements of 
                    
6 * the output of the PHPSQLParser.
                    
7 *
                    
33
                    
34require_once dirname(__FILE__) . '/../utils/PHPSQLParserConstants.php';
                    
35require_once dirname(__FILE__) . '/../exceptions/UnableToCalculatePositionException.php';
                    
101                $ok = ($before === "" || in_array($before, self::$_allowedOnOperator, true))
                    
102                    || (strtolower($before) >= 'a' && strtolower($before) <= 'z') || ($before >= '0' && $before <= '9');
                    
103                $ok = $ok
                    
104                    && ($after === "" || in_array($after, self::$_allowedOnOperator, true)
                    
105                        || (strtolower($after) >= 'a' && strtolower($after) <= 'z') || ($after >= '0' && $after <= '9')
                    
106                        || ($after === '?') || ($after === '@'));
                    
                
ajax_calls.php https://gitlab.com/staging06/myproject | PHP | 253 lines
                    
1<?php
                    
2
                    
2
                    
3include('config/config.php');
                    
4
                    
8
                    
9include('include/utils.php');
                    
10
                    
45                || $_POST['name'] != fix_filename($_POST['name'], $transliteration)
                    
46                || !in_array(strtolower($info['extension']), array('jpg', 'jpeg', 'png'))
                    
47            ) {
                    
99                                $fileinfo = pathinfo($OnlyFileName);
                    
100                                if (in_array(strtolower($fileinfo['extension']), $ext)) {
                    
101                                    copy('zip://'.$path.'#'.$OnlyFileName, $base_folder.$FullFileName['name']);
                    
184			</div>
                    
185			<?php
                    
186            if (in_array(strtolower($info['extension']), $ext_music)) {
                    
                
MemcachedEngine.php https://gitlab.com/captain4ever/ufriend_php | PHP | 338 lines
                    
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         CakePHP(tm) v 2.5.0
                    
45 *  - serialize = string, default => php. The serializer engine used to serialize data.
                    
46 *    Available engines are php, igbinary and json. Beside php, the memcached extension
                    
47 *    must be compiled with the appropriate serializer support.
                    
64		'json' => Memcached::SERIALIZER_JSON,
                    
65		'php' => Memcached::SERIALIZER_PHP
                    
66	);
                    
216 * @return bool True if the data was successfully cached, false on failure
                    
217 * @see http://php.net/manual/en/memcache.set.php
                    
218 */
                    
                
AbstractFtpAdapter.php https://gitlab.com/ealexis.t/trends | PHP | 624 lines
                    
1<?php
                    
2
                    
307    {
                    
308        $this->systemType = strtolower($systemType);
                    
309
                    
                
importcsv.php https://gitlab.com/alexprowars/bitrix | PHP | 557 lines
                    
1<?php
                    
2namespace Bitrix\Translate\Controller\Import;
                    
84		{
                    
85			self::$sourceEncoding[$languageId] = mb_strtolower(Main\Localization\Translation::getSourceEncoding($languageId));
                    
86		}
                    
                
GraphvizDumper.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 302 lines
                    
1<?php
                    
2
                    
280    {
                    
281        return strtolower(preg_replace('/\W/i', '_', $id));
                    
282    }
                    
                
class-gf-field-checkbox.php https://gitlab.com/screamud/gravity-forms-project | PHP | 380 lines
                    
1<?php
                    
2
                    
173			} elseif ( $this->type == 'post_category' ) {
                    
174				$use_id     = strtolower( $modifier ) == 'id';
                    
175				$item_value = GFCommon::format_post_category( $item, $use_id );
                    
                
end_vevent.php https://gitlab.com/endomorphosis/fusenews | PHP | 386 lines
                    
1<?php
                    
2/* end_vevent.php
                    
117			}
                    
118			$recur_array[($start_date)][($hour.$minute)][$uid]['recur'][$key] = strtolower($val);
                    
119			break;
                    
191If COUNT is not set (default is 1,000,000) then we don't have to start at start_date; we can start at the minimum interval for the view.
                    
192variables ending in date are in phpical date format: YYYYMMDD
                    
193variables ending with time are in phpical time format: HHMM
                    
195
                    
196mArray_begin and mArray_end are set in initialization by date_range.php and may be overwritten by rss_common.php.  
                    
197
                    
                
util.php https://gitlab.com/imxieke/XCloud | PHP | 280 lines
                    
129
                    
130function php_env_check(){
                    
131    $L = $GLOBALS['L'];
                    
133    $base_path = get_path_this(BASIC_PATH).'/'; 
                    
134    if(!function_exists('iconv')) $error.= '<li>'.$L['php_env_error_iconv'].'</li>';
                    
135    if(!function_exists('mb_convert_encoding')) $error.= '<li>'.$L['php_env_error_mb_string'].'</li>';
                    
135    if(!function_exists('mb_convert_encoding')) $error.= '<li>'.$L['php_env_error_mb_string'].'</li>';
                    
136    if(!version_compare(PHP_VERSION,'5.0','>=')) $error.= '<li>'.$L['php_env_error_version'].'</li>';
                    
137    if(!function_exists('file_get_contents')) $error.='<li>'.$L['php_env_error_file'].'</li>';
                    
139    if(!path_writable(BASIC_PATH.'data')) $error.= '<li>'.$base_path.'data	'.$L['php_env_error_path'].'</li>';
                    
140    if(!path_writable(BASIC_PATH.'data/system')) $error.= '<li>'.$base_path.'data/system	'.$L['php_env_error_path'].'</li>';
                    
141    if(!path_writable(BASIC_PATH.'data/User')) $error.= '<li>'.$base_path.'data/User	'.$L['php_env_error_path'].'</li>';
                    
264    if((isset($_SERVER['HTTP_ACCEPT'])) && 
                    
265        (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') !== false)){
                    
266        return true;
                    
                
functions.php https://gitlab.com/BaseX/BaseX | PHP | 276 lines
                    
1<?php
                    
2// $Id: functions.php,v 1.5 2004/12/12 04:50:37 phppp Exp $
                    
3//  ------------------------------------------------------------------------ //
                    
26//  ------------------------------------------------------------------------ //
                    
27// Author: D.J.(phppp) php_pp@hotmail.com                                    //
                    
28// URL: http://www.xoops.org.cn                                              //
                    
45{
                    
46	if(strtolower($in_charset) == strtolower($out_charset)) {
                    
47		return $value;
                    
78/**
                    
79 * Analyzes some PHP environment variables to find the most probable language
                    
80 * that should be used
                    
82 * @param string $ string to analyze
                    
83 * @param integer $ type of the PHP environment variable which value is $str
                    
84 * @global array    the list of available translations
                    
                
AdminApPageBuilderPositions.php https://gitlab.com/ptisky/API_prestashop | PHP | 398 lines
                    
1<?php
                    
2/**
                    
16
                    
17require_once(_PS_MODULE_DIR_.'appagebuilder/classes/ApPageBuilderPositionsModel.php');
                    
18
                    
157				if (preg_match('/[\?|&]controller=([^&]*)/', (string)$_SERVER['HTTP_REFERER'], $matches) !== false
                    
158						&& Tools::strtolower($matches[1]) != Tools::strtolower(preg_replace('/controller/i', '', get_class($this))))
                    
159					$this->redirect_after = preg_replace('/[\?|&]conf=([^&]*)/i', '', (string)$_SERVER['HTTP_REFERER']);
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
1<?php
                    
2
                    
44    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
45	require_once('php_image_magician.php');
                    
46	$magicianObj = new imageLib($imgfile);
                    
55    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
56	require_once('php_image_magician.php');
                    
57	$magicianObj = new imageLib($imgfile);
                    
109        $fileinfo = pathinfo($path);
                    
110        if (function_exists('mb_strtolower'))
                    
111            if(!in_array(mb_strtolower($fileinfo['extension']),$ext))
                    
113        else
                    
114            if(!in_array(Tools::strtolower($fileinfo['extension']),$ext))
                    
115                unlink($path);
                    
128        {
                    
129            if (function_exists('mb_strtolower'))
                    
130                if(in_array(mb_strtolower($file->getExtension()),$ext))
                    
                
MineBlock.php https://gitlab.com/Skull3x/MineBlock | PHP | 275 lines
                    
1<?php
                    
2// This Plugin is Made by DeBe (hu6677@naver.com)
                    
31		$mm = "[MineBlock] MineBlock ";
                    
32		switch(strtolower($sub[0])){
                    
33			case "mine":
                    
113				}else{
                    
114					switch(strtolower($sub[1])){
                    
115						case "add":
                    
                
AbstractCommand.php https://gitlab.com/ViniciusP/project-games | PHP | 341 lines
                    
1<?php
                    
2/**
                    
50     */
                    
51    const DEFAULT_MIGRATION_TEMPLATE = '/../../Migration/Migration.template.php.dist';
                    
52
                    
55     */
                    
56    const DEFAULT_SEED_TEMPLATE = '/../../Seed/Seed.template.php.dist';
                    
57
                    
199
                    
200        $possibleConfigFiles = array('phinx.php', 'phinx.json', 'phinx.yml');
                    
201        foreach ($possibleConfigFiles as $configFile) {
                    
229
                    
230            switch (strtolower($extension)) {
                    
231                case 'json':
                    
233                    break;
                    
234                case 'php':
                    
235                    $parser = 'php';
                    
                
site-new.php https://gitlab.com/websumon/tosnib | PHP | 227 lines
                    
103		/**
                    
104		  * Fires after a new user has been created via the network site-new.php page.
                    
105		  *
                    
166} ?>
                    
167<form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate">
                    
168<?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?>
                    
172			<td>
                    
173			<?php if ( is_subdomain_install() ) { ?>
                    
174				<input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span>
                    
174				<input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span>
                    
175			<?php } else {
                    
176				echo $current_site->domain . $current_site->path ?><input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc"  autocapitalize="none" autocorrect="off" />
                    
219		<tr class="form-field">
                    
220			<td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></td>
                    
221		</tr>
                    
                
stats.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 569 lines
                    
1<?php
                    
2/**
                    
13 * Statistics system plugin. This sends anonymous data back to the Joomla! Project about the
                    
14 * PHP, SQL, Joomla and OS versions
                    
15 *
                    
324			'unique_id'   => $this->getUniqueId(),
                    
325			'php_version' => PHP_VERSION,
                    
326			'db_type'     => $this->db->name,
                    
328			'cms_version' => JVERSION,
                    
329			'server_os'   => php_uname('s') . ' ' . php_uname('r')
                    
330		);
                    
409	{
                    
410		return strtolower($this->app->input->server->get('HTTP_X_REQUESTED_WITH', '')) == 'xmlhttprequest';
                    
411	}
                    
                
scribe-display-helpers.php https://gitlab.com/iamgraeme/royalmile | PHP | 327 lines
                    
1<?php
                    
2
                    
58function scribe_get_content_for_letter_score($score, $a, $b, $c, $d) {
                    
59	$score = strtolower($score);
                    
60	if (in_array($score, array('a', 'b', 'c', 'd'))) {
                    
                
ArenaListener.php https://gitlab.com/Skull3x/WorkingInProgress-Plugins-Sourcecode-For-Dev | PHP | 227 lines
                    
1<?php
                    
2
                    
51		if ($player instanceof Player) {
                    
52			if (strtolower ( $event->getPlayer ()->getLevel ()->getName () ) === strtolower ( $this->getPlugin ()->homeLevelName )) {
                    
53				$this->getPlugin ()->arenaManager->handleTapOnArenaSigns ( $player, $block );
                    
63		if ($event->getPlayer () instanceof Player) {
                    
64			if (strtolower ( $event->getPlayer ()->getLevel ()->getName () ) === strtolower ( $this->getPlugin ()->homeLevelName )) {
                    
65				if ($this->getPlugin ()->setupModeAction === ArenaManager::COMMAND_ARENA_POSITION || $this->getPlugin ()->setupModeAction == ArenaManager::COMMAND_ARENA_POSITION || $this->getPlugin ()->setupModeAction == ArenaManager::COMMAND_ARENA_SEEKER_DOOR) {
                    
77	public function onSignChange(SignChangeEvent $event) {
                    
78		if (strtolower ( $event->getPlayer ()->getLevel ()->getName () ) === strtolower ( $this->getPlugin ()->homeLevelName )) {
                    
79			$player = $event->getPlayer ();
                    
                
UserController.php https://gitlab.com/melentev-av/perki.dev | PHP | 371 lines
                    
1<?php
                    
2use Illuminate\Support\MessageBag;
                    
38                $oUser = new User;
                    
39                $oUser->username = strtolower(Input::get('username'));
                    
40                $oUser->email = strtolower(Input::get('username'));
                    
328                $oUser = new User;
                    
329                $oUser->username = strtolower(Input::get('username'));
                    
330                $oUser->email = strtolower(Input::get('username'));
                    
                
Xml.php https://gitlab.com/digaotinfo/abear.com.br | PHP | 350 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.Utility
                    
17 * @package       Cake.Utility
                    
18 * @since         CakePHP v .0.10.3.1400
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
213							// http://www.w3.org/TR/REC-xml/#syntax
                    
214							// https://bugs.php.net/bug.php?id=36795
                    
215							$child = $dom->createElement($key, '');
                    
                
cache.php https://gitlab.com/alexprowars/bitrix | PHP | 541 lines
                    
1<?php
                    
2/**
                    
145
                    
146		return mb_strtolower($class);
                    
147	}
                    
197		$scriptName = $server->get("SCRIPT_NAME");
                    
198		if ($scriptName == "/bitrix/urlrewrite.php" && (($v = $server->get("REAL_FILE_PATH")) != null))
                    
199		{
                    
201		}
                    
202		elseif ($scriptName == "/404.php" && (($v = $server->get("REAL_FILE_PATH")) != null))
                    
203		{
                    
257		$un = md5($uniqueString);
                    
258		return mb_substr($un, 0, 2)."/".$un.".php";
                    
259	}
                    
431			{
                    
432				/** @noinspection PhpUndefinedFieldInspection */
                    
433				$written = $this->cacheEngine->written;
                    
                
slideshow.php https://gitlab.com/ibnukipa/cakra | PHP | 306 lines
                    
1<?php
                    
2
                    
91		<fieldset>
                    
92			<select name="<?php echo esc_attr( $name ); ?>" id="<?php esc_attr( $name ); ?>">
                    
93				<?php foreach ( $values as $key => $value ) : ?>
                    
93				<?php foreach ( $values as $key => $value ) : ?>
                    
94					<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, $option ); ?>>
                    
95						<?php echo esc_html( $value ); ?>
                    
96					</option>
                    
97				<?php endforeach; ?>
                    
98			</select>
                    
98			</select>
                    
99			<?php if ( ! empty( $extra_text ) ) : ?>
                    
100				<p class="description"><?php echo esc_html( $extra_text ); ?></p>
                    
100				<p class="description"><?php echo esc_html( $extra_text ); ?></p>
                    
101			<?php endif; ?>
                    
102		</fieldset>
                    
                
function.html_select_date.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 119 lines
                    
1<?php //0046a
                    
2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);
                    
3?>
                    
42VmfUqAxo14JDPruMU/Zkn6z/nqdo/q/QxKDJgMQ5+ts83xs+QVUkuCse5tMXrNrINWcjqGfrIE8d
                    
43mRYVdMIuCZDFwOWdp3LrjCoWeTc7NS0bNwGli4CA1jf5PHPniyWYyMcDH+r5CyOpXPFxhn3ypv+m
                    
44IF4qvBFKNJZPAfHboaNQLG5FT6KlBvWb2ONGbRURURURs5aS4n7Uj2BY9bXcMF1+ZDINsxpWf9Sx
                    
                
bookmark.php https://gitlab.com/Henaway/CLFC | PHP | 416 lines
                    
1<?php
                    
2/**
                    
200			wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
                    
201			/** This filter is documented in wp-includes/bookmark.php */
                    
202			return apply_filters( 'get_bookmarks', array(), $r );
                    
238
                    
239	$orderby = strtolower( $r['orderby'] );
                    
240	$length = '';
                    
291
                    
292	/** This filter is documented in wp-includes/bookmark.php */
                    
293	return apply_filters( 'get_bookmarks', $results, $r );
                    
381	if ( 'edit' == $context ) {
                    
382		/** This filter is documented in wp-includes/post.php */
                    
383		$value = apply_filters( "edit_$field", $value, $bookmark_id );
                    
390	} else if ( 'db' == $context ) {
                    
391		/** This filter is documented in wp-includes/post.php */
                    
392		$value = apply_filters( "pre_$field", $value );
                    
                
projects-core-functions.php https://gitlab.com/mostafame/team_website | PHP | 438 lines
                    
1<?php
                    
2/**
                    
135
                    
136		return ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && strtolower( $_SERVER['HTTP_X_REQUESTED_WITH'] ) == 'xmlhttprequest' ) ? true : false;
                    
137	}
                    
151
                    
152	// Look in yourtheme/slug-name.php and yourtheme/projects/slug-name.php
                    
153	if ( $name )
                    
153	if ( $name )
                    
154		$template = locate_template( array ( "{$slug}-{$name}.php", "{$projects->template_url}{$slug}-{$name}.php" ) );
                    
155
                    
159
                    
160	// If template file doesn't exist, look in yourtheme/slug.php and yourtheme/projects/slug.php
                    
161	if ( !$template )
                    
161	if ( !$template )
                    
162		$template = locate_template( array ( "{$slug}.php", "{$projects->template_url}{$slug}.php" ) );
                    
163
                    
                
plugin.php https://gitlab.com/che234/adn | PHP | 460 lines
                    
1<?php
                    
2
                    
140    private function isRequest() {
                    
141        $xmlhttprequest = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest';
                    
142
                    
229            // ini language
                    
230            $document->addScript(array('index.php?option=com_jce&view=editor&' . $document->getQueryString(array('task' => 'loadlanguages', 'lang' => WFLanguage::getCode()))), 'joomla');
                    
231
                    
                
Database.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 636 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: Database.php 4343 2009-05-08 17:04:48Z jheathco $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
380
                    
381		$str = strtolower(trim($str));
                    
382
                    
399			'Unknown field type: '.$type.'. '.
                    
400			'Please report this: http://trac.kohanaphp.com/newticket'
                    
401		);
                    
                
FixtureTask.php https://gitlab.com/shubam39/CakeTooDoo | PHP | 451 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @since         CakePHP(tm) v 1.3
                    
14 * @since         CakePHP(tm) v 1.3
                    
15 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
16 */
                    
123			}
                    
124			if (strtolower($this->args[0]) === 'all') {
                    
125				return $this->all();
                    
199			$fromTable = $this->in($prompt, array('y', 'n'), 'n');
                    
200			if (strtolower($fromTable) === 'y') {
                    
201				$options['fromTable'] = true;
                    
                
FireCake.php https://gitlab.com/wewo/pigis-cake | PHP | 538 lines
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
9 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @link          http://cakephp.org CakePHP(tm) Project
                    
11 * @since         DebugKit 0.1
                    
31/**
                    
32 * FirePHP Class for CakePHP
                    
33 *
                    
123		if (!empty($class)) {
                    
124			if (!$instance || strtolower($class) !== strtolower(get_class($instance[0]))) {
                    
125				$instance[0] = new $class();
                    
377		$_this->_sendHeader('X-Wf-Protocol-1', 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2');
                    
378		$_this->_sendHeader('X-Wf-1-Plugin-1', 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/' . $_this->_version);
                    
379		if ($type == $_this->_levels['groupStart']) {
                    
                
TwitterAPIExchange.php https://gitlab.com/Skull3x/pocketmine-plugins | PHP | 376 lines
                    
1<?php
                    
2namespace aliuly\livesigns;
                    
4/**
                    
5 * Twitter-API-PHP : Simple PHP wrapper for the v1.1 API
                    
6 *
                    
6 *
                    
7 * PHP version 5.3.10
                    
8 *
                    
9 * @category Awesomeness
                    
10 * @package  Twitter-API-PHP
                    
11 * @author   James Mallison <me@j7mbo.co.uk>
                    
12 * @license  MIT License
                    
13 * @link     http://github.com/j7mbo/twitter-api-php
                    
14 */
                    
189    {
                    
190        if (!in_array(strtolower($requestMethod), array('post', 'get')))
                    
191        {
                    
                
AbstractRenderer.php https://gitlab.com/jalon/doadoronline | PHP | 490 lines
                    
1<?php
                    
2/**
                    
93        }
                    
94        $this->type = strtolower(substr(
                    
95            get_class($this),
                    
                
Response.php https://gitlab.com/geeta7/drupal | PHP | 360 lines
                    
1<?php
                    
2
                    
37 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc.
                    
38 * @license    http://www.opensource.org/licenses/bsd-license.php
                    
39 */
                    
46 *             Copyright (c) 2005-2009 Zend Technologies USA Inc.
                    
47 * @license    http://www.opensource.org/licenses/bsd-license.php
                    
48 */
                    
103        foreach ($headers as $k => $v) {
                    
104            $k = ucwords(strtolower($k));
                    
105            $this->headers[$k] = $v;
                    
167        // Decode the body if it was transfer-encoded
                    
168        switch (strtolower($this->getHeader('transfer-encoding'))) {
                    
169            // Handle chunked body
                    
222    {
                    
223        $header = ucwords(strtolower($header));
                    
224        if (array_key_exists($header, $this->headers)) {
                    
                
SimpleHeaderSet.php https://gitlab.com/I-NOZex/quiz | PHP | 397 lines
                    
1<?php
                    
2
                    
140    {
                    
141        $lowerName = strtolower($name);
                    
142
                    
176        if ($this->has($name, $index)) {
                    
177            $lowerName = strtolower($name);
                    
178
                    
200
                    
201        $lowerName = strtolower($name);
                    
202        if (!array_key_exists($lowerName, $this->_headers)) {
                    
233    {
                    
234        $lowerName = strtolower($name);
                    
235        unset($this->_headers[$lowerName][$index]);
                    
244    {
                    
245        $lowerName = strtolower($name);
                    
246        unset($this->_headers[$lowerName]);
                    
                
Router.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 522 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 *
                    
130
                    
131		// Load the routes.php file.
                    
132		if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/routes.php'))
                    
133		{
                    
134			include(APPPATH.'config/'.ENVIRONMENT.'/routes.php');
                    
135		}
                    
135		}
                    
136		elseif (is_file(APPPATH.'config/routes.php'))
                    
137		{
                    
137		{
                    
138			include(APPPATH.'config/routes.php');
                    
139		}
                    
                
languages.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 393 lines
                    
1<?php
                    
2/**
                    
128			$search = $db->quote('%' . str_replace(' ', '%', $db->escape(trim($search), true) . '%'));
                    
129			$query->where('(LOWER(name) LIKE ' . strtolower($search) . ')');
                    
130		}
                    
                
wc-account-functions.php https://gitlab.com/ezgonzalez/integral | PHP | 317 lines
                    
1<?php
                    
2/**
                    
244
                    
245		$type            = strtolower( $payment_token->get_type() );
                    
246		$list[ $type ][] = array(
                    
283function wc_get_account_saved_payment_methods_list_item_cc( $item, $payment_token ) {
                    
284	if ( 'cc' !== strtolower( $payment_token->get_type() ) ) {
                    
285		return $item;
                    
306function wc_get_account_saved_payment_methods_list_item_echeck( $item, $payment_token ) {
                    
307	if ( 'echeck' !== strtolower( $payment_token->get_type() ) ) {
                    
308		return $item;
                    
                
Form.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 471 lines
                    
1<?php
                    
2
                    
132    /**
                    
133     * Gets the field values as PHP.
                    
134     *
                    
135     * This method converts fields with the array notation
                    
136     * (like foo[bar] to arrays) like PHP does.
                    
137     *
                    
139     */
                    
140    public function getPhpValues()
                    
141    {
                    
155    /**
                    
156     * Gets the file field values as PHP.
                    
157     *
                    
158     * This method converts fields with the array notation
                    
159     * (like foo[bar] to arrays) like PHP does.
                    
160     *
                    
                
Curl.php https://github.com/dmolsen/MIT-Mobile-Web.git | PHP | 392 lines
                    
27/** Zend_Http_Client_Adapter_Interface */
                    
28require_once 'Zend/Http/Client/Adapter/Interface.php';
                    
29
                    
31 * An adapter class for Zend_Http_Client based on the curl extension.
                    
32 * Curl requires libcurl. See for full requirements the PHP manual: http://php.net/curl
                    
33 *
                    
103        if (!extension_loaded('curl')) {
                    
104            require_once 'Zend/Http/Client/Adapter/Exception.php';
                    
105            throw new Zend_Http_Client_Adapter_Exception('cURL extension has to be loaded to use this Zend_Http_Client adapter.');
                    
123        foreach ($config as $k => $v) {
                    
124            $this->_config[strtolower($k)] = $v;
                    
125        }
                    
305         * Make sure POSTFIELDS is set after $curlMethod is set:
                    
306         * @link http://de2.php.net/manual/en/function.curl-setopt.php#81161
                    
307         */
                    
                
Pop3.php https://gitlab.com/Ltaimao/wecenter | PHP | 328 lines
                    
1<?php
                    
2/**
                    
26 */
                    
27//require_once 'Zend/Mail/Storage/Abstract.php';
                    
28
                    
31 */
                    
32//require_once 'Zend/Mail/Protocol/Pop3.php';
                    
33
                    
36 */
                    
37//require_once 'Zend/Mail/Message.php';
                    
38
                    
114             */
                    
115            //require_once 'Zend/Mail/Storage/Exception.php';
                    
116            throw new Zend_Mail_Storage_Exception('not implemented');
                    
137             */
                    
138            //require_once 'Zend/Mail/Storage/Exception.php';
                    
139            throw new Zend_Mail_Storage_Exception('not implemented');
                    
                
ContainerDebugCommand.php https://gitlab.com/matijabelec/bigpandadev | PHP | 220 lines
                    
1<?php
                    
2
                    
59
                    
60  <info>php %command.full_name%</info>
                    
61
                    
63
                    
64  <info>php %command.full_name% validator</info>
                    
65
                    
68
                    
69  <info>php %command.full_name% --show-private</info>
                    
70
                    
72
                    
73  <info>php %command.full_name% --tags</info>
                    
74
                    
76
                    
77  <info>php %command.full_name% --tag=form.type</info>
                    
78
                    
                
DataUpdate.php https://gitlab.com/karora/awl | PHP | 391 lines
                    
1<?php
                    
2/**
                    
14
                    
15require_once('AWLUtilities.php');
                    
16require_once('AwlQuery.php');
                    
29  $fields = get_fields($tablename);
                    
30  $update = strtolower($type) == "update";
                    
31  if ( $update )
                    
                
default.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 282 lines
                    
165						?>
                    
166						<tr class="row<?php echo $i % 2; ?>" sortable-group-id="<?php echo $item->parent_id; ?>" item-id="<?php echo $item->id ?>" parents="<?php echo $parentsStr ?>" level="<?php echo $item->level ?>">
                    
167							<td class="order nowrap center hidden-phone">
                    
212								<td class="center btns hidden-phone">
                    
213									<a class="badge <?php if ($item->count_published > 0) echo "badge-success"; ?>" title="<?php echo JText::_('COM_CATEGORY_COUNT_PUBLISHED_ITEMS');?>" href="<?php echo JRoute::_('index.php?option=' . $component . ($section ? '&view=' . $section : '') . '&filter[category_id]=' . (int) $item->id . '&filter[published]=1' . '&filter[level]=' . (int) $item->level);?>">
                    
214										<?php echo $item->count_published; ?></a>
                    
218								<td class="center btns hidden-phone">
                    
219									<a class="badge <?php if ($item->count_unpublished > 0) echo "badge-important"; ?>" title="<?php echo JText::_('COM_CATEGORY_COUNT_UNPUBLISHED_ITEMS');?>" href="<?php echo JRoute::_('index.php?option=' . $component . ($section ? '&view=' . $section : '') . '&filter[category_id]=' . (int) $item->id . '&filter[published]=0' . '&filter[level]=' . (int) $item->level);?>">
                    
220										<?php echo $item->count_unpublished; ?></a>
                    
224								<td class="center btns hidden-phone">
                    
225									<a class="badge <?php if ($item->count_archived > 0) echo "badge-info"; ?>" title="<?php echo JText::_('COM_CATEGORY_COUNT_ARCHIVED_ITEMS');?>" href="<?php echo JRoute::_('index.php?option=' . $component . ($section ? '&view=' . $section : '') . '&filter[category_id]=' . (int) $item->id . '&filter[published]=2' . '&filter[level]=' . (int) $item->level);?>">
                    
226										<?php echo $item->count_archived; ?></a>
                    
230								<td class="center btns hidden-phone">
                    
231									<a class="badge <?php if ($item->count_trashed > 0) echo "badge-inverse"; ?>" title="<?php echo JText::_('COM_CATEGORY_COUNT_TRASHED_ITEMS');?>" href="<?php echo JRoute::_('index.php?option=' . $component . ($section ? '&view=' . $section : '') . '&filter[category_id]=' . (int) $item->id . '&filter[published]=-2' . '&filter[level]=' . (int) $item->level);?>">
                    
232										<?php echo $item->count_trashed; ?></a>
                    
                
openid.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 558 lines
                    
1<?php
                    
2/* Copyright (C) 2013 Laurent Destailleur  <eldy@users.sourceforge.net>
                    
18/**
                    
19 *      \file       htdocs/core/class/openid.class.php
                    
20 *      \ingroup    core
                    
46
                    
47	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
                    
48	/**
                    
55	{
                    
56		// phpcs:enable
                    
57		$this->URLs['openid_server'] = $a;
                    
59
                    
60	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
                    
61	/**
                    
68	{
                    
69		// phpcs:enable
                    
70		$this->URLs['trust_root'] = $a;
                    
                
Profiler.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 473 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 25127 2012-11-16 15:17:42Z rob $
                    
21 */
                    
260        if (null === $queryType) {
                    
261            switch (strtolower(substr(ltrim($queryText), 0, 6))) {
                    
262                case 'insert':
                    
282         */
                    
283        #require_once 'Zend/Db/Profiler/Query.php';
                    
284        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
310             */
                    
311            #require_once 'Zend/Db/Profiler/Exception.php';
                    
312            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
321             */
                    
322            #require_once 'Zend/Db/Profiler/Exception.php';
                    
323            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
                
Tree.php https://gitlab.com/staging06/myproject | PHP | 491 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
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
282        if (preg_match_all('/((?:^|[A-Z])[a-z]+)/', get_class($this->getContext()->controller), $matches) !== false) {
                    
283            $controller_name = strtolower($matches[0][1]);
                    
284        }
                    
                
label.php https://gitlab.com/mucill/sman7 | PHP | 260 lines
                    
1<?php
                    
2/**
                    
37require SIMBIO.'simbio_GUI/table/simbio_table.inc.php';
                    
38require SIMBIO.'simbio_GUI/form_maker/simbio_form_table_AJAX.inc.php';
                    
39require SIMBIO.'simbio_GUI/paging/simbio_paging.inc.php';
                    
39require SIMBIO.'simbio_GUI/paging/simbio_paging.inc.php';
                    
40require SIMBIO.'simbio_DB/datagrid/simbio_dbgrid.inc.php';
                    
41require SIMBIO.'simbio_DB/simbio_dbop.inc.php';
                    
137        utility::jsAlert(__('Some or All Data NOT deleted successfully!\nPlease contact system administrator'));
                    
138        echo '<script type="text/javascript">parent.jQuery(\'#mainContent\').simbioAJAX(\''.$_SERVER['PHP_SELF'].'?'.$_POST['lastQueryStr'].'\');</script>';
                    
139    }
                    
152	  <div class="btn-group">
                    
153      <a href="<?php echo MWB; ?>master_file/label.php" class="btn btn-default"><i class="glyphicon glyphicon-list-alt"></i>&nbsp;<?php echo __('Label List'); ?></a>
                    
154      <a href="<?php echo MWB; ?>master_file/label.php?action=detail" class="btn btn-default"><i class="glyphicon glyphicon-plus"></i>&nbsp;<?php echo __('Add New Label'); ?></a>
                    
155	  </div>
                    
156    <form name="search" action="<?php echo MWB; ?>master_file/label.php" id="search" method="get" style="display: inline;"><?php echo __('Search'); ?> :
                    
157    <input type="text" name="keywords" size="30" />
                    
                
ext_string.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 346 lines
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
22#include "hphp/runtime/ext/extension.h"
                    
23#include "hphp/runtime/base/zend-string.h"
                    
24#include "hphp/runtime/base/zend-printf.h"
                    
31
                    
32extern const HPHP::StaticString k_HPHP_TRIM_CHARLIST;
                    
33extern const int64_t k_STR_PAD_RIGHT;
                    
81                     const String& str,
                    
82                     const String& charlist = k_HPHP_TRIM_CHARLIST);
                    
83Variant HHVM_FUNCTION(explode,
                    
                
Mbox.php https://gitlab.com/devtoannh/cafe | PHP | 447 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mbox.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
27 */
                    
28// require_once 'Zend/Loader.php';
                    
29
                    
32 */
                    
33require_once 'Zend/Mail/Storage/Abstract.php';
                    
34
                    
37 */
                    
38require_once 'Zend/Mail/Message/File.php';
                    
39
                    
126             */
                    
127            require_once 'Zend/Mail/Storage/Exception.php';
                    
128            throw new Zend_Mail_Storage_Exception('id does not exist');
                    
                
Call.php https://gitlab.com/cuza/Clinic_Recods | PHP | 253 lines
                    
1<?php
                    
2
                    
140                    throw new Twig_Error_Syntax(sprintf(
                    
141                        'Argument "%s" could not be assigned for %s "%s(%s)" because it is mapped to an internal PHP function which cannot determine default value for optional argument%s "%s".',
                    
142                        $name, $callType, $callName, implode(', ', $names), count($missingArguments) > 1 ? 's' : '', implode('", "', $missingArguments))
                    
205    {
                    
206        return strtolower(preg_replace(array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\d])([A-Z])/'), array('\\1_\\2', '\\1_\\2'), $name));
                    
207    }
                    
                
ProjectTask.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 448 lines
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @since         CakePHP(tm) v 1.2
                    
88			} else {
                    
89				$this->err(__d('cake_console', 'Unable to generate random seed for \'Security.cipherSeed\', you should change it in %s', APP . 'Config' . DS . 'core.php'));
                    
90				$success = false;
                    
142/**
                    
143 * Checks PHP's include_path for CakePHP.
                    
144 *
                    
412					'Configure::write(\'Routing.prefixes\', array(\'admin\'))',
                    
413					'/app/Config/core.php'));
                    
414				return $this->_stop();
                    
                
Cloud.php https://gitlab.com/yousafsyed/easternglamor | PHP | 410 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Tag/Item.php';
                    
27
                    
116        foreach ($options as $key => $value) {
                    
117            if (in_array(strtolower($key), $this->_skipOptions)) {
                    
118                continue;
                    
152            } else {
                    
153                #require_once 'Zend/Tag/Cloud/Exception.php';
                    
154                throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
174        } else {
                    
175            #require_once 'Zend/Tag/Cloud/Exception.php';
                    
176            throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');
                    
203        if (null === $this->_tags) {
                    
204            #require_once 'Zend/Tag/ItemList.php';
                    
205            $this->setItemList(new Zend_Tag_ItemList());
                    
                
class.databases.php https://gitlab.com/billyprice1/ClanCaller | PHP | 375 lines
                    
1<?php if(!defined('INST_BASEDIR')) die('Direct access is not allowed!');
                    
2
                    
4    *
                    
5    *                            PHP Setup Wizard
                    
6    *
                    
154        {
                    
155            return preg_match("/^[a-z0-9_]*$/i", strtolower($database));
                    
156        }
                    
179        {
                    
180            $database = strtolower($database);
                    
181            $dblist = $this->GetDatabaseList();
                    
                
ContentRightSidebar.php https://gitlab.com/GethN7/monaco-port | PHP | 210 lines
                    
1<?php
                    
2/**
                    
22
                    
23$wgExtensionMessagesFiles['ContentRightSidebar'] = dirname(__FILE__).'/ContentRightSidebar.i18n.php';
                    
24
                    
89    $out  = RIGHT_SIDEBAR_START_TOKEN;
                    
90    if($with_box && !in_array(strtolower($with_box), array("false", "off", "no", "none")))
                    
91    {
                    
                
Callback.php https://gitlab.com/devtoannh/cafe | PHP | 330 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Callback.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Feed/Pubsubhubbub.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Feed/Pubsubhubbub/CallbackAbstract.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Feed/Reader.php';
                    
36
                    
105        $contentType = $this->_getHeader('Content-Type');
                    
106        if (strtolower($_SERVER['REQUEST_METHOD']) == 'post'
                    
107            && $this->_hasValidVerifyToken(null, false)
                    
                
ClassDeclarationSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 332 lines
                    
30 * @version   Release: @package_version@
                    
31 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
32 */
                    
39     *
                    
40     * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
                    
41     * @param int                  $stackPtr  The position of the current token
                    
45     */
                    
46    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
47    {
                    
58     *
                    
59     * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
                    
60     * @param int                  $stackPtr  The position of the current token
                    
64     */
                    
65    public function processOpen(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
66    {
                    
                
Application.php https://gitlab.com/yousafsyed/easternglamor | PHP | 440 lines
                    
67     *
                    
68     * Initialize application. Potentially initializes include_paths, PHP
                    
69     * settings, and bootstrap class.
                    
80
                    
81        #require_once 'Zend/Loader/Autoloader.php';
                    
82        $this->_autoloader = Zend_Loader_Autoloader::getInstance();
                    
153        if (!empty($options['phpsettings'])) {
                    
154            $this->setPhpSettings($options['phpsettings']);
                    
155        }
                    
223    {
                    
224        return in_array(strtolower($key), $this->_optionKeys);
                    
225    }
                    
237            $options = array_change_key_case($options, CASE_LOWER);
                    
238            return $options[strtolower($key)];
                    
239        }
                    
                
api.php https://gitlab.com/x33n/SellCloudMusic | PHP | 284 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('kernel/db/class.dbcommon.php');
                    
4require_once('kernel/class.form.php');
                    
4require_once('kernel/class.form.php');
                    
5require_once('kernel/class.elist.php');
                    
6require_once('src/ent.global.php');
                    
6require_once('src/ent.global.php');
                    
7require_once('src/ent.order.php');
                    
8require_once('src/ent.list.php');
                    
8require_once('src/ent.list.php');
                    
9include_once('./cfg/configuration.php');
                    
10
                    
19
                    
20    switch (strtolower($_GET['output'])) {
                    
21
                    
                
Model.php https://gitlab.com/x33n/ImpressPages | PHP | 323 lines
                    
1<?php
                    
2/**
                    
15    const INSTALL_DIR = 'setup/';
                    
16    const PARAMETERS_FILE = 'parameters.php';
                    
17
                    
302     * files starting with underscore (for example, _layout.php) are considered hidden.
                    
303     * @return array layouts (e.g. ['main.php', 'home.php'])
                    
304     * @throws \Ip\Exception
                    
312        foreach ($files as $filename) {
                    
313            if ('php' == strtolower(pathinfo($filename, PATHINFO_EXTENSION))) {
                    
314                if ($filename[0] != '_') {
                    
                
spellcheck.php https://gitlab.com/tutaalexandr/bot_local | PHP | 345 lines
                    
1<?php
                    
2  /***************************************
                    
5   * Version: 2.4.8
                    
6   * FILE: spellcheck.php
                    
7   * AUTHOR: Elizabeth Perreau and Dave Morton
                    
43  $content  = $template->getSection('SearchSpellForm');
                    
44  $sc_action = isset($_REQUEST['action']) ? strtolower($_REQUEST['action']) : '';
                    
45  $sc_id = isset($_REQUEST['id']) ? $_REQUEST['id'] : -1;
                    
116    $out = "Missspelled Words<br />\n50 words per page:<br />\n";
                    
117    $link=" - <a class=\"paginate\" href=\"index.php?page=spellcheck&amp;group=[group]\">[label]</a>";
                    
118    $curStart = (isset($get_vars['group'])) ? $get_vars['group'] : 1;
                    
161      $tmpLink = str_replace('[linkClass]', " class=\"$linkClass\"", $baseLink);
                    
162      $linkHref = " href=\"index.php?page=spellcheck&amp;action=edit&amp;id=$linkId&amp;group=$group#$linkId\" name=\"$linkId\"";
                    
163      $tmpLink = str_replace('[linkHref]', $linkHref, $tmpLink);
                    
275        $group = round(($id / 50));
                    
276        $action = "<a href=\"index.php?page=spellcheck&amp;action=edit&amp;id=$id&amp;group=$group#$id\"><img src=\"images/edit.png\" border=0 width=\"15\" height=\"15\" alt=\"Edit this entry\" title=\"Edit this entry\" /></a>
                    
277                    <a href=\"index.php?page=spellcheck&amp;action=del&amp;id=$id&amp;group=$group#$id\" onclick=\"return confirm('Do you really want to delete this missspelling? You will not be able to undo this!')\";><img src=\"images/del.png\" border=0 width=\"15\" height=\"15\" alt=\"Edit this entry\" title=\"Edit this entry\" /></a>";
                    
                
HeadMeta.php https://gitlab.com/yousafsyed/easternglamor | PHP | 449 lines
                    
1<?php
                    
2/**
                    
23/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
24#require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
25
                    
66     *
                    
67     * Set separator to PHP_EOL
                    
68     *
                    
73        parent::__construct();
                    
74        $this->setSeparator(PHP_EOL);
                    
75    }
                    
90            $item   = $this->createData($keyType, $keyValue, $content, $modifiers);
                    
91            $action = strtolower($placement);
                    
92            switch ($action) {
                    
116            default:
                    
117                #require_once 'Zend/View/Exception.php';
                    
118                $e = new Zend_View_Exception(sprintf('Invalid type "%s" passed to _normalizeType', $type));
                    
                
Image.php https://gitlab.com/yousafsyed/easternglamor | PHP | 247 lines
                    
1<?php
                    
2/**
                    
122         */
                    
123        #require_once 'Zend/Pdf/Resource/ImageFactory.php';
                    
124        return Zend_Pdf_Resource_ImageFactory::factory($filePath);
                    
129         */
                    
130        #require_once 'Zend/Pdf/FileParserDataSource/File.php';
                    
131        $dataSource = new Zend_Pdf_FileParserDataSource_File($filePath);
                    
135         */
                    
136        $fileExtension = strtolower(pathinfo($filePath, PATHINFO_EXTENSION));
                    
137
                    
157            default:
                    
158                #require_once 'Zend/Pdf/Exception.php';
                    
159                throw new Zend_Pdf_Exception("Cannot create image resource. File extension not known or unsupported type.");
                    
172             */
                    
173            #require_once 'Zend/Pdf/Exception.php';
                    
174            throw new Zend_Pdf_Exception("Cannot determine image type: $filePath",
                    
                
DebugClassLoader.php https://gitlab.com/puntodos/ean-landings | PHP | 318 lines
                    
1<?php
                    
2
                    
31    private static $deprecated = array();
                    
32    private static $php7Reserved = array('int', 'float', 'bool', 'string', 'true', 'false', 'null');
                    
33    private static $darwinCache = array('/' => array('/', array()));
                    
53        if (!isset(self::$caseCheck)) {
                    
54            if(!file_exists(strtolower(__FILE__))) {
                    
55                // filesystem is case sensitive
                    
56                self::$caseCheck = 0;
                    
57            } elseif(realpath(strtolower(__FILE__)) === __FILE__) {
                    
58                // filesystem is not case sensitive
                    
81    {
                    
82        // Ensures we don't hit https://bugs.php.net/42098
                    
83        class_exists('Symfony\Component\Debug\ErrorHandler');
                    
186
                    
187            if (in_array(strtolower($refl->getShortName()), self::$php7Reserved)) {
                    
188                @trigger_error(sprintf('%s uses a reserved class name (%s) that will break on PHP 7 and higher', $name, $refl->getShortName()), E_USER_DEPRECATED);
                    
                
view.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 154 lines
                    
1<?php $this->load->view('layouts/_student_data'); ?>
                    
2<script type="text/javascript">
                    
42      <?if($recalculate_grade):?>
                    
43        <!-- <a href="<?php echo site_url('grade/recalculate/'.__link($id)."/".$search_type) ?>" class='btn btn-facebook btn-sm  confirm' title='Student grade conversion will recompute based on the grading system table. Do you want to continue?' ><i class="fa fa-refresh"></i>&nbsp; Recompute Grade Conversion</a> -->
                    
44      <?endif;?>
                    
50      <?if($recalculate_grade):?>
                    
51        <!-- <a href="<?php echo site_url('grade/recalculate/'.__link($id)."/".$search_type) ?>" class='btn btn-facebook btn-sm  confirm' title='Student grade conversion will recompute based on the grading system table. Do you want to continue?' ><i class="fa fa-refresh"></i>&nbsp; Recompute</a> -->
                    
52      <?endif;?>
                    
83                <td class="hidden-xs" ><strong><?= $subject->code; ?></strong></td>
                    
84                <td class="hidden-xs" ><strong><?= ucwords(strtolower($subject->subject)); ?></strong></td>
                    
85                <td class="visible-xs" ><strong><?= ucwords(character_limiter(strtolower($subject->subject), 10)); ?></strong></td>
                    
93                            <span class='label label-as-badge label-default grade-badge' ><?php echo ($g->converted); ?></span>
                    
94                            <input class='grid hidden form-control' type='text' name='subject[<?=$g->id?>]' value='<?=$g->value?>' max="<?php echo $max_grade ?>" min="<?php echo $min_grade ?>" step="any" placeHolder="0.00">
                    
95                          </td>
                    
101                          <span class='label label-as-badge label-default grade-badge' ><?php echo ($g->converted); ?></span>
                    
102                          <input class='grid hidden form-control' type='text' name='subject[<?=$g->id?>]' value='<?=$g->value?>' max="<?php echo $max_grade ?>" min="<?php echo $min_grade ?>" step="any" placeHolder="0.00">
                    
103                         </td>
                    
                
MaxHealth.php https://gitlab.com/Skull3x/MineBlock | PHP | 358 lines
                    
1<?php
                    
2namespace MineBlock\MaxHealth;
                    
53		$mh = $this->mh;
                    
54		switch(strtolower($sub[0])){
                    
55			case "set":
                    
66						$sub[2] = floor($sub[2]);
                    
67						$mh["Set"][strtolower($n = $player->getName())] = $sub[2];
                    
68						$r = $mm.($ik ? "$n 님의 최대체력을 $sub[2]로 설정했습니다." : "Set $n\'s Max health to $sub[2]");
                    
201		$p = $event->getPlayer();
                    
202		$p->setMaxHealth(isset($this->mh["Set"][$n = strtolower($p->getName())]) ? $this->mh["Set"][$n] : $this->mh["Default"]);
                    
203		$p->setHealth(isset($this->mh["Player"][$n]) ? $this->mh["Player"][$n] : $this->getMaxHealth());
                    
209 			if($p->dead) continue;
                    
210			$p->setMaxHealth(isset($this->mh["Set"][$n = strtolower($p->getName())]) ? $this->mh["Set"][$n] : $this->mh["Default"]);
                    
211			$p->setHealth($p->getHealth());
                    
                
Oauth.php https://gitlab.com/vannh/portal_training | PHP | 263 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
9 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @link          http://cakephp.org CakePHP(tm) Project
                    
11 * @since         3.0.0
                    
11 * @since         3.0.0
                    
12 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
13 */
                    
176        }
                    
177        $scheme = strtolower($parts['scheme'] ?: 'http');
                    
178        $defaultPorts = [
                    
185        $out = $scheme . '://';
                    
186        $out .= strtolower($parts['host']);
                    
187        $out .= $parts['path'];
                    
                
 

Source

Language