100+ results results for 'php strtolower repo:HabariMag/habarimag-old' (236 ms)
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 */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;kfmDirectory.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 364 lines
1<?php 2class kfmDirectory extends kfmObject{ 54 if(($ban[0]=='/' || $ban[0]=='@')&&preg_match($ban,$file))return false; 55 elseif($ban==strtolower(trim($file)))return false; 56 } 60 if(preg_match($allow, $file))return true; 61 }else if($allow==strtolower($file)) return true; 62 }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( );sfWidget.class.php https://github.com/openpne/OpenPNE3.git | PHP | 411 lines
1<?php 2 334 335 return sprintf('<%s%s%s', $tag, $this->attributesToHtml($attributes), self::$xhtml ? ' />' : (strtolower($tag) == 'input' ? '>' : sprintf('></%s>', $tag))); 336 }Common.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 519 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 8 * 9 * LICENSE: This source file is subject to version 3.01 of the PHP license 10 * that is available through the world-wide-web at the following URI: 11 * http://www.php.net/license/3_01.txt If you did not receive a copy of 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 18 * @copyright 2001-2009 The PHP Group 19 * @license http://www.php.net/license/3_01.txt PHP License 3.01 20 * @version CVS: $Id: Common.php 137 2009-11-09 13:24:37Z vanpouckesven $ 176 { 177 $key = strtolower($key); 178 } 195 { 196 $arrAttr[strtolower(trim($name))] = strtolower(trim($name)); 197 }missing-php-functions.php https://bitbucket.org/lpservice-it/ljmc.git | PHP | 305 lines
1<?php 2 4if ( !function_exists('json_decode') ){ 5 include_once ICL_PLUGIN_PATH . '/lib/JSON.php'; 6 function json_decode($data, $bool) { 30 while ( ( $plugin = readdir( $dh ) ) !== false ) { 31 if ( substr( $plugin, -4 ) == '.php' ) 32 $mu_plugins[] = LJMCMU_PLUGIN_DIR . '/' . $plugin; 47The function accepts to same string of format accepts for the 48original function of the PHP. 49 51 52The function is tested using PHP 5.1.4 in Windows XP 53and Apache WebServer. 166 167 return ( isset( $_SERVER[ 'HTTP_X_REQUESTED_WITH' ] ) && mb_strtolower( $_SERVER[ 'HTTP_X_REQUESTED_WITH' ] ) == 'xmlhttprequest' ) ? true : false; 168 }mkdist.php git://pkgs.fedoraproject.org/php | PHP | 549 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 */ApiGeneratorController.php https://bitbucket.org/walshd/server-healthapp-cms.git | PHP | 336 lines
1<?php namespace AhmadFatoni\ApiGenerator\Controllers; 2 79 80 $this->files->put(__DIR__ . $this->path . $data['controllername'].'Controller.php', $this->compile($data)); 81 81 82 $this->files->put(__DIR__ . '/'.'../routes.php', $this->compileRoute($data)); 83 98 99 if( ! file_exists($fileLocation.'Controller.php') ){ 100 105 106 if( strpos( strtolower($name), 'apigenerator' ) === false){ 107 $data = []; 109 //generate new route 110 $this->files->put(__DIR__ . '/'.'../routes.php', $this->compileRoute($data)); 111SfObjectBuilder.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 393 lines
2 3require_once 'propel/engine/builder/om/php5/PHP5ObjectBuilder.php'; 4 31 // remove all inline includes: object classes include the peers 32 $objectCode = preg_replace("/include_once\s*.*Base.*Peer\.php.*\s*/", "", $objectCode); 33 } 165 { 166 if (("true" === strtolower($col->getAttribute('isCulture')))) 167 { 167 { 168 $culture = $col->getPhpName(); 169 $culture_peername = PeerBuilder::getColumnName($col, $className); 371 { 372 $behavior_file_name = 'Base'.$this->getTable()->getPhpName().'Behaviors'; 373 $behavior_file_path = ClassTools::getFilePath($this->getStubObjectBuilder()->getPackage().'.om', $behavior_file_name);PlatformRepository.php git://github.com/composer/composer.git | PHP | 365 lines
96 97 $php = new CompletePackage('php', $version, $prettyVersion); 98 $php->setDescription('The PHP interpreter'); 107 if (defined('PHP_ZTS') && PHP_ZTS) { 108 $phpzts = new CompletePackage('php-zts', $version, $prettyVersion); 109 $phpzts->setDescription('The PHP interpreter, with Zend Thread Safety'); 114 $php64 = new CompletePackage('php-64bit', $version, $prettyVersion); 115 $php64->setDescription('The PHP interpreter, 64bit'); 116 $this->addPackage($php64); 122 $phpIpv6 = new CompletePackage('php-ipv6', $version, $prettyVersion); 123 $phpIpv6->setDescription('The PHP interpreter, with IPv6 support'); 124 $this->addPackage($phpIpv6); 302 // Skip if PHP is overridden and we are adding a php-* package 303 if (isset($this->overrides['php']) && 0 === strpos($package->getName(), 'php-')) { 304 $overrider = $this->addOverriddenPackage($this->overrides['php'], $package->getPrettyName());FormatJsonTest.php https://bitbucket.org/andersus/querytalogo.git | 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;SideEffectsSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 281 lines
34 * 35 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 36 * @param int $stackPtr The position of the current token in 40 */ 41 public function process(File $phpcsFile, $stackPtr) 42 { 43 $tokens = $phpcsFile->getTokens(); 44 $result = $this->searchForConflict($phpcsFile, 0, ($phpcsFile->numTokens - 1), $tokens); 45 70 * 71 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 72 * @param int $start The token to start searching from. 107 do { 108 $i = $phpcsFile->findNext(T_PHPCS_ENABLE, ($i + 1)); 109 } while ($i !== falseurls.php git://github.com/concrete5/concrete5.git | PHP | 189 lines
1<?php 2namespace Concrete\Controller\SinglePage\Dashboard\System\Seo; 126 !( 127 strpos(strtolower($this->post('canonical_url')), 'http://') === 0 || 128 strpos(strtolower($this->post('canonical_url')), 'https://') === 0 133 !( 134 strpos(strtolower($this->post('canonical_url_alternative')), 'http://') === 0 || 135 strpos(strtolower($this->post('canonical_url_alternative')), 'https://') === 0Model.php git://github.com/forkcms/forkcms.git | PHP | 349 lines
1<?php 2 131 if (!$uppercaseAllowed) { 132 $pass = mb_strtolower($pass); 133 }OracleSchemaManager.php https://github.com/doctrine/dbal.git | PHP | 343 lines
1<?php 2 15use function strpos; 16use function strtolower; 17use function trim; 68 69 $keyName = strtolower($tableIndex['name']); 70 $buffer = []; 95 96 $dbType = strtolower($tableColumn['data_type']); 97 if (strpos($dbType, 'timestamp(') === 0) {PageCacheTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 250 lines
1<?php 2 159 $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'MISS', 'Page was not cached.'); 160 $this->assertEqual(strtolower($this->drupalGetHeader('Vary')), 'cookie,accept-encoding', 'Vary header was sent.'); 161 // Symfony's Response logic determines a specific order for the subvalues 170 $this->assertEqual($this->drupalGetHeader('X-Drupal-Cache'), 'HIT', 'Page was cached.'); 171 $this->assertEqual(strtolower($this->drupalGetHeader('Vary')), 'cookie,accept-encoding', 'Vary: Cookie header was sent.'); 172 $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'max-age=300, public', 'Cache-Control header was sent.'); 179 $this->drupalGet('system-test/set-header', array('query' => array('name' => 'Vary', 'value' => 'User-Agent'))); 180 $this->assertEqual(strtolower($this->drupalGetHeader('Vary')), 'user-agent,accept-encoding', 'Default header was replaced.'); 181 186 $this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Caching was bypassed.'); 187 $this->assertTrue(strpos(strtolower($this->drupalGetHeader('Vary')), 'cookie') === FALSE, 'Vary: Cookie header was not sent.'); 188 $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, post-check=0, pre-check=0, private', 'Cache-Control header was sent.'); 205 * 206 * The test should pass even if zlib.output_compression is enabled in php.ini, 207 * .htaccess or similar, or if compression is done outside PHP, e.g. by theKurogoSite.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 319 lines
1<?php 2 49 //trim all slashes 50 $urlBase = trim(strtolower($config['urlBase']),'/'); 51 if (strlen($urlBase)>0 && !preg_match("#^[a-z0-9_/.-]+$#i", $urlBase)) {Excel2007.php https://PHPExcel.svn.codeplex.com/svn | PHP | 398 lines
61/** PHPExcel_Writer_Excel2007_Theme */ 62require_once 'PHPExcel/Writer/Excel2007/Theme.php'; 63 81 * @package PHPExcel_Writer 82 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 83 */ 165 // Set property PHPExcel 166 $this->setPHPExcel($pPHPExcel); 167 } else { 314 * 315 * @param PHPExcel $pPHPExcel PHPExcel object 316 * @throws Exception 318 public function setPHPExcel($pPHPExcel = null) { 319 if ($pPHPExcel instanceof PHPExcel) { 320 $this->_spreadSheet = $pPHPExcel;Common.php git://github.com/davidcoallier/Services_Capsule.git | PHP | 296 lines
1<?php 2/** 35 * 36 * PHP version 5 37 * 41 * @copyright echolibre ltd. 2009-2010 42 * @license http://www.opensource.org/licenses/bsd-license.php The BSD License 43 * @link http://github.com/davidcoallier/Services_Capsule 52 * @author David Coallier <david@echolibre.com> 53 * @license http://www.opensource.org/licenses/bsd-license.php The BSD License 54 * @link http://github.com/davidcoallier/Services_Capsule 114 { 115 $section = ucwords(strtolower($section)); 116 126 127 $currentModule = ucfirst(strtolower($this->moduleName)); 128Mssql.php https://github.com/ascorbic/doctrine-tracker.git | PHP | 266 lines
1<?php 2/* 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 * @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$ 30 * @version $Revision$ 31 * @link www.phpdoctrine.org 32 * @since 1.0 125 { 126 $db_type = preg_replace('/[\d\(\)]/','', strtolower($field['type']) ); 127 $length = (isset($field['length']) && $field['length'] > 0) ? $field['length'] : null;anekdotru.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 393 lines
1<?php 2// 12 13include("config.php"); 14 65 // get extension of the source file 66 $fileType = strtolower(substr($mimetype, strlen($mimetype)-3)); 67 212 213 $fileType = strtolower(substr($sourcefile, strlen($sourcefile)-3)); 214 311 312 switch(strtolower($path["extension"])){ 313 case "pjpeg": 349 350 //echo "\n ..strtolower(path[extension]):".strtolower($path["extension"]); 351 switch(strtolower($path["extension"])){class.baseobject.php https://code.google.com/p/movabletype/ | PHP | 388 lines
1<?php 2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd. 5# 6# $Id: class.baseobject.php 5325 2010-02-23 10:44:56Z takayama $ 7 10 */ 11require_once('adodb.inc.php'); 12require_once('adodb-active-record.inc.php'); 12require_once('adodb-active-record.inc.php'); 13require_once('adodb-exceptions.inc.php'); 14 124 $type = $joins[$key]['type']; 125 $join .= ' ' . strtolower($type) . ' JOIN ' . $table . ' ON ' . $cond; 126 } 201 } 202 $cls = strtolower(get_class($this)); 203 $meta_info = BaseObject::get_meta_info($cls);StandardSearchIndexer.php https://bitbucket.org/saltwaterdev/agilyx.com.git | PHP | 285 lines
1<?php 2namespace Concrete\Core\Attribute\Key\SearchIndexer; 259 $col = $this->getIndexEntryColumn($value->getAttributeKey(), $valueKey); 260 if (isset($columns[strtolower($col)])) { 261 $columnValues[$col] = $valueValue; 265 $col = $this->getIndexEntryColumn($value->getAttributeKey()); 266 if (isset($columns[strtolower($col)])) { 267 $columnValues[$col] = $attributeValue;Language.php git://github.com/thorsten/phpMyFAQ.git | PHP | 377 lines
17 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 18 * @link http://www.phpmyfaq.de 19 * @since 2009-05-14 35 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 36 * @link http://www.phpmyfaq.de 37 * @since 2009-05-14 132 133 // Get language from: _POST, _GET, _COOKIE, phpMyFAQ configuration and the automatic language detection 134 $_lang['post'] = PMF_Filter::filterInput(INPUT_POST, 'language', FILTER_SANITIZE_STRING); 283 if ($fileLanguageValue) { 284 $output .= "\t<option value=\"language_" . strtolower($lang) . ".php\""; 285 } else { 293 if ($fileLanguageValue) { 294 $output .= "\t<option value=\"language_" . strtolower($key) . ".php\""; 295 } else {db_oracle.inc git://pkgs.fedoraproject.org/ser | PHP | 434 lines
1<?php 2/* 2/* 3 * Oracle accessor based on Session Management for PHP3 4 * 14 var $Remote = 1; 15 /* Due to a strange error with Oracle 8.0.5, Apache and PHP3.0.6 16 you don't need to set the ENV - on my system Apache 111 112 /* No empty queries, please, since PHP4 chokes on them. */ 113 if ($Query_String == "") 177 for($ix=0;$ix<ora_numcols($this->Query_ID);$ix++) { 178 $col=strtolower(ora_columnname($this->Query_ID,$ix)); 179 $value=ora_getcolumn($this->Query_ID,$ix); 190 ## Perhaps I make a own implementation, but my 191 ## opinion is, that this should be done by PHP3 192 function seek($pos) {SP_Uri.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 280 lines
1<?php 2 18 19 @include(APPBASE.'Config/routes.php'); 20 $this->routes = ( ! isset($ROUTE) OR ! is_array($ROUTE)) ? array() : $ROUTE; 22 23 $this->default_controller = ( ! isset($this->routes['default_controller']) OR $this->routes['default_controller'] == '') ? FALSE : strtolower($this->routes['default_controller']); 24 30 31 if(!file_exists(APPBASE.'Controllers/'.$this->default_controller.'.php')){ 32 showError(__T('Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.')); 171 $strlen = strlen(_getScriptPath()); 172 $totallen = strlen($_SERVER['PHP_SELF']); 173 return substr($_SERVER['PHP_SELF'],$strlen,$totallen);DatabasePeopleRetriever.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 280 lines
1<?php 2 265 public function getId() { 266 return $this->getField(strtolower($this->fieldMap['userid'])); 267 } 271 if (strlen($value)>0) { 272 $this->setField(strtolower($field), $value); 273 }Container.php git://github.com/eryx/php-framework-benchmark.git | PHP | 459 lines
1<?php 2 188 189 $id = strtolower($id); 190 212 { 213 $id = strtolower($id); 214 236 { 237 $id = strtolower($id); 238 456 { 457 return strtolower(preg_replace(array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\d])([A-Z])/'), array('\\1_\\2', '\\1_\\2'), strtr($id, '_', '.'))); 458 }StorageEngine.class.php git://github.com/jyr/MNPP.git | PHP | 425 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;server.php http://arronwork.googlecode.com/svn/trunk/ | PHP | 429 lines
1#!/usr/bin/env php 2<?php 5$SOAR_DIR="../../../../.."; 6include "$SOAR_DIR/common/php/soar/soar.inc"; 7 108 109 $request=strtolower($request); 110 foreach(self::$cmd_map as $arr) 137 } 138 $cmd=strtolower($cmd); 139 //printf("cmd(%s)\n", $cmd);Profiler.php http://grupal.googlecode.com/svn/trunk/ | PHP | 474 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 25126 2012-11-16 15:16:11Z 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.");field.checkbox.php https://github.com/bauhouse/sym-designprojectx.git | PHP | 476 lines
1<?php 2 192 // then the field has 'no value' in the context of being required. RE: #1569 193 $has_no_value = ($has_no_value === false) ? !in_array(strtolower($data), array('on', 'yes')) : true; 194 208 return array( 209 'value' => (strtolower($data) === 'yes' || strtolower($data) == 'on' || $data === true ? 'yes' : 'no') 210 );mkdist.php http://php52-backports.googlecode.com/svn/trunk/ | PHP | 421 lines
14 15$dist_dir = $build_dir . "/php-" . phpversion(); 16$pecl_dir = $build_dir . "/pecl-" . phpversion(); 206 $phppdb = str_replace(".dll", ".pdb", $phpdll); 207 copy("$build_dir/$phppdb", "$dist_dir/dev/$phppdb"); 208} 221 "NEWS" => "news.txt", 222 "php.ini-dist" => "php.ini-dist", 223 "php.ini-recommended" => "php.ini-recommended", 234$general_files = array( 235 "php.gif" => "php.gif", 236); 367 368 /* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar) 369 * broken out of the tarballs */BaseCpdocaju.php https://github.com/cidesa/roraima.git | PHP | 536 lines
1<?php 2 163 $prefijo = substr($m,0,3); 164 $metodo = strtolower(substr($m,3)); 165 if($prefijo=='get'){ 300 301 public function getByName($name, $type = BasePeer::TYPE_PHPNAME) 302 { 331 332 public function toArray($keyType = BasePeer::TYPE_PHPNAME) 333 { 345 346 public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) 347 { 373 374 public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) 375 {settings.php https://bitbucket.org/pblazhuk/beanera.git | PHP | 347 lines
1<?php 2 82 foreach ( $modules as $key => $class ) { 83 $key = is_numeric( $key ) ? strtolower( str_replace( 'PLL_Settings_', '', $class ) ) : $key; 84 $this->modules[ $key ] = new $class( $this ); 93 public function add_menus() { 94 add_submenu_page( 'admin.php', $title = __( 'Languages', 'polylang' ), $title, 'manage_options', 'mlang', array( $this, 'languages_page' ) ); 95 } 102 public function metabox_about() { 103 include( PLL_SETTINGS_INC.'/view-about.php' ); 104 } 172 // attempts to install the language pack 173 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 174 if ( ! wp_download_language_pack( $_POST['locale'] ) ) { 296 // displays the page 297 include( PLL_SETTINGS_INC.'/view-languages.php' ); 298 }DocumentoDataGridGen.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 362 lines
1<?php 2 /** 155 $strName = QConvertNotation::WordsFromCamelCase($objNode->_PropertyName); 156 if (strtolower(substr($strName, strlen($strName) - 3)) == ' id') 157 $strName = substr($strName, 0, strlen($strName) - 3);FieldCrudTest.php git://github.com/drupal/drupal.git | PHP | 344 lines
1<?php 2 44 $this->fieldStorageDefinition = [ 45 'field_name' => mb_strtolower($this->randomMachineName()), 46 'entity_type' => 'entity_test', 200 public function testCreateFieldCustomStorage() { 201 $field_name = mb_strtolower($this->randomMachineName()); 202 \Drupal::state()->set('field_test_custom_storage', $field_name);DatabaseDriverTest.php https://github.com/doctrine/doctrine2.git | PHP | 239 lines
1<?php 2 17use function count; 18use function strtolower; 19 79 self::assertEquals('id', $metadata->fieldMappings['id']['fieldName']); 80 self::assertEquals('id', strtolower($metadata->fieldMappings['id']['columnName'])); 81 self::assertEquals('integer', (string) $metadata->fieldMappings['id']['type']); 84 self::assertEquals('bar', $metadata->fieldMappings['bar']['fieldName']); 85 self::assertEquals('bar', strtolower($metadata->fieldMappings['bar']['columnName'])); 86 self::assertEquals('string', (string) $metadata->fieldMappings['bar']['type']); 197 self::assertEquals('id', $metadata->fieldMappings['id']['fieldName']); 198 self::assertEquals('id', strtolower($metadata->fieldMappings['id']['columnName'])); 199 self::assertEquals('integer', (string) $metadata->fieldMappings['id']['type']);dataform.php http://rapyd-framework.googlecode.com/svn/trunk/ | PHP | 476 lines
1<?php 2 89 //load and instance field 90 $field_file = strtolower($field["type"]); 91 $field_class = $field_file . '_field'; 128 * set css style 129 * @todo search online for a better way to work with html/css for example using a dom-api like phpquery 130 * @param string $styletimer.class.php http://domuslink.googlecode.com/svn/trunk/ | PHP | 498 lines
1<?php 2/* 2/* 3 * domus.Link :: PHP Web-based frontend for Heyu (X10 Home Automation) 4 * Copyright (c) 2007, Istvan Hubay Cebrian (istvan.cebrian@domus.link.co.pt) 20 */ 21require_once(CLASS_FILE_LOCATION."scheduleelement.class.php"); 22require_once(CLASS_FILE_LOCATION."heyusched.const.php"); 45 $this->timerOptions = array(); 46 if(strtolower(trim($this->getType())) == TIMER_D) { 47 $this->parseTimerLine($this->getElementLine()); 301 // Need to determine if we have a time (hh:mm), dawn/dusk with opt +/-mins, now with opt +mins, and security flag 302 $checkTime = rtrim(ltrim(strtolower($args[0]))); 303 451 function parseOptions($theType, $theTime) { 452 $theType = strtolower(rtrim(ltrim($theType))); 453 $theTime = rtrim(ltrim($theTime));BootstrapHelper.php git://github.com/loadsys/twitter-bootstrap-helper.git | PHP | 249 lines
1<?php 2 139 } 140 if (strtolower($style) === "auth") { 141 $style = "error";SearchController.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 417 lines
1<?php 2 4 5namespace PhpMyAdmin\Controllers\Table; 6 6 7use PhpMyAdmin\Core; 8use PhpMyAdmin\DatabaseInterface; 8use PhpMyAdmin\DatabaseInterface; 9use PhpMyAdmin\DbTableExists; 10use PhpMyAdmin\Operations; 10use PhpMyAdmin\Operations; 11use PhpMyAdmin\Relation; 12use PhpMyAdmin\RelationCleanup; 12use PhpMyAdmin\RelationCleanup; 13use PhpMyAdmin\ResponseRenderer; 14use PhpMyAdmin\Sql;SectionCorp.php https://code.google.com/p/yapeal/ | PHP | 364 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 6 * 7 * LICENSE: This file is part of Yet Another Php Eve Api library also know 8 * as Yapeal which will be used to refer to it in the rest of this license. 41 $mess = basename(__FILE__) 42 . ' must be included it can not be ran directly.' . PHP_EOL; 43 if (PHP_SAPI != 'cli') { 60 public function __construct() { 61 $this->section = strtolower(str_replace('Section', '', __CLASS__)); 62 parent::__construct(); 64 /** 65 * Function called by Yapeal.php to start section pulling XML from servers. 66 *ext_skel.php https://github.com/php/php-src.git | PHP | 414 lines
47 48 php ext_skel.php --ext extension_name 49 95 96 php ext_skel.php --ext <name> [--experimental] [--author <name>] 97 [--dir <path>] [--std] [--onlyunix] 143 printf('cd %s%s%s', $options['dir'], $options['ext'], PHP_EOL); 144 printf('phpize%s', PHP_EOL); 145 printf('%sconfigure%s', $file_prefix, PHP_EOL); 148 printf('%smake test%2$s%2$s', $make_prefix, PHP_EOL); 149 printf('Thank you for using PHP!%s', PHP_EOL); 150} 325 'skeleton.stub.php' => $options['ext'] . '.stub.php', 326 'php_skeleton.h' => 'php_' . $options['ext'] . '.h', 327 'skeleton_arginfo.h' => $options['ext'] . '_arginfo.h'sfValidatorFromDescription.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 388 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfValidatorFromDescription.class.php 9048 2008-05-19 09:11:23Z FabianLange $ 18 */ 36 /** 37 * Returns a PHP representation for the validator. 38 * 38 * 39 * This PHP representation can be evaled to return the object validator. 40 * 42 * 43 * @return string The PHP representation for the validator 44 */ 44 */ 45 public function asPhp() 46 {SwitchDeclarationSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 318 lines
1<?php 2/** 6 * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) 7 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 8 */ 41 * 42 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 43 * @param int $stackPtr The position of the current token in the 124 $padding = str_repeat(' ', ($caseAlignment + $this->indent - 1)); 125 $phpcsFile->fixer->addContentBefore($next, $phpcsFile->eolChar.$padding); 126 } else { 206 * 207 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 208 * @param int $stackPtr The position to start looking at. 233 * 234 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 235 * @param int $stackPtr The position to start looking at.Mbstring.php git://github.com/nicolas-grekas/Patchwork-UTF8.git | PHP | 337 lines
1<?php // vi: set fenc=utf-8 ts=4 sw=4 et: 2/* 10 11namespace Patchwork\PHP\Override; 12 13/** 14 * Partial mbstring implementation in PHP, iconv based, UTF-8 centric. 15 * 25 * - mb_strrpos - Find position of last occurrence of a string in a string 26 * - mb_strtolower - Make a string lowercase 27 * - mb_strtoupper - Make a string uppercase 65{ 66 const MB_CASE_FOLD = PHP_INT_MAX; 67 231 232 static function mb_strtolower($s, $encoding = INF) 233 {Data.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 459 lines
1<?php 2/** 2/** 3 * PhpMyAdmin\Server\Status\Data class 4 * Used by server_status_*.php pages 8 9namespace PhpMyAdmin\Server\Status; 10 10 11use PhpMyAdmin\ReplicationInfo; 12use PhpMyAdmin\Url; 15use function basename; 16use function mb_strtolower; 17use function str_contains; 24 * TODO: Use lazy initialisation for some of the properties 25 * since not all of the server_status_*.php pages need 26 * all the data that this class provides.db.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 438 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ?????????? (Build on ThinkPHP) 4// +---------------------------------------------------------------------- 405 406 $clean = preg_replace("/[^a-z0-9_\-\(\)#\*\/\"]+/is", "", strtolower($clean)); 407armory_data.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 290 lines
1<?php 2/** 9 * @license http://www.gnu.org/licenses/gpl.html Licensed under the GNU General Public License v3. 10 * @version SVN: $Id: armory_data.php 2394 2012-02-15 22:05:03Z ulminia@gmail.com $ 11 * @link http://www.wowroster.net 96 'class_id' => $classid, 97 'background' => strtolower($treedata['backgroundFile']), 98 'icon' => $treedata['icon'], 194 'class_id' => $i, 195 'background' => strtolower($treedata['backgroundFile']), 196 'icon' => $treedata['icon'],InstallUtilityTest.php https://bitbucket.org/followupcio/website.git | PHP | 365 lines
1<?php 2namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Utility; 37 /** 38 * @var \PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Extensionmanager\Utility\InstallUtility|\TYPO3\TestingFramework\Core\AccessibleObjectInterface 39 */ 108 { 109 $extKey = strtolower($this->getUniqueId('testing')); 110 $absExtPath = PATH_site . 'typo3temp/var/tests/' . $extKey;uploader.php https://bitbucket.org/jaayyy/country-lane-farms.git | PHP | 256 lines
1<?php 2 64 { 65 $this->fileExtension = strtolower($pathinfo['extension']); 66 $this->fileNameWithoutExt = $pathinfo['filename']; 123 124 if (!in_array(strtolower($ext), array_map('strtolower', $allowedExtensions))) 125 return false; 176 private function saveXhr($path) { 177 if (false !== file_put_contents($path, fopen('php://input', 'r'))) 178 return true; 244 if (array_key_exists('extension', $pathinfo)) 245 $this->fileExtension = strtolower($pathinfo['extension']); 246 }class.csstidy_print.php https://bitbucket.org/chamilo/chamilo/ | PHP | 350 lines
1<?php 2/** 23 * 24 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 25 * @package csstidy 168 case SEL_START: 169 if($this->parser->get_cfg('lowercase_s')) $token[1] = strtolower($token[1]); 170 $out .= ($token[1]{0} !== '@') ? $template[2].$this->_htmlsp($token[1], $plain) : $template[0].$this->_htmlsp($token[1], $plain); 175 if($this->parser->get_cfg('case_properties') == 2) $token[1] = strtoupper($token[1]); 176 if($this->parser->get_cfg('case_properties') == 1) $token[1] = strtolower($token[1]); 177 $out .= $template[4] . $this->_htmlsp($token[1], $plain) . ':' . $template[5];Template.php git://github.com/jeromeschneider/Baikal.git | PHP | 451 lines
1<?php 2 288 * implementation detail that has been introduced to optimize variable 289 * access for versions of PHP before 5.4. This is not a way to override 290 * the way to get a variable value. 403 404 $lcItem = strtolower($item); 405 if (isset(self::$cache[$class]['methods'][$lcItem])) {search.php git://pkgs.fedoraproject.org/axis2c | PHP | 386 lines
17 <li> 18 <form action="search.php" method="get"> 19 <table cellspacing="0" cellpadding="0" border="0"> 22 23<?php 24 78 // Fast string hashing 79 //$lword = strtolower($word); 80 //$l = strlen($lword); 327{ 328 if(strcmp('4.1.0', phpversion()) > 0) 329 { 329 { 330 die("Error: PHP version 4.1.0 or above required!"); 331 }OptionsFieldUITest.php git://github.com/drupal/drupal.git | PHP | 355 lines
1<?php 2 58 // Create content type, with underscores. 59 $this->typeName = 'test_' . strtolower($this->randomMachineName()); 60 $type = $this->drupalCreateContentType(['name' => $this->typeName, 'type' => $this->typeName]); 311 function testNodeDisplay() { 312 $this->fieldName = strtolower($this->randomMachineName()); 313 $this->createOptionsField('list_integer');FileHandlerController.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 140 lines
1<?php 2/** 38 $instance = $this->_getInstance($name); 39 require_once Plugin::classPath('Field') . 'Lib/class.upload.php'; 40 $uploader = new \upload($this->request->data['Filedata']); 44 $exts = array_map('trim', $exts); 45 $exts = array_map('strtolower', $exts); 46 46 47 if (!in_array(strtolower($uploader->file_src_name_ext), $exts)) { 48 $this->_error(__d('field', 'Invalid file extension.'), 501);Key.php https://code.google.com/p/s3db/ | PHP | 316 lines
11 * that is available through the world-wide-web at the following URI: 12 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 13 * the PHP License and are unable to obtain it through the web, please 13 * the PHP License and are unable to obtain it through the web, please 14 * send a note to license@php.net so we can mail you a copy immediately. 15 * 19 * @copyright 2005, 2006 Alexander Valyalkin 20 * @license http://www.php.net/license/3_0.txt PHP License 3.0 21 * @version 1.2.0b 89 * @copyright 2005, 2006 Alexander Valyalkin 90 * @license http://www.php.net/license/3_0.txt PHP License 3.0 91 * @link http://pear.php.net/package/Crypt_RSA 311 { 312 return (is_object($key) && strtolower(get_class($key)) === strtolower(__CLASS__)); 313 }func.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 272 lines
71 // Simple to emulate, really. 72 return mb_strpos(mb_strtolower($haystack), mb_strtolower($needle), $offset);'), 73 'stristr' => create_function('$haystack, $needle, $part = false', ' 78 // Pretty easy to emulate too. 79 return mb_strstr(mb_strtolower($haystack), mb_strtolower($needle), $part);'), 80 'strlen' => 'mb_strlen', 86 else 87 return mb_strrchr(mb_strtolower($haystack), mb_strtolower($needle), $part);'), 88 'strripos' => create_function('$haystack, $needle, $offset = 0', ' 91 else 92 return mb_strrpos(mb_strtolower($haystack), mb_strtolower($needle), $offset);'), 93 'strrpos' => 'mb_strrpos', 94 'strstr' => 'mb_strstr', 95 'strtolower' => 'mb_strtolower', 96 'strtoupper' => 'mb_strtoupper',ADMIN_Core_controller.php https://bitbucket.org/onebamboo/prode2018.git | PHP | 328 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 14 15 $this->class_name = strtolower(get_class($this)); 16 $this->data['class_name'] = $this->class_name; 202 $this->top_menu_data['current_method'] =$current_method; 203 $this->load->view("admin/common/inc.top.menu.actions.php", $this->top_menu_data); 204 }logs.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 336 lines
1<?php 2 24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0"; 25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op; 26 42 nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 ); 43 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 44 exit(); 124$lang_order_2 = array( 125 "lang" => strtolower ( $lang_module['log_lang'] ), // 126 "module" => strtolower ( $lang_module['moduleName'] ), // 126 "module" => strtolower ( $lang_module['moduleName'] ), // 127 "time" => strtolower ( $lang_module['log_time'] ) // 128); 141 $order[$key]['data'] = array( 142 "class" => "order" . strtolower ( $order[$key]['order'] ), // 143 "url" => $base_url . "&order_" . $key . "=" . $opposite_order[$order[$key]['order']], //MenusHelper.php git://github.com/croogo/croogo.git | PHP | 258 lines
1<?php 2 12 * @author Fahad Ibnay Heylaal <contact@fahad19.com> 13 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 14 * @link http://www.croogo.org 164 } 165 if (is_string($val) && in_array(strtolower($val), $booleans)) { 166 $options[$key] = (bool)$val;cache.php http://skygames.googlecode.com/svn/trunk/ | PHP | 520 lines
1<?php 2/* SVN FILE: $Id: cache.php 7847 2008-11-08 02:54:07Z renan.saddam $ */ 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 }InstantClientScript.php git://github.com/jakubkulhan/shopaholic.git | PHP | 327 lines
1<?php 2 10 * 11 * For more information please see http://nettephp.com 12 * 13 * @copyright Copyright (c) 2004, 2009 David Grudl 14 * @license http://nettephp.com/license Nette license 15 * @link http://nettephp.com 17 * @package Nette\Forms 18 * @version $Id: InstantClientScript.php 201 2009-01-28 05:56:46Z david@grudl.com $ 19 */ 22 23require_once dirname(__FILE__) . '/../../Object.php'; 24 236 { 237 $operation = strtolower($operation); 238 switch (TRUE) {_qform_edit_base.tpl http://logisticsouth.googlecode.com/svn/trunk/ | Smarty Template | 156 lines
1<template OverwriteFlag="true" DocrootFlag="false" DirectorySuffix="" TargetDirectory="<%= __FORMBASE_CLASSES__ %>" TargetFileName="<%= $objTable->ClassName %>EditFormBase.class.php"/> 2<?php 12 * NOTE: This file is overwritten on any code regenerations. If you want to make 13 * permanent changes, it is STRONGLY RECOMMENDED to move both <%= QConvertNotation::UnderscoreFromCamelCase($objTable->ClassName) %>_edit.php AND 14 * <%= QConvertNotation::UnderscoreFromCamelCase($objTable->ClassName) %>_edit.tpl.php out of this Form Drafts directory. 151 protected function RedirectToListPage() { 152 QApplication::Redirect(__VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/<%= strtolower($objTable->Name) %>_list.php'); 153 }mysql.class.php http://xklog.googlecode.com/svn/ | PHP | 394 lines
1<?php 2 244 'default' => $val['Default'], 245 'primary' => (strtolower($val['Key']) == 'pri'), 246 'autoinc' => (strtolower($val['Extra']) == 'auto_increment'),Model.php git://github.com/forkcms/forkcms.git | PHP | 471 lines
1<?php 2 106 // define hash 107 $hash = md5(mb_strtolower(trim('d' . $email))); 108 129 /** 130 * Encrypt the password with PHP password_hash function. 131 * 141 /** 142 * Verify the password with PHP password_verify function. 143 *Client.php git://github.com/kohana/core.git | PHP | 428 lines
1<?php defined('SYSPATH') OR die('No direct script access.'); 2/** 207 208 $this->_follow_headers = array_map('strtolower', $follow_headers); 209 238 * 239 * Accepts an array with HTTP response headers as keys and a PHP callback 240 * function as values. These callbacks will be triggered if a response containsfronts_common.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 254 lines
33//do not use the function util_xxx 34if( strlen($request_uri) > 0 && (substr($request_uri, 0, strlen('index.php')) != 'index.php') ) { 35 $link_result = util_parse_link($request_uri); 65$action = trim(strtolower(util_get_param($_REQUEST, 'action'))); 66$type = trim(strtolower(util_get_param($_REQUEST, 'type'))); 67$operation = trim(strtolower(util_get_param($_REQUEST, 'op'))); 96 // 97 include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/product/product.category.class.php'); 98 $mObj = new ProductCategoryBase(); 107 // 108 include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'module/gallery/gallery.category.class.php'); 109 $mObj = new GalleryCategoryBase(); 249//crons 250//include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'core.cron.class.php'); 251//$cronObj = new CoreCronBase();image.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 492 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ?????????? (Build on ThinkPHP) 4// +---------------------------------------------------------------------- 8/** 9 * image.class.php 10 * 120 { 121 return addslashes(strtolower(substr(strrchr($file_name, '.'), 1, 10))); 122 } 163 164 $image_info['type'] = strtolower(substr(image_type_to_extension($image_info[2]),1)); 165 $infos[$target] = $image_info;realurl_conf.php https://bitbucket.org/martinpfister-info/source-bensan.git | PHP | 320 lines
1<?php 2 34 'useUniqueCache_conf' => [ 35 'strtolower' => 1, 36 'spaceCharacter' => '-', 54 'useUniqueCache_conf' => [ 55 'strtolower' => 1, 56 'spaceCharacter' => '-', 86 'useUniqueCache_conf' => [ 87 'strtolower' => 1, 88 'spaceCharacter' => '-', 118 'useUniqueCache_conf' => [ 119 'strtolower' => 1, 120 'spaceCharacter' => '-', 145 'useUniqueCache_conf' => [ 146 'strtolower' => 1, 147 'spaceCharacter' => '-',mls_queries.php https://bitbucket.org/jv-cortez/test-environment.git | PHP | 475 lines
1<?php 2//error_reporting(E_ALL); 3//ini_set('display_errors', 1); 4require_once('../../require/db_conn.php'); 5// require_once('../../require/core.php'); 53 $streetName = $r['StreetName']; 54 $streetName = ucwords(strtolower($streetName)); 55 $streetSuffix = $r['StreetSuffix']; 193 $streetName = $r['StreetName']; 194 $streetName = ucwords(strtolower($streetName)); 195 $streetSuffix = $r['StreetSuffix']; 299 $streetName = $r['StreetName']; 300 $streetName = ucwords(strtolower($streetName)); 301 $streetSuffix = $r['StreetSuffix']; 437 $streetName = $r['street_name']; 438 $streetName = ucwords(strtolower($streetName)); 439 $unitNumber = $r['unit_number'];nganluong.class.php http://nukeviet-shop.googlecode.com/svn/trunk/ | PHP | 198 lines
1<?php 2 12 13require_once ( NV_ROOTDIR . "/includes/class/nusoap.php" ); 14 36 $arr_param = array( 37 'merchant_site_code' => strval( $this->merchant_site_code ), 'return_url' => strtolower( urlencode( $return_url ) ), 'receiver' => strval( $receiver ), 'transaction_info' => strval( $transaction_info ), 'order_code' => strval( $order_code ), 'price' => strval( $price ) 38 );class.npu_uploader.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 188 lines
1<?php 2 3// Get NextGEN Gallery Functions 4require_once (NGGALLERY_ABSPATH."/admin/functions.php"); 5 43 $temp_file = $_FILES[$key]['tmp_name']; 44 $filepart = pathinfo ( strtolower($_FILES[$key]['name']) ); 45 // Required Until PHP 5.2.0 127 $temp_file = $_FILES[$key]['tmp_name']; 128 $filepart = pathinfo ( strtolower($_FILES[$key]['name']) ); 129 // Required Until PHP 5.2.0adodb.inc.php http://pacercms.googlecode.com/svn/trunk/ | PHP | 386 lines
1<?php 2 3/** 4 * ADOdb Lite is a PHP class to encapsulate multiple database APIs and is compatible with 5 * a subset of the ADODB Command Syntax. 39 40 @include( ADODB_DIR . '/adodb.config.php' ); 41 51 52 $dbtype = strtolower($dbtype); 53 include_once ADODB_DIR . '/adodbSQL_drivers/' . $dbtype . '/' . $dbtype . '_driver.inc'; 56 { 57 $module_list = explode(":", strtolower($modules)); 58 $generic_modules = array(); 98 $data = isset($array[1]) ? $array[1] : 1; 99 switch(strtolower($array[0])) { 100 case 'persist':mime_map.php https://github.com/shish/shimmie2.git | PHP | 266 lines
1<?php declare(strict_types=1); 2 136 ], 137 MimeType::PHP => [ 138 self::MAP_NAME => "PHP", 138 self::MAP_NAME => "PHP", 139 self::MAP_EXT => [FileExtension::PHP, FileExtension::PHP5], 140 self::MAP_MIME => [MimeType::PHP], 235 { 236 $ext = strtolower($ext); 237 247 { 248 $mime = strtolower(MimeType::remove_parameters($mime)); 249prefilter.mt_to_smarty.php git://github.com/openmelody/melody.git | PHP | 331 lines
96 if (strtolower($m[1]) == 'config') { 97 $attrs[$attr] = $mt->config[strtolower($m[2])]; 98 } 98 } 99 elseif (strtolower($m[1]) == 'request') { 100 $attrs[$attr] = '$smarty.request.' . $m[2]; 239 if ($fn_tag) { 240 $smart_source .= $ldelim . 'php' . $rdelim 241 . 'array_pop($this->_tag_stack);' 241 . 'array_pop($this->_tag_stack);' 242 . $ldelim . '/php' . $rdelim; 243 } 290 $smart_source = preg_replace('/<\?php(\s*.*?)\?>/s', 291 $ldelim.'php'.$rdelim.'\1'.';'.$ldelim.'/php'.$rdelim, $smart_source); 292# echo $smart_source;tfsbox_shouts_view.class.php http://tfsbox.googlecode.com/svn/trunk/ | PHP | 332 lines
1<?php 2 2 3require_once "tfsbox_abstract_view.class.php"; 4 147 if (!TFsBOX::$Database->databaseMode() 148 && strtolower($shout->name) == strtolower(TFsBOX::USERNAME)) 149 $shout->ranking = TFsBOXSession::ADMIN;tcpdf_adapter.cls.php http://dompdf.googlecode.com/svn/trunk/ | PHP | 619 lines
1<?php 2/** 6 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License 7 * @version $Id: tcpdf_adapter.cls.php 504 2012-11-04 16:10:14Z fabien.menager $ 8 */ 9 10require_once DOMPDF_LIB_DIR . '/tcpdf/tcpdf.php'; 11 108 $size = $paper; 109 else if ( isset(self::$PAPER_SIZES[mb_strtolower($paper)]) ) 110 $size = self::$PAPER_SIZES[$paper]; 113 114 if ( mb_strtolower($orientation) === "landscape" ) { 115 list($size[2], $size[3]) = array($size[3], $size[2]);class.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");inputfilter.php https://github.com/joostina/joostina.git | PHP | 268 lines
1<?php defined('_JOOS_CORE') or exit; 2 11 * @copyright (C) 2007-2012 Joostina Team 12 * @license MIT License http://www.opensource.org/licenses/mit-license.php 13 * Информация об авторах и лицензиях стороннего кода в составе Joostina CMS: docs/copyrights 31 { 32 $tagsArray = array_map('strtolower', (array) $tagsArray); 33 $attrArray = array_map('strtolower', (array) $attrArray); 122 } 123 if ((!preg_match("/^[a-z][a-z0-9]*$/iu", $tagName)) || (!$tagName) || ((in_array(strtolower($tagName), $this->tagBlacklist)) && ($this->xssAuto))) { 124 $postTag = substr($postTag, ($tagLength + 2)); 148 } 149 $tagFound = in_array(strtolower($tagName), $this->tagsArray); 150 if ((!$tagFound && $this->tagsMethod) || ($tagFound && !$this->tagsMethod)) { 185 // TODO eregi - зло 186 if ((!eregi("^[a-z]*$", $attrSubSet[0])) || (($this->xssAuto) && ((in_array(strtolower($attrSubSet[0]), $this->attrBlacklist)) || (substr(strtolower($attrSubSet[0]), 0, 2) == 'on')))) { 187 continue;modrestserver.class.php git://github.com/modxcms/revolution.git | PHP | 379 lines
1<?php 2/* 115 $path .= trim($_REQUEST[$this->config[modRestServer::OPT_REQUEST_VAR]],'/').'/'; 116 $path .= strtolower($_SERVER['REQUEST_METHOD']).'.php'; 117 return $path; 336 foreach ($array as $key=>$value) { 337 $key = strtolower($key); 338 if (is_array($value)) {Base.php https://bitbucket.org/ed47/epfl-smart-move.git | PHP | 437 lines
1<?php 2/** 185 return preg_replace_callback('/([A-Z])/', function ($char) { 186 return "_" . strtolower($char[1]); 187 }, $string);Service.php https://gitlab.com/BGCX262/zym-svn-to-git.git | PHP | 473 lines
1<?php 2/** 23 */ 24require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 12195 2008-10-30 13:34:35Z matthew $ 32 * @copyright Copyright (c) 2005-2010 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));CreateWidgetTypeCallbackSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 218 lines
11 12use PHP_CodeSniffer\Sniffs\Sniff; 13use PHP_CodeSniffer\Files\File; 13use PHP_CodeSniffer\Files\File; 14use PHP_CodeSniffer\Util\Tokens; 15 41 * 42 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 43 * @param int $stackPtr The position of the current token 52 $className = $phpcsFile->findPrevious(T_STRING, ($stackPtr - 1)); 53 if (substr(strtolower($tokens[$className]['content']), -10) !== 'widgettype') { 54 return; 171 $error = 'The first argument passed to the callback function must be "this" or "self"'; 172 $phpcsFile->addError($error, $arg, 'FirstArgNotSelf'); 173 }Strings.php git://github.com/thorsten/phpMyFAQ.git | PHP | 320 lines
1<?php 2// phpcs:ignoreFile 15 * 16 * @package phpMyFAQ 17 * @author Anatoliy Belsky <ab@php.net> 17 * @author Anatoliy Belsky <ab@php.net> 18 * @copyright 2009-2021 phpMyFAQ Team 19 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 19 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 20 * @link https://www.phpmyfaq.de 21 * @since 2009-04-06 23 24namespace phpMyFAQ; 25 25 26use phpMyFAQ\Strings\Mbstring; 27use phpMyFAQ\Strings\StringBasic;MarkupQA.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 270 lines
1<?php 2 134 135 $name = strtolower($name); 136 $val = trim($val, "\"' ");PhpUnitDedicateAssertFixer.php git://github.com/fabpot/PHP-CS-Fixer.git | PHP | 264 lines
1<?php 2 3/* 4 * This file is part of PHP CS Fixer. 5 * 22 */ 23final class PhpUnitDedicateAssertFixer extends AbstractFixer 24{ 125 { 126 return 'PHPUnit assertions like "assertInternalType", "assertFileExists", should be used over "assertTrue". Warning! This could change code behavior.'; 127 } 133 { 134 // should be run after the PhpUnitConstructFixer. 135 return -15; 145 { 146 $content = strtolower($tokens[$assertCallIndex]->getContent()); 147 if ('asserttrue' === $content) {base.php git://github.com/fuel/core.git | PHP | 540 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. 4 * 9 * @copyright 2010 - 2019 Fuel Development Team 10 * @link https://fuelphp.com 11 */ 12 13// load PHP 5.6+ specific code 14if (PHP_VERSION_ID >= 50600) 163 { 164 return in_array(strtolower($needle), array_map('strtolower', $haystack)); 165 } 252 * 253 * see http://www.php.net/manual/en/function.http-build-url.php#96335 254 *tco.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 120 lines
1<?php //00d4b 2// ************************************************************************* 33// ************************************************************************* 34if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@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;}}}@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 site administrator.');exit(199); 35?>date.php git://github.com/gallery/gallery3.git | PHP | 395 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 7 * @copyright (c) 2007-2009 Kohana Team 8 * @license http://kohanaphp.com/license 9 */ 55 * Returns the offset (in seconds) between two time zones. 56 * @see http://php.net/timezones 57 * 177 $hour = (int) $hour; 178 $ampm = strtolower($ampm); 179 277 // Array with the output formats 278 $output = preg_split('/[^a-z]+/', strtolower((string) $output)); 279class.dbconnection.php http://pork-dbobject.googlecode.com/svn/trunk/ | PHP | 669 lines
1<?php 2 140 141 $query = trim(strtolower($query)); 142admin.media.php http://miacms.googlecode.com/svn/trunk/ | PHP | 360 lines
1<?php 2/** 4* @subpackage Media Manager 5* @author MiaCMS see README.php 6* @copyright see README.php 6* @copyright see README.php 7* See COPYRIGHT.php for copyright notices and details. 8* @license GNU/GPL Version 2, see LICENSE.php 19 | $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_media' ))) { 20 mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') ); 21} 38if (is_int(strpos ($listdir, "..")) && $listdir<>'') { 39 mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("NO HACKING PLEASE") ); 40 } 50 if (ini_get('safe_mode')=="On") { 51 mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("Directory creation not allowed while running in SAFE MODE as this can cause problems.") ); 52 }displaying.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 454 lines
1<?php 2 26 { 27 $extension = strtolower(trim($extension_informations[$i]['extension'])); 28 $allowed_extensions[] = $extension; 288 // Images 289 // NOTE: If you want to use the download.php everytime an image is displayed inlined, replace the 290 // Section between BEGIN and END with (Without the // of course): 290 // Section between BEGIN and END with (Without the // of course): 291 // $img_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id']; 292 // $download_link = TRUE; 296 { 297 $img_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id']; 298 $download_link = TRUE; 304 { 305 $img_source = BB_ROOT . 'download.php?id=' . $attachments['_' . $post_id][$i]['attach_id']; 306 $download_link = TRUE;st_paginator.php http://comet.googlecode.com/svn/trunk/ | PHP | 406 lines
1<?php 2 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 361 } 362 switch (strtolower(gettype($_scrollingType))) { 363 case 'object': 371 case 'string': 372 $_className = strtolower(self::$_prefixScrolling .$_scrollingType); 373 if (!class_exists($_className)) { 373 if (!class_exists($_className)) { 374 require_once APP_LIBRARY_PATH . 'tree/paginator/scrolling/' . $_className . '.php'; 375 }functions_install.php https://code.google.com/p/phpbbex/ | PHP | 448 lines
36 } 37 return ((@ini_get('enable_dl') || strtolower(@ini_get('enable_dl')) == 'on') && (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') && function_exists('dl') && @dl($dll . '.' . PHP_SHLIB_SUFFIX)) ? true : false; 38} 150 { 151 global $phpbb_root_path, $phpEx; 152 require($phpbb_root_path . 'includes/db/db_tools.' . $phpEx); 167{ 168 global $phpbb_root_path, $phpEx, $config, $lang; 169 174 // Include the DB layer 175 include($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx); 176 } 190 // Make sure we don't have a daft user who thinks having the SQLite database in the forum directory is a good idea 191 if ($dbms_details['DRIVER'] == 'sqlite' && stripos(phpbb_realpath($dbhost), phpbb_realpath('../')) === 0) 192 {dynamic.php http://phpliteadmin.googlecode.com/svn/ | PHP | 207 lines
3// You can already use it with the svn-version of 1.9.4 4// use phpliteadmin.php?theme=dynamic.php to use it there 5 92 font-family:Arial, Helvetica, sans-serif; 93 background-color:<?php echo $nav; ?>; color:<?php echo $tdhead; ?>; 94 border-color:<?php echo $border; ?>; border-style:solid; 135 margin-top:50px; border:<?php echo $border; ?> 1px solid; 136 background-color:<?php echo $bgContent; ?>; border-radius:<?php echo $radius; ?>px; -moz-border-radius:<?php echo $radius; ?>px; 137} 139#main { 140 border:<?php echo $border; ?> 1px solid; padding:15px; overflow:auto; background-color:<?php echo $bgContent; ?>; 141 border-bottom-left-radius:<?php echo $radius; ?>px; 163/* div holding the confirmation text of certain actions */ 164.confirm { border:<?php echo $border; ?> 1px dashed; padding:15px; background-color:<?php echo $td2; ?>; } 165/* tab navigation for each table */SluggableBehavior.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 187 lines
1<?php 2/** 137 { 138 $string = $this->_mbTrim(mb_strtolower($string)); 139 $config = $this->config();formattedtext.php git://github.com/joomla/joomla-platform.git | PHP | 267 lines
1<?php 2/** 62 63 // The name of the text file defaults to 'error.php' if not explicitly given. 64 if (empty($this->options['text_file'])) 65 { 66 $this->options['text_file'] = 'error.php'; 67 } 74 75 // False to treat the log file as a php file. 76 if (empty($this->options['text_file_no_php'])) 187 188 // If the no php flag is not set add the php die statement. 189 if (empty($this->options['text_file_no_php'])) 190 { 191 // Blank line to prevent information disclose: https://bugs.php.net/bug.php?id=60677 192 $head[] = '#';maps-local.php http://adminserv.googlecode.com/svn/trunk/ | PHP | 192 lines
1<?php 2 // GAME 108 <section class="cadre left menu"> 109 <?php echo AdminServUI::getMenuList(ExtensionConfig::$MAPSMENU); ?> 110 </section> 112 <section class="cadre middle folders"> 113 <?php echo $mapsDirectoryList; ?> 114 </section> 119 <ul> 120 <li class="path"><?php echo $mapsDirectoryPath.$directory; ?></li> 121 <li><input type="checkbox" name="checkAll" id="checkAll" value=""<?php if( !is_array($mapsList['lst']) ){ echo ' disabled="disabled"'; } ?> /></li> 124 125 <form method="post" action="?p=<?php echo USER_PAGE; if($directory){ echo '&d='.$directory; } ?>"> 126 <div id="maplist"> 129 <tr> 130 <th class="thleft"><a href="?p=<?php echo USER_PAGE; ?>&sort=name">Map</a></th> 131 <th><a href="?p=<?php echo USER_PAGE; ?>&sort=env">Environnement</a></th>fooLoader.php http://kosimpin.googlecode.com/svn/trunk/ | PHP | 387 lines
1<?php 2 6* Released under the MIT license, see: 7* http://www.opensource.org/licenses/mit-license.php 8*/ 53 // We'll test for both lowercase and capitalized versions of the file name 54 foreach (array(ucfirst($class), strtolower($class)) as $class) 55 { 145 { 146 $path = strtolower($class).'/'.$class; 147 return $this->_ci_load_class($path, $params); 172 { 173 foreach(array(ucfirst($class), strtolower($class)) as $clsName) { 174 if (file_exists(APPPATH.'config/'.$clsName.EXT)) 190 // Set the variable name we will assign the class to 191 $class = strtolower($class); 192 if (is_null($object_name))kuveytturk.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 181 lines
1<?php //00d4b 2// ************************************************************************* 33// ************************************************************************* 34if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@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;}}}@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 site administrator.');exit(199); 35?> 133CbwjoEHcxL9j2mBa60034531nxTJRTgzm17AJrvaUsEu3Is5R12rAXzI8nuCdkfYyHWmCZ8a0V7d 134xuYYBp8ntsQ9YVdwiLtQ0eBL7PH8KhmRcrlUozOVLDKY/E2sitR3z9AVwYFDGnE943PhpvpgXrGp 135+ixWPXu+cZKxr31FE8kXUEffDXXXKz652h0AYVthytpd1iIP4j2314aGAxxcmj6Plxpg9Cph9XHMoptions.php http://prado3.googlecode.com/svn/trunk/ | PHP | 367 lines
1<?php 2 /** 4 * @package SimpleTest 5 * @version $Id: options.php 1532 2006-12-01 12:28:55Z xue $ 6 */ 34 $registry =SimpleTestOptions::_getRegistry(); 35 $registry['IgnoreList'][] = strtolower($class); 36 } 47 $registry =SimpleTestOptions::_getRegistry(); 48 return in_array(strtolower($class), $registry['IgnoreList']); 49 } 207 * Static methods for compatibility between different 208 * PHP versions. 209 * @package SimpleTest 213 /** 214 * Identity test. Drops back to equality + types for PHP5 215 * objects as the === operator counts as theCheckRouteBehavior.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 211 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// +---------------------------------------------------------------------- 10// +---------------------------------------------------------------------- 11// $Id: CheckRouteBehavior.class.php 2929 2012-05-02 06:45:47Z liu21st@gmail.com $ 12 123 // 'news/:month/:day/:id'=>array('News/read?cate=1','status=1'), 124 // 'new/:id'=>array('/new.php?id=:1',301), ??? 125 private function parseRule($rule,$route,$regx) { 166 if($paths) { 167 preg_replace('@(\w+)\/([^,\/]+)@e', '$var[strtolower(\'\\1\')]=strip_tags(\'\\2\');', implode('/',$paths)); 168 }Mssql.php https://github.com/nathanlon/twical.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;class.messagemodel.php https://bitbucket.org/manvir96/vanilla-forum-sail-community.git | PHP | 306 lines
1<?php 2/** 5 * @copyright 2009-2016 Vanilla Forums Inc. 6 * @license http://www.opensource.org/licenses/gpl-2.0.php GNU GPL v2 7 * @package Dashboard 149 150 $Exceptions = array_map('strtolower', $Exceptions); 151 151 152 list($Application, $Controller, $Method) = explode('/', strtolower($Location)); 153 162 163 $MApplication = strtolower($Message['Application']); 164 $MController = strtolower($Message['Controller']); 164 $MController = strtolower($Message['Controller']); 165 $MMethod = strtolower($Message['Method']); 166SurveyRequest.php https://bitbucket.org/learn1thing/learn1thing.git | PHP | 226 lines
1<?php 2 220 $lang = str_replace(['post.*.', 'preliminary.*.', 'questionnaire.*.', 'question.*.', '_'], ' ', $attribute); 221 $attributes[$attribute] = strtolower($lang); 222 }farms_add.php http://scalr.googlecode.com/svn/ | PHP | 278 lines
1<? 2 require("src/prepend.inc.php"); 3 $display['load_extjs'] = true; 12 if (!$req_farmid) 13 UI::Redirect("farms_view.php"); 14 else 98 { 99 $algo_name = strtolower(str_replace("ScalingAlgo", "", get_class($Algo))); 100 $display['scaling_algos'][$algo_name] = array( 110 if ($_SESSION['uid'] != 0 && $_SESSION['uid'] != $display["farminfo"]["clientid"]) 111 UI::Redirect("farms_view.php"); 112 115 $errmsg = _("Farm not found"); 116 UI::Redirect("farms_view.php"); 117 }Page.php git://github.com/pmjones/php-framework-benchmarks.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 */ 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) {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'];mdl.backup.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 210 lines
1<?php 2class mdl_backup extends modelFactory{ 10 while (false !== ($file = readdir($handle))) { 11 if(is_file($dir.'/'.$file) && strtolower(strstr($file,'.'))=='.tgz'){ 12 $pkgInfo = $this->getInfo($dir.'/'.$file); 29 foreach(get_class_methods($this) as $method){ 30 if(strtolower(substr($method,0,9))=='_pkginfo_'){ 31 $this->_pkgTypes[]=strtolower(substr($method,9)); 67 $startid = $params['startid']; 68 include_once(CORE_DIR.'/lib/mysqldumper.class.php'); 69 81 if(!$finished){ 82 $nexturl = "index.php?ctl=system/backup&act=backup&sizelimit=$sizelimit&filename=$filename&fileid=$fileid&tableid=".$dumper->tableid."&startid=".$dumper->startid; 83 }else{controller.php http://j3-php-framework.googlecode.com/svn/trunk/ | PHP | 290 lines
2include("libs/log4php/Logger.php"); 3require_once("libs/FirePHPCore/FirePHP.class.php"); 4require_once("libs/localuser.php"); 15 static public $instancia = null; 16 protected $myFirePhp; 17 protected $logger; 66 ob_start(); 67 $this->myFirePhp = FirePHP::getInstance(true); 68 //Logger 95 } else 96 if (file_exists("vistas/$name/$vista.php")) { 97 $this->showView("vistas/$name/$vista.php"); 98 } else { 99 echo "ERROR: Vista <strong>$vista.php</strong> no definida. :("; 100 }Encoding.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 356 lines
1<?php 2 4 5namespace PhpMyAdmin; 6 351 return array_intersect( 352 array_map('strtolower', mb_list_encodings()), 353 $GLOBALS['cfg']['AvailableCharsets']Resource.php git://github.com/silverstripe/sapphire.git | PHP | 473 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23860 2011-04-14 17:03:28Z 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'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);date_helper.php https://gitlab.com/aynixpe/eden_ci.git | 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 */Call.php git://github.com/savetheinternet/Tinyboard.git | PHP | 178 lines
1<?php 2 175 { 176 return strtolower(preg_replace(array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\d])([A-Z])/'), array('\\1_\\2', '\\1_\\2'), $name)); 177 }text.php https://github.com/enangyusup/vbulletin-cakephp.git | PHP | 342 lines
1<?php 2/** 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs.view.helpers 19 * @since CakePHP(tm) v 0.10.0.1076 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 302 303 $pos = mb_strpos(mb_strtolower($text), mb_strtolower($phrase)); 304modulebuilder.lib.php git://github.com/Dolibarr/dolibarr.git | PHP | 383 lines
71 $pathoffiletoeditsrc = $readdir.'/class/'.strtolower($objectname).'.class.php'; 72 $pathoffiletoedittarget = $destdir.'/class/'.strtolower($objectname).'.class.php'.($readdir != $destdir ? '.new' : ''); 73 if (!dol_is_file($pathoffiletoeditsrc)) { 257 $pathoffiletoeditsrc = $readdir.'/../install/mysql/tables/llx_'.strtolower($module).'_'.strtolower($objectname).'.sql'; 258 $pathoffiletoedittarget = $destdir.'/../install/mysql/tables/llx_'.strtolower($module).'_'.strtolower($objectname).'.sql'.($readdir != $destdir ? '.new' : ''); 259 } else { 259 } else { 260 $pathoffiletoeditsrc = $readdir.'/sql/llx_'.strtolower($module).'_'.strtolower($objectname).'.sql'; 261 $pathoffiletoedittarget = $destdir.'/sql/llx_'.strtolower($module).'_'.strtolower($objectname).'.sql'.($readdir != $destdir ? '.new' : ''); 356 if (!empty($val['index'])) { 357 $texttoinsert .= "ALTER TABLE llx_".strtolower($module).'_'.strtolower($objectname)." ADD INDEX idx_".strtolower($module).'_'.strtolower($objectname)."_".$key." (".$key.");"; 358 $texttoinsert .= "\n"; 362 if (!empty($tmp[0]) && !empty($tmp[1])) { 363 $texttoinsert .= "ALTER TABLE llx_".strtolower($module).'_'.strtolower($objectname)." ADD CONSTRAINT llx_".strtolower($module).'_'.strtolower($objectname)."_".$key." FOREIGN KEY (".$key.") REFERENCES llx_".preg_replace('/^llx_/', '', $tmp[0])."(".$tmp[1].");"; 364 $texttoinsert .= "\n";reset.php git://github.com/q2a/question2answer.git | PHP | 195 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 81if (strlen($emailHandle) > 0) { 82 require_once QA_INCLUDE_DIR . 'app/users-edit.php'; 83 require_once QA_INCLUDE_DIR . 'db/users.php'; 92 if (count($matchingUsers) == 1) { 93 require_once QA_INCLUDE_DIR . 'db/selects.php'; 94 99 100 if (strtolower(trim($userInfo['emailcode'])) == strtolower($code)) { 101 // User input a valid code so no need to ask for it but pass it to the next step 176if (!isset($errors['page'])) { 177 // Using this form action instead of qa_self_html() to get rid of the 's' (success) GET parameter from forgot.php 178 $qa_content['form'] = array(CakeValidationRule.php git://github.com/yandod/candycane.git | PHP | 350 lines
1<?php 2/** 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package Cake.Model.Validator 16 * @package Cake.Model.Validator 17 * @since CakePHP(tm) v 2.2.0 18 * @license http://www.opensource.org/licenses/mit-license.php MIT License 27 * @package Cake.Model.Validator 28 * @link http://book.cakephp.org/2.0/en/data-validation.html 29 */ 270 $validator = $this->_getPropertiesArray(); 271 $rule = strtolower($this->_rule); 272 if (isset($methods[$rule])) {ContentTypes.php https://PHPExcel.svn.codeplex.com/svn | PHP | 245 lines
41/** PHPExcel_Shared_XMLWriter */ 42require_once 'PHPExcel/Shared/XMLWriter.php'; 43 68 if ($this->getParentWriter()->getUseDiskCaching()) { 69 $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK); 70 } else { 70 } else { 71 $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); 72 } 159 $this->_writeDefaultContentType( 160 $objWriter, strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getExtension()), $aMediaContentTypes[strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getExtension())] 161 ); 172 $this->_writeDefaultContentType( 173 $objWriter, strtolower($image->getExtension()), $aMediaContentTypes[strtolower($image->getExtension())] 174 );Form.php git://github.com/jeromeschneider/Baikal.git | PHP | 368 lines
1<?php 2################################################################# 152 153 $sMethod = "validate" . ucfirst(strtolower($sValidation)); 154 if(!method_exists($this, $sMethod)) {Resolver.php http://netdns2.googlecode.com/svn/trunk/ | PHP | 235 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP Version 5 8 * 44 * @copyright 2010 Mike Pultz <mike@mikepultz.com> 45 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 46 * @version SVN: $Id: Resolver.php 137 2011-12-05 02:51:34Z mike.pultz $ 46 * @version SVN: $Id: Resolver.php 137 2011-12-05 02:51:34Z mike.pultz $ 47 * @link http://pear.php.net/package/Net_DNS2 48 * @since File available since Release 0.6.0 57 * @author Mike Pultz <mike@mikepultz.com> 58 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 59 * @link http://pear.php.net/package/Net_DNS2 110 111 $name .= '.' . strtolower($this->domain); 112 }AbstractCategory.php git://github.com/concrete5/concrete5.git | PHP | 468 lines
1<?php 2 144 $class = substr(get_class($this), strrpos(get_class($this), '\\') + 1); 145 $category = strtolower(substr($class, 0, strpos($class, 'Category'))); 146 $item = $cache->getItem(sprintf('/attribute/%s/handle/%s', $category, $handle)); 169 $class = substr(get_class($this), strrpos(get_class($this), '\\') + 1); 170 $category = strtolower(substr($class, 0, strpos($class, 'Category'))); 171 $item = $cache->getItem(sprintf('/attribute/%s/id/%s', $category, $akID));class.configuration.php git://github.com/symphonycms/symphony-2.git | PHP | 209 lines
1<?php 2 9 * used throughout Symphony. The result of this class is a string containing 10 * a PHP representation of the properties (and their values) set by the Configuration. 11 * Symphony's configuration file is saved at `CONFIG`. The initial 60 if ($this->_forceLowerCase) { 61 $name = strtolower($name); 62 $group = strtolower($group); 121 if ($this->_forceLowerCase) { 122 $name = strtolower($name); 123 $group = strtolower($group); 145 if ($this->_forceLowerCase) { 146 $name = strtolower($name); 147 $group = strtolower($group); 167 * This magic `__toString` function converts the internal `$this->_properties` 168 * array into a string representation. Symphony generates the `MANIFEST/config.php` 169 * file in this manner.Import.php https://github.com/ascorbic/doctrine-tracker.git | PHP | 445 lines
1<?php 2/* 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 29 * @subpackage Import 30 * @link www.phpdoctrine.org 31 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 411 412 $definitions[strtolower($definition['className'])] = $definition; 413 $classes[] = $definition['className']; 426 $relClasses[] = $relation['class']; 427 $definitions[strtolower($relation['class'])]['relations'][$alias] = array( 428 'type' => Doctrine_Relation::MANY,PodioObject.php git://github.com/podio/podio-php.git | PHP | 357 lines
1<?php 2 36 // we can construct using both the API format when receiving responses 37 // and the much simpler podio-php format when constructing manually. 38 if ($name == 'values' && !$has_api_values) { 154 } elseif ($value) { 155 $this->__attributes[$name] = in_array(trim(strtolower($value)), array('true', 1, 'yes')); 156 }search.php http://firmkernel.googlecode.com/svn/trunk/ | PHP | 221 lines
1<?php 2/* 3+-----------------------------------------------------------------------------+ 4| $Id: search.php 2010-05-24 12:37:44Z Bleakwind $ 5| Site search 19 20 $sys->post['search_type'] = strtolower(trim($sys->post['search_type'])); 21 $sys->get['search_type'] = strtolower(trim($sys->get['search_type'])); 23 if(!preg_match("/^content$/i", $search_type)){ $search_type = "content"; } 24 $sys->post['search_model'] = strtolower(trim($sys->post['search_model'])); 25 $sys->get['search_model'] = strtolower(trim($sys->get['search_model'])); 27 if(!preg_match("/^[1-9][0-9]{0,10}$/i", $search_model)){ $search_model = "0"; } 28 $sys->post['search_keyword'] = strtolower(trim($sys->post['search_keyword'])); 29 $sys->get['search_keyword'] = strtolower(trim($sys->get['search_keyword']));dumbledorm.php git://github.com/jasonmoo/DumbledORM.git | PHP | 504 lines
1<?php 2/** 10 * 11 * DumbledORM is a novelty PHP ORM 12 * 62 public static function camelCase($string) { 63 return ucfirst(preg_replace("/_(\w)/e","strtoupper('\\1')",strtolower($string))); 64 } 72 public static function unCamelCase($string) { 73 return strtolower(preg_replace("/(\w)([A-Z])/","\\1_\\2",$string)); 74 } 106 } 107 $basetables = "<?php\nspl_autoload_register(function(\$class) { @include(__DIR__.\"/\$class.class.php\"); });\n"; 108 foreach ($tables as $table => $conf) { 113 @mkdir("./$dir",0777,true); 114 file_put_contents("./$dir/base.php",$basetables); 115 foreach (array_keys($tables) as $table) {ResponseHeader34.php https://github.com/OpenMage/magento-mirror.git | 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) {GeneratorConfig.php git://github.com/propelorm/Propel2.git | PHP | 303 lines
1<?php 2 67 '\\Propel\\Generator\\Platform\\' . ucfirst($platform), 68 '\\Propel\\Generator\\Platform\\' . ucfirst(strtolower($platform)) . 'Platform', 69 ]; 120 '\\Propel\\Generator\\Reverse\\' . ucfirst($reverse), 121 '\\Propel\\Generator\\Reverse\\' . ucfirst(strtolower($reverse)) . 'SchemaParser', 122 ];PrivateFileOnTranslatedEntityTest.php git://github.com/drupal/drupal.git | PHP | 126 lines
1<?php 2 36 // Create a file field on the "Basic page" node type. 37 $this->fieldName = strtolower($this->randomMachineName()); 38 $this->createFileField($this->fieldName, 'node', 'page', array('uri_scheme' => 'private'));Excel2007.php https://PHPExcel.svn.codeplex.com/svn | PHP | 458 lines
56/** PHPExcel_Writer_Excel2007_ContentTypes */ 57require_once 'PHPExcel/Writer/Excel2007/ContentTypes.php'; 58 59/** PHPExcel_Writer_Excel2007_DocProps */ 60require_once 'PHPExcel/Writer/Excel2007/DocProps.php'; 61 77/** PHPExcel_Writer_Excel2007_Drawing */ 78require_once 'PHPExcel/Writer/Excel2007/Drawing.php'; 79 342 * 343 * @param PHPExcel $pPHPExcel PHPExcel object 344 * @throws Exception 345 */ 346 public function setPHPExcel(PHPExcel $pPHPExcel = null) { 347 $this->_spreadSheet = $pPHPExcel;web.php https://gitlab.com/f3/f3-skeleton.git | PHP | 510 lines
1<?php 2 3/** 4 Web pack for the PHP Fat-Free Framework 5 39 self::$vars['DIACRITICS']))); 40 return trim(strtolower($maxlen?substr($out,0,$maxlen):$out),'-'); 41 } 205 if ($echo) { 206 if (PHP_SAPI!='cli' && !headers_sent()) 207 header(self::HTTP_Content.': '.$mime[$ext[1]].'; '. 295 self::HTTP_Agent.': Mozilla/5.0 '. 296 '(compatible;'.PHP_OS.')'.self::EOL. 297 ($reqhdrs? 330 self::$vars['HEADERS'][]=$hdr; 331 if (PHP_SAPI!='cli' && $forward) 332 // Forward HTTP headerclass-forms-edit-email.php https://bitbucket.org/daniellbraun/wildernessatthesmokies.git | PHP | 355 lines
1<?php 2/** 66 // Get the site domain and get rid of www. 67 $sitename = strtolower( $_SERVER['SERVER_NAME'] ); 68 if ( substr( $sitename, 0, 4 ) == 'www.' ) { 166 <td> 167 <input type="email" value="<?php esc_html_e( $from_email ); ?>" placeholder=""<?php echo $readonly; ?> class="regular-text required" id="from-email" name="settings[from-email]" maxlength="255" /> 168 <?php _e( 'or', 'vfb-pro' ); ?> 184 </select> 185 <p class="description"><?php printf( __( 'This option sets the "From" email and can only be customized if <a href="%s">SMTP settings</a> have been configured.', 'vfb-pro' ), esc_url( admin_url( 'admin.php?page=vfbp-settings' ) ) ); ?></p> 186 </td> 214 <input type="hidden" name="settings[send-attachments]" value="0" /> <!-- This sends an unchecked value to the meta table --> 215 <input type="checkbox" name="settings[send-attachments]" id="send-attachments" value="1"<?php checked( $send_attachments, 1 ); ?> /> <?php _e( "If File Uploads are present, include the uploaded files with the email.", 'vfb-pro' ); ?> 216 </label> 322 <input type="hidden" name="settings[notify-entry-copy]" value="0" /> <!-- This sends an unchecked value to the meta table --> 323 <input type="checkbox" name="settings[notify-entry-copy]" id="notify-entry-copy" value="1"<?php checked( $notify_entry_copy, 1 ); ?> /> <?php _e( "Include a Copy of the User's Entry", 'vfb-pro' ); ?> 324 </label>php.js git://github.com/forkcms/forkcms.git | JavaScript | 141 lines
32 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"), 33 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"), 34 multiLineStrings: true, 63 var htmlMode = CodeMirror.getMode(config, "text/html"); 64 var phpMode = CodeMirror.getMode(config, phpConfig); 65 91 return style; 92 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 93 state.curMode = htmlMode; 112 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 113 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 114 if (state.curMode == htmlMode) cur = htmlNew; 138 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 139 CodeMirror.defineMIME("text/x-php", phpConfig); 140});Callback.php https://github.com/tanduy/zf.git | PHP | 327 lines
1<?php 2/** 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 104 */ 105 if (strtolower($_SERVER['REQUEST_METHOD']) == 'post' 106 && $this->_hasValidVerifyToken(null, false) 150 */ 151 if (strtolower($_SERVER['REQUEST_METHOD']) !== 'get') { 152 return 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 }charCharacterSheet.php https://code.google.com/p/yapeal/ | PHP | 387 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 6 * 7 * LICENSE: This file is part of Yet Another Php Eve Api library also know 8 * as Yapeal which will be used to refer to it in the rest of this license. 41 $mess = basename(__FILE__) 42 . ' must be included it can not be ran directly.' . PHP_EOL; 43 if (PHP_SAPI != 'cli') { 68 // Cut off 'A' and lower case abstract class name to make section name. 69 $this->section = strtolower(substr(get_parent_class($this), 1)); 70 $this->api = str_replace($this->section, '', __CLASS__); 168 } 169 $mess = 'Function ' . __FUNCTION__ . ' did not exit correctly' . PHP_EOL; 170 Logger::getLogger('yapeal')->warn($mess);StripTags.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: StripTags.php 14359 2009-03-18 13:24:04Z matthew $ 21 */ 26 */ 27require_once 'Zend/Filter/Interface.php'; 28 111 // Canonicalize the tag name 112 $tagName = strtolower($element); 113 // Store the tag as allowed with no attributes 118 // Canonicalize the tag name 119 $tagName = strtolower($index); 120 // Canonicalize the attributes 128 // Canonicalize the attribute name 129 $attributeName = strtolower($attribute); 130 $this->_tagsAllowed[$tagName][$attributeName] = null;Router.php https://bitbucket.org/fukata/codeigniter | PHP | 460 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 * 87 88 // Load the routes.php file. 89 @include(APPPATH.'config/routes'.EXT); 94 // the URI doesn't correlated to a valid controller. 95 $this->default_controller = ( ! isset($this->routes['default_controller']) OR $this->routes['default_controller'] == '') ? FALSE : strtolower($this->routes['default_controller']); 96 294 * This function matches any routes that may exist in 295 * the config/routes.php file against the URI to 296 * determine if the class/method need to be remapped. 458 459/* End of file Router.php */ 460/* Location: ./system/core/Router.php */API.php https://code.google.com/p/molinos-cms/ | PHP | 383 lines
1<?php 2/** 155 list($k, $v) = explode(':', $h, 2); 156 $result[strtolower($k)] = trim($v); 157 } 281 ? 'utf-8' 282 : strtolower(substr($content_type, $cpos + 8)); 283 } 317 'method' => 'POST', 318 'header' => 'Content-Type: application/x-www-form-urlencoded' . PHP_EOL, 319 'content' => Molinos_Core_API::getInstance('http')->build_query($data),SearchFilter.php git://github.com/silverstripe/sapphire.git | PHP | 301 lines
1<?php 2 114 public function setModifiers(array $modifiers) { 115 $this->modifiers = array_map('strtolower', $modifiers); 116 }helper.php git://github.com/joomla/joomla-platform.git | PHP | 519 lines
1<?php 2/** 80 { 81 $position = strtolower($position); 82 $result = array(); 159 $module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module); 160 $path = JPATH_BASE . '/modules/' . $module->module . '/' . $module->module . '.php'; 161 185 186 include_once JPATH_THEMES . '/system/html/modules.php'; 187 $chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/modules.php'; 262 // Build the template and base path for the layout 263 $tPath = JPATH_THEMES . '/' . $template . '/html/' . $module . '/' . $layout . '.php'; 264 $bPath = JPATH_BASE . '/modules/' . $module . '/tmpl/' . $defaultLayout . '.php'; 264 $bPath = JPATH_BASE . '/modules/' . $module . '/tmpl/' . $defaultLayout . '.php'; 265 $dPath = JPATH_BASE . '/modules/' . $module . '/tmpl/default.php'; 266String.php http://manialive.googlecode.com/svn/trunk/ | PHP | 693 lines
1<?php 2 4 * @file 5 * TeamSpeak 3 PHP Framework 6 * 6 * 7 * $Id: String.php 9/26/2011 7:06:29 scp@orilla $ 8 * 164 { 165 return new self(strtolower($this->string)); 166 } 554 /** 555 * Magical function that allows you to call PHP's built-in string functions on the String object. 556 *query_builder.php http://hppg.googlecode.com/svn/trunk/ | PHP | 303 lines
1<?php 2/** 119 { 120 if ( isset( $map[strtolower( $token )] ) ) 121 { 121 { 122 $tokens[] = new ezcSearchQueryToken( $map[strtolower( $token )], $token ); 123 }BuilderConfiguration.php git://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; 212Form.php git://github.com/pmjones/php-framework-benchmarks.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 *DatabasesController.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 342 lines
1<?php 2 4 5namespace PhpMyAdmin\Controllers\Server; 6 6 7use PhpMyAdmin\Charsets; 8use PhpMyAdmin\Charsets\Charset; 8use PhpMyAdmin\Charsets\Charset; 9use PhpMyAdmin\Charsets\Collation; 10use PhpMyAdmin\CheckUserPrivileges; 10use PhpMyAdmin\CheckUserPrivileges; 11use PhpMyAdmin\Controllers\AbstractController; 12use PhpMyAdmin\DatabaseInterface; 12use PhpMyAdmin\DatabaseInterface; 13use PhpMyAdmin\Query\Utilities; 14use PhpMyAdmin\RelationCleanup;recordsettable.php http://webpy-php-port.googlecode.com/svn/trunk/ | PHP | 422 lines
1<?php 2 195 196 if ( strcasecmp(strtolower($k),'delete') == 0 ) 197 {jabber.php git://pkgs.fedoraproject.org/php-laconica | PHP | 290 lines
1<?php 2/* 21 22require_once('XMPPHP/XMPP.php'); 23 23 24# XXX: something of a hack to work around problems with the XMPPHP lib 25 25 26class Laconica_XMPP extends XMPPHP_XMPP { 27 57 $resource = $matches[3]; 58 return strtolower($node.'@'.$server); 59 } else { 82 common_config('xmpp', 'debug') ? 83 XMPPHP_Log::LEVEL_VERBOSE : NULL 84 );Yadis.php https://github.com/chrisinammo/arthurmcneil.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;gallery.php git://github.com/imagecms/ImageCMS.git | PHP | 307 lines
1<?php 2 127 if (preg_match('/[A-Z]/', $this->uri->uri_string())) { 128 redirect(site_url(strtolower($this->uri->uri_string())), 'location', 301); 129 } 204 if (preg_match('/[A-Z]/', $this->uri->uri_string())) { 205 redirect(site_url(strtolower($this->uri->uri_string())), 'location', 301); 206 } 224 $paginationConfig['num_links'] = 3; 225 include_once "./templates/{$this->config->item('template')}/paginations.php"; 226 306 307/* End of file gallery.php */NumberFieldTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 328 lines
1<?php 2 64 // Create a field with settings to validate. 65 $field_name = drupal_strtolower($this->randomName()); 66 entity_create('field_entity', array( 157 $name = $this->randomName(); 158 $type = drupal_strtolower($name); 159 $edit = array('name' => $name, 'type' => $type); 163 $label = $this->randomName(); 164 $field_name = drupal_strtolower($label); 165 $edit = array( 197 function testNumberFormatter() { 198 $type = drupal_strtolower($this->randomName()); 199 $float_field = drupal_strtolower($this->randomName()); 199 $float_field = drupal_strtolower($this->randomName()); 200 $integer_field = drupal_strtolower($this->randomName()); 201 $thousand_separators = array('', '.', ',', ' ', chr(8201), "'");examples.rst git://github.com/josegonzalez/upload.git | ReStructuredText | 323 lines
18 19.. code:: php 20 20 21 <?php 22 /* 23 In the present example, these changes would be made in: 24 src/Model/Table/UsersTable.php 25 */ 51 52.. code:: php 53 53 54 <?php 55 /*domain_view.php https://github.com/hggh/cpves.git | PHP | 362 lines
1<?php 2/****************************************************************************** 105 else { 106 $addr=trim(strtolower($_POST['sa_whitelist_data_add'])); 107 $sql=sprintf("INSERT INTO sa_wb_listing SET domainid='%s',email='0',sa_from='%s',type='1'",mysql_collation.php git://github.com/moodle/moodle.git | PHP | 328 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 26 27require(__DIR__.'/../../config.php'); 28require_once($CFG->libdir.'/clilib.php'); // cli only functions 55Example: 56\$ sudo -u www-data /usr/bin/php admin/cli/mysql_collation.php --collation=utf8mb4_unicode_ci 57"; 61 $collation = clean_param($options['collation'], PARAM_ALPHANUMEXT); 62 $collation = strtolower($collation); 63 if (!isset($collations[$collation])) { 69 70 $engine = strtolower($DB->get_dbengine()); 71PluginsShell.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 356 lines
1<?php 2/** 85 86 $choice = (string)strtolower($this->in(__d('installer', 'What would you like to do?'), ['1', '2', '3', '4', 'H', 'Q'])); 87 switch ($choice) {corpCorporationSheet.php https://code.google.com/p/yapeal/ | PHP | 331 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 6 * 7 * LICENSE: This file is part of Yet Another Php Eve Api library also know 8 * as Yapeal which will be used to refer to it in the rest of this license. 41 $mess = basename(__FILE__) 42 . ' must be included it can not be ran directly.' . PHP_EOL; 43 if (PHP_SAPI != 'cli') { 68 // Cut off 'A' and lower case abstract class name to make section name. 69 $this->section = strtolower(substr(get_parent_class($this), 1)); 70 $this->api = str_replace($this->section, '', __CLASS__); 147 catch (ADODB_Exception $e) { 148 $mess = 'Uncaught ADOdb exception' . PHP_EOL; 149 Logger::getLogger('yapeal')->warn($mess);Inflector.php https://github.com/dubacher/azine.git | PHP | 278 lines
1<?php 2/* 2/* 3 * $Id: Inflector.php 3189 2007-11-18 20:37:44Z meus $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 25 * The methods in these classes are from several different sources collected 26 * across several different php projects and several different authors. The 27 * original author names and emails are not known 30 * @subpackage Inflector 31 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 32 * @link www.phpdoctrine.org 47 { 48 return strtolower(preg_replace('~(?<=\\w)([A-Z])~', '_$1', $word)); 49 }process.php http://praticarh.googlecode.com/svn/trunk/ | PHP | 280 lines
1<?php 2/** 2/** 3 * Process.php 4 * 12 */ 13include_once 'config/config.inc.php'; 14include_once 'lib/LoginSystem/Session.class.php'; 14include_once 'lib/LoginSystem/Session.class.php'; 15include_once 'plugins/validateUsername.function.php'; 16 81 { 82 header("Location: login.php"); 83 } 124 { 125 header("Location: index.php"); 126 }Router.php http://php-personal-budget.googlecode.com/svn/trunk/ | PHP | 374 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 80 81 // Load the routes.php file. 82 @include(APPPATH.'config/routes'.EXT); 87 // the URI doesn't correlated to a valid controller. 88 $this->default_controller = ( ! isset($this->routes['default_controller']) OR $this->routes['default_controller'] == '') ? FALSE : strtolower($this->routes['default_controller']); 89 233 * This function matches any routes that may exist in 234 * the config/routes.php file against the URI to 235 * determine if the class/method need to be remapped.ConfigurationTest.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 431 lines
1<?php 2/** 28 public static $test_files = array( 29 '/classes/log/index.php', 30 '/classes/cache/index.php', 30 '/classes/cache/index.php', 31 '/config/index.php', 32 '/controllers/admin/AdminLoginController.php', 32 '/controllers/admin/AdminLoginController.php', 33 '/download/index.php', 34 '/js/tools.js', 36 '/localization/fr.xml', 37 '/mails/index.php', 38 '/modules/index.php', 38 '/modules/index.php', 39 '/override/controllers/front/index.php', 40 '/pdf/order-return.tpl',CustomMethods.php git://github.com/silverstripe/sapphire.git | PHP | 293 lines
1<?php 2 133 * 134 * This should be used rather than PHP's inbuild method_exists() as it takes into account methods added via 135 * extensions 151 $class = get_class($this); 152 if(isset(self::$extra_methods[$class][strtolower($method)])) { 153 return self::$extra_methods[$class][strtolower($method)]; 166 if(!isset(self::$built_in_methods[$class])) { 167 self::$built_in_methods[$class] = array_map('strtolower', get_class_methods($this)); 168 } 187 if (!isset(self::$built_in_methods[$extension->class])) { 188 self::$built_in_methods[$extension->class] = array_map('strtolower', get_class_methods($extension)); 189 } 271 $class = get_class($this); 272 self::$extra_methods[$class][strtolower($method)] = array ( 273 'wrap' => $wrap,user.php git://github.com/joomla/joomla-platform.git | PHP | 0 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;Meta.php https://code.google.com/p/ecartcommerce/ | PHP | 247 lines
1<?php 2/** 80 foreach ($this->_config->titlePattern as $titlePart) { 81 switch (strtolower($titlePart)) { 82 case 'page title':DriverPeer.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 341 lines
1<?php 2 186 187 //$needle='/drivers/web/index.php/en/driver/search'; 188 //$req = str_replace($_SERVER['SCRIPT_NAME'].$act, '', stristr(ParseINF::selfURL(), $needle)); 203 $string['type'] = $item_array[1].'\\'; 204 elseif ($item_array[0] == 'vid' && isset($string['type']) && strtolower($string['type']) == 'usb\\') 205 $string['vid'] = 'vid_'.$item_array[1]; 205 $string['vid'] = 'vid_'.$item_array[1]; 206 elseif ($item_array[0] == 'vid' && isset($string['type']) && strtolower($string['type']) == 'pci\\') 207 $string['vid'] = 'ven_'.$item_array[1]; 207 $string['vid'] = 'ven_'.$item_array[1]; 208 elseif ($item_array[0] == 'pid' && isset($string['type']) && isset($string['vid']) && strtolower($string['type']) == 'usb\\') 209 $string['pid'] = '&pid_'.$item_array[1]; 209 $string['pid'] = '&pid_'.$item_array[1]; 210 elseif ($item_array[0] == 'pid' && isset($string['type']) && isset($string['vid']) && strtolower($string['type']) == 'pci\\') 211 $string['pid'] = '&dev_'.$item_array[1];function.mtvar.php git://github.com/openmelody/melody.git | PHP | 194 lines
1<?php 2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd. 12 && !array_key_exists('op', $args) ) { 13 require_once("function.mtsetvar.php"); 14 return smarty_function_mtsetvar($args, $ctx); 15 } 16 require_once("MTUtil.php"); 17 $vars =& $ctx->__stash['vars']; 21 if (preg_match('/^(config|request)\.(.+)$/i', $name, $m)) { 22 if (strtolower($m[1]) == 'config') { 23 if (!preg_match('/password/i', $m[2])) { 24 global $mt; 25 return $mt->config[strtolower($m[2])]; 26 } 27 } 28 elseif (strtolower($m[1]) == 'request') { 29 return $_REQUEST[$m[2]];SilvercartProductExport.php https://bitbucket.org/silvercart/silvercart/ | PHP | 190 lines
1<?php 2/** 144 * 145 * @author Aidan Lister <aidan@php.net> 146 * @version 2.0.1 172 } 173 $segments[strtolower($period)] = $count; 174 $seconds = $seconds % $value;SqliteDataSourceProvider.class.php git://github.com/recess/recess.git | PHP | 248 lines
1<?php 2Library::import('recess.database.pdo.IPdoDataSourceProvider'); 137 } else { 138 $recessType = ucfirst(strtolower($recessType)); 139 }hValidate.php https://code.google.com/p/osclass/ | PHP | 309 lines
1<?php 2 /* 163 $data = City::newInstance()->findByPrimaryKey($city); 164 if ($data['b_active'] == 1 && $data['fk_i_region_id'] == $regionId && strtolower($data['fk_c_country_code']) == strtolower($countryId)) { 165 return true;Streams.php git://github.com/jlogsdon/php-cli-tools.git | PHP | 257 lines
1<?php 2 167 // Make every choice character lowercase except the default 168 $choice = str_ireplace( $default, strtoupper( $default ), strtolower( $choice ) ); 169 // Seperate each choice with a forward-slash 175 if( stripos( $choice, $line ) !== false ) { 176 return strtolower( $line ); 177 } 178 if( !empty( $default ) ) { 179 return strtolower( $default ); 180 }Worksheet.php git://github.com/moodle/moodle.git | PHP | 186 lines
1<?php 2 57 58 /** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */ 59 $this->stringsEscaper = new \Box\Spout\Common\Escaper\XLSX(); 60 61 $this->worksheetFilePath = $worksheetFilesFolder . '/' . strtolower($this->externalSheet->getName()) . '.xml'; 62 $this->startSheet();IPSECKEY.php http://netdns2.googlecode.com/svn/trunk/ | PHP | 385 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP Version 5 8 * 44 * @copyright 2010 Mike Pultz <mike@mikepultz.com> 45 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 46 * @version SVN: $Id: IPSECKEY.php 125 2011-12-03 00:19:49Z mike.pultz $ 46 * @version SVN: $Id: IPSECKEY.php 125 2011-12-03 00:19:49Z mike.pultz $ 47 * @link http://pear.php.net/package/Net_DNS2 48 * @since File available since Release 0.6.0 68 * @author Mike Pultz <mike@mikepultz.com> 69 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 70 * @link http://pear.php.net/package/Net_DNS2 171 $algorithm = array_shift($rdata); 172 $gateway = strtolower(trim(array_shift($rdata))); 173 $key = array_shift($rdata);microsync.php https://bitbucket.org/waldyrious/mixnmatch.git | PHP | 330 lines
1#!/usr/bin/php 2<?PHP 3 4require_once ( 'public_html/php/common.php' ) ; 5error_reporting(E_ERROR|E_CORE_ERROR|E_ALL|E_COMPILE_ERROR); 6require_once ( 'opendb.inc' ) ; // $db = openMixNMatchDB() ; 7require_once ( '../listeria/Chris-G-botclasses/botclasses.php' ); 8 38 $label = trim ( $label ) ; 39 if ( !preg_match ( '/[a-z]/' , $label ) ) $label = ucwords ( strtolower ( $label ) ) ; // First letter uppercase, if no lower-case letters detected 40 $label = preg_replace ( '/ +/' , ' ' , $label ) ; // Remove multiple spaces 296 $w->quiet = true ; 297 $w->url = "https://www.wikidata.org/w/api.php"; 298 $w->setUserAgent( 'User-Agent: '.$wiki_user.' (http://www.wikidata.org/wiki/User:' . str_replace(' ','_',$wiki_user) . ')' ); 327 328//file_get_contents ( 'https://tools.wmflabs.org/mix-n-match/api.php?query=update_overview' ) ; // Update stats 329image.php git://github.com/enormego/EightPHP.git | PHP | 463 lines
1<?php 2/** 6 * @subpackage Helpers 7 * @author EightPHP Development Team 8 * @copyright (c) 2009-2010 EightPHP 8 * @copyright (c) 2009-2010 EightPHP 9 * @license http://license.eightphp.com 10 */ 366 public static function toString(&$im, $type='jpeg') { 367 $type = ltrim(rtrim(strtolower($type))); 368 ob_start();htmlfixer.class.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 455 lines
1<?php 2// ------------------------------------------------- 52 53 private function fixStrToLower($m){ 54 /* 58 $left = str_replace($right,'',$m); 59 return strtolower($left).$right; 60 } 98 for ($i=0;$i<count($ar);$i++) { 99 $ar[$i]=$this->fixStrToLower($ar[$i]); 100 if (stristr($ar[$i],"=")) $ar[$i] = $this->fixQuotes($ar[$i]); // thanks to emmanuel@evobilis.comGetStockImage.php https://git01.codeplex.com/kwamoja | PHP | 351 lines
1<?php 2 6/* 7http://127.0.0.1/~brink/KwaMoja/GetStockImage.php 8?automake=1&width=81&height=74&stockid=&textcolor=FFFFF0&bevel=3&text=aa&bgcolor=007F00 54 include('includes/header.inc'); 55 prnMsg(_('This script requires the gd image functions to be available to php - this needs to be enabled in your server php version before this script can be used'),'error'); 56 include('includes/footer.inc'); 114else { 115 $type = strtolower(mb_substr($StockID,$i+1,mb_strlen($StockID))); 116 $StockID = mb_substr($StockID,0,$i); 145 prnMsg( _('The Image could not be retrieved because it does not exist'), 'error'); 146 echo '<br /><a href="' .$RootPath .'/index.php">'. _('Back to the menu'). '</a>'; 147 include('includes/footer.inc');importcsv.php https://bitbucket.org/wez/mtrack/ | PHP | 327 lines
1<?php # vim:ts=2:sw=2:et: 2include '../../inc/common.php'; 53 foreach ($header as $i => $name) { 54 $name = strtolower($name); 55 if (isset($field_aliases[$name])) { 177 } 178 header("Location: {$ABSWEB}admin/importcsv.php"); 179 exit; 283 284<?php 285 323 324<?php 325mtrack_foot();PagePreviewTest.php git://github.com/drupal/drupal.git | PHP | 342 lines
1<?php 2 89 // Create a field. 90 $this->fieldName = Unicode::strtolower($this->randomMachineName()); 91 $handler_settings = array(module.audio-video.nsv.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 210 lines
1<?php 2// +----------------------------------------------------------------------+ 2// +----------------------------------------------------------------------+ 3// | PHP version 5 | 4// +----------------------------------------------------------------------+ 16// +----------------------------------------------------------------------+ 17// | module.audio-video.nsv.php | 18// | module for analyzing Nullsoft NSV files | 21// 22// $Id: module.audio-video.nsv.php,v 1.3 2006/11/02 10:48:00 ah Exp $ 23 177 list($key, $value) = explode('='."\x01", $comment_pair, 2); 178 $getid3->info['nsv']['comments'][strtolower($key)][] = trim(str_replace("\x01", '', $value)); 179 }ResponseTransformer.php git://github.com/cakephp/cakephp.git | PHP | 238 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 3.3.0 12 * @since 3.3.0 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 23/** 24 * This class converts PSR7 responses into CakePHP ones and back again. 25 * 33 /** 34 * Convert a PSR7 Response into a CakePHP one. 35 *css_selector.php http://skeleton.googlecode.com/svn/trunk/ | PHP | 312 lines
1<?php 2 6 * @author Perrick Penet <perrick@noparking.net> 7 * @version $Id: css_selector.php 1538 2007-06-08 20:37:35Z pp11 $ 8 */ 61 $element = $xpath->query(sprintf("//*[@id = '%s']", $id))->item(0); 62 if (!$element || ($tagName && strtolower($element->nodeName) != $tagName)) 63 {