100+ results results for 'php strtolower repo:mjlassila/plugin-PDFOutput' (880 ms)
1<?php 2 38 parent::init(); 39 $this->currentUser = (\Yii::$app->hasProperty('user') && \Yii::$app->user->getId()) ? \Yii::$app->user->getIdentity() : new \nitm\models\User(['username' => (php_sapi_name() == 'cli' ? 'console' : 'web')]); 40 196 } else { 197 return array_search(strtolower($level), $this->levels); 198 }editor.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 522 lines
1<?php 2/** 181 { 182 $method = strtolower($method); 183 488 $name = JFilterInput::getInstance()->clean($this->_name, 'cmd'); 489 $path = JPATH_PLUGINS . '/editors/' . $name . '.php'; 490 492 { 493 $path = JPATH_PLUGINS . '/editors/' . $name . '/' . $name . '.php'; 494 if (!JFile::exists($path))FormatJsonTest.php https://gitlab.com/link233/bootmw | PHP | 375 lines
1<?php 2 103 104 public function testEncodePhpBug46944() { 105 $this->assertNotEquals( 106 '\ud840\udc00', 107 strtolower( FormatJson::encode( "\xf0\xa0\x80\x80" ) ), 108 'Test encoding an broken json_encode character (U+20000)' 174 * 175 * Some PHP interpreters use json-c rather than the JSON.org cannonical 176 * parser to avoid being encumbered by the "shall be used for Good, not 220 ) { 221 // PHP5 results are always expected to have isGood() === false 222 $expectedGoodStatus = false;question.php https://github.com/holsinger/openfloor.git | PHP | 300 lines
1<?php 2class Question extends Controller 57 $rules['desc'] = "trim|max_length[255]|xss_clean"; 58 $rules['tags'] = "trim|strtolower|xss_clean"; 59 247 $data['view_name'] = 'question_view'; 248 $this->load->view('question/question_view.php', $data); 249 }Mssql.php https://github.com/constructions-incongrues/vanilla-miner.git | PHP | 266 lines
1<?php 2/* 2/* 3 * $Id: Mssql.php 7490 2010-03-29 19:53:27Z jwage $ 4 * 24 * @subpackage DataDict 25 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 26 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @author Frank M. Kromann <frank@kromann.info> (PEAR MDB2 Mssql driver) 29 * @author David Coallier <davidc@php.net> (PEAR MDB2 Mssql driver) 30 * @version $Revision: 7490 $ 125 { 126 $db_type = preg_replace('/[\d\(\)]/','', strtolower($field['type']) ); 127 $length = (isset($field['length']) && $field['length'] > 0) ? $field['length'] : null;date_helper.php https://gitlab.com/ricoru21/py_incidencia | 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 */search.php https://github.com/severnaya99/Sg-2010.git | PHP | 222 lines
1<?php 2// $Id: search.php,v 4.04 2008/06/05 15:35:59 wishcraft Exp $ 3// ------------------------------------------------------------------------ // 4// XOOPS - PHP Content Management System // 5// Copyright (c) 2000 XOOPS.org // 30// ------------------------------------------------------------------------ // 31include 'header.php'; 32forum_load_lang_file("search"); 35if ($xoopsConfigSearch['enable_search'] != 1) { 36 header('Location: '.XOOPS_URL.'/modules/xforum/index.php'); 37 exit(); 41$xoopsOption['template_main']= 'xforum_search.html'; 42include XOOPS_ROOT_PATH.'/header.php'; 43 43 44include_once XOOPS_ROOT_PATH.'/modules/xforum/include/search.inc.php'; 45$limit = $xoopsModuleConfig['topics_per_page'];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)Yadis.php https://github.com/DanielTichy/i-krajvysocina.cz.git | PHP | 315 lines
1<?php 2// Check to ensure this file is within the rest of the framework 5/** 6 * The core PHP Yadis implementation. 7 * 7 * 8 * PHP versions 4 and 5 9 * 21 */ 22require_once "Services/Yadis/PlainHTTPFetcher.php"; 23require_once "Services/Yadis/ParanoidHTTPFetcher.php"; 27 */ 28require_once "Services/Yadis/ParseHTML.php"; 29 145 foreach ($names as $n) { 146 if (strtolower($name) == strtolower($n)) { 147 return $value;List.php https://github.com/radicalsuz/amp.git | PHP | 279 lines
1<?php 2require_once('AMP/Display/List.php'); 2require_once('AMP/Display/List.php'); 3require_once('AMP/Content/Article.inc.php'); 4 12 var $_class_pager = 'AMP_Display_Pager_Content'; 13 var $_path_pager = 'AMP/Display/Pager/Content.php'; 14 43 if( isset( $this->_source_container )) { 44 $this->_css_class_container_list = $this->_css_class_container_list . ' list_' . strtolower( get_class( $this->_source_container )) . '_' . $this->_source_container->id; 45 } 52 $allowed_containers = array( 'section', 'contentclass', 'amp_content_tag'); 53 if ( array_search( strtolower( get_class( $container )), $allowed_containers) === FALSE ) { 54 return $container; 110 //if this is not a section based list, use the parent search create method 111 if( !( isset( $this->_source_container ) && ( strtolower( get_class( $this->_source_container )) == 'section' ))) { 112 $result = &parent::create_search_form( );derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
1<?php 2// +-----------------------------------------------------------------------+ 2// +-----------------------------------------------------------------------+ 3// | Piwigo - a PHP based photo gallery | 4// +-----------------------------------------------------------------------+ 68 { 69 $ext = strtolower($ext); 70 $this->rel_path = trigger_change('get_mimetype_location', get_themeconf('mime_icon_dir').$ext.'.png', $ext ); 71 $this->flags |= self::IS_MIMETYPE; 72 if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false) 73 { 74 $this->rel_path = 'themes/default/icon/mimetypes/unknown.png'; 75 $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path); 76 } 379 $rel_url = 'i'; 380 if ($conf['php_extension_in_urls']) $rel_url .= '.php'; 381 if ($conf['question_mark_in_urls']) $rel_url .= '?';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'] ) ) ) { 264legacy.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 }Resource.php https://github.com/ccapndave/flextrine.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);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) {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;Route.php https://github.com/balupton/Zend-Framework-Mirror.git | PHP | 413 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Route.php 23486 2010-12-10 04:05:30Z mjh_ca $ 20 */ 24 */ 25require_once 'Zend/Controller/Router/Route/Interface.php'; 26 29 */ 30require_once 'Zend/Controller/Router/Route/Module.php'; 31 34 */ 35require_once 'Zend/Controller/Dispatcher/Interface.php'; 36 39 */ 40require_once 'Zend/Controller/Request/Abstract.php'; 41imageupload.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 287 lines
1<?php 2 68 69 include_once AIU_BASE_PATH . 'includes/fileuploader/fileuploader.class.php'; 70 81 if (!function_exists('includeFile')) { 82 function includeFile($name, $type = 'config', $defaultName = 'default', $fileType = '.inc.php') { 83 $folder = (substr($type, -1) != 'y') ? $type . 's/' : substr($folder, 0, -1) . 'ies/'; 93 } else { 94 $modx->messageQuit('Default AjaxImageUpload ' . $type . ' file "' . AIU_BASE_PATH . $folder . $defaultName . '.' . $type . '.inc.php" not found. Did you upload all snippet files?'); 95 } 106 107 include_once AIU_BASE_PATH . 'includes/PhpThumbFactory/ThumbLib.inc.php'; 108 // delete uploaded images 111 $formUid = (isset($_GET['uid'])) ? htmlentities(trim($_GET['uid']), ENT_NOQUOTES) : $formUid; 112 if (strtolower($_GET['delete']) == 'all') { 113 // delete all uploaded files/thumbs & clean sessionResource.php https://github.com/constructions-incongrues/vanilla-miner.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);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 */Resource.php https://github.com/sitengine/sitengine.git | PHP | 436 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 14026 2009-02-09 19:03:22Z matthew $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 113 if ('get' == substr($method, 0, 3)) { 114 $type = strtolower(substr($method, 3)); 115 if (!$this->hasResourceType($type)) {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 }Page.php https://gitlab.com/florianocomercial/centreon | PHP | 402 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Page.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 26 */ 27require_once 'Zend/Cache/Core.php'; 28 132 while (list($name, $value) = each($options)) { 133 $name = strtolower($name); 134 switch ($name) { 318 $headerSentName = trim(array_shift($tmp)); 319 if (strtolower($headerName) == strtolower($headerSentName)) { 320 $headerSentValue = trim(implode(':', $tmp)); 343 foreach (array('Get', 'Post', 'Session', 'Files', 'Cookie') as $arrayName) { 344 $tmp2 = $this->_makePartialId($arrayName, $this->_activeOptions['cache_with_' . strtolower($arrayName) . '_variables'], $this->_activeOptions['make_id_with_' . strtolower($arrayName) . '_variables']); 345 if ($tmp2===false) {form.php https://github.com/limb-php-framework/limb-app-buildman.git | PHP | 352 lines
1<?php 2 /** 5 * @subpackage WebTester 6 * @version $Id: form.php 4378 2006-10-27 10:04:53Z pachanga $ 7 */ 11 */ 12 require_once(dirname(__FILE__) . '/tag.php'); 13 require_once(dirname(__FILE__) . '/encoding.php'); 13 require_once(dirname(__FILE__) . '/encoding.php'); 14 require_once(dirname(__FILE__) . '/selector.php'); 15 /**#@-*/ 58 function _setEncodingClass($tag) { 59 if (strtolower($tag->getAttribute('method')) == 'post') { 60 if (strtolower($tag->getAttribute('enctype')) == 'multipart/form-data') { 82 function getMethod() { 83 return ($this->_method ? strtolower($this->_method) : 'get'); 84 }Profiler.php https://gitlab.com/fabiorf/curso-zend1-aula1 | 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.");Heuristics.php https://gitlab.com/mrceperka/mi-paa | PHP | 598 lines
1<?php 2namespace MrCeperka\MIPAA\Heuristics; 3 4require_once 'Helpers.php'; 5 111 112 file_put_contents(OUTPUT_DIR . strtolower((new \ReflectionClass($this))->getShortName()) . '.log', $logString, FILE_APPEND); 113 } 398 399 /*echo 'maxPrice: ' . $maxPrice . PHP_EOL; 400 echo 'bits: ' . $b . PHP_EOL; 400 echo 'bits: ' . $b . PHP_EOL; 401 echo 'me:' . $maxError . PHP_EOL;*/ 402 } 503 * @link http://www.geeksforgeeks.org/branch-and-bound-set-2-implementation-of-01-knapsack/ 504 * Ported to PHP 505 */Compiler.php https://bitbucket.org/Jedna/nette-sandbox.git | PHP | 504 lines
1<?php 2 98 /** 99 * Compiles tokens to PHP code. 100 * @param array 152 $handlerName = get_class($handler); 153 $prologs .= empty($res[0]) ? '' : "<?php\n// prolog $handlerName\n$res[0]\n?>"; 154 $epilogs = (empty($res[1]) ? '' : "<?php\n// epilog $handlerName\n$res[1]\n?>") . $epilogs; 155 } 156 $output = ($prologs ? $prologs . "<?php\n//\n// main template\n//\n?>\n" : '') . $output . $epilogs; 157 258 $htmlNode->isEmpty = in_array($this->contentType, array(self::CONTENT_HTML, self::CONTENT_XHTML)) 259 && isset(Nette\Utils\Html::$emptyElements[strtolower($token->name)]); 260 $htmlNode->offset = strlen($this->output); 393 $isLeftmost = $isLeftmost === NULL ? trim(substr($output, $leftOfs)) === '' : $isLeftmost; 394 if ($isLeftmost && substr($code, 0, 11) !== '<?php echo ') { 395 $output = substr($output, 0, $leftOfs); // alone macro without output -> remove indentationPage.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 402 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Page.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 26 */ 27#require_once 'Zend/Cache/Core.php'; 28 132 while (list($name, $value) = each($options)) { 133 $name = strtolower($name); 134 switch ($name) { 318 $headerSentName = trim(array_shift($tmp)); 319 if (strtolower($headerName) == strtolower($headerSentName)) { 320 $headerSentValue = trim(implode(':', $tmp)); 343 foreach (array('Get', 'Post', 'Session', 'Files', 'Cookie') as $arrayName) { 344 $tmp2 = $this->_makePartialId($arrayName, $this->_activeOptions['cache_with_' . strtolower($arrayName) . '_variables'], $this->_activeOptions['make_id_with_' . strtolower($arrayName) . '_variables']); 345 if ($tmp2===false) {Cookie.php https://gitlab.com/campus-academy/krowkaramel | PHP | 505 lines
1<?php 2/** 254 protected function normalize_attribute($name, $value) { 255 switch (strtolower($name)) { 256 case 'expires':Loader.php https://gitlab.com/buitenzorg812/garapic.cms | 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));wc-formatting-functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 607 lines
1<?php 2/** 103 104 $from_unit = strtolower( get_option('woocommerce_weight_unit') ); 105 $to_unit = strtolower( $to_unit ); 157 // @codeCoverageIgnoreStart 158 if ( version_compare( phpversion(), '5.3', '<' ) ) { 159 $tax = round( $tax, $dp ); 210/** 211 * Convert a float to a string without locale formatting which PHP adds when changing floats to strings 212 * @param float $float 402 * 403 * Adapted from http://www.php.net/manual/en/function.timezone-name-from-abbr.php#89155 404 * 605function wc_strtolower( $string ) { 606 return function_exists( 'mb_strtolower' ) ? mb_strtolower( $string ) : strtolower( $string ); 607}cache.php https://github.com/castlino/linonico.com.git | PHP | 506 lines
1<?php 2/* SVN FILE: $Id: cache.php 8120 2009-03-19 20:25:10Z gwoo $ */ 3/** 4 * Caching for CakePHP. 5 * 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 10 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 16 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 18 * @package cake 83 if (!class_exists($name . 'Engine')) { 84 require LIBS . DS . 'cache' . DS . strtolower($name) . '.php'; 85 }BaseFcvalinmold.php https://github.com/cidesa/roraima.git | PHP | 714 lines
1<?php 2 348 $prefijo = substr($m,0,3); 349 $metodo = strtolower(substr($m,3)); 350 if($prefijo=='get'){ 469 470 public function getByName($name, $type = BasePeer::TYPE_PHPNAME) 471 { 524 525 public function toArray($keyType = BasePeer::TYPE_PHPNAME) 526 { 546 547 public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) 548 { 598 599 public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) 600 {Attribute.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 423 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Attribute.php 21941 2010-04-18 19:12:08Z sgehrig $ 20 */ 48 { 49 $attribName = strtolower($attribName); 50 $valArray = array(); 85 { 86 $attribName = strtolower($attribName); 87 if (is_null($index)) { 116 { 117 $attribName = strtolower($attribName); 118 if (!isset($data[$attribName])) return false; 141 { 142 $attribName = strtolower($attribName); 143 if (!isset($data[$attribName])) return;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: ");SimpleCommandMap.php https://gitlab.com/kamata4649/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 }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 }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 ) ?>" />class-gf-field-checkbox.php https://gitlab.com/level-level/gravityforms | 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 );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 }Form.php https://github.com/Seldaek/primer.git | PHP | 358 lines
1<?php 2 126 /** 127 * Gets the field values as PHP. 128 * 129 * This method converts fields with th array notation 130 * (like foo[bar] to arrays) like PHP does. 131 * 133 */ 134 public function getPhpValues() 135 { 142 /** 143 * Gets the file field values as PHP. 144 * 145 * This method converts fields with th array notation 146 * (like foo[bar] to arrays) like PHP does. 147 *class.php https://gitlab.com/neuser/bitrix-core | PHP | 658 lines
1<?php 2if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); 13require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/wizard.php"); //Wizard API 14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils 15require_once("tools/bsmpackage.php"); 15require_once("tools/bsmpackage.php"); 16require_once("tools/modulechecker.php"); 17require_once("tools/bitrixvmchecker.php"); 17require_once("tools/bitrixvmchecker.php"); 18require_once("tools/agentchecker.php"); 19require_once("tools/pushchecker.php"); 19require_once("tools/pushchecker.php"); 20require_once("tools/sitepatcher.php"); 21 267 $class = array_pop(explode("\\", $step)); 268 $stepFile = mb_strtolower($class).".php"; 269 if (Main\IO\File::isFileExists(self::WIZARD_DIR.$stepFile))plugin-editor.php https://gitlab.com/campus-academy/krowkaramel | PHP | 342 lines
1<?php 2/** 9/** WordPress Administration Bootstrap */ 10require_once __DIR__ . '/admin.php'; 11 12if ( is_multisite() && ! is_network_admin() ) { 13 wp_redirect( network_admin_url( 'plugin-editor.php' ) ); 14 exit; 274 <?php echo $docs_select; ?> 275 <input disabled id="docs-lookup" type="button" class="button" value="<?php esc_attr_e( 'Look Up' ); ?>" onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'https://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_user_locale() ); ?>&version=<?php echo urlencode( get_bloginfo( 'version' ) ); ?>&redirect=true'); }" /> 276 </div> 312 313 $excluded_referer_basenames = array( 'plugin-editor.php', 'wp-login.php' ); 314 332 <p> 333 <a class="button file-editor-warning-go-back" href="<?php echo esc_url( $return_url ); ?>"><?php _e( 'Go back' ); ?></a> 334 <button type="button" class="file-editor-warning-dismiss button button-primary"><?php _e( 'I understand' ); ?></button>CookieJar.php https://gitlab.com/unofficial-mirrors/moodle | 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 *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;Dispatcher.class.php https://gitlab.com/fangfangchen/xianpipa | 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))); 114Images.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 *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";model.php https://gitlab.com/edgarze188/sunrise | PHP | 280 lines
1<?php 2/** 107 $icons_dir_url = WD_BWG_URL . '/filemanager/images/file_icons'; 108 $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*'); 109 $parent_dir = $this->controller->get_uploads_dir() . (isset($_REQUEST['dir']) ? '/' . esc_html($_REQUEST['dir']) : ''); 139 $file_extension = explode('.', $file_name); 140 $file['type'] = strtolower(end($file_extension)); 141 $icon = $icons_dir_url . '/' . $file['type'] . '.png'; 167 $icons_dir_url = WD_BWG_URL . '/filemanager/images/file_icons'; 168 $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*'); 169 $upload_dir = wp_upload_dir(); 192 $file_type_array = explode('.', $file_name); 193 $file['type'] = strtolower(end($file_type_array)); 194 // $file['thumb'] = wp_get_attachment_thumb_url($image->ID);Route.php https://github.com/FbN/Zend-Framework-Namespaced-.git | PHP | 419 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Route.php 23421 2010-11-21 10:03:53Z wilmoore $ 20 */ 30 */ 31require_once 'Zend/Controller/Router/Route/Interface.php'; 32 35 */ 36require_once 'Zend/Controller/Router/Route/Module.php'; 37 40 */ 41require_once 'Zend/Controller/Dispatcher/Interface.php'; 42 45 */ 46require_once 'Zend/Controller/Request/Abstract.php'; 47HeadMeta.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 420 lines
1<?php 2/** 38 * 39 * Set separator to PHP_EOL 40 * 44 parent::__construct(); 45 $this->setSeparator(PHP_EOL); 46 } 61 $item = $this->createData($keyType, $keyValue, $content, $modifiers); 62 $action = strtolower($placement); 63 switch ($action) {form.lib.php https://github.com/jijkoun/ssscrape.git | PHP | 573 lines
1<?php 2 82 { 83 $this->id = sprintf('form-%s', str_strip_suffix(strtolower($class_name), 'form')); 84 }CLocale.php https://gitlab.com/Griffolion/Final-Year-Project | 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 }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'))) {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;ClientInvitationController.php https://gitlab.com/haroldv22/tupadrino | PHP | 287 lines
1<?php 2 16use yii\web\UploadedFile; 17use moonland\phpexcel\Excel; 18 75 76 $excel = new Excel(); // Phpexcel 77 $errorEmail = ''; 123 $validarClients = Clients::find() 124 ->where( [ 'email' => strtolower($value['B']) ] ) 125 ->exists(); 128 $validarClientsInv = ClientInvitation::find() 129 ->where( [ 'email' => strtolower($value['B']) ] ) 130 ->exists(); 134 $modelClientInv->name = $value['A']; 135 $modelClientInv->email = strtolower($value['B']); 136 $modelClientInv->cant_godson = $value['C'];PropelTableComparator.php https://gitlab.com/Isaki/le331.fr | PHP | 312 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/../Table.php'; 12require_once dirname(__FILE__) . '/PropelTableDiff.php'; 12require_once dirname(__FILE__) . '/PropelTableDiff.php'; 13require_once dirname(__FILE__) . '/PropelColumnComparator.php'; 14require_once dirname(__FILE__) . '/PropelColumnDiff.php'; 14require_once dirname(__FILE__) . '/PropelColumnDiff.php'; 15require_once dirname(__FILE__) . '/PropelIndexComparator.php'; 16require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php'; 233 $test = $caseInsensitive ? 234 strtolower($fromTableIndex->getName()) == strtolower($toTableIndex->getName()) : 235 $fromTableIndex->getName() == $toTableIndex->getName(); 282 $test = $caseInsensitive ? 283 strtolower($fromTableFk->getName()) == strtolower($toTableFk->getName()) : 284 $fromTableFk->getName() == $toTableFk->getName();Renderer.php https://github.com/zeon/qpkg-piwik.git | PHP | 366 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 8 * 9 * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>, 10 * Bertrand Mansion <golgote@mamasam.com> 38 * @package HTML_QuickForm2 39 * @author Alexey Borzov <avb@php.net> 40 * @author Bertrand Mansion <golgote@mamasam.com> 40 * @author Bertrand Mansion <golgote@mamasam.com> 41 * @license http://opensource.org/licenses/bsd-license.php New BSD License 42 * @version SVN: $Id: Renderer.php 299706 2010-05-24 18:32:37Z avb $ 42 * @version SVN: $Id: Renderer.php 299706 2010-05-24 18:32:37Z avb $ 43 * @link http://pear.php.net/package/HTML_QuickForm2 44 */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 );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)){mime.php https://bitbucket.org/jsuto/piler.git | PHP | 372 lines
1<?php 2 173 foreach ($headers as $name => $header) { 174 $lower = strtolower($name); 175 if($lower == $name) { 213 214 $headers['content-type']['type'] = strtolower($headers['content-type']['type']); 215 289 foreach ($matches[1] as $key => $name) { 290 $name = strtolower($name); 291 if($matches[2][$key][0] == '"') { 319 if(isset($headers['content-transfer-encoding'])) { 320 if(strtolower($headers['content-transfer-encoding']) == 'quoted-printable') { 321 $body = quoted_printable_decode($body); 323 324 if(strtolower($headers['content-transfer-encoding']) == 'base64') { 325 $body = base64_decode($body);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( '/**' );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 ); 296AdminApPageBuilderPositions.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']);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) {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/sxViBuBNunwe78EZLUuBeVAfy3gSwyE5jFwIB7Avsvc0dyNUC3wpIzaOvcreatecontent.php https://github.com/paragjagdale/people-aggregator.git | PHP | 343 lines
1<?php 2/** ! 12?> 13<?php 14//TO DO: while saving content save function should be called once 16 17require_once "api/BlogPost/BlogPost.php"; 18require_once "api/Contribution/Contribution.php"; 18require_once "api/Contribution/Contribution.php"; 19require_once "api/Suggestion/Suggestion.php"; 20require_once "web/includes/functions/auto_email_notify.php"; 20require_once "web/includes/functions/auto_email_notify.php"; 21require_once "api/Activities/Activities.php"; 22require_once "api/api_constants.php"; 74 $terms = array(); 75 $tags = preg_split('/\s*,\s*/' , strtolower($_POST['tags'])); 76 $tags = array_unique($tags);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){Transliteration.php https://gitlab.com/mariadb-corporation/LimeSurvey | PHP | 367 lines
1<?php 2/** 6 * 7 * http://www.ar-php.org 8 * 8 * 9 * PHP Version 5 10 * 31 * 32 * Filename: Transliteration.php 33 * 33 * 34 * Original Author(s): Khaled Al-Sham'aa <khaled@ar-php.org> 35 * 42 * 43 * PHP class transliterate English words into Arabic by render them in the 44 * orthography of the Arabic language and vise versa.plugin-editor.php https://github.com/openparallel/wordpress.git | PHP | 255 lines
87 if ( ! is_plugin_active($file) ) 88 activate_plugin($file, "plugin-editor.php?file=$file&phperror=1", ! empty( $_GET['networkwide'] ) ); // we'll override this later if the plugin can be included without fatal error 89 142 <div id="message" class="updated"><p><?php _e('File edited successfully.') ?></p></div> 143<?php elseif (isset($_GET['phperror'])) : ?> 144 <div id="message" class="updated"><p><?php _e('This plugin has been deactivated because your changes resulted in a <strong>fatal error</strong>.') ?></p> 146 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { ?> 147 <iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&plugin=<?php echo esc_attr($file); ?>&_wpnonce=<?php echo esc_attr($_GET['_error_nonce']); ?>"></iframe> 148 <?php } ?> 210?> 211 <li<?php echo $file == $plugin_file ? ' class="highlight"' : ''; ?>><a href="plugin-editor.php?file=<?php echo $plugin_file; ?>&plugin=<?php echo $plugin; ?>"><?php echo $plugin_file ?></a></li> 212<?php endforeach; ?> 223 <?php if ( !empty( $docs_select ) ) : ?> 224 <div id="documentation" class="hide-if-no-js"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Lookup' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /></div> 225 <?php endif; ?>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 {UpdateCommand.php https://gitlab.com/3dplex/3d-plex-main-site | PHP | 335 lines
1<?php 2<<<<<<< HEAD 152 $this->data = $this->gpm->getUpdatable(); 153 $only_packages = array_map('strtolower', $this->input->getArgument('package')); 154 171 172 $only_packages = array_map('strtolower', $this->input->getArgument('package')); 173label.php https://gitlab.com/mucill/majalengka | 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> <?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> <?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" />emogrifier.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 236 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 131 $style = ''; 132 foreach ($combinedArr as $k => $v) $style .= (strtolower($k) . ':' . $v . ';'); 133 } else {Page.php https://github.com/benbruscella/vpcounselling.com.git | PHP | 401 lines
1<?php 2/** 25 */ 26require_once 'Zend/Cache/Core.php'; 27 131 while (list($name, $value) = each($options)) { 132 $name = strtolower($name); 133 switch ($name) { 170 } 171 $key = strtolower($key); 172 if (isset($this->_specificOptions['default_options'][$key])) { 317 $headerSentName = trim(array_shift($tmp)); 318 if (strtolower($headerName) == strtolower($headerSentName)) { 319 $headerSentValue = trim(implode(':', $tmp)); 342 foreach (array('Get', 'Post', 'Session', 'Files', 'Cookie') as $arrayName) { 343 $tmp2 = $this->_makePartialId($arrayName, $this->_activeOptions['cache_with_' . strtolower($arrayName) . '_variables'], $this->_activeOptions['make_id_with_' . strtolower($arrayName) . '_variables']); 344 if ($tmp2===false) {Misc.php https://gitlab.com/saalmanhussain/scayle_repo | PHP | 388 lines
1<?php 2/* 30 if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) { 31 if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php")) 32 $langCode = $_GET['langCode']; 33 } 34 include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php"; 35 if ($number) { 64 /** 65 * @link http://pl.php.net/manual/en/function.imagecopyresampled.php 66 * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster) 110 /** 111 * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php 112 * function posted by e dot a dot schultz at gmail dot com 170 /** 171 * convert shorthand php.ini notation into bytes, much like how the PHP source does it 172 * @link http://pl.php.net/manual/en/function.ini-get.phpclass.autokeyword.php https://github.com/nadavkav/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 249 lines
1<?php 2/* 114 //convert all characters to lower case 115 //$content = mb_strtolower($content); 116 $content = mb_strtolower($content, "UTF-8");bookmark.php https://gitlab.com/haque.mdmanzurul/wp-harpar-carolyn | 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 );User.php https://github.com/dunglas/DoctrineUserBundle.git | PHP | 603 lines
1<?php 2 221 $this->username = $username; 222 $this->usernameLower = static::strtolower($username); 223 } 250 { 251 $this->email = static::strtolower($email); 252 } 598 599 public static function strtolower($string) 600 { 600 { 601 return extension_loaded('mbstring') ? mb_strtolower($string) : strtolower($string); 602 }Service.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 473 lines
1<?php 2/** 23 */ 24#require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 12510 2008-11-10 16:29:34Z matthew $ 32 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 132 if (null == $this->getName()) { 133 #require_once 'Zend/Json/Server/Exception.php'; 134 throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided'); 147 foreach ($options as $key => $value) { 148 if ('options' == strtolower($key)) { 149 continue; 169 if (!preg_match($this->_nameRegex, $name)) { 170 #require_once 'Zend/Json/Server/Exception.php'; 171 throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name));Page.php https://bitbucket.org/baruffaldi/website-2008-computer-shopping-3.git | PHP | 395 lines
1<?php 2/** 25 */ 26require_once 'Zend/Cache/Core.php'; 27 131 while (list($name, $value) = each($options)) { 132 $name = strtolower($name); 133 switch ($name) { 167 foreach ($options as $key=>$value) { 168 $key = strtolower($key); 169 if (!isset($this->_specificOptions['default_options'][$key])) { 313 $headerSentName = trim(array_shift($tmp)); 314 if (strtolower($headerName) == strtolower($headerSentName)) { 315 $headerSentValue = trim(implode(':', $tmp)); 336 foreach (array('Get', 'Post', 'Session', 'Files', 'Cookie') as $arrayName) { 337 $tmp2 = $this->_makePartialId($arrayName, $this->_activeOptions['cache_with_' . strtolower($arrayName) . '_variables'], $this->_activeOptions['make_id_with_' . strtolower($arrayName) . '_variables']); 338 if ($tmp2===false) {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 *GraphvizDumper.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 302 lines
1<?php 2 280 { 281 return strtolower(preg_replace('/[^\w]/i', '_', $id)); 282 }TaggedWithTest.php git://github.com/drupal/drupal.git | PHP | 281 lines
1<?php 2 155 $view1['label'] = $this->randomMachineName(16); 156 $view1['id'] = strtolower($this->randomMachineName(16)); 157 $view1['description'] = $this->randomMachineName(16); 178 $view2['label'] = $this->randomMachineName(16); 179 $view2['id'] = strtolower($this->randomMachineName(16)); 180 $view2['description'] = $this->randomMachineName(16);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);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 makeUserXMLParser.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 416 lines
1<?php 2 3/** 4 * @file UserXMLParser.inc.php 5 * 15 16// $Id: UserXMLParser.inc.php,v 1.22 2009/05/13 00:14:46 asmecher Exp $ 17 75 // Usernames must be lowercase 76 $newUser->setUsername(strtolower($attrib->getValue())); 77 break;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*pm2checkout.php https://github.com/chrish123/oscommerce2.git | PHP | 233 lines
1<?php 2/* 121 122 switch (strtolower($lang['code'])) { 123 case 'es':OracleSchemaManager.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 286 lines
1<?php 2/* 18 * and is licensed under the MIT license. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 26 * 27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 28 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 71 72 $keyName = strtolower($tableIndex['name']); 73 73 74 if ( strtolower($tableIndex['is_primary']) == "p" ) { 75 $keyName = 'primary'; 92 93 $dbType = strtolower($tableColumn['data_type']); 94 if(strpos($dbType, "timestamp(") === 0) {slideshow.php https://gitlab.com/relacilia/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>AbstractTableGateway.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 488 lines
1<?php 2/** 433 { 434 switch (strtolower($property)) { 435 case 'lastinsertvalue':AbstractCommand.php https://gitlab.com/alexandresgv/siteentec | 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';Sqlite.php https://github.com/marbemac/limelight-music.git | PHP | 320 lines
1<?php 2/* 2/* 3 * $Id: Sqlite.php 5259 2008-12-03 23:21:48Z jwage $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 24 * @subpackage DataDict 25 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 26 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @version $Revision: 5259 $ 29 * @link www.phpdoctrine.org 30 * @since 1.0 138 139 $dbType = strtolower($field['type']); 140font_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)) {Inline.php https://github.com/bigcalm/urlcatcher.git | PHP | 415 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: YamlSfInline.class.php 9186 2008-05-22 15:19:18Z FabianLange $ 18 */ 21 /** 22 * Load YAML into a PHP array. 23 * 25 * 26 * @return array PHP array 27 */ 48 /** 49 * Dumps PHP array to YAML. 50 * 50 * 51 * @param mixed PHP 52 *ARC2_Reader.php https://github.com/ntulip/tattler.git | PHP | 289 lines
1<?php 2/* 121 $mappings = array('file' => 'File', 'http' => 'HTTP', 'https' => 'HTTP'); 122 if ($scheme = $this->v(strtolower($parts['scheme']), '', $mappings)) { 123 return $this->m('get' . $scheme . 'Socket', $url, $this->getDataStream('')); 191 elseif (preg_match('/^([^\:]+)\:\s*(.*)$/', $line, $m)) {/* header */ 192 $h[strtolower($m[1])] = trim($m[2]); 193 } 194 } while(!feof($s) && $line); 195 $h['format'] = strtolower(preg_replace('/^([^\s]+).*$/', '\\1', $this->v('content-type', '', $h))); 196 $h['encoding'] = preg_match('/(utf\-8|iso\-8859\-1|us\-ascii)/', $this->v('content-type', '', $h), $m) ? strtoupper($m[1]) : '';user.php https://bitbucket.org/gnomeontherun/square-one.git | PHP | 482 lines
1<?php 2/** 306 { 307 $this->setError(JText::sprintf('JLIB_DATABASE_ERROR_STORE_FAILED', strtolower(get_class($this)), $this->_db->getErrorMsg())); 308 return false;BuilderConfiguration.php https://github.com/pmjones/php-framework-benchmarks.git | PHP | 396 lines
1<?php 2 140 foreach ($parameters as $key => $value) { 141 $this->parameters[strtolower($key)] = $value; 142 } 179 { 180 return array_key_exists(strtolower($name), $this->parameters); 181 } 197 198 return $this->parameters[strtolower($name)]; 199 } 210 { 211 $this->parameters[strtolower($name)] = $value; 212MineBlock.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":Response.php https://gitlab.com/reasonat/test8 | 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)) {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 );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 */json.php https://bitbucket.org/dkrzos/phc.git | PHP | 275 lines
1<?php 2/** 2/** 3* REST Application Programming Interface PHP class for the WordPress plugin NextGEN Gallery 4* Should emulate some kind of Flickr JSON callback : ?callback=json&format=json&api_key=1234567890&method=search&term=myterm 8* 9* @require PHP 5.2.0 or higher 10* 57 if ( !function_exists('json_encode') ) 58 wp_die('Json_encode not available. You need to use PHP 5.2'); 59 60 // Read the parameter on init 61 $this->format = isset($_GET['format']) ? strtolower( $_GET['format'] ) : false; 62 $this->api_key = isset($_GET['api_key'])? $_GET['api_key'] : false; 62 $this->api_key = isset($_GET['api_key'])? $_GET['api_key'] : false; 63 $this->method = isset($_GET['method']) ? strtolower( $_GET['method'] ) : false; 64 $this->term = isset($_GET['term']) ? urldecode( $_GET['term'] ) : false;Mssql.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 423 lines
1<?php 2/** 26 */ 27// require_once 'Zend/Db/Adapter/Pdo/Abstract.php'; 28 93 $seperator = ':'; 94 if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { 95 $seperator = ','; 101 // this driver supports multiple DSN prefixes 102 // @see http://www.php.net/manual/en/ref.pdo-dblib.connection.php 103 if (isset($dsn['pdoType'])) { 103 if (isset($dsn['pdoType'])) { 104 switch (strtolower($dsn['pdoType'])) { 105 case 'freetds': 321 /** @see Zend_Db_Adapter_Exception */ 322 // require_once 'Zend/Db/Adapter/Exception.php'; 323 throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");enrol.php https://github.com/cwaclawik/moodle.git | PHP | 326 lines
1<?php 2// The following flags are set in the configuration 7 8require_once($CFG->libdir.'/eventslib.php'); 9 128 129 $fields[0] = trim(strtolower($fields[0])); 130 $fields[1] = trim(strtolower($fields[1])); 218 $a->coursename = "$course->fullname"; 219 $a->profileurl = "$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id"; 220AbstractFtpAdapter.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 631 lines
1<?php 2 312 { 313 $this->systemType = strtolower($systemType); 314Form.php https://bitbucket.org/gencer/symfony.git | PHP | 476 lines
1<?php 2 134 /** 135 * Gets the field values as PHP. 136 * 137 * This method converts fields with the array notation 138 * (like foo[bar] to arrays) like PHP does. 139 * 143 */ 144 public function getPhpValues() 145 { 159 /** 160 * Gets the file field values as PHP. 161 * 162 * This method converts fields with the array notation 163 * (like foo[bar] to arrays) like PHP does. 164 *Factory.php https://gitlab.com/yasminmostfa/thomas-site | PHP | 233 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 8 * 9 * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>, 10 * Bertrand Mansion <golgote@mamasam.com> 38 * @package HTML_QuickForm2 39 * @author Alexey Borzov <avb@php.net> 40 * @author Bertrand Mansion <golgote@mamasam.com> 40 * @author Bertrand Mansion <golgote@mamasam.com> 41 * @license http://opensource.org/licenses/bsd-license.php New BSD License 42 * @version SVN: $Id: Factory.php 299305 2010-05-12 20:15:28Z avb $ 42 * @version SVN: $Id: Factory.php 299305 2010-05-12 20:15:28Z avb $ 43 * @link http://pear.php.net/package/HTML_QuickForm2 44 */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 }filter.php https://bitbucket.org/moodle/moodle.git | PHP | 235 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 118 } else if (preg_match('/<(a|video|audio)\s[^>]*/', $tag, $tagmatches) && $sizeofmatches > 1 && 119 (empty($validtag) || $tagname === strtolower($tagmatches[1]))) { 120 // Looking for a starting tag. Ignore tags embedded into each other. 121 $validtag = $tag; 122 $tagname = strtolower($tagmatches[1]); 123 } else {canonical.php https://github.com/holsinger/openfloor.git | PHP | 339 lines
1<?php 2/** 55 56 // Some PHP setups turn requests for / into /index.php in REQUEST_URI 57 // See: http://trac.wordpress.org/ticket/5017 170 171 $paged_redirect['path'] = user_trailingslashit( preg_replace('|/index.php/?$|', '/', $paged_redirect['path']) ); // strip off trailing /index.php/ 172 if ( !empty( $addl_path ) && $wp_rewrite->using_index_permalinks() && strpos($paged_redirect['path'], '/index.php/') === false ) 172 if ( !empty( $addl_path ) && $wp_rewrite->using_index_permalinks() && strpos($paged_redirect['path'], '/index.php/') === false ) 173 $paged_redirect['path'] = trailingslashit($paged_redirect['path']) . 'index.php/'; 174 if ( !empty( $addl_path ) ) 206 207 // trailing /index.php 208 $redirect['path'] = preg_replace('|/index.php/*?$|', '/', $redirect['path']); 253 if ( strtolower($original['host']) == strtolower($redirect['host']) || 254 ( strtolower($original['host']) != 'www.' . strtolower($redirect['host']) && 'www.' . strtolower($original['host']) != strtolower($redirect['host']) ) ) 255 $redirect['host'] = $original['host'];date.php https://github.com/2bj/kohana-core.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 8 * @copyright (c) 2007-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 186 $hour = (int) $hour; 187 $ampm = strtolower($ampm); 188 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringArenaListener.php https://gitlab.com/Skull3x/BlockHunt | 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 ();GraphvizDumper.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 302 lines
1<?php 2 280 { 281 return strtolower(preg_replace('/\W/i', '_', $id)); 282 }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. 197FireCake.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']) {index.php https://github.com/yabba/openx.git | PHP | 341 lines
124<a href="index.phps">Index Source Code</a> | 125<a href="phpSniff.core.phps">phpSniff.core Source Code</a> | 126<a href="phpSniff.class.phps">phpSniff.class Source Code</a> | 133 <font color="#ffffff" size="-1"> 134 <?php printf('phpSniff version : %s - php version : %s</font>',$client->_version, PHP_VERSION); ?> 135 </font> 208 <td bgcolor="<?php print $c1_bg; ?>">letter_ver</td> 209 <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('letter_ver');?></td> 210 </tr> 233 <td bgcolor="<?php print $c1_bg; ?>">ip</td> 234 <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('ip');?></td> 235 </tr> 241 <td bgcolor="<?php print $c1_bg; ?>">gecko</td> 242 <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('gecko');?></td> 243 </tr>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');Encoder.php https://github.com/Exercise/zf2.git | PHP | 309 lines
1<?php 2/** 96 } else if (preg_match('/^([a-z0-9;-]+)(:[:<]?\s*)([^:<]*)$/i', $line, $matches)) { 97 $name = strtolower($matches[1]); 98 $type = trim($matches[2]); 265 if (isset($this->_options['wrap']) && strlen($attribute) > $this->_options['wrap']) { 266 $attribute = trim(chunk_split($attribute, $this->_options['wrap'], PHP_EOL . ' ')); 267 } 267 } 268 $output .= $attribute . PHP_EOL; 269 } 269 } 270 return trim($output, PHP_EOL); 271 } 286 && array_key_exists('objectclass', $attributes)) { 287 $string .= sprintf('version: %d', $this->_options['version']) . PHP_EOL; 288 $this->_versionWritten = true;behat_core_question.php https://bitbucket.org/moodle/moodle.git | PHP | 217 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 16 17// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. 18 18 19require_once(__DIR__ . '/behat_question_base.php'); 20 45 protected function resolve_page_url(string $page): moodle_url { 46 switch (strtolower($page)) { 47 default: 68 protected function resolve_page_instance_url(string $type, string $identifier): moodle_url { 69 switch (strtolower($type)) { 70 case 'course question bank': 70 case 'course question bank': 71 return new moodle_url('/question/edit.php', 72 ['courseid' => $this->get_course_id($identifier)]);ControllerModel.php https://gitlab.com/gideonmarked/yovelife | PHP | 394 lines
1<?php namespace RainLab\Builder\Classes; 2 91 92 if ($fileInfo->getExtension() !== 'php') { 93 continue; 95 96 $result[] = $fileInfo->getBasename('.php'); 97 } 188 if (!$controllerFilesDirectory) { 189 return $controllersDirectoryPath.'/'.$this->controller.'.php'; 190 } 191 192 return $controllersDirectoryPath.'/'.strtolower($this->controller); 193 } 203 foreach ($controllers as $controler) { 204 $controllerPath = strtolower(basename($controler)); 205Mysql.php https://github.com/btweedy/foresmo.git | PHP | 464 lines
1<?php 2/** 9 * 10 * @author Paul M. Jones <pmjones@solarphp.com> 11 * 11 * 12 * @license http://opensource.org/licenses/bsd-license.php BSD 13 * 13 * 14 * @version $Id: Mysql.php 3988 2009-09-04 13:51:51Z pmjones $ 15 * 214 // override $type to find tinyint(1) as boolean 215 if (strtolower($val['type']) == 'tinyint(1)') { 216 $type = 'bool'; 298 * 299 * Given a native column SQL default value, finds a PHP literal value. 300 *Pgsql.php https://github.com/icz/OpenPNE3.git | PHP | 282 lines
1<?php 2/* 2/* 3 * $Id: Pgsql.php 6132 2009-07-20 19:30:18Z jwage $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 24 * @subpackage Import 25 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 26 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 29 * @version $Revision: 6132 $ 30 * @link www.phpdoctrine.org 31 * @since 1.0 171 172 if (strtolower($val['type']) === 'varchar') { 173 // get length from varchar definitionProfiler.php https://gitlab.com/yasminmostfa/thomas-site | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 258 if (null === $queryType) { 259 switch (strtolower(substr(ltrim($queryText), 0, 6))) { 260 case 'insert': 280 */ 281 // require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 308 */ 309 // require_once 'Zend/Db/Profiler/Exception.php'; 310 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 319 */ 320 // require_once 'Zend/Db/Profiler/Exception.php'; 321 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");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