100+ results results for 'php strtolower repo:ekkl/tanora' (433 ms)
1<?php 2/* 2/* 3 * $Id: Mssql.php 7490 2010-03-29 19:53:27Z jwage $ 4 * 24 * @subpackage DataDict 25 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 26 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @author Frank M. Kromann <frank@kromann.info> (PEAR MDB2 Mssql driver) 29 * @author David Coallier <davidc@php.net> (PEAR MDB2 Mssql driver) 30 * @version $Revision: 7490 $ 125 { 126 $db_type = preg_replace('/[\d\(\)]/','', strtolower($field['type']) ); 127 $length = (isset($field['length']) && $field['length'] > 0) ? $field['length'] : null;Logger.php https://gitlab.com/nitm/yii2-module | PHP | 395 lines
1<?php 2 38 parent::init(); 39 $this->currentUser = (\Yii::$app->hasProperty('user') && \Yii::$app->user->getId()) ? \Yii::$app->user->getIdentity() : new \nitm\models\User(['username' => (php_sapi_name() == 'cli' ? 'console' : 'web')]); 40 196 } else { 197 return array_search(strtolower($level), $this->levels); 198 }Download.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 307 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 101 $urlProp = parse_url($this->_resourceFile); 102 if (!isset($urlProp['scheme']) || strtolower($urlProp['scheme'] != 'http')) { 103 Mage::throwException(Mage::helper('downloadable')->__('Invalid download URL scheme.')); 147 if (preg_match('#^([^:]+): (.*)\s+$#', $str, $match)) { 148 $k = strtolower($match[1]); 149 if ($k == 'set-cookie') {Yadis.php https://github.com/supplychainstudies/OSI.git | PHP | 311 lines
1<?php 2 5 * 6 * PHP versions 4 and 5 7 * 19 */ 20//require_once "Services/Yadis/PlainHTTPFetcher.php"; 21//require_once "Services/Yadis/ParanoidHTTPFetcher.php"; 22require_once "PlainHTTPFetcher.php"; 23require_once "ParanoidHTTPFetcher.php"; 24/** 27//require_once "Services/Yadis/ParseHTML.php"; 28require_once "ParseHTML.php"; 29/** 141 foreach ($names as $n) { 142 if (strtolower($name) == strtolower($n)) { 143 return $value;editor.php https://github.com/jonnsl/joomla-platform.git | PHP | 522 lines
1<?php 2/** 181 { 182 $method = strtolower($method); 183 488 $name = JFilterInput::getInstance()->clean($this->_name, 'cmd'); 489 $path = JPATH_PLUGINS . '/editors/' . $name . '.php'; 490 492 { 493 $path = JPATH_PLUGINS . '/editors/' . $name . '/' . $name . '.php'; 494 if (!JFile::exists($path))FormatJsonTest.php https://gitlab.com/link233/bootmw | PHP | 375 lines
1<?php 2 103 104 public function testEncodePhpBug46944() { 105 $this->assertNotEquals( 106 '\ud840\udc00', 107 strtolower( FormatJson::encode( "\xf0\xa0\x80\x80" ) ), 108 'Test encoding an broken json_encode character (U+20000)' 174 * 175 * Some PHP interpreters use json-c rather than the JSON.org cannonical 176 * parser to avoid being encumbered by the "shall be used for Good, not 220 ) { 221 // PHP5 results are always expected to have isGood() === false 222 $expectedGoodStatus = false;PrototypeEngineHelper.php https://github.com/probert09/Tesis.git | PHP | 360 lines
1<?php 2/** 7 * 8 * PHP 5 9 * 9 * 10 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 11 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @link http://cakephp.org CakePHP(tm) Project 18 * @package Cake.View.Helper 18 * @package Cake.View.Helper 19 * @since CakePHP(tm) v 1.3 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 231 $data = null; 232 if (isset($options['type']) && strtolower($options['type']) == 'json') { 233 unset($options['type']);ck-gallery.php https://github.com/UberGallery/ck-gallery.git | PHP | 277 lines
1<?php // CK-Gallery by Chris Kankiewicz <http://www.chriskankiewicz.com> 2 14 15 // *** DO NOT EDIT ANYTHING BELOW HERE UNLESS YOU ARE A PHP NINJA *** 16 122 if (ctype_upper($ext)) { 123 $ext = strtolower($ext); 124 } 166 if ($imgPerPage > 0 && $imgPerPage < $totalImages) { 167 $pageName = basename($_SERVER["PHP_SELF"]); // Get current page file name 168 echo(" <ul id=\"ck-pagination\" style=\"margin: 0 !important; padding: 0 !important;\">\r\n"); 196 if ($verCheck == "1") { 197 $verInfo = @file("http://code.web-geek.net/ck-gallery/version-check.php?ver=$version"); 198 $verInfo = @implode($verInfo); 225 function createThumb($source,$dest,$thumb_size) { 226 // Create thumbnail, modified from function found on http://www.findmotive.com/tag/php/ 227 $size = getimagesize($source);PU_test_dcp_importfamily.php https://github.com/CircleCode/dynacase-core.git | PHP | 353 lines
1<?php 2/* 9 10require_once 'PU_testcase_dcp_document.php'; 11 53 $this->assertEmpty($err, "cannot create good doc"); 54 $id = $this->_DBGetValue(sprintf("select id from family.%s limit 1", strtolower($familyName))); 55 213 "ATTR1100", 214 "tstNoHelp.php", 215 "ATTR1101",question.php https://github.com/holsinger/openfloor.git | PHP | 300 lines
1<?php 2class Question extends Controller 57 $rules['desc'] = "trim|max_length[255]|xss_clean"; 58 $rules['tags'] = "trim|strtolower|xss_clean"; 59 247 $data['view_name'] = 'question_view'; 248 $this->load->view('question/question_view.php', $data); 249 }file.php https://github.com/kronda/kronda.git | PHP | 353 lines
1<?php 2/** 213 214 'upload_failed_php_error' => array( 215 'description' => __( "Uploading a file fails for PHP error", 'contact-form-7' ), 238<table> 239<tr><td><input type="checkbox" name="required" /> <?php echo esc_html( __( 'Required field?', 'contact-form-7' ) ); ?></td></tr> 240<tr><td><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr> 244<tr> 245<td><code>id</code> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 246<input type="text" name="id" class="idvalue oneline option" /></td> 252<tr> 253<td><?php echo esc_html( __( "File size limit", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'bytes', 'contact-form-7' ) ); ?>) (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 254<input type="text" name="limit" class="filesize oneline option" /></td> 255 256<td><?php echo esc_html( __( "Acceptable file types", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br /> 257<input type="text" name="filetypes" class="filetype oneline option" /></td>index.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 428 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 25 26require('../../config.php'); 27require_once($CFG->libdir . '/completionlib.php'); 66 67$url = new moodle_url('/report/progress/index.php', array('course'=>$id)); 68if ($sort !== '') { 92// nothing to display (no users or no activities) 93$reportsurl = $CFG->wwwroot.'/course/report.php?id='.$course->id; 94$completion = new completion_info($course); 135 header('Content-Disposition: attachment; filename=progress.'. 136 preg_replace('/[^a-z0-9-]/','_',textlib::strtolower(strip_tags($shortname))).'.csv'); 137 // Unicode byte-order mark for Excel 331 '<a href="'.$CFG->wwwroot.'/mod/'.$activity->modname. 332 '/view.php?id='.$activity->id.'" title="' . $formattedactivityname . '">'. 333 '<img src="'.$OUTPUT->pix_url('icon', $activity->modname).'" alt="'.Mwarrior.php https://bitbucket.org/anneivycat/ebcookhouse.git | PHP | 346 lines
1<?php 2/** 73 // Get XML POST notification 74 $xml = file_get_contents('php://input', NULL, NULL, 0, 1024); 75 $this->response = $this->_parseResponse($xml); 152 // Generate & return the hash 153 return md5(strtolower($this->passphrase . $this->_getHashSalt($this->response['reg_id']) . $this->merchantID . $postData['status'] . $postData['responseData']['transactionID'])); 154 } 157 // Generate & return the hash 158 return md5(strtolower($this->passphrase . $this->merchantID . $postData['transactionAmount'] . $postData['transactionCurrency'])); 159 } 162 // Generate & return the hash 163 return md5(strtolower($this->passphrase . $this->merchantID . $postData['transactionID'])); 164 } 177 // Generate & return the hash 178 return md5(strtolower($this->passphrase . $this->merchantID . $postData['returnURL'] . $postData['notifyURL'])); 179helper.php https://github.com/pollen8/joomla-platform.git | PHP | 370 lines
1<?php 2/** 50 51 $client = strtolower($client); 52 157 $return = false; 158 $client = strtolower($client); 159 245 $return = false; 246 $client = strtolower($client); 247addons_modules.php https://bitbucket.org/mbaily/tremain.git | PHP | 468 lines
132 // Module Name 133 $name = (lang(strtolower($module).'_module_name') != FALSE) ? lang(strtolower($module).'_module_name') : $module_info['name']; 134 134 135 $names[$modcount] = strtolower($name); 136 139 $cp_theme = ($this->session->userdata['cp_theme'] == '') ? $this->config->item('cp_theme') : $this->session->userdata['cp_theme']; 140 $name = '<a href="'.BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module='.strtolower($module).'"><strong>'.$name.'</strong></a>'; 141 } 186 // Send version to update class and let it do any required work 187 if ($this->input->get('check_updates') && $status == 'installed' && file_exists($this->installed_modules[$module]['path'].'upd.'.$module.'.php')) 188 { 269 $module = $this->input->get_post('module'); 270 $module = $this->security->sanitize_filename(strtolower($module)); 271Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);date_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 611 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 43 44 if (strtolower($CI->config->item('time_reference')) == 'gmt') 45 { 68 * 69 * This function is identical to PHPs date() function, 70 * except that it allows date codes to be formatted using 474 { 475 $ampm = strtolower($split['2']); 476 609 610/* End of file date_helper.php */ 611/* Location: ./system/helpers/date_helper.php */search.php https://github.com/severnaya99/Sg-2010.git | PHP | 222 lines
1<?php 2// $Id: search.php,v 4.04 2008/06/05 15:35:59 wishcraft Exp $ 3// ------------------------------------------------------------------------ // 4// XOOPS - PHP Content Management System // 5// Copyright (c) 2000 XOOPS.org // 30// ------------------------------------------------------------------------ // 31include 'header.php'; 32forum_load_lang_file("search"); 35if ($xoopsConfigSearch['enable_search'] != 1) { 36 header('Location: '.XOOPS_URL.'/modules/xforum/index.php'); 37 exit(); 41$xoopsOption['template_main']= 'xforum_search.html'; 42include XOOPS_ROOT_PATH.'/header.php'; 43 43 44include_once XOOPS_ROOT_PATH.'/modules/xforum/include/search.inc.php'; 45$limit = $xoopsModuleConfig['topics_per_page'];Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
1<?php 2/** 156 * 157 * @SuppressWarnings(PHPMD.NPathComplexity) 158 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 175 * 176 * @SuppressWarnings(PHPMD.NPathComplexity) 177 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 270 $customOption['options'][$index]['is_delete'] = ''; 271 $customOption['options'][$index]['price_type'] = strtolower($option['price_type']); 272 } 299 } 300 return strtolower($optionName); 301 } 308 * 309 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 310 * @SuppressWarnings(PHPMD.NPathComplexity)Yadis.php https://github.com/rafarubert/megafiltros.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;mkdist.php https://bitbucket.org/luobailiang/php-src.git | PHP | 548 lines
15 16$dist_dir = $build_dir . "/php-" . phpversion(); 17$test_dir = $build_dir . "/php-test-pack-" . phpversion(); 238 "php.ini-development" => "php.ini-development", 239 "php.ini-production" => "php.ini-production", 240 "win32/install.txt" => "install.txt", 240 "win32/install.txt" => "install.txt", 241 "win32/pws-php5cgi.reg" => "pws-php5cgi.reg", 242 "win32/pws-php5isapi.reg" => "pws-php5isapi.reg", 461} 462copy('run-tests.php', $test_dir . '/run-test.php'); 463 495 496 /* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar) 497 * broken out of the tarballs */web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 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 headerResource.php https://github.com/ianbogda/FileZ.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);FixtureTask.php https://bitbucket.org/00firestar00/ejfirestar.com.git | PHP | 445 lines
1<?php 2/** 4 * 5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://cakephp.org CakePHP(tm) Project 14 * @since CakePHP(tm) v 1.3 14 * @since CakePHP(tm) v 1.3 15 * @license http://www.opensource.org/licenses/mit-license.php MIT License 16 */ 117 } 118 if (strtolower($this->args[0]) === 'all') { 119 return $this->all(); 193 $fromTable = $this->in($prompt, array('y', 'n'), 'n'); 194 if (strtolower($fromTable) === 'y') { 195 $options['fromTable'] = true;List.php https://github.com/radicalsuz/amp.git | PHP | 279 lines
1<?php 2require_once('AMP/Display/List.php'); 2require_once('AMP/Display/List.php'); 3require_once('AMP/Content/Article.inc.php'); 4 12 var $_class_pager = 'AMP_Display_Pager_Content'; 13 var $_path_pager = 'AMP/Display/Pager/Content.php'; 14 43 if( isset( $this->_source_container )) { 44 $this->_css_class_container_list = $this->_css_class_container_list . ' list_' . strtolower( get_class( $this->_source_container )) . '_' . $this->_source_container->id; 45 } 52 $allowed_containers = array( 'section', 'contentclass', 'amp_content_tag'); 53 if ( array_search( strtolower( get_class( $container )), $allowed_containers) === FALSE ) { 54 return $container; 110 //if this is not a section based list, use the parent search create method 111 if( !( isset( $this->_source_container ) && ( strtolower( get_class( $this->_source_container )) == 'section' ))) { 112 $result = &parent::create_search_form( );derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
1<?php 2// +-----------------------------------------------------------------------+ 2// +-----------------------------------------------------------------------+ 3// | Piwigo - a PHP based photo gallery | 4// +-----------------------------------------------------------------------+ 68 { 69 $ext = strtolower($ext); 70 $this->rel_path = trigger_change('get_mimetype_location', get_themeconf('mime_icon_dir').$ext.'.png', $ext ); 71 $this->flags |= self::IS_MIMETYPE; 72 if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false) 73 { 74 $this->rel_path = 'themes/default/icon/mimetypes/unknown.png'; 75 $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path); 76 } 379 $rel_url = 'i'; 380 if ($conf['php_extension_in_urls']) $rel_url .= '.php'; 381 if ($conf['question_mark_in_urls']) $rel_url .= '?';ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
1<?php 2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 4* 5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $ 6* @package VirtueMart 8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved. 9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 10* VirtueMart is free software. This version may have been modified pursuant 13* other free or open source software licenses. 14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. 15* 82 else { 83 $auth['show_prices'] = $acl->acl_check( 'virtuemart', 'prices', 'users', strtolower($vmUser->usertype), null, null ); 84 } 240 if( $size==1 ) { 241 $values[0] = $VM_LANG->_('PHPSHOP_SELECT'); 242 }ajouter_documents.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 412 lines
1<?php 2 86 // et on aura une collision en cas de changement de file system 87 $file['name'] = strtolower(translitteration($file['name'])); 88 88 89 // Pouvoir definir dans mes_options.php que l'on veut titrer tous les documents par d?faut 90 if (!defined('_TITRER_DOCUMENTS')) { define('_TITRER_DOCUMENTS', false); } 207 // ex EXIF qui tourne les images si necessaire 208 // Ce plugin ferait quand même mieux de se placer dans metadata/jpg.php 209 pipeline('post_edition', 275 276 $ext = corriger_extension(strtolower($ext)); 277 if ($res = sql_fetsel("extension,inclus,media_defaut as media", "spip_types_documents", "extension=" . sql_quote($ext) . " AND upload='oui'"))MysqlPlatform.php https://github.com/kelios/imshop.git | PHP | 547 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/DefaultPlatform.php'; 12 97 if (class_exists('DataModelBuilder', false)) { 98 $usingInnoDB = strtolower($this->getBuildProperty('mysqlTableType')) == 'innodb'; 99 } 230 // Special handling of TIMESTAMP/DATETIME types ... 231 // See: http://propel.phpdb.org/trac/ticket/538 232 if ($sqlType == 'DATETIME') {usermap.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 385 lines
1<?php 2/** 112 $search = $app->getUserStateFromRequest('com_jfbconnect.usermap.search', 'search', '', 'string'); 113 $search = JString::strtolower($search); 114 $lists['search'] = $search; 146 $search = $app->getUserStateFromRequest("com_jfbconnect.usermap.search", 'search', '', 'string'); 147 $search = JString::strtolower($search); 148simpletest.php https://github.com/orchestra-io/sample-openx.git | PHP | 433 lines
1<?php 2 /** 5 * @subpackage UnitTester 6 * @version $Id: simpletest.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $ 7 */ 12 if (version_compare(phpversion(), '5') >= 0) { 13 require_once(dirname(__FILE__) . '/reflection_php5.php'); 14 } else { 14 } else { 15 require_once(dirname(__FILE__) . '/reflection_php4.php'); 16 } 39 * because the class is an abstract case that should 40 * not be run. Once PHP4 is dropped this will disappear 41 * as a public method and "abstract" will rule. 47 $registry = &SimpleTest::_getRegistry(); 48 $registry['IgnoreList'][strtolower($class)] = true; 49 }Resource.php https://bitbucket.org/valmy/openx.git | PHP | 436 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 14026 2009-02-09 19:03:22Z matthew $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 113 if ('get' == substr($method, 0, 3)) { 114 $type = strtolower(substr($method, 3)); 115 if (!$this->hasResourceType($type)) {class-wc-api-webhooks.php https://gitlab.com/webkod3r/tripolis | PHP | 465 lines
1<?php 2/** 181 // validate topic 182 if ( empty( $data['topic'] ) || ! wc_is_webhook_valid_topic( strtolower( $data['topic'] ) ) ) { 183 throw new WC_API_Exception( 'woocommerce_api_invalid_webhook_topic', __( 'Webhook topic is required and must be valid', 'woocommerce' ), 400 ); 262 263 if ( wc_is_webhook_valid_topic( strtolower( $data['topic'] ) ) ) { 264Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
1<?php 2/** 156 case 'model': 157 $filename = strtolower($parts['name']) . '.php'; 158 break; 229 230 $this->option = 'com_' . strtolower($r[1]); 231 } 417 418 $this->name = strtolower($r[1]); 419 }WikiSync.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 363 lines
27 * * Place the files from the extension archive there. 28 * * Add this line at the end of your LocalSettings.php file : 29 * require_once "$IP/extensions/WikiSync/WikiSync.php"; 50$wgExtensionMessagesFiles['WikiSync'] = $dir . '/WikiSync.i18n.php'; 51$wgExtensionAliasesFiles['WikiSync'] = $dir . '/WikiSync.alias.php'; 52$wgSpecialPages['WikiSync'] = 'WikiSyncPage'; 67 public static function encode( $value, $isHtml = false ) { 68 // Some versions of PHP have a broken json_encode, see PHP bug 69 // 46944. Test encoding an affected character (U+20000) to 117 static $report_null_revisions = false; 118 # {{{ changable in LocalSettings.php : 119 # debug mode (do not erase temporary XML dump files) 174 if ( !isset( $wgAutoloadClasses['_QXML'] ) ) { 175 $wgAutoloadClasses['_QXML'] = self::$ExtDir . '/WikiSyncQXML.php'; 176 }Route.php https://bitbucket.org/nblaudez/maerdo.git | PHP | 413 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Route.php 23486 2010-12-10 04:05:30Z mjh_ca $ 20 */ 24 */ 25require_once 'Zend/Controller/Router/Route/Interface.php'; 26 29 */ 30require_once 'Zend/Controller/Router/Route/Module.php'; 31 34 */ 35require_once 'Zend/Controller/Dispatcher/Interface.php'; 36 39 */ 40require_once 'Zend/Controller/Request/Abstract.php'; 41Route.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 413 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Route.php 23485 2010-12-10 04:03:18Z mjh_ca $ 20 */ 24 */ 25require_once 'Zend/Controller/Router/Route/Interface.php'; 26 29 */ 30require_once 'Zend/Controller/Router/Route/Module.php'; 31 34 */ 35require_once 'Zend/Controller/Dispatcher/Interface.php'; 36 39 */ 40require_once 'Zend/Controller/Request/Abstract.php'; 41ResponseHeader34.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 406 lines
139 if (3 > $argc) { 140 #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php'; 141 throw new Zend_Test_PHPUnit_Constraint_Exception('No response code provided against which to match'); 148 if (3 > $argc) { 149 #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php'; 150 throw new Zend_Test_PHPUnit_Constraint_Exception('No header provided against which to match'); 157 if (4 > $argc) { 158 #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php'; 159 throw new Zend_Test_PHPUnit_Constraint_Exception('Both a header name and content to match are required for ' . __FUNCTION__); 176 default: 177 #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php'; 178 throw new Zend_Test_PHPUnit_Constraint_Exception('Invalid assertion type ' . __FUNCTION__); 193 { 194 #require_once 'Zend/Test/PHPUnit/Constraint/Exception.php'; 195 switch ($this->_assertType) {StorageEngine.class.php https://gitlab.com/albert925/lading-ach | PHP | 424 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 6 * @version $Id$ 7 * @package phpMyAdmin 8 */ 24 * base Storage Engine Class 25 * @package phpMyAdmin 26 */ 41 */ 42 var $comment = 'If you read this text inside phpMyAdmin, something went wrong...'; 43 74 * @uses PMA_StorageEngine::getStorageEngines() 75 * @uses strtolower() 76 * @uses htmlspecialchars() 237 } elseif (! $like 238 && strpos(strtolower($row['Variable_name']), strtolower($this->engine)) !== 0) { 239 continue;config.php https://github.com/olberger/fusionforge.git | PHP | 396 lines
16define ('_DEBUG_PARSER', 4); // verbose parsing steps 17define ('_DEBUG_TRACE', 8); // test php memory usage, prints php debug backtraces 18define ('_DEBUG_INFO', 16); 53function browserDetect($match) { 54 return (strpos(strtolower(browserAgent()), strtolower($match)) !== false); 55} 242 // do reinit to purge PHP's static cache [43ms] 243 if ( ($lcfile = FindLocalizedFile("LC_MESSAGES/phpwiki.php", 'missing_ok', 'reinit')) ) { 244 include($lcfile); 295 // e.g. REQUEST_URI = /dir/?some_action got redirected 296 // to SCRIPT_NAME = /dir/index.php 297 325 foreach ($find as $fKey => $fItem) { 326 $between = explode(strtolower($fItem),strtolower($string)); 327 $pos = 0;UploadHandler.php https://github.com/zikula-modules/Reviews.git | PHP | 404 lines
1<?php 2/** 45 $this->imageFileTypes = array('gif', 'jpeg', 'jpg', 'png', 'swf'); 46 $this->forbiddenFileTypes = array('cgi', 'pl', 'asp', 'phtml', 'php', 'php3', 'php4', 'php5', 'exe', 'com', 'bat', 'jsp', 'cfm', 'shtml'); 47 $this->allowedFileSizes = array('review' => array('coverUpload' => 102400)); 79 $fileNameParts = explode('.', $fileName); 80 $extension = strtolower($fileNameParts[count($fileNameParts) - 1]); 81 $extension = str_replace('jpeg', 'jpg', $extension); 132 $fileNameParts = explode('.', $fileName); 133 $extension = strtolower($fileNameParts[count($fileNameParts) - 1]); 134 $extension = str_replace('jpeg', 'jpg', $extension); 186 $meta = array(); 187 $meta['extension'] = strtolower($extensionarr[count($extensionarr) - 1]); 188 $meta['size'] = filesize($filePath); 325 break; 326 case UPLOAD_ERR_INI_SIZE: //uploaded file exceeds the upload_max_filesize directive in php.ini 327 $errmsg = __('File too big', $dom);date.php https://github.com/chemila/kohana.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 186 $hour = (int) $hour; 187 $ampm = strtolower($ampm); 188 306 // Normalize output 307 $output = trim(strtolower( (string) $output)); 308 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringimageupload.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 287 lines
1<?php 2 68 69 include_once AIU_BASE_PATH . 'includes/fileuploader/fileuploader.class.php'; 70 81 if (!function_exists('includeFile')) { 82 function includeFile($name, $type = 'config', $defaultName = 'default', $fileType = '.inc.php') { 83 $folder = (substr($type, -1) != 'y') ? $type . 's/' : substr($folder, 0, -1) . 'ies/'; 93 } else { 94 $modx->messageQuit('Default AjaxImageUpload ' . $type . ' file "' . AIU_BASE_PATH . $folder . $defaultName . '.' . $type . '.inc.php" not found. Did you upload all snippet files?'); 95 } 106 107 include_once AIU_BASE_PATH . 'includes/PhpThumbFactory/ThumbLib.inc.php'; 108 // delete uploaded images 111 $formUid = (isset($_GET['uid'])) ? htmlentities(trim($_GET['uid']), ENT_NOQUOTES) : $formUid; 112 if (strtolower($_GET['delete']) == 'all') { 113 // delete all uploaded files/thumbs & clean sessioninstall-location.php https://github.com/nsswaga/OSClass.git | PHP | 418 lines
1<?php 2//error_reporting(E_ALL); 10require_once LIB_PATH . 'osclass/db.php'; 11require_once LIB_PATH . 'osclass/classes/DAO.php'; 12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php'; 12require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php'; 13require_once LIB_PATH . 'osclass/install-functions.php'; 14require_once LIB_PATH . 'osclass/formatting.php'; 15require_once LIB_PATH . 'osclass/compatibility.php'; 16require_once LIB_PATH . 'osclass/utils.php'; 17require_once LIB_PATH . 'osclass/helpers/hPreference.php' ; 96 try{ 97 require_once LIB_PATH . 'phpmailer/class.phpmailer.php' ; 98 $mail = new PHPMailer(true) ; 113 } 114 }catch(phpmailerException $exception) { 115PwTagService.php https://gitlab.com/wuhang2003/phpwind | PHP | 482 lines
1<?php 2Wind::import('SRV:tag.dm.PwTagDm'); 6 * @author peihong <peihong.zhangph@aliyun-inc.com> 7 * @copyright ©2003-2103 phpwind.com 8 * @license http://www.phpwind.com 8 * @license http://www.phpwind.com 9 * @version $Id: PwTagService.php 3833 2012-02-16 03:32:27Z peihong.zhangph $ 10 * @package src.service.tag.srv 25 foreach ($_tagsInfo as $k => $tag){ 26 $tagsKeys[] = strtolower($k); 27 $k = strtolower($k); 31 foreach ($dmArray as $k => $dm){ 32 $k = strtolower($k); 33 $dmArrays[$k] = $dm; 36 foreach ($dmArrays as $k => $dm) { 37 $k = strtolower(trim($k)); 38 if (!$k || !$dm instanceof PwTagDm) continue;Page.php https://github.com/kervin/kyzstudio.git | PHP | 402 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Page.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 26 */ 27#require_once 'Zend/Cache/Core.php'; 28 132 while (list($name, $value) = each($options)) { 133 $name = strtolower($name); 134 switch ($name) { 318 $headerSentName = trim(array_shift($tmp)); 319 if (strtolower($headerName) == strtolower($headerSentName)) { 320 $headerSentValue = trim(implode(':', $tmp)); 343 foreach (array('Get', 'Post', 'Session', 'Files', 'Cookie') as $arrayName) { 344 $tmp2 = $this->_makePartialId($arrayName, $this->_activeOptions['cache_with_' . strtolower($arrayName) . '_variables'], $this->_activeOptions['make_id_with_' . strtolower($arrayName) . '_variables']); 345 if ($tmp2===false) {BaseFcvalinmold.php https://github.com/cidesa/siga-universitario.git | PHP | 714 lines
1<?php 2 348 $prefijo = substr($m,0,3); 349 $metodo = strtolower(substr($m,3)); 350 if($prefijo=='get'){ 469 470 public function getByName($name, $type = BasePeer::TYPE_PHPNAME) 471 { 524 525 public function toArray($keyType = BasePeer::TYPE_PHPNAME) 526 { 546 547 public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) 548 { 598 599 public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) 600 {Renderer.php https://github.com/quarkness/piwik.git | PHP | 366 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 8 * 9 * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>, 10 * Bertrand Mansion <golgote@mamasam.com> 38 * @package HTML_QuickForm2 39 * @author Alexey Borzov <avb@php.net> 40 * @author Bertrand Mansion <golgote@mamasam.com> 40 * @author Bertrand Mansion <golgote@mamasam.com> 41 * @license http://opensource.org/licenses/bsd-license.php New BSD License 42 * @version SVN: $Id: Renderer.php 299706 2010-05-24 18:32:37Z avb $ 42 * @version SVN: $Id: Renderer.php 299706 2010-05-24 18:32:37Z avb $ 43 * @link http://pear.php.net/package/HTML_QuickForm2 44 */font_container.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 298 lines
1<?php 2 145 foreach ( $fonts as $font_name => $font_data ) { 146 $data['font_family'] .= '<option value="' . $font_name . '" class="' . vc_build_safe_css_class( $font_name ) . '" ' . ( strtolower( $values['font_family'] ) == strtolower( $font_name ) ? 'selected="selected"' : '' ) . ' data[font_family]="' . urlencode( $font_data ) . '">' . __( $font_name, 'js_composer' ) . '</option>'; 147 }Page.php https://github.com/grjones/qframe.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) {filebrowser.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 431 lines
1<?php 2 3/** 4 * @version $Id: filebrowser.php 292 2012-09-21 16:24:11Z cmb69 $ 5 */ 36 if ((bool) $extension) { 37 $image_extensions[] = strtolower($extension); 38 } 46 if ((bool) $extension) { 47 $download_extensions[] = strtolower($extension); 48 } 57 if ((bool) $extension) { 58 $userfiles_extensions[] = strtolower($extension); 59 } 68 if ((bool) $extension) { 69 $media_extensions[] = strtolower($extension); 70 }Profiler.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 473 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 25127 2012-11-16 15:17:42Z rob $ 21 */ 260 if (null === $queryType) { 261 switch (strtolower(substr(ltrim($queryText), 0, 6))) { 262 case 'insert': 282 */ 283 require_once 'Zend/Db/Profiler/Query.php'; 284 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 310 */ 311 require_once 'Zend/Db/Profiler/Exception.php'; 312 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 321 */ 322 require_once 'Zend/Db/Profiler/Exception.php'; 323 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");form.php https://github.com/limb-php-framework/limb-app-buildman.git | PHP | 352 lines
1<?php 2 /** 5 * @subpackage WebTester 6 * @version $Id: form.php 4378 2006-10-27 10:04:53Z pachanga $ 7 */ 11 */ 12 require_once(dirname(__FILE__) . '/tag.php'); 13 require_once(dirname(__FILE__) . '/encoding.php'); 13 require_once(dirname(__FILE__) . '/encoding.php'); 14 require_once(dirname(__FILE__) . '/selector.php'); 15 /**#@-*/ 58 function _setEncodingClass($tag) { 59 if (strtolower($tag->getAttribute('method')) == 'post') { 60 if (strtolower($tag->getAttribute('enctype')) == 'multipart/form-data') { 82 function getMethod() { 83 return ($this->_method ? strtolower($this->_method) : 'get'); 84 }Route.php https://github.com/Spavacz/NPG.git | PHP | 410 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Route.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 */ 24 */ 25require_once 'Zend/Controller/Router/Route/Interface.php'; 26 29 */ 30require_once 'Zend/Controller/Router/Route/Module.php'; 31 34 */ 35require_once 'Zend/Controller/Dispatcher/Interface.php'; 36 39 */ 40require_once 'Zend/Controller/Request/Abstract.php'; 41plugin.php https://github.com/mrmark/moodle.git | PHP | 352 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 55 global $CFG; 56 require_once($CFG->libdir . '/filelib.php'); 57 69 $text = $options[core_media_manager::OPTION_ORIGINAL_TEXT]; 70 $isaudio = strtolower($matches[1]) === 'audio'; 71 $hastracks = preg_match('/<track\b/i', $text); 201 global $CFG; 202 require_once($CFG->libdir . '/filelib.php'); 203 if ($this->extensions === null) { 204 $filetypes = preg_split('/\s*,\s*/', 205 strtolower(trim(get_config('media_videojs', 'videoextensions') . ',' . 206 get_config('media_videojs', 'audioextensions')))); 267 foreach ($langfiles as $langfile) { 268 if (strtolower(pathinfo($langfile, PATHINFO_EXTENSION)) !== 'js') { 269 continue;Heuristics.php https://gitlab.com/mrceperka/mi-paa | PHP | 598 lines
1<?php 2namespace MrCeperka\MIPAA\Heuristics; 3 4require_once 'Helpers.php'; 5 111 112 file_put_contents(OUTPUT_DIR . strtolower((new \ReflectionClass($this))->getShortName()) . '.log', $logString, FILE_APPEND); 113 } 398 399 /*echo 'maxPrice: ' . $maxPrice . PHP_EOL; 400 echo 'bits: ' . $b . PHP_EOL; 400 echo 'bits: ' . $b . PHP_EOL; 401 echo 'me:' . $maxError . PHP_EOL;*/ 402 } 503 * @link http://www.geeksforgeeks.org/branch-and-bound-set-2-implementation-of-01-knapsack/ 504 * Ported to PHP 505 */Compiler.php https://bitbucket.org/Jedna/nette-sandbox.git | PHP | 504 lines
1<?php 2 98 /** 99 * Compiles tokens to PHP code. 100 * @param array 152 $handlerName = get_class($handler); 153 $prologs .= empty($res[0]) ? '' : "<?php\n// prolog $handlerName\n$res[0]\n?>"; 154 $epilogs = (empty($res[1]) ? '' : "<?php\n// epilog $handlerName\n$res[1]\n?>") . $epilogs; 155 } 156 $output = ($prologs ? $prologs . "<?php\n//\n// main template\n//\n?>\n" : '') . $output . $epilogs; 157 258 $htmlNode->isEmpty = in_array($this->contentType, array(self::CONTENT_HTML, self::CONTENT_XHTML)) 259 && isset(Nette\Utils\Html::$emptyElements[strtolower($token->name)]); 260 $htmlNode->offset = strlen($this->output); 393 $isLeftmost = $isLeftmost === NULL ? trim(substr($output, $leftOfs)) === '' : $isLeftmost; 394 if ($isLeftmost && substr($code, 0, 11) !== '<?php echo ') { 395 $output = substr($output, 0, $leftOfs); // alone macro without output -> remove indentationComparator.php https://github.com/Sa-ryong/Stadioom-php.git | PHP | 370 lines
1<?php 2/* 26 * @license http://ez.no/licenses/new_bsd New BSD License 27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 28 * @link www.doctrine-project.org 82 foreach ($table->getForeignKeys() AS $foreignKey) { 83 $foreignTable = strtolower($foreignKey->getForeignTableName()); 84 if (!isset($foreignKeysToTable[$foreignTable])) { 217 } else { 218 if (strtolower($constraint1->getName()) == strtolower($constraint2->getName())) { 219 $tableDifferences->changedForeignKeys[] = $constraint2; 277 { 278 if (array_map('strtolower', $key1->getLocalColumns()) != array_map('strtolower', $key2->getLocalColumns())) { 279 return true; 281 282 if (array_map('strtolower', $key1->getForeignColumns()) != array_map('strtolower', $key2->getForeignColumns())) { 283 return true;plugin.php https://bitbucket.org/joelkriteman/argento.git | PHP | 473 lines
1<?php 2/** 378 if ( ! function_exists('get_plugin_data') ) { 379 require_once ( ABSPATH . 'wp-admin/includes/plugin.php' ); 380 } 417 <dl> 418 <dt><?php _e('Activate Components', 'akfw'); ?></dt> 419 <dd> 419 <dd> 420 <?php wp_nonce_field('ak-component-activation', '_aknonce', false); ?> 421 <table width="100%" class="form-table"> 421 <table width="100%" class="form-table"> 422 <?php foreach ( $this->components as $c) : 423 if ( ! $c['Core'] ) : ?> 426 <td> 427 <input type="radio" name="components[<?php echo $c['Component']; ?>]" value="1" <?php checked(1, $c['active']); ?> /> <?php _e('Yes', 'akfw'); ?> 428 <input type="radio" name="components[<?php echo $c['Component']; ?>]" value="0" <?php checked(0, $c['active']); ?> /> <?php _e('No', 'akfw'); ?> Factory.php https://github.com/quarkness/piwik.git | PHP | 233 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 8 * 9 * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>, 10 * Bertrand Mansion <golgote@mamasam.com> 38 * @package HTML_QuickForm2 39 * @author Alexey Borzov <avb@php.net> 40 * @author Bertrand Mansion <golgote@mamasam.com> 40 * @author Bertrand Mansion <golgote@mamasam.com> 41 * @license http://opensource.org/licenses/bsd-license.php New BSD License 42 * @version SVN: $Id: Factory.php 299305 2010-05-12 20:15:28Z avb $ 42 * @version SVN: $Id: Factory.php 299305 2010-05-12 20:15:28Z avb $ 43 * @link http://pear.php.net/package/HTML_QuickForm2 44 */adminlib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 280 lines
43 public function get_uninstall_url() { 44 return new moodle_url('/lib/editor/tinymce/subplugins.php', array('delete' => $this->name, 'sesskey' => sesskey())); 45 } 51 public function load_settings(part_of_admin_tree $adminroot, $parentnodename, $hassiteconfig) { 52 global $CFG, $USER, $DB, $OUTPUT, $PAGE; // in case settings.php wants to refer to them 53 $ADMIN = $adminroot; // may be used in settings.php 55 $settings = null; 56 if ($hassiteconfig && file_exists($this->full_path('settings.php'))) { 57 $section = $this->get_settings_section_name(); 59 'moodle/site:config', $this->is_enabled() === false); 60 include($this->full_path('settings.php')); // this may also set $settings to null 61 } 148 $namestr = get_string('pluginname', 'tinymce_'.$name); 149 if (strpos(textlib::strtolower($namestr), textlib::strtolower($query)) !== false) { 150 return true;Cookie.php https://gitlab.com/campus-academy/krowkaramel | PHP | 505 lines
1<?php 2/** 254 protected function normalize_attribute($name, $value) { 255 switch (strtolower($name)) { 256 case 'expires':Loader.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 481 lines
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); 2 12 * 13 * Install this file as application/third_party/MX/Loader.php 14 * 154 155 $class = strtolower(basename($library)); 156 159 160 ($_alias = strtolower($object_name)) OR $_alias = $class; 161 207 /* check module */ 208 list($path, $_model) = Modules::find(strtolower($model), $this->_module, 'models/'); 209 249 250 $_alias = strtolower(basename($module)); 251 CI::$APP->$_alias = Modules::load(array($module => $params));Files.php https://github.com/hansdubois/Docblox.git | PHP | 433 lines
20 * @author Mike van Riel <mike.vanriel@naenius.com> 21 * @license http://www.opensource.org/licenses/mit-license.php MIT 22 * @link http://docblox-project.org 42 * @var string[] Array containing a list of allowed line endings; 43 * defaults to php, php3 and phtml. 44 */ 44 */ 45 protected $allowed_extensions = array('php', 'php3', 'phtml'); 46 97 /** 98 * Sets a list of allowed extensions; if not used php, php3 and phtml 99 * is assumed. 379 * 380 * @see PhpDocumentor/phpDocumentor/Io.php 381 *wc-formatting-functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 607 lines
1<?php 2/** 103 104 $from_unit = strtolower( get_option('woocommerce_weight_unit') ); 105 $to_unit = strtolower( $to_unit ); 157 // @codeCoverageIgnoreStart 158 if ( version_compare( phpversion(), '5.3', '<' ) ) { 159 $tax = round( $tax, $dp ); 210/** 211 * Convert a float to a string without locale formatting which PHP adds when changing floats to strings 212 * @param float $float 402 * 403 * Adapted from http://www.php.net/manual/en/function.timezone-name-from-abbr.php#89155 404 * 605function wc_strtolower( $string ) { 606 return function_exists( 'mb_strtolower' ) ? mb_strtolower( $string ) : strtolower( $string ); 607}cache.php https://github.com/castlino/linonico.com.git | PHP | 506 lines
1<?php 2/* SVN FILE: $Id: cache.php 8120 2009-03-19 20:25:10Z gwoo $ */ 3/** 4 * Caching for CakePHP. 5 * 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 10 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 16 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 18 * @package cake 83 if (!class_exists($name . 'Engine')) { 84 require LIBS . DS . 'cache' . DS . strtolower($name) . '.php'; 85 }PhpAcl.php https://bitbucket.org/code_noodle/cakephp.git | PHP | 537 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.Controller.Component.Acl 20/** 21 * PhpAcl implements an access control system using a plain PHP configuration file. 22 * An example file can be found in app/Config/acl.php 49 * 50 * @var PhpAco 51 */ 76 77 App::uses('PhpReader', 'Configure'); 78 $Reader = new PhpReader(dirname($this->options['config']) . DS);Attribute.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 423 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Attribute.php 21941 2010-04-18 19:12:08Z sgehrig $ 20 */ 48 { 49 $attribName = strtolower($attribName); 50 $valArray = array(); 85 { 86 $attribName = strtolower($attribName); 87 if (is_null($index)) { 116 { 117 $attribName = strtolower($attribName); 118 if (!isset($data[$attribName])) return false; 141 { 142 $attribName = strtolower($attribName); 143 if (!isset($data[$attribName])) return;main.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 430 lines
1<?php 2/** 41 $this->hash = $this->metadata['hash']; 42 $this->type = strtolower($metadata['extension']); 43 } 74 if($min_free_space > 0) { 75 // SHIT: fucking PHP "security" measures -_-;;; 76 $free_num = @disk_free_space(realpath("./images/")); 105 $sb->position = 10; 106 // Output the limits from PHP so the user has an idea of what they can set. 107 $sb->add_int_option("upload_count", "Max uploads: "); 107 $sb->add_int_option("upload_count", "Max uploads: "); 108 $sb->add_label("<i>PHP Limit = ".ini_get('max_file_uploads')."</i>"); 109 $sb->add_shorthand_int_option("upload_size", "<br/>Max size per file: "); 109 $sb->add_shorthand_int_option("upload_size", "<br/>Max size per file: "); 110 $sb->add_label("<i>PHP Limit = ".ini_get('upload_max_filesize')."</i>"); 111 $sb->add_choice_option("transload_engine", $tes, "<br/>Transload: ");SimpleCommandMap.php https://gitlab.com/kamata4649/genisys | PHP | 364 lines
1<?php 2 183 } 184 $label = strtolower(trim($label)); 185 $fallbackPrefix = strtolower(trim($fallbackPrefix)); 267 268 $sentCommandLabel = strtolower(array_shift($args)); 269 $target = $this->getCommand($sentCommandLabel); 354 if(count($targets) > 0){ 355 $this->knownCommands[strtolower($alias)] = new FormattedCommandAlias(strtolower($alias), $targets); 356 }else{ 356 }else{ 357 unset($this->knownCommands[strtolower($alias)]); 358 }admin.php https://github.com/ngonchan/Kooshy.git | PHP | 374 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 40 $this->template->site = KMS::instance('site'); 41 $this->template->title = ucwords(strtolower(Request::instance()->action)); 42 $this->template->sidebar = Request::factory('kms-admin/sidebar')->execute()->response;filter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 547 lines
1<?php 2/** 3 * Akeeba Engine 4 * The modular PHP5 site backup engine 5 * @copyright Copyright (c)2009-2011 Nicholas K. Dionysopoulos 7 * @package akeebaengine 8 * @version $Id: filter.php 409 2011-01-24 09:30:22Z nikosdion $ 9 */ 15{ 16 /** @var string Filter's internal name; defaults to filename without .php extension */ 17 public $filter_name = ''; 39 // Set the filter name if it's missing (filename in lowercase, minus the .php extension) 40 if(empty($this->filter_name)) $this->filter_name = strtolower(basename(__FILE__,'.php')); 41 }Profiler.php https://github.com/quarkness/piwik.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.");site-users.php https://gitlab.com/em645jn/brochure | PHP | 330 lines
88 /** 89 * Fires after a user has been created via the network site-users.php page. 90 * 205<h1 id="edit-site"><?php echo $title; ?></h1> 206<p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p> 207<?php 272if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?> 273<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2> 274<form action="site-users.php?action=adduser" id="adduser" method="post"> 274<form action="site-users.php?action=adduser" id="adduser" method="post"> 275 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 276 <table class="form-table"> 302<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2> 303<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post"> 304 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />main_listener.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 442 lines
34 35 /** @var \phpbb\log\log */ 36 protected $log; 61 \phpbb\config\config $config, 62 \phpbb\user $user, 63 \phpbb\controller\helper $helper, 63 \phpbb\controller\helper $helper, 64 \phpbb\log\log $log, 65 \phpbb\request\request $request, 82 $this->root_path = $root_path; 83 $this->php_ext = $php_ext; 84 $this->contactadmin = $contactadmin; 273 274 $report_link = phpbb_version_compare(PHPBB_VERSION, '3.2', '>=') ? '<a href="' . $reporttosfs_url . '" title="' . $this->user->lang['REPORT_TO_SFS']. '" data-ajax="reporttosfs" class="button button-icon-only"><i class="icon fa-exchange fa-fw" aria-hidden="true"></i><span>' . $this->user->lang['REPORT_TO_SFS'] . '</span></a>' : '<a href="' . $reporttosfs_url . '" title="' . $this->user->lang['REPORT_TO_SFS']. '" data-ajax="reporttosfs" class="button icon-button"><span>' . $this->user->lang['REPORT_TO_SFS'] . '</span></a>'; 275class-gf-field-checkbox.php https://gitlab.com/level-level/gravityforms | PHP | 380 lines
1<?php 2 173 } elseif ( $this->type == 'post_category' ) { 174 $use_id = strtolower( $modifier ) == 'id'; 175 $item_value = GFCommon::format_post_category( $item, $use_id );Think.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 344 lines
39 40 $runtimefile = RUNTIME_PATH.APP_MODE.'~runtime.php'; 41 if(!APP_DEBUG && Storage::has($runtimefile)){ 47 // 读取应用模式 48 $mode = include is_file(CONF_PATH.'core.php')?CONF_PATH.'core.php':MODE_PATH.APP_MODE.'.php'; 49 // 加载核心文件 71 // 加载应用别名定义文件 72 if(is_file(CONF_PATH.'alias.php')) 73 self::addMap(include CONF_PATH.'alias.php'); 85 // 加载框架底层语言包 86 L(include THINK_PATH.'Lang/'.strtolower(C('DEFAULT_LANG')).'.php'); 87 299 if(IS_CLI){ 300 exit(iconv('UTF-8','gbk',$e['message']).PHP_EOL.'FILE: '.$e['file'].'('.$e['line'].')'.PHP_EOL.$e['trace']); 301 }author-template.php https://github.com/vidor/vidor.me.git | PHP | 401 lines
1<?php 2/** 106 $field = str_replace('-', '', $field); 107 $field = strtolower($field); 108 $user_field = "user_$field";Inline.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 415 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: YamlSfInline.class.php 9186 2008-05-22 15:19:18Z FabianLange $ 18 */ 21 /** 22 * Load YAML into a PHP array. 23 * 25 * 26 * @return array PHP array 27 */ 48 /** 49 * Dumps PHP array to YAML. 50 * 50 * 51 * @param mixed PHP 52 *Form.php https://github.com/Seldaek/primer.git | PHP | 358 lines
1<?php 2 126 /** 127 * Gets the field values as PHP. 128 * 129 * This method converts fields with th array notation 130 * (like foo[bar] to arrays) like PHP does. 131 * 133 */ 134 public function getPhpValues() 135 { 142 /** 143 * Gets the file field values as PHP. 144 * 145 * This method converts fields with th array notation 146 * (like foo[bar] to arrays) like PHP does. 147 *class.csstidy_print.php https://github.com/masuman/elgg-1.git | 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];class.php https://gitlab.com/neuser/bitrix-core | PHP | 658 lines
1<?php 2if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); 13require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/wizard.php"); //Wizard API 14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/install/wizard/utils.php"); //Wizard utils 15require_once("tools/bsmpackage.php"); 15require_once("tools/bsmpackage.php"); 16require_once("tools/modulechecker.php"); 17require_once("tools/bitrixvmchecker.php"); 17require_once("tools/bitrixvmchecker.php"); 18require_once("tools/agentchecker.php"); 19require_once("tools/pushchecker.php"); 19require_once("tools/pushchecker.php"); 20require_once("tools/sitepatcher.php"); 21 267 $class = array_pop(explode("\\", $step)); 268 $stepFile = mb_strtolower($class).".php"; 269 if (Main\IO\File::isFileExists(self::WIZARD_DIR.$stepFile))base_module_model.php https://github.com/be3/FUEL-CMS.git | PHP | 565 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 27 28require_once(APPPATH.'core/MY_Model.php'); 29 204 205 if (strtolower($this->filter_join) == 'and') 206 { 206 { 207 $this->db->like('LOWER('.$key.')', strtolower($val), 'both'); 208 } 210 { 211 $this->db->or_like('LOWER('.$key.')', strtolower($val), 'both'); 212 }plugin-editor.php https://gitlab.com/campus-academy/krowkaramel | PHP | 342 lines
1<?php 2/** 9/** WordPress Administration Bootstrap */ 10require_once __DIR__ . '/admin.php'; 11 12if ( is_multisite() && ! is_network_admin() ) { 13 wp_redirect( network_admin_url( 'plugin-editor.php' ) ); 14 exit; 274 <?php echo $docs_select; ?> 275 <input disabled id="docs-lookup" type="button" class="button" value="<?php esc_attr_e( 'Look Up' ); ?>" onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'https://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_user_locale() ); ?>&version=<?php echo urlencode( get_bloginfo( 'version' ) ); ?>&redirect=true'); }" /> 276 </div> 312 313 $excluded_referer_basenames = array( 'plugin-editor.php', 'wp-login.php' ); 314 332 <p> 333 <a class="button file-editor-warning-go-back" href="<?php echo esc_url( $return_url ); ?>"><?php _e( 'Go back' ); ?></a> 334 <button type="button" class="file-editor-warning-dismiss button button-primary"><?php _e( 'I understand' ); ?></button>index.php https://github.com/orchestra-io/sample-openx.git | PHP | 341 lines
124<a href="index.phps">Index Source Code</a> | 125<a href="phpSniff.core.phps">phpSniff.core Source Code</a> | 126<a href="phpSniff.class.phps">phpSniff.class Source Code</a> | 133 <font color="#ffffff" size="-1"> 134 <?php printf('phpSniff version : %s - php version : %s</font>',$client->_version, PHP_VERSION); ?> 135 </font> 208 <td bgcolor="<?php print $c1_bg; ?>">letter_ver</td> 209 <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('letter_ver');?></td> 210 </tr> 233 <td bgcolor="<?php print $c1_bg; ?>">ip</td> 234 <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('ip');?></td> 235 </tr> 241 <td bgcolor="<?php print $c1_bg; ?>">gecko</td> 242 <td width="100%" bgcolor="<?php print $c2_bg; ?>"><?php print $client->property('gecko');?></td> 243 </tr>CookieJar.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 385 lines
21 * 22 * @file CAS/CookieJar.php 23 * @category Authentication 23 * @category Authentication 24 * @package PhpCAS 25 * @author Adam Franco <afranco@middlebury.edu> 26 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 27 * @link https://wiki.jasig.org/display/CASC/phpCAS 28 */ 38 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 39 * @link https://wiki.jasig.org/display/CASC/phpCAS 40 */ 127 * Parse Cookies without PECL 128 * From the comments in http://php.net/manual/en/function.http-parse-cookie.php 129 *Zend.php https://bitbucket.org/jokusafet/magento2.git | PHP | 539 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 302 if (!$this->isCaseSensitive()) { 303 $storedWord = strtolower($storedWord); 304 $word = strtolower($word);TextStatistics.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 414 lines
1<?php 2/** 17 * 18 * @link http://code.google.com/p/php-text-statistics/ 19 * @link https://github.com/DaveChild/Text-Statistics (new repo location) 19 * @link https://github.com/DaveChild/Text-Statistics (new repo location) 20 * @license http://www.opensource.org/licenses/bsd-license.php New BSD license 21 * 151 $strText = preg_replace( '`[ ]+`', ' ', $strText ); // Remove multiple spaces 152 $strText = preg_replace_callback( '`\. [^ ]+?`', create_function( '$matches', 'return strtolower( $matches[0] );' ), $strText ); // Lower case all words following terminators (for gunning fog score) 153 161 /** 162 * Converts string to lower case. Tries mb_strtolower and if that fails uses regular strtolower. 163 * 169 if ( ! $this->blnMbstring ) { 170 return strtolower( $strText ); 171 }Misc.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | PHP | 388 lines
1<?php 2/* 30 if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) { 31 if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php")) 32 $langCode = $_GET['langCode']; 33 } 34 include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php"; 35 if ($number) { 64 /** 65 * @link http://pl.php.net/manual/en/function.imagecopyresampled.php 66 * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster) 110 /** 111 * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php 112 * function posted by e dot a dot schultz at gmail dot com 170 /** 171 * convert shorthand php.ini notation into bytes, much like how the PHP source does it 172 * @link http://pl.php.net/manual/en/function.ini-get.phpclass.autokeyword.php https://github.com/galitush2005/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 249 lines
1<?php 2/* 114 //convert all characters to lower case 115 //$content = mb_strtolower($content); 116 $content = mb_strtolower($content, "UTF-8");sarkaspip_balises.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 248 lines
1<?php 2// ======================================================================================================================================= 32// ======================================================================================================================================= 33// Balise : #VERSION_PHP 34// ======================================================================================================================================= 38// 39function balise_VERSION_PHP($p) { 40 $p->code = 'phpversion()'; 55 $p->code = 'calcul_visiteurs_connectes()'; 56 $p->statut = 'php'; 57 return $p; 78 $p->code = 'calcul_visites_site('.$jour.')'; 79 $p->statut = 'php'; 80 return $p; 128 $p->code = 'date("Y-m-d H:i")'; 129 $p->statut = 'php'; 130 return $p;ValidClassNamePass.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 344 lines
1<?php 2 13 14use PhpParser\Node; 15use PhpParser\Node\Expr; 15use PhpParser\Node\Expr; 16use PhpParser\Node\Expr\ClassConstFetch; 17use PhpParser\Node\Expr\New_ as NewExpr; 17use PhpParser\Node\Expr\New_ as NewExpr; 18use PhpParser\Node\Expr\StaticCall; 19use PhpParser\Node\Stmt; 19use PhpParser\Node\Stmt; 20use PhpParser\Node\Stmt\Class_ as ClassStmt; 21use PhpParser\Node\Stmt\Interface_ as InterfaceStmt; 21use PhpParser\Node\Stmt\Interface_ as InterfaceStmt; 22use PhpParser\Node\Stmt\Trait_ as TraitStmt; 23use Psy\Exception\FatalErrorException;Dispatcher.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 232 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 12/** 13 * ThinkPHP API模式的Dispatcher类 14 * 完成URL解析、路由和调度 31 unset($_GET[$varPath]); 32 }elseif(IS_CLI){ // CLI模式下 index.php module/controller/action/params/... 33 $_SERVER['PATH_INFO'] = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : ''; 112 // URL后缀 113 define('__EXT__', strtolower(pathinfo($_SERVER['PATH_INFO'],PATHINFO_EXTENSION))); 114StripTags.php https://github.com/sidealice/zf2.git | PHP | 306 lines
1<?php 2/** 122 // Canonicalize the tag name 123 $tagName = strtolower($element); 124 // Store the tag as allowed with no attributes 129 // Canonicalize the tag name 130 $tagName = strtolower($index); 131 // Canonicalize the attributes 139 // Canonicalize the attribute name 140 $attributeName = strtolower($attribute); 141 $this->tagsAllowed[$tagName][$attributeName] = null; 175 // Canonicalize the attribute name 176 $attributeName = strtolower($attribute); 177 $this->attributesAllowed[$attributeName] = null; 260 $tagStart = $matches[1]; 261 $tagName = strtolower($matches[2]); 262 $tagAttributes = $matches[3];plugin-editor.php https://github.com/shlomsky/lim.git | PHP | 255 lines
87 if ( ! is_plugin_active($file) ) 88 activate_plugin($file, "plugin-editor.php?file=$file&phperror=1", ! empty( $_GET['networkwide'] ) ); // we'll override this later if the plugin can be included without fatal error 89 142 <div id="message" class="updated"><p><?php _e('File edited successfully.') ?></p></div> 143<?php elseif (isset($_GET['phperror'])) : ?> 144 <div id="message" class="updated"><p><?php _e('This plugin has been deactivated because your changes resulted in a <strong>fatal error</strong>.') ?></p> 146 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { ?> 147 <iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&plugin=<?php echo esc_attr($file); ?>&_wpnonce=<?php echo esc_attr($_GET['_error_nonce']); ?>"></iframe> 148 <?php } ?> 210?> 211 <li<?php echo $file == $plugin_file ? ' class="highlight"' : ''; ?>><a href="plugin-editor.php?file=<?php echo $plugin_file; ?>&plugin=<?php echo $plugin; ?>"><?php echo $plugin_file ?></a></li> 212<?php endforeach; ?> 223 <?php if ( !empty( $docs_select ) ) : ?> 224 <div id="documentation" class="hide-if-no-js"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Lookup' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /></div> 225 <?php endif; ?>Images.class.php https://gitlab.com/karl3/gs_libs | PHP | 376 lines
1<?php 2 41 { 42 return array(1 => _('The uploaded file exceeds the upload_max_filesize directive in php.ini'), 43 2 => _('The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'), 47 7 => _('Failed to write file to disk.'), 48 8 => _('A PHP extension stopped the file upload.')); 49 } 72 // Determine format from MIME-Type 73 $image['format'] = strtolower(preg_replace('/^.*?\//', '', $image['mime'])); 74 117 // Create thumbnail 118 switch (strtolower(preg_replace('/^.*\./', '', $dest_image))) { 119 case 'jpg' : 239 * Thanks to ZeBadger for original example, and Davide Gualano for pointing me to it 240 * Original at http://it.php.net/manual/en/function.imagecreatefromgif.php#59787 241 *services_dhcp_edit.php https://github.com/vongrippen/pfsense.git | PHP | 262 lines
1<?php 2/* $Id$ */ 3/* 4 services_dhcp_edit.php 5 part of m0n0wall (http://m0n0.ch/wall) 39##|*DESCR=Allow access to the 'Services: DHCP Server : Edit static mapping' page. 40##|*MATCH=services_dhcp_edit.php* 41##|-PRIV 66if (!$if) { 67 header("Location: services_dhcp.php"); 68 exit; 110 /* normalize MAC addresses - lowercase and convert Windows-ized hyphenated MACs to colon delimited */ 111 $_POST['mac'] = strtolower(str_replace("-", ":", $_POST['mac'])); 112 184 185 header("Location: services_dhcp.php?if={$if}"); 186 exit;model.php https://gitlab.com/edgarze188/sunrise | PHP | 280 lines
1<?php 2/** 107 $icons_dir_url = WD_BWG_URL . '/filemanager/images/file_icons'; 108 $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*'); 109 $parent_dir = $this->controller->get_uploads_dir() . (isset($_REQUEST['dir']) ? '/' . esc_html($_REQUEST['dir']) : ''); 139 $file_extension = explode('.', $file_name); 140 $file['type'] = strtolower(end($file_extension)); 141 $icon = $icons_dir_url . '/' . $file['type'] . '.png'; 167 $icons_dir_url = WD_BWG_URL . '/filemanager/images/file_icons'; 168 $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*'); 169 $upload_dir = wp_upload_dir(); 192 $file_type_array = explode('.', $file_name); 193 $file['type'] = strtolower(end($file_type_array)); 194 // $file['thumb'] = wp_get_attachment_thumb_url($image->ID);Route.php https://github.com/FbN/Zend-Framework-Namespaced-.git | PHP | 419 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Route.php 23421 2010-11-21 10:03:53Z wilmoore $ 20 */ 30 */ 31require_once 'Zend/Controller/Router/Route/Interface.php'; 32 35 */ 36require_once 'Zend/Controller/Router/Route/Module.php'; 37 40 */ 41require_once 'Zend/Controller/Dispatcher/Interface.php'; 42 45 */ 46require_once 'Zend/Controller/Request/Abstract.php'; 47HeadMeta.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 420 lines
1<?php 2/** 38 * 39 * Set separator to PHP_EOL 40 * 44 parent::__construct(); 45 $this->setSeparator(PHP_EOL); 46 } 61 $item = $this->createData($keyType, $keyValue, $content, $modifiers); 62 $action = strtolower($placement); 63 switch ($action) {Adapter.php https://bitbucket.org/juan_sanchez/aiyellow.git | PHP | 388 lines
1<?php 2/** 241 { 242 switch (strtolower($name)) { 243 case 'driver': 278 279 $driverName = strtolower($parameters['driver']); 280 switch ($driverName) {form.lib.php https://github.com/jijkoun/ssscrape.git | PHP | 573 lines
1<?php 2 82 { 83 $this->id = sprintf('form-%s', str_strip_suffix(strtolower($class_name), 'form')); 84 }tags.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 574 lines
1<?php 2/** 4 * @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved. 5 * @license GNU/GPL, see LICENSE.php 6 * 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 17 18require_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'model.php' ); 19 119 $search = $mainframe->getUserStateFromRequest( 'com_easyblog.tags.search', 'search', '', 'string' ); 120 $search = $db->getEscaped( trim(JString::strtolower( $search ) ) ); 121CLocale.php https://gitlab.com/Griffolion/Final-Year-Project | PHP | 472 lines
1<?php 2/** 80 $fullPath=$dataPath.DIRECTORY_SEPARATOR.$file; 81 if(substr($file,-4)==='.php' && is_file($fullPath)) 82 $locales[]=substr($file,0,-4); 100 $dataPath=self::$dataPath===null ? dirname(__FILE__).DIRECTORY_SEPARATOR.'data' : self::$dataPath; 101 $dataFile=$dataPath.DIRECTORY_SEPARATOR.$this->_id.'.php'; 102 if(is_file($dataFile)) 115 { 116 return strtolower(str_replace('-','_',$id)); 117 }Xml.php https://github.com/suzuki/candycane.git | PHP | 350 lines
1<?php 2/** 6 * 7 * PHP 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package Cake.Utility 17 * @package Cake.Utility 18 * @since CakePHP v .0.10.3.1400 19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 213 // http://www.w3.org/TR/REC-xml/#syntax 214 // https://bugs.php.net/bug.php?id=36795 215 $child = $dom->createElement($key, '');scribe-display-helpers.php https://gitlab.com/iamgraeme/royalmile | PHP | 327 lines
1<?php 2 58function scribe_get_content_for_letter_score($score, $a, $b, $c, $d) { 59 $score = strtolower($score); 60 if (in_array($score, array('a', 'b', 'c', 'd'))) {App.class.php https://gitlab.com/llwhois/woaimm | PHP | 198 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 12/** 13 * ThinkPHP 应用程序类 执行应用过程管理 14 * 可以在模式扩展中重新定义 但是必须具有Run方法接口 46 define('IS_DELETE', REQUEST_METHOD =='DELETE' ? true : false); 47 define('IS_AJAX', ((isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') || !empty($_POST[C('VAR_AJAX_SUBMIT')]) || !empty($_GET[C('VAR_AJAX_SUBMIT')])) ? true : false); 48 133 case 'PUT': 134 parse_str(file_get_contents('php://input'), $vars); 135 break;ClientInvitationController.php https://gitlab.com/haroldv22/tupadrino | PHP | 287 lines
1<?php 2 16use yii\web\UploadedFile; 17use moonland\phpexcel\Excel; 18 75 76 $excel = new Excel(); // Phpexcel 77 $errorEmail = ''; 123 $validarClients = Clients::find() 124 ->where( [ 'email' => strtolower($value['B']) ] ) 125 ->exists(); 128 $validarClientsInv = ClientInvitation::find() 129 ->where( [ 'email' => strtolower($value['B']) ] ) 130 ->exists(); 134 $modelClientInv->name = $value['A']; 135 $modelClientInv->email = strtolower($value['B']); 136 $modelClientInv->cant_godson = $value['C'];PropelTableComparator.php https://gitlab.com/Isaki/le331.fr | PHP | 312 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/../Table.php'; 12require_once dirname(__FILE__) . '/PropelTableDiff.php'; 12require_once dirname(__FILE__) . '/PropelTableDiff.php'; 13require_once dirname(__FILE__) . '/PropelColumnComparator.php'; 14require_once dirname(__FILE__) . '/PropelColumnDiff.php'; 14require_once dirname(__FILE__) . '/PropelColumnDiff.php'; 15require_once dirname(__FILE__) . '/PropelIndexComparator.php'; 16require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php'; 233 $test = $caseInsensitive ? 234 strtolower($fromTableIndex->getName()) == strtolower($toTableIndex->getName()) : 235 $fromTableIndex->getName() == $toTableIndex->getName(); 282 $test = $caseInsensitive ? 283 strtolower($fromTableFk->getName()) == strtolower($toTableFk->getName()) : 284 $fromTableFk->getName() == $toTableFk->getName();ApiGenerator.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 519 lines
174 175 $version = strtolower( CLI::prompt('Version name', 'v1') ); 176 $version = $version == 'na' ? '' : $version; 197 { 198 $model_name = ucfirst($name) .'_model.php'; 199 227 'today' => date( 'Y-m-d H:ia' ), 228 'model_name' => strtolower($single) .'_model', 229 'plural' => $plural, 257 258 $destination = APPPATH ."language/english/api_{$plural}_lang.php"; 259 284 // Load the model so we can use the correct table to use 285 $model = strtolower( str_replace('.php', '', $model) ); 286 $this->load->model( $model, $model, true );player.php https://github.com/200896596/moodle.git | PHP | 259 lines
46 47 $url = new moodle_url('/mod/scorm/player.php', array('scoid'=>$scoid, 'cm'=>$cm->id)); 48 if ($mode !== 'normal') { 103 // 104 $scorm->version = strtolower(clean_param($scorm->version, PARAM_SAFEDIR)); // Just to be safe 105 if (!file_exists($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'lib.php')) { 188 <div id="scormtop"> 189 <?php echo $mode == 'browse' ? '<div id="scormmode" class="scorm-left">'.get_string('browsemode','scorm')."</div>\n" : ''; ?> 190 <?php echo $mode == 'review' ? '<div id="scormmode" class="scorm-left">'.get_string('reviewmode','scorm')."</div>\n" : ''; ?> 234 <!--[if IE]> 235 <iframe id="main" class="scoframe" name="main" src="loadSCO.php?id=<?php echo $cm->id.$scoidstr.$modestr; ?>"></iframe> 236 <![endif]--> 237 <!--[if !IE]> 238 <object id="main" class="scoframe" type="text/html" data="loadSCO.php?id=<?php echo $cm->id.$scoidstr.$modestr; ?>"></object> 239 <![endif]-->App.class.php https://gitlab.com/fangjianwei/weifenxiao | PHP | 202 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 12/** 13 * ThinkPHP 应用程序类 执行应用过程管理 14 */ 32 define('IS_DELETE', REQUEST_METHOD =='DELETE' ? true : false); 33 define('IS_AJAX', ((isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') || !empty($_POST[C('VAR_AJAX_SUBMIT')]) || !empty($_GET[C('VAR_AJAX_SUBMIT')])) ? true : false); 34 65 } 66 $actionName = strtolower(ACTION_NAME); 67 if(class_exists($namespace.$actionName)){mime.php https://bitbucket.org/jsuto/piler.git | PHP | 372 lines
1<?php 2 173 foreach ($headers as $name => $header) { 174 $lower = strtolower($name); 175 if($lower == $name) { 213 214 $headers['content-type']['type'] = strtolower($headers['content-type']['type']); 215 289 foreach ($matches[1] as $key => $name) { 290 $name = strtolower($name); 291 if($matches[2][$key][0] == '"') { 319 if(isset($headers['content-transfer-encoding'])) { 320 if(strtolower($headers['content-transfer-encoding']) == 'quoted-printable') { 321 $body = quoted_printable_decode($body); 323 324 if(strtolower($headers['content-transfer-encoding']) == 'base64') { 325 $body = base64_decode($body);Cache.php https://github.com/cawago/ci_campusync_auth.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 81 } else { 82 $class = 'Doctrine_Cache_' . ucwords(strtolower($driver)); 83Compiler.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 485 lines
1<?PHP 2/** 4 * 5 * $Id: Compiler.php 10094 2008-03-02 04:35:10Z instance $ 6 * 10 * @subpackage Compiler 11 * @author Stephan Schmidt <schst@php.net> 12 */ 19 * 20 * $Id: Compiler.php 10094 2008-03-02 04:35:10Z instance $ 21 * 25 * @subpackage Compiler 26 * @author Stephan Schmidt <schst@php.net> 27 * 79 $this->_fp = fopen( $compileFile, 'w' ); 80 $this->_addToCode( '<?PHP' ); 81 $this->_addToCode( '/**' );