100+ results results for 'php strtolower repo:gmarrot/jelix' (394 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 }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 }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 */SfObjectBuilder.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());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 }KurogoSite.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)); 128anekdotru.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);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 */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);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'],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',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;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':prefilter.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]);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)) {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))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;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 }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) {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.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 headerphp.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});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 */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 /*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);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.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);image.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();GetStockImage.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 {post.php http://arlicle.googlecode.com/svn/trunk/ | PHP | 172 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2 130 $key = trim(URI::segment(2)); 131 if (strtolower(URI::segment(1)) != Kohana::config('arlicle.post_uri') or empty($key)) { 132 return false;ctl.delivery_printer.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 242 lines
1<?php 2include_once('objectPage.php'); 52 if(file_exists(HOME_DIR.'/upload/dly_bg_'.$_POST['dly_tmpl_id'].'.jpg')){ 53 $this->pagedata['tmpl_bg'] = 'index.php?ctl=order/delivery_printer&act=show_bg_picture&p[0]='.DPGB_HOME_MODE.'&p[1]='.$_POST['dly_tmpl_id']; 54 } 69 if(file_exists(HOME_DIR.'/upload/dly_bg_'.$tmpl_id.'.jpg')){ 70 $this->pagedata['tmpl_bg'] = 'index.php?ctl=order/delivery_printer&act=show_bg_picture&p[0]='.DPGB_HOME_MODE.'&p[1]='.$tmpl_id; 71 } 74 }else{ 75 $this->splash('failed','index.php?ctl=order/delivery_printer&act=index',__('????????id')); 76 } 83 function do_upload_pkg(){ 84 $this->begin('index.php?ctl=order/delivery_printer&act=import'); 85 $file = $_FILES['package']; 85 $file = $_FILES['package']; 86 $extname = strtolower(ext_name($file['name'])); 87 $tar = &$this->system->loadModel('utility/tar');Route.php git://github.com/symfony/symfony.git | PHP | 568 lines
1<?php 2 201 { 202 $this->schemes = array_map('strtolower', (array) $schemes); 203 $this->compiled = null; 214 { 215 return \in_array(strtolower($scheme), $this->schemes, true); 216 }Xml.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 351 lines
1<?php 2/** 6 * 7 * PHP 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package Cake.Utility 17 * @package Cake.Utility 18 * @since CakePHP v .0.10.3.1400 19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 213 // http://www.w3.org/TR/REC-xml/#syntax 214 // https://bugs.php.net/bug.php?id=36795 215 $child = $dom->createElement($key, '');OperationsController.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 326 lines
1<?php 2 4 5namespace PhpMyAdmin\Controllers\Database; 6 6 7use PhpMyAdmin\Charsets; 8use PhpMyAdmin\CheckUserPrivileges; 8use PhpMyAdmin\CheckUserPrivileges; 9use PhpMyAdmin\DatabaseInterface; 10use PhpMyAdmin\Html\Generator; 10use PhpMyAdmin\Html\Generator; 11use PhpMyAdmin\Message; 12use PhpMyAdmin\Operations; 12use PhpMyAdmin\Operations; 13use PhpMyAdmin\Plugins; 14use PhpMyAdmin\Plugins\Export\ExportSql;FileToolbox.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 177 lines
1<?php 2/** 151 152 return strtolower( 153 substr(REST.php git://github.com/atk4/atk4.git | PHP | 196 lines
1<?php 2/** 102 try { 103 $file = $this->app->locatePath('endpoint', str_replace('_', '/', $this->page).'.php'); 104 include_once $file; 131 132 $method = strtolower($_SERVER['REQUEST_METHOD']); 133 $raw_post = file_get_contents('php://input');MimePart.php git://github.com/snytkine/LampCMS.git | PHP | 224 lines
1<?php 2 202 { 203 $charset = strtolower($this->getCharset()); 204 if (!in_array($charset, array('utf-8', 'iso-8859-1', "")))User.php http://digitalus-cms.googlecode.com/svn/trunk/ | PHP | 423 lines
1<?php 2/** 18 * @license http://digitalus-media.com/license/new-bsd New BSD License 19 * @version $Id: User.php Mon Dec 24 20:38:38 EST 2007 20:38:38 forrest lyman $ 20 * @link http://www.digitaluscms.com 26 */ 27require_once 'Digitalus/Db/Table.php'; 28 226 $user = $this->getUserByUsername($userName); 227 switch ((string)strtolower($format)) { 228 case 'firstname': 316 { 317 $userName = strtolower($userName); 318 if (!is_array($exclude)) { 343 { 344 $openId = strtolower($openId); 345auth_ldap.inc git://pkgs.fedoraproject.org/mrbs | PHP | 512 lines
1<?php 2 45 { 46 die("<hr><p><b>ERROR: PHP's 'ldap' extension is not installed/enabled. ". 47 "Please check your MRBS and web server configuration.</b></p><hr>\n"); 277 "(objectclass=*)", 278 array(strtolower($email_attrib)) 279 ); 283 $entries = ldap_get_entries($ldap, $res); 284 $object['email'] = $entries[0][strtolower($email_attrib)][0]; 285 426 "(objectclass=*)", 427 array(strtolower($group_member_attrib)) 428 ); 433 $entries = ldap_get_entries($ldap, $res); 434 foreach ($entries[0][strtolower($group_member_attrib)] as $group) 435 {clilib.php https://github.com/nicolasconnault/moodle2.0.git | PHP | 544 lines
1<?php //$Id: clilib.php,v 1.2 2009/01/10 20:44:45 skodak Exp $ 2/** 8set_include_path($CFG->libdir . PATH_SEPARATOR . $CFG->libdir . '/pear/'); 9require_once('Console/Getopt.php'); 10 60 $valid=array('yes','y','n','no'); 61 $value=strtolower($value); 62 107 foreach ($set as $key=>$opt) { 108 $set[$key]=strtolower($opt); 109 } 109 } 110 $value=strtolower($value); 111 if (in_array($value,$set)) { 121 * If value match the type return true, false otherwise 122 * uses {@link clean_param()} in moodlelib.php 123 * @param mixedtype $valuePage.php git://github.com/valentinbora/joobsbox-php.git | PHP | 401 lines
1<?php 2/** 25 */ 26require_once 'Zend/Cache/Core.php'; 27 131 while (list($name, $value) = each($options)) { 132 $name = strtolower($name); 133 switch ($name) { 170 } 171 $key = strtolower($key); 172 if (isset($this->_specificOptions['default_options'][$key])) { 317 $headerSentName = trim(array_shift($tmp)); 318 if (strtolower($headerName) == strtolower($headerSentName)) { 319 $headerSentValue = trim(implode(':', $tmp)); 342 foreach (array('Get', 'Post', 'Session', 'Files', 'Cookie') as $arrayName) { 343 $tmp2 = $this->_makePartialId($arrayName, $this->_activeOptions['cache_with_' . strtolower($arrayName) . '_variables'], $this->_activeOptions['make_id_with_' . strtolower($arrayName) . '_variables']); 344 if ($tmp2===false) {retorno.php https://github.com/visie/PagSeguro.git | PHP | 319 lines
1<?php 2/** 6 * 7 * PHP Version 5 8 * 12 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) 13 * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence 14 * @link http://visie.com.br/pagseguro 28 * @author dgmike <mike@visie.com.br> 29 * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence 30 * @link http://visie.com.br/pagseguro 73 * 74 * Checa qual será a conexao de acordo com a versao do PHP 75 * preferencialmente em CURL ou via socket 100 { 101 // Prefira utilizar a função CURL do PHP 102 // Leia mais sobre CURL em: http://us3.php.net/curlview.php git://github.com/abalonepaul/eav_behavior.git | PHP | 491 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 150 $methods = array_diff( 151 array_map('strtolower', get_class_methods($this->controllerName . 'Controller')), 152 array_map('strtolower', get_class_methods('appcontroller')) 168 } 169 if ($method[0] === '_' || $method == strtolower($this->controllerName . 'Controller')) { 170 unset($methods[$i]); 237 238 if (strtolower($wannaDoScaffold) == 'y' || strtolower($wannaDoAdmin) == 'y') { 239 $vars = $this->__loadController();class.curl.php git://pkgs.fedoraproject.org/zabbix | PHP | 313 lines
1<?php 2/* 70 if ($protocolSepIndex !== false) { 71 $this->protocol = zbx_strtolower(zbx_substring($this->url, 0, $protocolSepIndex)); 72 $this->host = substr($this->url, $protocolSepIndex + 3);Page.php git://github.com/silverstripe/sapphire.git | PHP | 405 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Page.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 26 */ 27require_once 'Zend/Cache/Core.php'; 28 132 while (list($name, $value) = each($options)) { 133 $name = strtolower($name); 134 switch ($name) { 320 $headerSentName = trim(array_shift($tmp)); 321 if (strtolower($headerName) == strtolower($headerSentName)) { 322 $headerSentValue = trim(implode(':', $tmp)); 345 foreach (array('Get', 'Post', 'Session', 'Files', 'Cookie') as $arrayName) { 346 $tmp2 = $this->_makePartialId($arrayName, $this->_activeOptions['cache_with_' . strtolower($arrayName) . '_variables'], $this->_activeOptions['make_id_with_' . strtolower($arrayName) . '_variables']); 347 if ($tmp2===false) {UserHelper.php git://github.com/CakeDC/users.git | PHP | 268 lines
1<?php 2declare(strict_types=1); 10 * @copyright Copyright 2010 - 2018, Cake Development Corporation (https://www.cakedc.com) 11 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 12 */ 52 $icon = $this->Html->tag('i', '', [ 53 'class' => 'fa fa-' . strtolower($name), 54 ]); 61 62 $providerClass = 'btn btn-social btn-' . strtolower($name); 63 $optionClass = $options['class'] ?? null; 215 $optionClass = $provider['options']['class'] ?? null; 216 $linkClass = 'btn btn-social btn-' . strtolower($name) . ($optionClass ? ' ' . $optionClass : ''); 217 if ($isConnected) { 248 function ($item) { 249 return strtolower($item->provider); 250 },PropelTableComparator.php https://gitlab.com/Oxidire/UM.git | PHP | 312 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/../Table.php'; 12require_once dirname(__FILE__) . '/PropelTableDiff.php'; 12require_once dirname(__FILE__) . '/PropelTableDiff.php'; 13require_once dirname(__FILE__) . '/PropelColumnComparator.php'; 14require_once dirname(__FILE__) . '/PropelColumnDiff.php'; 14require_once dirname(__FILE__) . '/PropelColumnDiff.php'; 15require_once dirname(__FILE__) . '/PropelIndexComparator.php'; 16require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php'; 233 $test = $caseInsensitive ? 234 strtolower($fromTableIndex->getName()) == strtolower($toTableIndex->getName()) : 235 $fromTableIndex->getName() == $toTableIndex->getName(); 282 $test = $caseInsensitive ? 283 strtolower($fromTableFk->getName()) == strtolower($toTableFk->getName()) : 284 $fromTableFk->getName() == $toTableFk->getName();phmagick.php http://bedita.googlecode.com/svn/trunk/ | PHP | 341 lines
1<?php 2/* 51 if(is_null($this->escapeChars) ){ 52 $this->escapeChars = !( strtolower ( substr( php_uname('s'), 0, 3)) == "win" ) ; 53 } 163 $base = dirname(__FILE__) . '/plugins'; 164 $plugins = glob($base . '/*.php'); 165 foreach($plugins as $plugin){ 166 include_once $plugin ; 167 $name = basename($plugin, '.php'); 168 $className = 'phMagick_'.$name ;view.html.php http://getk2.googlecode.com/svn/trunk/ | PHP | 218 lines
1<?php 2/** 2/** 3 * @version $Id: view.html.php 1551 2012-04-19 12:04:25Z lefteris.kavadas $ 4 * @package K2 33 $search = $mainframe->getUserStateFromRequest($option.$view.'search', 'search', '', 'string'); 34 $search = JString::strtolower($search); 35 JModel::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.DS.'models'); 63 } 64 $users[$i]->link = JRoute::_('index.php?option=com_k2&view=user&cid='.$users[$i]->id); 65 131 else { 132 $toolbar->appendButton('Popup', 'config', 'K2_PARAMETERS', 'index.php?option=com_k2&view=settings'); 133 } 140 if (!$params->get('hideImportButton')){ 141 $buttonUrl = JURI::base().'index.php?option=com_k2&view=users&task=import'; 142 $buttonText = JText::_('K2_IMPORT_JOOMLA_USERS');acp_module_maintenance.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 409 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 36{ 37 include_once(IP_ROOT_PATH . 'includes/functions_admin.' . PHP_EXT); 38} 43 $latest_version_info = explode("\n", $latest_ip_version); 44 $latest_version = str_replace('rc', 'RC', strtolower(trim($latest_version_info[0]))); 45 $current_version = str_replace('rc', 'RC', strtolower($config['ip_version'])); 87 88// Lets see what the new versions are (Uplink) [original code (C) phpBB Group] 89if ($fsock = @fsockopen('www.community.cback.de', 80, $errno, $errstr, 10)) 129 130// PHP Version test 131if ( @phpversion() >= '5.0.0' )Profiler.php https://gitlab.com/israel.correa/Expresso.git | PHP | 460 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 249 if (null === $queryType) { 250 switch (strtolower(substr(ltrim($queryText), 0, 6))) { 251 case 'insert': 271 */ 272 require_once 'Zend/Db/Profiler/Query.php'; 273 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 299 */ 300 require_once 'Zend/Db/Profiler/Exception.php'; 301 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 310 */ 311 require_once 'Zend/Db/Profiler/Exception.php'; 312 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");user.class.php http://xklog.googlecode.com/svn/ | PHP | 271 lines
1<?php 2 24 // ?????? 25 'logintime' => PHP_TIME, 26 // ?????? 26 // ?????? 27 'actiontime' => PHP_TIME, 28 // ?????? 76 } 77 if ( $result['u_password'] != strtolower( md5( APP_PREFIX . $password ) ) && $result['u_password'] != $password ) { 78 return -2; 84 $this->user['email'] = $result['u_email']; 85 $this->user['actiontime'] = PHP_TIME; 86 153 if ( empty( $val ) ) continue; 154 if ( !( strpos( strtolower( $username ), strtolower( $val ) ) === false) ) { 155 return -2;Profiler.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 258 if (null === $queryType) { 259 switch (strtolower(substr(ltrim($queryText), 0, 6))) { 260 case 'insert': 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 308 */ 309 require_once 'Zend/Db/Profiler/Exception.php'; 310 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 319 */ 320 require_once 'Zend/Db/Profiler/Exception.php'; 321 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");Panel.php git://github.com/AlephTav/Aleph.git | PHP | 403 lines
1<?php 2/** 141 { 142 if (strtolower($property) == 'expire') $this->tpl->cacheExpire = $value; 143 parent::offsetSet($property, $value); 397 $tpl = $this->tpl->getTemplate(); 398 $tag = Utils\PHP\Tools::getClassName($this); 399 $html = '<' . $tag . $this->renderXHTMLAttributes() . '>';themes.php http://novaboard.googlecode.com/svn/trunk/ | PHP | 487 lines
18 19require_once "scripts/php/dUnzip2.inc.php"; 20 20 21template_hook("pages/admin/themes.template.php", "start"); 22 24 25 nova_redirect("index.php?page=error&error=11","error/11"); 26 275 276if (file_exists("themes/$theme_name/uninstall.php")){ 277include "themes/$theme_name/uninstall.php"; 479 480template_hook("pages/admin/themes.template.php", "13");*/ 481Message.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 24 */ 25require_once 'Zend/Mime.php'; 26 29 */ 30require_once 'Zend/Mime/Part.php'; 31 243 { 244 require_once 'Zend/Mime/Decode.php'; 245 $parts = Zend_Mime_Decode::splitMessageStruct($message, $boundary, $EOL); 254 */ 255 switch(strtolower($key)) { 256 case 'content-type':write.flac.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 155 lines
1<?php 2// +----------------------------------------------------------------------+ 2// +----------------------------------------------------------------------+ 3// | PHP version 5 | 4// +----------------------------------------------------------------------+ 16// +----------------------------------------------------------------------+ 17// | write.flac.php | 18// | writing module for flac tags | 21// 22// $Id: write.flac.php,v 1.9 2006/12/03 20:02:25 ah Exp $ 23 33 if (ini_get('safe_mode')) { 34 throw new getid3_exception('PHP running in Safe Mode (backtick operator not available). Cannot call metaflac binary.'); 35 } 66 67 $key = strtolower(substr($line, 0, $pos)); 68 $value = substr($line, $pos+1);Ftp.php git://github.com/dg/ftp-php.git | PHP | 265 lines
1<?php 2 8 * @license New BSD License 9 * @link http://phpfashion.com/ 10 * @version 1.2 89 if (!extension_loaded('ftp')) { 90 throw new Exception('PHP extension FTP is not loaded.'); 91 } 117 { 118 $name = strtolower($name); 119 $silent = strncmp($name, 'try', 3) === 0;Standards.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 326 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 */ 9 10namespace PHP_CodeSniffer\Util; 11 11 12use PHP_CodeSniffer\Config; 13 66 * @param string $standardsDir A specific directory to look for standards 67 * in. If not specified, PHP_CodeSniffer will 68 * look in its default locations. 155 * @param string $standardsDir A specific directory to look for standards 156 * in. If not specified, PHP_CodeSniffer will 157 * look in its default locations.Tokenizer.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 1646 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 */ 9 10namespace PHP_CodeSniffer\Tokenizers; 11 11 12use PHP_CodeSniffer\Exceptions\RuntimeException; 13use PHP_CodeSniffer\Util; 20 * 21 * @var \PHP_CodeSniffer\Config 22 */ 78 * @param string $content The content to tokenize, 79 * @param \PHP_CodeSniffer\Config | null $config The config data for the run. 80 * @param string $eolChar The EOL char used in the content.htmLawed.php git://github.com/q2a/question2answer.git | PHP | 729 lines
1<?php 2 6Dual licensed with LGPL 3 and GPL 2+ 7A PHP Labware internal utility - www.bioinformatics.org/phplabware/internal_utilities/htmLawed 8 39// config attrs 40$x = !empty($C['deny_attribute']) ? strtolower(str_replace(array("\n", "\r", "\t", ' '), '', $C['deny_attribute'])) : ''; 41$x = array_flip((isset($x[0]) && $x[0] == '*') ? str_replace('/', 'data-', explode('-', str_replace('data-', '/', $x))) : explode(',', $x. (!empty($C['safe']) ? ',on*' : ''))); 43// config URLs 44$x = (isset($C['schemes'][2]) && strpos($C['schemes'], ':')) ? strtolower($C['schemes']) : 'href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, tel, telnet'. (empty($C['safe']) ? ', app, javascript; *: data, javascript, ' : '; *:'). 'file, http, https'; 45$C['schemes'] = array(); 76$C['no_deprecated_attr'] = isset($C['no_deprecated_attr']) ? $C['no_deprecated_attr'] : 1; 77$C['parent'] = isset($C['parent'][0]) ? strtolower($C['parent']) : 'body'; 78$C['show_setting'] = !empty($C['show_setting']) ? $C['show_setting'] : 0;admin-default.php git://github.com/q2a/question2answer.git | PHP | 1857 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 26 27require_once QA_INCLUDE_DIR . 'db/admin.php'; 28require_once QA_INCLUDE_DIR . 'db/maxima.php'; 28require_once QA_INCLUDE_DIR . 'db/maxima.php'; 29require_once QA_INCLUDE_DIR . 'db/selects.php'; 30require_once QA_INCLUDE_DIR . 'app/options.php'; 30require_once QA_INCLUDE_DIR . 'app/options.php'; 31require_once QA_INCLUDE_DIR . 'app/admin.php'; 32 35 36$adminsection = strtolower(qa_request_part(1)); 37admin-categories.php git://github.com/q2a/question2answer.git | PHP | 649 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 26 27require_once QA_INCLUDE_DIR . 'app/admin.php'; 28require_once QA_INCLUDE_DIR . 'db/selects.php'; 28require_once QA_INCLUDE_DIR . 'db/selects.php'; 29require_once QA_INCLUDE_DIR . 'db/admin.php'; 30require_once QA_INCLUDE_DIR . 'app/format.php'; 129 } else { 130 require_once QA_INCLUDE_DIR . 'util/string.php'; 131 151 strcmp($category['categoryid'], @$editcategory['categoryid']) && 152 qa_strtolower($category['title']) == qa_strtolower($inname) 153 ) {ArrayDeclarationSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 879 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 */ 9 10namespace PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays; 11 37 * 38 * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being checked. 39 * @param int $stackPtr The position of the current token in 135 * 136 * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being checked. 137 * @param int $stackPtr The position of the current token 303 * 304 * @param \PHP_CodeSniffer\Files\File $phpcsFile The current file being checked. 305 * @param int $stackPtr The position of the current tokenFieldUIControllerTrait.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 616 lines
1<?php 2/** 41 * 42 * ```php 43 * uses Field\Controller\FieldUIControllerTrait; 53 * 54 * ```php 55 * uses Field\Controller\FieldUIControllerTrait; 108 throw new ForbiddenException(__d('field', 'FieldUIControllerTrait: This trait must be used on instances of Cake\Controller\Controller.')); 109 } elseif (!isset($requestParams['prefix']) || strtolower($requestParams['prefix']) !== 'admin') { 110 throw new ForbiddenException(__d('field', 'FieldUIControllerTrait: This trait must be used on backend-controllers only.'));ClassDeclarationSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 479 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 */ 9 10namespace PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes; 11 11 12use PHP_CodeSniffer\Standards\PEAR\Sniffs\Classes\ClassDeclarationSniff as PEARClassDeclarationSniff; 13use PHP_CodeSniffer\Util\Tokens; 29 * 30 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 31 * @param int $stackPtr The position of the current token 55 * 56 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 57 * @param int $stackPtr The position of the current tokenFunctionDeclarationSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 481 lines
56 * 57 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 58 * @param int $stackPtr The position of the current token 150 if ($tokens[$stackPtr]['code'] === T_CLOSURE) { 151 $use = $phpcsFile->findNext(T_USE, ($closeBracket + 1), $tokens[$stackPtr]['scope_opener']); 152 if ($use !== false) { 208 * 209 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 210 * @param int $stackPtr The position of the current token 249 * 250 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 251 * @param int $stackPtr The position of the current token 274 * 275 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 276 * @param int $stackPtr The position of the current tokenFileCommentSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 569 lines
86 * 87 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 88 * @param int $stackPtr The position of the current token 177 } else if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING 178 && strstr(strtolower($tokens[$i]['content']), 'php version') !== false 179 ) { 201 * 202 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 203 * @param int $stackPtr The position of the current token 300 * 301 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 302 * @param array $tags The tokens for these tags. 342 * 343 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 344 * @param array $tags The tokens for these tags.