100+ results results for 'php strtolower repo:Dratone/EveBB' (582 ms)
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)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 }CLocale.php https://gitlab.com/zenfork/vektor | 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 }Compiler.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 485 lines
1<?PHP 2/** 4 * 5 * $Id: Compiler.php 10094 2008-03-02 04:35:10Z instance $ 6 * 10 * @subpackage Compiler 11 * @author Stephan Schmidt <schst@php.net> 12 */ 19 * 20 * $Id: Compiler.php 10094 2008-03-02 04:35:10Z instance $ 21 * 25 * @subpackage Compiler 26 * @author Stephan Schmidt <schst@php.net> 27 * 79 $this->_fp = fopen( $compileFile, 'w' ); 80 $this->_addToCode( '<?PHP' ); 81 $this->_addToCode( '/**' );class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
1<?php 2/** 236 if ( $filename ) { 237 $file_ext = strtolower( pathinfo( $filename, PATHINFO_EXTENSION ) ); 238 $file_mime = $this->get_mime_type( $file_ext ); 241 // If no file specified, grab editor's current extension and mime-type. 242 $file_ext = strtolower( pathinfo( $this->file, PATHINFO_EXTENSION ) ); 243 $file_mime = $this->mime_type; 294 $name = wp_basename( $this->file, ".$ext" ); 295 $new_ext = strtolower( $extension ? $extension : $ext ); 296SSDB.php https://gitlab.com/dleonov/my-framework-two | PHP | 576 lines
1<?php 2/** 7 * 8 * SSDB PHP client SDK. 9 */ 142 function __call($cmd, $params=array()){ 143 $cmd = strtolower($cmd); 144 if($this->async_auth_password !== null){emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
1<?php defined('_JEXEC') or die('Restricted access'); ?> 2<?php 20 2010-06-16 Added static caching for less processing overhead in situations where multiple emogrification takes place 21 2010-07-26 Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott! 22 2010-09-03 Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted 76 $nodes = @$xpath->query('//*[@style]'); 77 if ($nodes->length > 0) foreach ($nodes as $node) $node->setAttribute('style',preg_replace('/[A-z\-]+(?=\:)/Se',"strtolower('\\0')",$node->getAttribute('style'))); 78 129 $style = ''; 130 foreach ($combinedArr as $k => $v) $style .= (strtolower($k) . ':' . $v . ';'); 131 } else {Input.php https://gitlab.com/dleonov/my-framework-two | PHP | 419 lines
1<?php 2 399 // Convert global name to input name. 400 $global = strtolower($global); 401 $global = substr($global, 1);inihelper.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 380 lines
1<?php 2/** 3 * Akeeba Engine 4 * The modular PHP5 site backup engine 5 * @copyright Copyright (c)2009-2011 Nicholas K. Dionysopoulos 7 * @package akeebaengine 8 * @version $Id: inihelper.php 409 2011-01-24 09:30:22Z nikosdion $ 9 */ 58 { 59 if( (strtolower(substr($filename, -4)) == '.ini') && @is_file($path.$ds.$filename) ) 60 { 117 { 118 if( (strtolower(substr($filename, -4)) == '.ini') && @is_file($path.$ds.$filename) ) 119 { 169 { 170 if( (strtolower(substr($filename, -4)) == '.ini') && @is_file($path.$ds.$filename) ) 171 {importcsv.php https://gitlab.com/alexprowars/bitrix | PHP | 557 lines
1<?php 2namespace Bitrix\Translate\Controller\Import; 84 { 85 self::$sourceEncoding[$languageId] = mb_strtolower(Main\Localization\Translation::getSourceEncoding($languageId)); 86 }end_vevent.php https://gitlab.com/endomorphosis/fusenews | PHP | 386 lines
1<?php 2/* end_vevent.php 117 } 118 $recur_array[($start_date)][($hour.$minute)][$uid]['recur'][$key] = strtolower($val); 119 break; 191If COUNT is not set (default is 1,000,000) then we don't have to start at start_date; we can start at the minimum interval for the view. 192variables ending in date are in phpical date format: YYYYMMDD 193variables ending with time are in phpical time format: HHMM 195 196mArray_begin and mArray_end are set in initialization by date_range.php and may be overwritten by rss_common.php. 197util.php https://gitlab.com/imxieke/XCloud | PHP | 280 lines
129 130function php_env_check(){ 131 $L = $GLOBALS['L']; 133 $base_path = get_path_this(BASIC_PATH).'/'; 134 if(!function_exists('iconv')) $error.= '<li>'.$L['php_env_error_iconv'].'</li>'; 135 if(!function_exists('mb_convert_encoding')) $error.= '<li>'.$L['php_env_error_mb_string'].'</li>'; 135 if(!function_exists('mb_convert_encoding')) $error.= '<li>'.$L['php_env_error_mb_string'].'</li>'; 136 if(!version_compare(PHP_VERSION,'5.0','>=')) $error.= '<li>'.$L['php_env_error_version'].'</li>'; 137 if(!function_exists('file_get_contents')) $error.='<li>'.$L['php_env_error_file'].'</li>'; 139 if(!path_writable(BASIC_PATH.'data')) $error.= '<li>'.$base_path.'data '.$L['php_env_error_path'].'</li>'; 140 if(!path_writable(BASIC_PATH.'data/system')) $error.= '<li>'.$base_path.'data/system '.$L['php_env_error_path'].'</li>'; 141 if(!path_writable(BASIC_PATH.'data/User')) $error.= '<li>'.$base_path.'data/User '.$L['php_env_error_path'].'</li>'; 264 if((isset($_SERVER['HTTP_ACCEPT'])) && 265 (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') !== false)){ 266 return true;functions.php https://gitlab.com/BaseX/BaseX | PHP | 276 lines
1<?php 2// $Id: functions.php,v 1.5 2004/12/12 04:50:37 phppp Exp $ 3// ------------------------------------------------------------------------ // 26// ------------------------------------------------------------------------ // 27// Author: D.J.(phppp) php_pp@hotmail.com // 28// URL: http://www.xoops.org.cn // 45{ 46 if(strtolower($in_charset) == strtolower($out_charset)) { 47 return $value; 78/** 79 * Analyzes some PHP environment variables to find the most probable language 80 * that should be used 82 * @param string $ string to analyze 83 * @param integer $ type of the PHP environment variable which value is $str 84 * @global array the list of available translationsutils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
1<?php 2 44 if(image_check_memory_usage($imgfile,$newwidth,$newheight)){ 45 require_once('php_image_magician.php'); 46 $magicianObj = new imageLib($imgfile); 55 if(image_check_memory_usage($imgfile,$newwidth,$newheight)){ 56 require_once('php_image_magician.php'); 57 $magicianObj = new imageLib($imgfile); 109 $fileinfo = pathinfo($path); 110 if (function_exists('mb_strtolower')) 111 if(!in_array(mb_strtolower($fileinfo['extension']),$ext)) 113 else 114 if(!in_array(Tools::strtolower($fileinfo['extension']),$ext)) 115 unlink($path); 128 { 129 if (function_exists('mb_strtolower')) 130 if(in_array(mb_strtolower($file->getExtension()),$ext))cache.php https://gitlab.com/alexprowars/bitrix | PHP | 541 lines
1<?php 2/** 145 146 return mb_strtolower($class); 147 } 197 $scriptName = $server->get("SCRIPT_NAME"); 198 if ($scriptName == "/bitrix/urlrewrite.php" && (($v = $server->get("REAL_FILE_PATH")) != null)) 199 { 201 } 202 elseif ($scriptName == "/404.php" && (($v = $server->get("REAL_FILE_PATH")) != null)) 203 { 257 $un = md5($uniqueString); 258 return mb_substr($un, 0, 2)."/".$un.".php"; 259 } 431 { 432 /** @noinspection PhpUndefinedFieldInspection */ 433 $written = $this->cacheEngine->written;plugin.php https://gitlab.com/che234/adn | PHP | 460 lines
1<?php 2 140 private function isRequest() { 141 $xmlhttprequest = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest'; 142 229 // ini language 230 $document->addScript(array('index.php?option=com_jce&view=editor&' . $document->getQueryString(array('task' => 'loadlanguages', 'lang' => WFLanguage::getCode()))), 'joomla'); 231class-wc-api-webhooks.php https://gitlab.com/hotrainer/zarmani | 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'] ) ) ) { 264App.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)){Curl.php https://github.com/dmolsen/MIT-Mobile-Web.git | PHP | 392 lines
27/** Zend_Http_Client_Adapter_Interface */ 28require_once 'Zend/Http/Client/Adapter/Interface.php'; 29 31 * An adapter class for Zend_Http_Client based on the curl extension. 32 * Curl requires libcurl. See for full requirements the PHP manual: http://php.net/curl 33 * 103 if (!extension_loaded('curl')) { 104 require_once 'Zend/Http/Client/Adapter/Exception.php'; 105 throw new Zend_Http_Client_Adapter_Exception('cURL extension has to be loaded to use this Zend_Http_Client adapter.'); 123 foreach ($config as $k => $v) { 124 $this->_config[strtolower($k)] = $v; 125 } 305 * Make sure POSTFIELDS is set after $curlMethod is set: 306 * @link http://de2.php.net/manual/en/function.curl-setopt.php#81161 307 */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;ContentRightSidebar.php https://gitlab.com/GethN7/monaco-port | PHP | 210 lines
1<?php 2/** 22 23$wgExtensionMessagesFiles['ContentRightSidebar'] = dirname(__FILE__).'/ContentRightSidebar.i18n.php'; 24 89 $out = RIGHT_SIDEBAR_START_TOKEN; 90 if($with_box && !in_array(strtolower($with_box), array("false", "off", "no", "none"))) 91 {Router.php https://gitlab.com/chhumsina/cambolocation | PHP | 522 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 130 131 // Load the routes.php file. 132 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/routes.php')) 133 { 134 include(APPPATH.'config/'.ENVIRONMENT.'/routes.php'); 135 } 135 } 136 elseif (is_file(APPPATH.'config/routes.php')) 137 { 137 { 138 include(APPPATH.'config/routes.php'); 139 }upload.php https://gitlab.com/plusplusminus/aevitas | PHP | 245 lines
1<?php 2 7/** 8 * upload.php 9 * 109 110 $allowed_extensions = ! empty( $field->allowedExtensions ) ? GFCommon::clean_extensions( explode( ',', strtolower( $field->allowedExtensions ) ) ) : array(); 111 126 GFCommon::log_debug( "GFAsyncUpload::upload(): The uploaded file type is not allowed: {$file_name}" ); 127 die( '{"status" : "error", "error" : {"code": 104, "message": "' . sprintf( __( 'The uploaded file type is not allowed. Must be one of the following: %s', 'gravityforms' ), strtolower( $field['allowedExtensions'] ) ) . '"}}' ); 128 } 195 // Read binary input stream and append it to temp file 196 $in = @fopen( 'php://input', 'rb' ); 197payment.php https://gitlab.com/alexprowars/bitrix | PHP | 228 lines
1<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();?><? 2include_once(GetLangFileName(dirname(__FILE__)."/", "/payment.php")); 3include(dirname(__FILE__)."/common.php"); 113 { 114 if (md5($strHashValue.(CSalePaySystemAction::GetParamValue("PS_LOGIN")).$mass[7].sprintf("%.2f", $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"])) != mb_strtolower($mass[38])) 115 { 152 "PS_CURRENCY" => $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"], 153 "PS_RESPONSE_DATE" => Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG))) 154 );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 }kodoc.php https://gitlab.com/ken3/bluSky | PHP | 357 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 8 * @copyright (c) 2008-2012 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 146 // Convert slashes to underscores 147 $class = str_replace(DIRECTORY_SEPARATOR, '_', strtolower($class)); 148 216 217 // Remove the phpdoc open/close tags and split 218 $comment = array_slice(explode("\n", $comment), 1, -1);profiler.php https://gitlab.com/ken3/bluSky | PHP | 385 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 44 ( 45 'group' => strtolower($group), 46 'name' => (string) $name,component.php https://gitlab.com/alexprowars/bitrix | PHP | 358 lines
1<?php 2/** 235 $arResult["HEADERS"][$id]["sort_state"] = ""; 236 if(mb_strtolower($header["sort"]) == mb_strtolower($sortBy)) 237 { 237 { 238 if(mb_strtolower($sortOrder) == "desc") 239 $arResult["HEADERS"][$id]["sort_state"] = "desc";case.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 206 lines
1<?php 2/** 2/** 3* @version $Id: case.php 10381 2008-06-01 03:35:53Z pasamio $ 4* @package utf8 16/** 17* UTF-8 aware alternative to strtolower 18* Make a string lowercase 26* @return mixed either string in lowercase or FALSE is UTF-8 invalid 27* @see http://www.php.net/strtolower 28* @see utf8_to_unicode 30* @see http://www.unicode.org/reports/tr21/tr21-5.html 31* @see http://dev.splitbrain.org/view/darcs/dokuwiki/inc/utf8.php 32* @package utf8 34*/ 35function utf8_strtolower($string){ 36 global $UTF8_UPPER_TO_LOWER;Config.php https://gitlab.com/blingbang2016/shop | PHP | 361 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) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 113 $this->_attributeSetsById[$entityTypeId][$id] = $name; 114 $this->_attributeSetsByName[$entityTypeId][strtolower($name)] = $id; 115 } 141 } 142 $name = strtolower($name); 143 return isset($this->_attributeSetsByName[$entityTypeId][$name]) ? $this->_attributeSetsByName[$entityTypeId][$name] : false; 160 $this->_attributeGroupsById[$attributeSetId][$id] = $name; 161 $this->_attributeGroupsByName[$attributeSetId][strtolower($name)] = $id; 162 }hash.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 245 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 40/** 41 * PHP ext/hash compatibility package 42 * 47 * @link https://codeigniter.com/user_guide/ 48 * @link http://php.net/hash 49 */ 52 53if (is_php('5.6')) 54{ 64 * 65 * @link http://php.net/hash_equals 66 * @param string $known_stringList.php https://github.com/radicalsuz/amp.git | PHP | 279 lines
1<?php 2require_once('AMP/Display/List.php'); 2require_once('AMP/Display/List.php'); 3require_once('AMP/Content/Article.inc.php'); 4 12 var $_class_pager = 'AMP_Display_Pager_Content'; 13 var $_path_pager = 'AMP/Display/Pager/Content.php'; 14 43 if( isset( $this->_source_container )) { 44 $this->_css_class_container_list = $this->_css_class_container_list . ' list_' . strtolower( get_class( $this->_source_container )) . '_' . $this->_source_container->id; 45 } 52 $allowed_containers = array( 'section', 'contentclass', 'amp_content_tag'); 53 if ( array_search( strtolower( get_class( $container )), $allowed_containers) === FALSE ) { 54 return $container; 110 //if this is not a section based list, use the parent search create method 111 if( !( isset( $this->_source_container ) && ( strtolower( get_class( $this->_source_container )) == 'section' ))) { 112 $result = &parent::create_search_form( );sfWidget.class.php https://github.com/openpne/OpenPNE3.git | PHP | 411 lines
1<?php 2 334 335 return sprintf('<%s%s%s', $tag, $this->attributesToHtml($attributes), self::$xhtml ? ' />' : (strtolower($tag) == 'input' ? '>' : sprintf('></%s>', $tag))); 336 }Column.php https://gitlab.com/daigiangaitu91/magento | PHP | 501 lines
1<?php 2/** 234 * @return bool 235 * @SuppressWarnings(PHPMD.BooleanGetMethodName) 236 */ 392 { 393 $type = strtolower($this->getType()); 394 $rendererClass = isset( 449 { 450 $type = $this->getFilterType() ? strtolower($this->getFilterType()) : strtolower($this->getType()); 451 $filterClass = isset($this->_filterTypes[$type]) ? $this->_filterTypes[$type] : $this->_filterTypes['default'];class-gf-field-radio.php https://gitlab.com/plusplusminus/isissoftware | PHP | 230 lines
1<?php 2 199 } else if ( $this->type == 'post_category' ) { 200 $use_id = strtolower( $modifier ) == 'id'; 201 $item_value = GFCommon::format_post_category( $item, $use_id );Route.php https://gitlab.com/Marwein/tnjobs | PHP | 588 lines
1<?php 2 213 { 214 $this->schemes = array_map('strtolower', (array) $schemes); 215 $this->compiled = null; 228 { 229 return in_array(strtolower($scheme), $this->schemes, true); 230 }PwTagService.php https://gitlab.com/wuhang2003/phpwind | PHP | 482 lines
1<?php 2Wind::import('SRV:tag.dm.PwTagDm'); 6 * @author peihong <peihong.zhangph@aliyun-inc.com> 7 * @copyright ©2003-2103 phpwind.com 8 * @license http://www.phpwind.com 8 * @license http://www.phpwind.com 9 * @version $Id: PwTagService.php 3833 2012-02-16 03:32:27Z peihong.zhangph $ 10 * @package src.service.tag.srv 25 foreach ($_tagsInfo as $k => $tag){ 26 $tagsKeys[] = strtolower($k); 27 $k = strtolower($k); 31 foreach ($dmArray as $k => $dm){ 32 $k = strtolower($k); 33 $dmArrays[$k] = $dm; 36 foreach ($dmArrays as $k => $dm) { 37 $k = strtolower(trim($k)); 38 if (!$k || !$dm instanceof PwTagDm) continue;inputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
2/** 3 * @class: InputFilter (PHP4 & PHP5, with comments) 4 * @project: PHP Input Filter 5 * @date: 10-05-2005 6 * @version: 1.2.2_php4/php5 7 * @author: Daniel Morris 44 */ 45 $tagsArray = array_map('strtolower', (array) $tagsArray); 46 $attrArray = array_map('strtolower', (array) $attrArray); 272 */ 273 $tagFound = in_array(strtolower($tagName), $this->tagsArray); 274 363 */ 364 if ((!preg_match("#^[a-z]*$#i", $attrSubSet[0])) || (($this->xssAuto) && ((in_array(strtolower($attrSubSet[0]), $this->attrBlacklist)) || (substr($attrSubSet[0], 0, 2) == 'on')))) 365 {Message.php https://gitlab.com/btkm/correct_fb | PHP | 291 lines
1<?php 2 238 foreach ($altered as $head) { 239 $lc = strtolower($head); 240template.php https://gitlab.com/alexprowars/bitrix | PHP | 125 lines
4CUtil::InitJSCore(array('socnetlogdest')); 5\Bitrix\Main\Localization\Loc::loadMessages(__DIR__.DIRECTORY_SEPARATOR.'script.js.php'); 6?> 98 foreach($_GET as $key => $val): 99 if (in_array(mb_strtolower($key), array("sessid", "workflow_template_id"))) 100 continue;Relation.php https://gitlab.com/hop23typhu/list-theme | PHP | 278 lines
1<?php 2/*+*********************************************************************************** 78 public function isActionSupported($actionName){ 79 $actionName = strtolower($actionName); 80 $actions = $this->getActions(); 81 foreach($actions as $action) { 82 if(strcmp(strtolower($action), $actionName)== 0){ 83 return true;csv.php https://gitlab.com/alexprowars/bitrix | PHP | 437 lines
1<?php 2namespace Bitrix\Translate\Controller\Import; 118 $enc = $this->request->get('encodingIn'); 119 if ($enc !== null && in_array(mb_strtolower($enc), Translate\Config::getAllowedEncodings())) 120 { 120 { 121 $this->encodingIn = mb_strtolower($enc); 122 }Module.php https://gitlab.com/hop23typhu/list-theme | PHP | 229 lines
1<?php 2 25 public function getCreateRecordUrl() { 26 return 'index.php?module=' . $this->get('name') . '&view=' . $this->getEditViewName(); 27 } 82 foreach ($fieldList as $key => $field) { 83 $option = array(vtranslate($field['module'], $field['module']) . ':' . vtranslate($field['fieldlabel'], $field['module']), "$" . strtolower($field['module']) . "-" . $field['columnname'] . "$"); 84 $allFields[] = $option; 86 foreach ($field['referencelist'] as $key => $relField) { 87 $relOption = array(vtranslate($field['fieldlabel'], $field['module']) . ':' . '(' . vtranslate($relField['module'], $relField['module']) . ')' . vtranslate($relField['fieldlabel'],$relField['module']), "$" . strtolower($field['module']) . "-" . $field['columnname'] . ":" . $relField['columnname'] . "$"); 88 $allRelFields[] = $relOption;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 }bookmark.php https://gitlab.com/Henaway/CLFC | PHP | 416 lines
1<?php 2/** 200 wp_cache_set( 'get_bookmarks', $cache, 'bookmark' ); 201 /** This filter is documented in wp-includes/bookmark.php */ 202 return apply_filters( 'get_bookmarks', array(), $r ); 238 239 $orderby = strtolower( $r['orderby'] ); 240 $length = ''; 291 292 /** This filter is documented in wp-includes/bookmark.php */ 293 return apply_filters( 'get_bookmarks', $results, $r ); 381 if ( 'edit' == $context ) { 382 /** This filter is documented in wp-includes/post.php */ 383 $value = apply_filters( "edit_$field", $value, $bookmark_id ); 390 } else if ( 'db' == $context ) { 391 /** This filter is documented in wp-includes/post.php */ 392 $value = apply_filters( "pre_$field", $value );sqlsrv_driver.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 542 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 123 { 124 $charset = in_array(strtolower($this->char_set), array('utf-8', 'utf8'), TRUE) 125 ? 'UTF-8' : SQLSRV_ENC_CHAR;init.php https://gitlab.com/che234/smproducciones | PHP | 321 lines
1<?php 2/** @var $gmDB 69 'type' => $type, 70 'ext' => strtolower($ext), 71 'src' => "/{$gmGallery->options['folder'][$type]}/{$item->gmuid}", 240 jQuery(function() { 241 var settings = <?php echo $json_settings; ?>; 242 var content = <?php echo json_encode($content); ?>; 242 var content = <?php echo json_encode($content); ?>; 243 jQuery('#GmediaGallery_<?php echo $gallery['term_id'] ?>').gmPhantom([content, settings]); 244 }); 286 <div class="gmPhantom_ThumbContainer gmPhantom_ThumbLoader<?php echo(!in_array($item['type'], array('image'))? " mfp-iframe" : ''); ?>" data-ratio="<?php echo $thumb_r; ?>" data-no="<?php echo $i++; ?>"><?php 287 ?><a href="<?php echo $gmCore->upload['url'] . $item['src']; ?>" class="gmPhantom_Thumb"><img style="<?php echo $style; ?>" src="<?php echo $item['thumb']; ?>" alt="<?php echo esc_attr($item['title']); ?>"/></a><?php 288 if(in_array($allsettings['thumbsInfo'], array('label', 'label_bottom')) && ($item['title'] != '')) { 293 <div class="gmPhantom_ThumbLabel"><?php echo $item['title']; ?></div> 294 <div style="display:none;" class="gmPhantom_ThumbCaption"><?php echo $item['text']; ?></div><?php 295 } ?></div><?phpdate.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 303 lines
1<?php 2/** 2/** 3* @version $Id: date.php 14401 2010-01-26 14:10:00Z louis $ 4* @package Joomla.Framework 6* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7* @license GNU/GPL, see LICENSE.php 8* Joomla! is free software. This version may have been modified pursuant 11* other free or open source software licenses. 12* See COPYRIGHT.php for copyright notices and details. 13*/ 73 ); 74 $matches[2] = strtolower($matches[2]); 75 if (! isset($months[$matches[2]])) { 221 * 222 * @param string $format The date format specification string (see {@link PHP_MANUAL#strftime}) 223 * @return a date in a specific formatdictionary.php https://gitlab.com/alexprowars/bitrix | PHP | 206 lines
1<?php 2namespace Bitrix\Forum\BadWords; 180 $letters = $this->getTranslitDictionary(true); 181 $word = preg_replace(array_keys($letters), array_values($letters), strtolower(trim($word))); 182Application.php https://gitlab.com/blingbang2016/shop | PHP | 440 lines
67 * 68 * Initialize application. Potentially initializes include_paths, PHP 69 * settings, and bootstrap class. 80 81 #require_once 'Zend/Loader/Autoloader.php'; 82 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 153 if (!empty($options['phpsettings'])) { 154 $this->setPhpSettings($options['phpsettings']); 155 } 223 { 224 return in_array(strtolower($key), $this->_optionKeys); 225 } 237 $options = array_change_key_case($options, CASE_LOWER); 238 return $options[strtolower($key)]; 239 }Image.php https://gitlab.com/blingbang2016/shop | PHP | 247 lines
1<?php 2/** 122 */ 123 #require_once 'Zend/Pdf/Resource/ImageFactory.php'; 124 return Zend_Pdf_Resource_ImageFactory::factory($filePath); 129 */ 130 #require_once 'Zend/Pdf/FileParserDataSource/File.php'; 131 $dataSource = new Zend_Pdf_FileParserDataSource_File($filePath); 135 */ 136 $fileExtension = strtolower(pathinfo($filePath, PATHINFO_EXTENSION)); 137 157 default: 158 #require_once 'Zend/Pdf/Exception.php'; 159 throw new Zend_Pdf_Exception("Cannot create image resource. File extension not known or unsupported type."); 172 */ 173 #require_once 'Zend/Pdf/Exception.php'; 174 throw new Zend_Pdf_Exception("Cannot determine image type: $filePath",bookmark.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 371 lines
1<?php 2/** 213 214 $orderby = strtolower($orderby); 215 $length = '';bookmark.php https://gitlab.com/rio.munas/gddc | PHP | 415 lines
1<?php 2/** 199 wp_cache_set( 'get_bookmarks', $cache, 'bookmark' ); 200 /** This filter is documented in wp-includes/bookmark.php */ 201 return apply_filters( 'get_bookmarks', array(), $r ); 237 238 $orderby = strtolower( $r['orderby'] ); 239 $length = ''; 290 291 /** This filter is documented in wp-includes/bookmark.php */ 292 return apply_filters( 'get_bookmarks', $results, $r ); 380 if ( 'edit' == $context ) { 381 /** This filter is documented in wp-includes/post.php */ 382 $value = apply_filters( "edit_$field", $value, $bookmark_id ); 389 } elseif ( 'db' == $context ) { 390 /** This filter is documented in wp-includes/post.php */ 391 $value = apply_filters( "pre_$field", $value );XmlDriver.php https://gitlab.com/freebird/WebApp | PHP | 301 lines
1<?php 2 51 $exclusionPolicy = strtoupper($elem->attributes()->{'exclusion-policy'}) ?: 'NONE'; 52 $excludeAll = null !== ($exclude = $elem->attributes()->exclude) ? 'true' === strtolower($exclude) : false; 53 $classAccessType = (string) ($elem->attributes()->{'access-type'} ?: PropertyMetadata::ACCESS_TYPE_PROPERTY); 69 70 $readOnlyClass = 'true' === strtolower($elem->attributes()->{'read-only'}); 71 134 if (null !== $exclude = $pElem->attributes()->exclude) { 135 $isExclude = 'true' === strtolower($exclude); 136 } 138 if (null !== $expose = $pElem->attributes()->expose) { 139 $isExpose = 'true' === strtolower($expose); 140 } 226 if (null !== $readOnly = $pElem->attributes()->{'read-only'}) { 227 $pMetadata->readOnly = 'true' === strtolower($readOnly); 228 } else {ErrorHandlerTest.php https://gitlab.com/HatemProjects/hatem | PHP | 242 lines
112 $handler = ErrorHandler::register(3); 113 $this->assertFalse($handler->handle(4, 'foo', 'foo.php', 12, array())); 114 118 try { 119 $handler->handle(111, 'foo', 'foo.php', 12, array()); 120 } catch (\ErrorException $e) { 134 $handler = ErrorHandler::register(E_DEPRECATED); 135 $this->assertFalse($handler->handle(E_DEPRECATED, 'foo', 'foo.php', 12, array())); 136 157 $handler->setLogger($logger); 158 $this->assertTrue($handler->handle(E_USER_DEPRECATED, 'foo', 'foo.php', 12, array())); 159 204 // class names are case insensitive and PHP/HHVM do not return the same 205 $this->assertSame(strtolower($translatedMessage), strtolower($exceptionHandler->e->getMessage())); 206 $this->assertSame($error['type'], $exceptionHandler->e->getSeverity());missing-php-functions.php https://bitbucket.org/lpservice-it/ljmc.git | PHP | 305 lines
1<?php 2 4if ( !function_exists('json_decode') ){ 5 include_once ICL_PLUGIN_PATH . '/lib/JSON.php'; 6 function json_decode($data, $bool) { 30 while ( ( $plugin = readdir( $dh ) ) !== false ) { 31 if ( substr( $plugin, -4 ) == '.php' ) 32 $mu_plugins[] = LJMCMU_PLUGIN_DIR . '/' . $plugin; 47The function accepts to same string of format accepts for the 48original function of the PHP. 49 51 52The function is tested using PHP 5.1.4 in Windows XP 53and Apache WebServer. 166 167 return ( isset( $_SERVER[ 'HTTP_X_REQUESTED_WITH' ] ) && mb_strtolower( $_SERVER[ 'HTTP_X_REQUESTED_WITH' ] ) == 'xmlhttprequest' ) ? true : false; 168 }CMysqlSchema.php https://gitlab.com/zenfork/vektor | PHP | 363 lines
1<?php 2/** 75 { 76 return parent::compareTableNames(strtolower($name1),strtolower($name2)); 77 } 206 $c->init($column['Type'],$column['Default']); 207 $c->autoIncrement=strpos(strtolower($column['Extra']),'auto_increment')!==false; 208 if(isset($column['Comment']))teamstaffs.php https://gitlab.com/julienv/joomleague | PHP | 327 lines
1<?php 2/** 3 * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL,see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 15jimport('joomla.application.component.model'); 16require_once (JPATH_COMPONENT.DS.'models'.DS.'list.php'); 17 73 $search_mode = $mainframe->getUserStateFromRequest($option.'ts_search_mode','search_mode', '', 'string'); 74 $search = JString::strtolower($search); 75 $where=array();site-users.php https://gitlab.com/hop23typhu/list-theme | PHP | 317 lines
70 $password = wp_generate_password( 12, false); 71 $user_id = wpmu_create_user( esc_html( strtolower( $user['username'] ) ), $password, esc_html( $user['email'] ) ); 72 257 258/** This filter is documented in wp-admin/network/site-users.php */ 259if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?> 259if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?> 260<h3 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h3> 261<form action="site-users.php?action=adduser" id="adduser" method="post"> 289<h3 id="add-new-user"><?php _e( 'Add New User' ); ?></h3> 290<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post"> 291 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> 315</div> 316<?php 317require( ABSPATH . 'wp-admin/admin-footer.php' );xml_domit_rss_lite.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 244 lines
1<?php 2/** 20 21require_once(DOMIT_RSS_INCLUDE_PATH . 'xml_domit_rss_shared.php'); 22 51 $currNode =& $this->node->documentElement->childNodes[$i]; 52 $tagName = strtolower($currNode->nodeName); 53 119 $currNode =& $this->node->childNodes[$i]; 120 $tagName = strtolower($currNode->nodeName); 121 206 $currNode =& $this->node->childNodes[$i]; 207 $tagName = strtolower($currNode->nodeName); 208template.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 200 lines
1<?php 2/** 2/** 3* @version $Id:template.php 6961 2007-03-15 16:06:53Z tcp $ 4* @package Joomla.Framework 6* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7* @license GNU/GPL, see LICENSE.php 8* Joomla! is free software. This version may have been modified pursuant 11* other free or open source software licenses. 12* See COPYRIGHT.php for copyright notices and details. 13*/ 77 // Set the template root path 78 $this->parent->setPath('extension_root', $basePath.DS.'templates'.DS.strtolower(str_replace(" ", "_", $this->get('name')))); 79module.tag.apetag.php https://gitlab.com/Gashler/dp | PHP | 370 lines
1<?php 2///////////////////////////////////////////////////////////////// 9// // 10// module.tag.apetag.php // 11// module for analyzing APE tags // 24 if (!getid3_lib::intValueSupported($info['filesize'])) { 25 $info['warning'][] = 'Unable to check for APEtags because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB'; 26 return false; 124 $ItemKeyLength = strpos($APEtagData, "\x00", $offset) - $offset; 125 $item_key = strtolower(substr($APEtagData, $offset, $ItemKeyLength)); 126 147 148 switch (strtolower($item_key)) { 149 case 'replaygain_track_gain': 278 foreach ($thisfile_ape_items_current['data'] as $comment) { 279 $thisfile_ape['comments'][strtolower($item_key)][] = $comment; 280 }module.audio.mp3.php https://gitlab.com/Gashler/dp | PHP | 901 lines
1<?php 2///////////////////////////////////////////////////////////////// 9// // 10// module.audio.mp3.php // 11// module for analyzing MP3 files // 42 if (isset($info['mpeg']['audio']['bitrate_mode'])) { 43 $info['audio']['bitrate_mode'] = strtolower($info['mpeg']['audio']['bitrate_mode']); 44 }module.audio-video.quicktime.php https://gitlab.com/Gashler/dp | PHP | 1006 lines
1<?php 2///////////////////////////////////////////////////////////////// 9// // 10// module.audio-video.quicktime.php // 11// module for analyzing Quicktime and MP3-in-MP4 files // 11// module for analyzing Quicktime and MP3-in-MP4 files // 12// dependencies: module.audio.mp3.php // 13// dependencies: module.tag.id3v2.php // 16 17getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio.mp3.php', __FILE__, true); 18getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.tag.id3v2.php', __FILE__, true); // needed for ISO 639-2 language code lookup 39 if (!getid3_lib::intValueSupported($offset)) { 40 $info['error'][] = 'Unable to parse atom at offset '.$offset.' because beyond '.round(PHP_INT_MAX / 1073741824).'GB limit of PHP filesystem functions'; 41 break; 175 //$atom_parent = array_pop($atomHierarchy); 176 $atom_parent = end($atomHierarchy); // http://www.getid3.org/phpBB3/viewtopic.php?t=1717 177 array_push($atomHierarchy, $atomname);widgets.php https://gitlab.com/Gashler/dp | PHP | 1270 lines
1<?php 2/** 73 /** 74 * PHP5 constructor 75 * 86 function __construct( $id_base, $name, $widget_options = array(), $control_options = array() ) { 87 $this->id_base = empty($id_base) ? preg_replace( '/(wp_)?widget_/', '', strtolower(get_class($this)) ) : strtolower($id_base); 88 $this->name = $name; 94 /** 95 * PHP4 constructor 96 */rss.php https://gitlab.com/Gashler/dp | PHP | 932 lines
1<?php 2/** 15/** 16 * Deprecated. Use SimplePie (class-simplepie.php) instead. 17 */ 17 */ 18_deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/class-simplepie.php' ); 19 55 56 # if PHP xml isn't compiled in, die 57 # 58 if ( !function_exists('xml_parser_create') ) 59 trigger_error( "Failed to load PHP's XML Extension. http://www.php.net/manual/en/ref.xml.php" ); 60 63 if ( !is_resource($parser) ) 64 trigger_error( "Failed to create an instance of PHP's XML parser. http://www.php.net/manual/en/ref.xml.php"); 65ms-functions.php https://gitlab.com/Gashler/dp | PHP | 1507 lines
1<?php 2/** 336 337 $domain = strtolower( $domain ); 338 $path = strtolower( $path ); 363 * This function checks against the Banned Email Domains list 364 * at wp-admin/network/settings.php. The check is only run on 365 * self-registrations; user creation at wp-admin/network/users.php 380 if ( $banned_names && is_array( $banned_names ) ) { 381 $banned_names = array_map( 'strtolower', $banned_names ); 382 $normalized_email = strtolower( $user_email );link-template.php https://gitlab.com/Gashler/dp | PHP | 1673 lines
1<?php 2/** 58 $post = get_post(); 59 switch ( strtolower( $mode ) ) { 60 case 'title':category-template.php https://gitlab.com/Gashler/dp | PHP | 1191 lines
1<?php 2/** 169 $thelist .= "\n\t<li>"; 170 switch ( strtolower( $parents ) ) { 171 case 'multiple': 192 $thelist .= $separator; 193 switch ( strtolower( $parents ) ) { 194 case 'multiple':Hash.php https://gitlab.com/Gashler/dp | PHP | 825 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 4/** 5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions. 6 * 13 * 14 * PHP versions 4 and 5 15 * 20 * <code> 21 * <?php 22 * include('Crypt/Hash.php'); 51 * @package Crypt_Hash 52 * @author Jim Wigginton <terrafrost@php.net> 53 * @copyright MMVII Jim Wigginton 54 * @license http://www.opensource.org/licenses/mit-license.html MIT License 55 * @version $Id: Hash.php,v 1.6 2009/11/23 23:37:07 terrafrost Exp $ 56 * @link http://phpseclib.sourceforge.netsc-paypal-button-in.inc.php https://gitlab.com/Gashler/dp | PHP | 290 lines
1<?php 2/** 60 $attr["rr"] = /* Must be provided in upper-case format. Numerical, or BN value. Only after running shortcode_atts(). */ strtoupper ($attr["rr"]); 61 $attr["ccaps"] = /* Custom Capabilities must be typed in lower-case format. Only after running shortcode_atts(). */ strtolower ($attr["ccaps"]); 62 $attr["rr"] = /* Lifetime Subscriptions require Buy Now. Only after running shortcode_atts(). */ ($attr["rt"] === "L") ? "BN" : $attr["rr"]; 73 74 $code = trim (c_ws_plugin__s2member_utilities::evl (file_get_contents (dirname (dirname (__FILE__)) . "/templates/buttons/paypal-cancellation-button.php"))); 75 $code = preg_replace ("/%%images%%/", c_ws_plugin__s2member_utils_strings::esc_ds (esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"] . "/images")), $code); 109 110 $code = trim (c_ws_plugin__s2member_utilities::evl (file_get_contents (dirname (dirname (__FILE__)) . "/templates/buttons/paypal-sp-checkout-button.php"))); 111 $code = preg_replace ("/%%images%%/", c_ws_plugin__s2member_utils_strings::esc_ds (esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"] . "/images")), $code); 164 165 $code = trim (c_ws_plugin__s2member_utilities::evl (file_get_contents (dirname (dirname (__FILE__)) . "/templates/buttons/paypal-ccaps-checkout-button.php"))); 166 $code = preg_replace ("/%%images%%/", c_ws_plugin__s2member_utils_strings::esc_ds (esc_attr ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"] . "/images")), $code);custom-reg-fields.inc.php https://gitlab.com/Gashler/dp | PHP | 552 lines
1<?php 2/** 60 61 $field_var = preg_replace("/[^a-z0-9]/i", "_", strtolower($field["id"])); 62 $field_id_class = preg_replace("/_/", "-", $field_var);custom-reg-fields-4bp.inc.php https://gitlab.com/Gashler/dp | PHP | 286 lines
1<?php 2/** 75 { 76 $field_var = preg_replace ("/[^a-z0-9]/i", "_", strtolower ($field["id"])); 77 $field_id_class = preg_replace ("/_/", "-", $field_var); 173 { 174 $field_var = preg_replace ("/[^a-z0-9]/i", "_", strtolower ($field["id"])); 175 $field_id_class = preg_replace ("/_/", "-", $field_var);plugin.php https://gitlab.com/Gashler/dp | PHP | 1350 lines
123 load_plugin_textdomain( $textdomain, false, dirname( $plugin_file ) ); 124 } elseif ( in_array( basename( $plugin_file ), array( 'hello.php', 'akismet.php' ) ) ) { 125 $textdomain = 'default'; 265 } else { 266 if ( substr($file, -4) == '.php' ) 267 $plugin_files[] = $file; 312 while ( ( $file = readdir( $plugins_dir ) ) !== false ) { 313 if ( substr( $file, -4 ) == '.php' ) 314 $plugin_files[] = $file; 336 337 if ( isset( $wp_plugins['index.php'] ) && filesize( WPMU_PLUGIN_DIR . '/index.php') <= 30 ) // silence is golden 338 unset( $wp_plugins['index.php'] ); 407 $dropins = array( 408 'advanced-cache.php' => array( __( 'Advanced caching plugin.' ), 'WP_CACHE' ), // WP_CACHE 409 'db.php' => array( __( 'Custom database class.' ), true ), // auto on loadVideoController.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 644 lines
1<?php 2 48 $input = $request['sorgu']; 49 $input = strtolower($input); 50 $words = array(); 54 foreach($videos as $items){ 55 $videoName = strtolower($items['name']); 56 $lev = self::lev($input,$videoName); 131 return $name['data']['cast']; 132 return \GuzzleHttp\json_decode(file_get_contents('https://tr.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&formatversion=2&titles='.$name),true)['query']['pages'][0]['extract']; 133 } 137 $input = str_replace(' ','+',$input); 138 $name = \GuzzleHttp\json_decode(file_get_contents('https://en.wikipedia.org/w/api.php?action=query&list=search&utf8=&formatversion=2&format=json&srsearch='.$input),true); 139 foreach ($name['query']['search'] as $perName){ 141 if($name==$input){ 142 $content = \GuzzleHttp\json_decode(file_get_contents('https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&formatversion=2&titles='.$name),true)['query']['pages'][0]['extract']; 143 $tr = new TranslateClient('en','tr');Session.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 908 lines
128 129 // Sanitize the cookie, because apparently PHP doesn't do that for userspace handlers 130 if (isset($_COOKIE[$this->_config['cookie_name']]) 142 // Is session ID auto-regeneration configured? (ignoring ajax requests) 143 if ((empty($_SERVER['HTTP_X_REQUESTED_WITH']) OR strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) !== 'xmlhttprequest') 144 && ($regenerate_time = config_item('sess_time_to_update')) > 0 190 // PHP 5.4 compatibility 191 interface_exists('SessionHandlerInterface', FALSE) OR require_once(BASEPATH.'libraries/Session/SessionHandlerInterface.php'); 192 197 require_once( 198 file_exists(APPPATH.'libraries/Session/Session_driver.php') 199 ? APPPATH.'libraries/Session/Session_driver.php' 222 { 223 if (file_exists($file_path = APPPATH.'libraries/Session/drivers/'.$class.'.php') OR file_exists($file_path = BASEPATH.'libraries/Session/drivers/'.$class.'.php')) 224 {Encryption.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 931 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 42 * 43 * Provides two-way keyed encryption via PHP's MCrypt and/or OpenSSL extensions. 44 * 81 /** 82 * PHP extension to be used 83 * 88 /** 89 * List of usable drivers (PHP extensions) 90 * 155 'mcrypt' => defined('MCRYPT_DEV_URANDOM'), 156 // While OpenSSL is available for PHP 5.3.0, an IV parameter 157 // for the encrypt/decrypt functions is only available since 5.3.3form_helper.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 1032 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 87 { 88 $attributes .= ' accept-charset="'.strtolower(config_item('charset')).'"'; 89 }DB_forge.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 1032 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 220 { 221 $key = array_search(strtolower($db_name), array_map('strtolower', $this->db->data_cache['db_names']), TRUE); 222 if ($key !== FALSE) 471 { 472 $key = array_search(strtolower($this->db->dbprefix.$table_name), array_map('strtolower', $this->db->data_cache['table_names']), TRUE); 473 if ($key !== FALSE) 542 { 543 $key = array_search(strtolower($this->db->dbprefix.$table_name), array_map('strtolower', $this->db->data_cache['table_names']), TRUE); 544 if ($key !== FALSE)end_vevent.php https://gitlab.com/endomorphosis/fusenews | PHP | 663 lines
1<?php 2/* end_vevent.php 173 } 174 $recur_array[($start_date)][($hour.$minute)][$uid]['recur'][$key] = strtolower($val); 175 break; 404 $next_date_time = mktime(0,0,0,$month,$day,$year); 405 $daday = strtolower(strftime("%a", $next_date_time)); 406 if ($daday == $on_day && in_array($month, $bymonth)) {iCalUtilityFunctions.class.php https://gitlab.com/julienv/joomleague | PHP | 1170 lines
1<?php 2/** 4 * copyright (c) 2007-2011 Kjell-Inge Gustafsson kigkonsult 5 * www.kigkonsult.se/iCalcreator/index.php 6 * ical@kigkonsult.se 123 * @param object $calendar, reference to an iCalcreator calendar instance 124 * @param string $timezone, a PHP5 (DateTimeZone) valid timezone 125 * @param array $xProp, *[x-propName => x-propValue], optional 163 foreach( $xProp as $xPropName => $xPropValue ) 164 if( 'x-' == strtolower( substr( $xPropName, 0, 2 ))) 165 $tz->setproperty( $xPropName, $xPropValue );iCal2csv.php https://gitlab.com/julienv/joomleague | PHP | 598 lines
1<?php 2/** 6 * copyright (c) 2009 Kjell-Inge Gustafsson kigkonsult 7 * www.kigkonsult.se/index.php 8 * ical@kigkonsult.se 28 * Convert iCal file to csv format and send file to browser (default) or save csv file to disk 29 * Definition iCal : rcf2445, http://localhost/work/kigkonsult.se/downloads/index.php#rfc2445 30 * Definition csv : http://en.wikipedia.org/wiki/Comma-separated_values 30 * Definition csv : http://en.wikipedia.org/wiki/Comma-separated_values 31 * Using iCalcreator: http://localhost/work/kigkonsult.se/downloads/index.php#iCalcreator 32 * ical directory/file read/write error OR iCalcreator parse error will be directed to error_log/log 50 if( !function_exists( 'fileCheckRead' )) 51 require_once 'fileCheck.php'; 52 if( !class_exists( 'vcalendar', FALSE )) 54 if( $log ) $log->log( "$iCal2csv_VERSION input=$filename, conf=".var_export($conf,TRUE).", save=$save, diskfilename=$diskfilename", 7 ); 55 $remoteInput = (( 'http://' == strtolower( substr( $filename, 0, 7 ))) || ( 'webcal://' == strtolower( substr( $filename, 0, 9 )))) ? TRUE : FALSE; 56 // field DELimiter && field SEParator && NewLine character(-s) etc.helper.php https://gitlab.com/julienv/joomleague | PHP | 526 lines
1<?php 2/** 3* @copyright Copyright (C) 2005-2014 joomleague.at. All rights reserved. 4* @license GNU/GPL, see LICENSE.php 5* Joomla! is free software. This version may have been modified pursuant 8* other free or open source software licenses. 9* See COPYRIGHT.php for copyright notices and details. 10*/ 65 return $text; 66 if (strtolower($fromenc) == strtolower($toenc) || $this->params->get('convert', 1) == 0) 67 return $text; 71 } 72 elseif (strtolower($fromenc) == 'iso-8859-1' && strtolower($toenc) == 'utf-8') { 73 return utf8_encode($text); 74 } 75 elseif (strtolower($fromenc) == 'utf-8' && strtolower($toenc) == 'iso-8859-1') { 76 return utf8_decode($text);view.html.php https://gitlab.com/julienv/joomleague | PHP | 686 lines
1<?php 2/** 3 * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL,see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 78 foreach ( $projectreferees as $referee ) { 79 $projectreferees2 [] = JHtml::_ ( 'select.option', $referee->value, JoomleagueHelper::formatName ( null, $referee->firstname, $referee->nickname, $referee->lastname, $default_name_format ) . ' - (' . strtolower ( JText::_ ( $referee->positionname ) ) . ')' ); 80 } 243 JToolBarHelper::divider (); 244 JToolBarHelper::back ( 'back', 'index.php?option=com_joomleague&view=matches&task=match.display' ); 245 JToolBarHelper::help ( 'screen.joomleague', true );widgets.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1215 lines
1<?php 2/** 73 /** 74 * PHP4 constructor 75 */ 80 /** 81 * PHP5 constructor 82 * 93 function __construct( $id_base = false, $name, $widget_options = array(), $control_options = array() ) { 94 $this->id_base = empty($id_base) ? preg_replace( '/(wp_)?widget_/', '', strtolower(get_class($this)) ) : strtolower($id_base); 95 $this->name = $name;link-template.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1716 lines
1<?php 2/** 58 global $post; 59 switch ( strtolower($mode) ) { 60 case 'title':nusoapmime.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 501 lines
1<?php 2/* 2/* 3$Id: nusoapmime.php,v 1.12 2007/04/17 16:34:03 snichol Exp $ 4 4 5NuSOAP - Web Services Toolkit for PHP 6 39 40/*require_once('nusoap.php');*/ 41/* PEAR Mail_MIME library */ 41/* PEAR Mail_MIME library */ 42require_once('Mail/mimeDecode.php'); 43require_once('Mail/mimePart.php'); 50* @author Thanks to Guillaume and Henning Reich for posting great attachment code to the mail list 51* @version $Id: nusoapmime.php,v 1.12 2007/04/17 16:34:03 snichol Exp $ 52* @access publiccategory.functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 655 lines
1<?php 2/** 158 159 if(strtolower($query['order_by']['direction']) == "desc") { 160 $order = "DESC"; 270 //echo "<pre>".print_r($query, true)."</pre>"; 271 $image_url = "index.php?wpsc_request_image=true&category_id=".$category_id."&width=".$width."&height=".$height; 272 return htmlspecialchars($image_url); 306// pe.{ 307// To stick this in sidebar, main page (calling products_page.php) must be called before sidebar.php in the loop (think) 308updating_tasks.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 721 lines
1<?php 2 65 $tidied_name = trim($datarow['name']); 66 $tidied_name = strtolower($tidied_name); 67 $url_name = sanitize_title($tidied_name); 94 $tidied_name = trim($datarow['name']); 95 $tidied_name = strtolower($tidied_name); 96 $url_name = sanitize_title($tidied_name); 221 $tidied_name = trim($brand['name']); 222 $tidied_name = strtolower($tidied_name); 223 $url_name = sanitize_title($tidied_name);googlerequest.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 758 lines
1<?php 2 23 * 24 * @version $Id: googlerequest.php 1234 2007-09-25 14:58:57Z ropu $ 25 * It has a SendReq function to post different requests to the Google Server 28 */ 29 define('PHP_SAMPLE_CODE_VERSION', 'v1.2.5'); 30 define('ENTER', "\r\n"); 38 */ 39 // refer demo/responsehandlerdemo.php for different use case scenarios 40 class GoogleRequest { 71 72 if(strtolower($server_type) == "sandbox") { 73 $this->server_url = "https://sandbox.google.com/checkout/"; 84 ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.'.'); 85 require_once('googlelog.php'); 86 $this->log = new GoogleLog('', '', L_OFF);googlecart.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1178 lines
1<?php 2/* 19 * Classes used to build a shopping cart and submit it to Google Checkout 20 * @version $Id: googlecart.php 1234 2007-09-25 14:58:57Z ropu $ 21 */ 27 * to the google checkout sandbox or production environment 28 * Refer demo/cartdemo.php for different use case scenarios for this code 29 */ 128 129 if(strtolower($server_type) == "sandbox") { 130 $this->server_url = "https://sandbox.google.com/checkout/"; 248 * @param GoogleItem $google_item an object that represents an item 249 * (defined in googleitem.php) 250 * 262 * @param object $ship an object that represents a shipping method, must be 263 * one of the methods defined in googleshipping.php 264 *wp-shopping-cart.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 537 lines
1<?php 2/* 23 24$v1 = str_replace(array('_','-','+'), '.', strtolower($wp_version)); 25$v1 = str_replace(array('alpha','beta','gamma'), array('a','b','g'), $v1); 64 load plugin text domain for get_text files. Plugin language will be the same 65 as wordpress language defined in wp-config.php line 67 66*/ 110// start including the rest of the plugin here 111require_once(WPSC_FILE_PATH.'/wpsc-includes/wpsc_query.php'); 112require_once(WPSC_FILE_PATH.'/wpsc-includes/variations.class.php'); 112require_once(WPSC_FILE_PATH.'/wpsc-includes/variations.class.php'); 113require_once(WPSC_FILE_PATH.'/wpsc-includes/ajax.functions.php'); 114require_once(WPSC_FILE_PATH.'/wpsc-includes/misc.functions.php'); 311 function wpsc_merchant_sort($a, $b) { 312 return strnatcmp(strtolower($a['name']), strtolower($b['name'])); 313 }RCCWP_CustomWritePanel.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 685 lines
1<?php 2/** 45 * @param array $standardFields a list of standard fields ids that are to be displayed in 46 * in the panel. Use $STANDARD_FIELDS defined in RCCWP_Constant.php 47 * @param array $categories array of category ids that are checked by default when the user 54 function Create($name, $description = '', $standardFields = array(), $categories = array(), $display_order = 1, $type = FALSE, $createDefaultGroup=true,$single_post = 0, $default_theme_page = NULL, $default_parent_page = NULL) { 55 include_once('RC_Format.php'); 56 global $wpdb; 105 if ($createDefaultGroup){ 106 include_once('RCCWP_CustomGroup.php'); 107 RCCWP_CustomGroup::Create($customWritePanelId, '__default', false, false); 282 * Create a capability name for a write panel given its name. This function is 283 * copied from WP's sanitize_title_with_dashes($title) (formatting.php) 284 * 288 function GetCapabilityName($customWritePanelName) { 289 // copied from WP's sanitize_title_with_dashes($title) (formatting.php) 290 $capabilityName = strip_tags($customWritePanelName);plugin.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1362 lines
231 continue; 232 if ( substr($subfile, -4) == '.php' ) 233 $plugin_files[] = "$file/$subfile"; 236 } else { 237 if ( substr($file, -4) == '.php' ) 238 $plugin_files[] = $file; 287 while ( ( $file = readdir( $plugins_dir ) ) !== false ) { 288 if ( substr( $file, -4 ) == '.php' ) 289 $plugin_files[] = $file; 311 312 if ( isset( $wp_plugins['index.php'] ) && filesize( WPMU_PLUGIN_DIR . '/index.php') <= 30 ) // silence is golden 313 unset( $wp_plugins['index.php'] ); 373 'advanced-cache.php' => array( __( 'Advanced caching plugin.' ), 'WP_CACHE' ), // WP_CACHE 374 'db.php' => array( __( 'Custom database class.' ), true ), // auto on load 375 'db-error.php' => array( __( 'Custom database error message.' ), true ), // auto on errorms-edit.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 632 lines
1<?php 2/** 9 10require_once( './admin.php' ); 11 15if ( empty( $_GET['action'] ) ) 16 wp_redirect( admin_url( 'ms-admin.php' ) ); 17 31 if ( empty( $_POST ) ) 32 wp_die( sprintf( __( 'You probably need to go back to the <a href="%s">options page</a>.', esc_url( admin_url( 'ms-options.php' ) ) ) ) ); 33 135 136 wp_redirect( add_query_arg( 'updated', 'true', admin_url( 'ms-options.php' ) ) ); 137 exit(); 149 if ( ! preg_match( '/(--)/', $blog['domain'] ) && preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) ) 150 $domain = strtolower( $blog['domain'] ); 151htmlfilter.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 861 lines
1<?php 2/** 72function tln_casenormalize(&$val){ 73 $val = strtolower($val); 74} 227 list($pos, $tagname, $match) = $regary; 228 $tagname = strtolower($tagname); 229 331 list($pos, $attname, $match) = $regary; 332 $attname = strtolower($attname); 333 /**jetpack-carousel.php https://gitlab.com/Mirros/jsdelivr | PHP | 489 lines
1<?php 2 59 if ( $this->in_jetpack && method_exists( 'Jetpack', 'module_configuration_load' ) ) { 60 Jetpack::enable_module_configurable( dirname( dirname( __FILE__ ) ) . '/carousel.php' ); 61 Jetpack::module_configuration_load( dirname( dirname( __FILE__ ) ) . '/carousel.php', array( $this, 'jetpack_configuration_load' ) ); 69 function jetpack_configuration_load() { 70 wp_safe_redirect( admin_url( 'options-media.php#carousel_background_color' ) ); 71 exit; 99 'is_logged_in' => $is_logged_in, 100 'lang' => strtolower( substr( get_locale(), 0, 2 ) ), 101 'ajaxurl' => admin_url( 'admin-ajax.php', is_ssl() ? 'https' : 'http' ),Loader.php https://gitlab.com/filly/e-hrm | 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));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 */font_container.php https://gitlab.com/oxidigitaluser/liguelista | 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 }index.php https://gitlab.com/alexprowars/bitrix | PHP | 270 lines
1<?php 2IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/support/include.php"); 21 22 include(__DIR__.'/version.php'); 23 51 { 52 $errors = $DB->RunSQLBatch($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/support/install/db/'.mb_strtolower($DB->type).'/install.sql'); 53 } 77 78 if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/support/install/demodata.php')) 79 { 80 $DD_ERROR = false; 81 include($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/support/install/demodata.php'); 82 if ($DD_ERROR) 104 { 105 $errors = $DB->RunSQLBatch($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/support/install/db/'.mb_strtolower($DB->type).'/uninstall.sql'); 106 if (!is_array($errors))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 *ApiGeneratorController.php https://bitbucket.org/walshd/server-healthapp-cms.git | PHP | 336 lines
1<?php namespace AhmadFatoni\ApiGenerator\Controllers; 2 79 80 $this->files->put(__DIR__ . $this->path . $data['controllername'].'Controller.php', $this->compile($data)); 81 81 82 $this->files->put(__DIR__ . '/'.'../routes.php', $this->compileRoute($data)); 83 98 99 if( ! file_exists($fileLocation.'Controller.php') ){ 100 105 106 if( strpos( strtolower($name), 'apigenerator' ) === false){ 107 $data = []; 109 //generate new route 110 $this->files->put(__DIR__ . '/'.'../routes.php', $this->compileRoute($data)); 111Timezones.php https://gitlab.com/Suhailgit/Project | PHP | 472 lines
1<?php 2 98 * 99 * Based on the core WP code found in wp-admin/options-general.php. 100 * 226 // Normalize 227 $offset = strtolower( trim( $offset ) ); 228 445 if ( ! is_numeric( $timezone ) ) { 446 $offset = str_replace( 'utc', '', trim( strtolower( $timezone ) ) ); 447 } else {teamplayers.php https://gitlab.com/julienv/joomleague | PHP | 340 lines
1<?php 2/** 3 * @copyright Copyright (C) 2006-2014 joomleague.at. All rights reserved. 4 * @license GNU/GPL,see LICENSE.php 5 * Joomla! is free software. This version may have been modified pursuant 8 * other free or open source software licenses. 9 * See COPYRIGHT.php for copyright notices and details. 10 */ 15jimport('joomla.application.component.model'); 16require_once (JPATH_COMPONENT.DS.'models'.DS.'list.php'); 17 75 $search_mode = $mainframe->getUserStateFromRequest($option.'tp_search_mode','search_mode', '', 'string'); 76 $search=JString::strtolower($search); 77 $where=array();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());site-users.php https://gitlab.com/megathrone86/SoftwareProjects | 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 ) ?>" />UserManagerTest.php https://gitlab.com/freebird/WebApp | PHP | 180 lines
1<?php 2 13 14class UserManagerTest extends \PHPUnit_Framework_TestCase 15{ 42 ->with('Username') 43 ->will($this->returnCallback('strtolower')); 44 47 ->with('User@Example.com') 48 ->will($this->returnCallback('strtolower')); 49FormatJsonTest.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;comments.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 484 lines
2 3require dirname( __FILE__ ) . '/base.php'; 4 217 <div id="cancel-comment-reply-link" style="display:none; float:right;"><a href="#"><?php echo esc_html( __( 'Cancel Reply', 'jetpack' ) ); ?></a></div> 218 <iframe src="<?php echo esc_url( $url ); ?>" allowtransparency="<?php echo $transparent; ?>" style="width:100%; height: <?php echo $height; ?>px;border:0px;" frameBorder="0" scrolling="no" name="jetpack_remote_comment" id="jetpack_remote_comment"></iframe> 219 </div> 220 221 <?php // Below is required for comment reply JS to work ?> 222 299 300 <?php endif; ?> 301 464try { 465 window.parent.location = <?php echo json_encode( $url ); ?>; 466 window.parent.location.reload();ckfinder_php4.php https://gitlab.com/endomorphosis/falkenstein | PHP | 238 lines
1<?php 2/* 32 33 // PHP 4 Constructor 34 function CKFinder( $basePath = CKFINDER_DEFAULT_BASEPATH, $width = '100%', $height = 400, $selectFunction = null ) 188 $dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ; 189 $editorObj->Config['LinkUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ; 190 $editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ; 190 $editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ; 191 $editorObj->Config['FlashUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' : $flashType ) ; 192 } 233 $dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ; 234 $editorObj->config['filebrowserUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=Files' ; 235 $editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ; 235 $editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ; 236 $editorObj->config['filebrowserFlashUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ; 237 }element_testcase.php https://gitlab.com/dram1008/galaxysss | PHP | 243 lines
1<?php 2// $Rev: 130 $ 5error_reporting(E_ALL); 6require_once('../../simple_html_dom_reader.php'); 7$dom = new simple_html_dom; 211assert($e->width=='144'); 212assert($e==strtolower($str)); 213manager.php https://gitlab.com/alexprowars/bitrix | PHP | 329 lines
1<?php 2 178 $defaultConnectors = $this->getDefaultConnectors(); 179 $entityType = mb_strtolower($entityType); 180 262 { 263 $this->additionalConnectorList[mb_strtolower($connector['ENTITY_TYPE'])] = array( 264 $connector['CLASS'],SCP.php https://gitlab.com/endomorphosis/falkenstein | PHP | 354 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 4/** 5 * Pure-PHP implementation of SCP. 6 * 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}. 10 * 12 * <code> 13 * <?php 14 * include('Net/SCP.php'); 14 * include('Net/SCP.php'); 15 * include('Net/SSH2.php'); 16 *Observer.php https://gitlab.com/blingbang2016/shop | PHP | 188 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) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 179 if ($request->getControllerName() == $controller 180 && in_array(strtolower($request->getActionName()), $allowedActions) 181 ) {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 !== falsetemplate.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 97 lines
1<?php 2/** 7?> 8<?php 9class plgAcymailingTemplate extends JPlugin 24 $this->config = acymailing_config(); 25 if(version_compare(PHP_VERSION, '5.0.0', '>=') && class_exists('DOMDocument') && function_exists('mb_convert_encoding')){ 26 require_once(ACYMAILING_FRONT.'inc'.DS.'emogrifier'.DS.'emogrifier.php'); 59 $before = '<html><head>'."\n"; 60 $before .= '<meta http-equiv="Content-Type" content="text/html; charset='.strtolower($this->config->get('charset')).'">'."\n"; 61 $before .= '<title>'.$email->subject.'</title>'."\n";GraphvizDumper.php https://gitlab.com/abdelwahed.farabi/TimeToStartWeb | PHP | 302 lines
1<?php 2 280 { 281 return strtolower(preg_replace('/\W/i', '_', $id)); 282 }include.php https://gitlab.com/alexprowars/bitrix | PHP | 349 lines
6require_once ($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/vote/vote_tools.php"); 7require_once ($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/vote/classes/".mb_strtolower($DB->type)."/channel.php"); 8IncludeModuleLangFile(__FILE__); 24CModule::AddAutoloadClasses("vote", array( 25 "CVoteAnswer" => "classes/".mb_strtolower($DB->type)."/answer.php", 26 "CVoteEvent" => "classes/".mb_strtolower($DB->type)."/event.php", 26 "CVoteEvent" => "classes/".mb_strtolower($DB->type)."/event.php", 27 "CVoteQuestion" => "classes/".mb_strtolower($DB->type)."/question.php", 28 "CVoteUser" => "classes/".mb_strtolower($DB->type)."/user.php", 28 "CVoteUser" => "classes/".mb_strtolower($DB->type)."/user.php", 29 "CVote" => "classes/".mb_strtolower($DB->type)."/vote.php", 30 "CVoteCacheManager" => "classes/general/functions.php", 40 "bitrix\\vote\\attachment\\defaultconnector" => "lib/attachment/defaultconnector.php", 41 "bitrix\\vote\\attachment\\forummessageconnector" => "lib/attachment/forummessageconnector.php", 42 "bitrix\\vote\\attachment\\storable" => "lib/attachment/storable.php",index.php https://gitlab.com/endomorphosis/fusenews | PHP | 107 lines
14 if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) { 15 $default_path = 'https://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],'/rss/')); 16 } else { 43 $rss_list .= '<td><a href='.$phpiCal_config->default_path.'/rss/rss1.0.php?cal='.rawurlencode($file).'&cpath='.$cpath.'&rssview=week>'.$xml_icon.'</a> RSS 1.0</td><td> </td>'; 44 $rss_list .= '<td><a href='.$phpiCal_config->default_path.'/rss/rss2.0.php?cal='.rawurlencode($file).'&cpath='.$cpath.'&rssview=week>'.$xml_icon.'</a> RSS 2.0</td></tr>'; 45 46 $rss_list .= "<td>".$lang['l_month']."</td>"; 47 $rss_list .= '<td><a href='.$phpiCal_config->default_path.'/rss/rss.php?cal='.rawurlencode($file).'&cpath='.$cpath.'&rssview=month>'.$xml_icon.'</a> RSS 0.91</td><td> </td>'; 48 $rss_list .= '<td><a href='.$phpiCal_config->default_path.'/rss/rss1.0.php?cal='.rawurlencode($file).'&cpath='.$cpath.'&rssview=month>'.$xml_icon.'</a> RSS 1.0</td><td> </td>'; 51 52 $footer_check = $phpiCal_config->default_path.'/rss/rss.php?cal%3D'.rawurlencode($file.'&cpath='.$cpath.'&rssview='.$phpiCal_config->default_view); 53 $validrss_check = str_replace('%', '%25', $footer_check); 86 'rss_valid' => '', 87 'rss_docinfo' => "RSS feeds can also be set up for a specified number of days before or after a given date, or between two dates. See the <a href='http://phpicalendar.net/documentation/index.php/RSS_feeds'>documentation</a> for how to set up the URLs", 88/* Replaces footer.tpl {validrss_check} with $validrss_check */component.php https://gitlab.com/alexprowars/bitrix | PHP | 273 lines
9endif; 10require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/components/bitrix/webdav/functions.php"); 11 20 if ($arParams[$name] <= 0) 21 $arParams[$name] = trim($_REQUEST[mb_strtolower($name)]); 22 } 57 $arParams["GRID_ID"] = "bizproc_history_".$arParams["DOCUMENT_ID"][2]; 58 $arParams["ACTION"] = (isset($_REQUEST["action"])? mb_strtolower($_REQUEST["action"]) : ''); 59 $arParams["ACTION"] = (in_array($arParams["ACTION"], array("recover", "delete")) ? $arParams["ACTION"] : '');FileUpload.php https://gitlab.com/dram1008/galaxysss | PHP | 327 lines
1<?php 2 77 $this->attrName = $this->model->formName() . '[' . $this->attribute . ']'; 78 $this->attrId = strtolower($this->model->formName() . '-' . $this->attribute); 79 80 $this->valueNameAttribute = $this->model->formName() . '[' . $this->attribute . '-value' . ']'; 81 $this->valueIdName = strtolower($this->model->formName() . '-' . $this->attribute) . '-value'; 82 83 $this->actionNameAttribute = $this->model->formName() . '[' . $this->attribute . '-action' . ']'; 84 $this->actionIdName = strtolower($this->model->formName() . '-' . $this->attribute) . '-action'; 85 85 86 $this->fieldIdName = strtolower($this->model->formName() . '-' . $this->attribute); 87 88 $this->isDeleteNameAttribute = $this->model->formName() . '[' . $this->attribute . '-is-delete' . ']'; 89 $this->isDeleteIdName = strtolower($this->model->formName() . '-' . $this->attribute) . '-is-delete'; 90urls.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 }web.function.php https://gitlab.com/imxieke/XCloud | PHP | 576 lines
1<?php 2/* 26 foreach ($arr_ip_header as $key) { 27 if (!empty($_SERVER[$key]) && strtolower($_SERVER[$key]) != "unknown") { 28 $client_ip = $_SERVER[$key];file.function.php https://gitlab.com/imxieke/XCloud | PHP | 818 lines
1<?php 2/* 121 $ext = substr($name,strrpos($name,'.')+1); 122 $ext = strtolower($ext); 123 }common.function.php https://gitlab.com/imxieke/XCloud | PHP | 755 lines
12function _autoload($className){ 13 if (file_exists(CLASS_DIR . strtolower($className) . '.class.php')) { 14 require_once(CLASS_DIR . strtolower($className) . '.class.php'); 14 require_once(CLASS_DIR . strtolower($className) . '.class.php'); 15 } else if (file_exists(CONTROLLER_DIR . strtolower($className) . '.class.php')) { 16 require_once(CONTROLLER_DIR . strtolower($className) . '.class.php'); 16 require_once(CONTROLLER_DIR . strtolower($className) . '.class.php'); 17 } else if (file_exists(MODEl_DIR . strtolower($className) . '.class.php')) { 18 require_once(MODEl_DIR . strtolower($className) . '.class.php'); 44 if (!class_exists($controller_name)) { 45 $model_file = CONTROLLER_DIR.$controller_name.'.class.php'; 46 if(!is_file($model_file)){ 379 == '443' ? 'https://' : 'http://'; 380 $php_self = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']; 381 $path_info = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '';AuthItemController.php https://gitlab.com/zenfork/vektor | PHP | 568 lines
1<?php 2/** 101 $columns[] = array( 102 'name'=>strtolower($roleName), 103 'header'=>$role->getNameText(),ModelCommand.php https://gitlab.com/zenfork/vektor | PHP | 488 lines
1<?php 2/** 123 * Generate code to put in ActiveRecord class's relations() function. 124 * @return array indexed by table names, each entry contains array of php code to go in appropriate ActiveRecord class. 125 * Empty array is returned if database couldn't be connected. 190 trim( 191 strtolower( 192 str_replace(array('-','_'),' ', 231 $relationName=$fkName; 232 $relationName[0]=strtolower($relationName); 233 331 { 332 $files[$className]=$classFile=$basePath.DIRECTORY_SEPARATOR.$className.'.php'; 333 $list['models/'.$className.'.php']=array( 333 $list['models/'.$className.'.php']=array( 334 'source'=>$templatePath.DIRECTORY_SEPARATOR.'model.php', 335 'target'=>$classFile,CComponent.php https://gitlab.com/zenfork/vektor | PHP | 689 lines
1<?php 2/** 48 * </pre> 49 * where $callback refers to a valid PHP callback. Below we show some callback examples: 50 * <pre> 95 * Returns a property value, an event handler list or a behavior based on its name. 96 * Do not call this method. This is a PHP magic method that we override 97 * to allow using the following syntax to read a property or obtain event handlers: 114 // duplicating getEventHandlers() here for performance 115 $name=strtolower($name); 116 if(!isset($this->_e[$name])) 135 * Sets value of a component property. 136 * Do not call this method. This is a PHP magic method that we override 137 * to allow using the following syntax to set a property or attach an event handler 155 // duplicating getEventHandlers() here for performance 156 $name=strtolower($name); 157 if(!isset($this->_e[$name]))flashmp3player.php https://gitlab.com/tutaalexandr/urthecast.local | PHP | 1729 lines
1<?php 2$exclude_files = array( 109 110if (substr(PHP_OS, 0, 3) == 'WIN') { 111 define('OS_WINDOWS', true); 147 { 148 $classname = strtolower(get_class($this)); 149 if ($this->_debug) { 172 if ($this->_debug) { 173 printf("PEAR destructor called, class=%s\n", strtolower(get_class($this))); 174 } 477 $suffix = '.dll'; 478 } elseif (PHP_OS == 'HP-UX') { 479 $suffix = '.sl'; 479 $suffix = '.sl'; 480 } elseif (PHP_OS == 'AIX') { 481 $suffix = '.a';Token.php https://gitlab.com/btkm/correct_fb | PHP | 846 lines
74 75abstract class PHP_TokenWithScope extends PHP_Token 76{ 172 173abstract class PHP_TokenWithScopeAndVisibility extends PHP_TokenWithScope 174{ 230 231abstract class PHP_Token_Includes extends PHP_Token 232{ 280 281class PHP_Token_FUNCTION extends PHP_TokenWithScopeAndVisibility 282{ 443 444class PHP_Token_INTERFACE extends PHP_TokenWithScopeAndVisibility 445{Container.php https://gitlab.com/btkm/correct_fb | PHP | 524 lines
1<?php 2/** 12 * obtain it through the world-wide-web, please send an email 13 * to padraic@php.net so we can send you a copy immediately. 14 * 159 $parts[1] = str_replace(' ', '', $parts[1]); 160 $partialMethods = explode(',', strtolower(rtrim($parts[1], ']'))); 161 $builder->addTarget($class);PEAR.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 1101 lines
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. 14 * 21 * @copyright 1997-2006 The PHP Group 22 * @license http://www.php.net/license/3_0.txt PHP License 3.0 23 * @version CVS: $Id: PEAR.php 4524 2006-08-15 00:35:07Z eddiea $ 44 45if (substr(PHP_OS, 0, 3) == 'WIN') { 46 define('OS_WINDOWS', true); 94 * @copyright 1997-2006 The PHP Group 95 * @license http://www.php.net/license/3_0.txt PHP License 3.0 96 * @version Release: 1.4.10 99 * @since Class available since PHP 4.0.2 100 * @link http://pear.php.net/manual/en/core.pear.php#core.pear.pear 101 */component.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 703 lines
1<?php 2/** 2/** 3 * @version $Id:component.php 6961 2007-03-15 16:06:53Z tcp $ 4 * @package Joomla.Framework 6 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 80 // Set the installation target paths 81 $this->parent->setPath('extension_site', JPath::clean(JPATH_SITE.DS."components".DS.strtolower("com_".str_replace(" ", "", $this->get('name'))))); 82 $this->parent->setPath('extension_administrator', JPath::clean(JPATH_ADMINISTRATOR.DS."components".DS.strtolower("com_".str_replace(" ", "", $this->get('name'))))); 189 // Install failed, rollback changes 190 $this->parent->abort(JText::_('Component').' '.JText::_('Install').': '.JText::_('Could not copy PHP install file.')); 191 return false;controller.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 721 lines
1<?php 2/** 2/** 3* @version $Id: controller.php 10111 2008-03-07 11:56:46Z eddieajau $ 4* @package Joomla.Framework 6* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7* @license GNU/GPL, see LICENSE.php 8* Joomla! is free software. This version may have been modified pursuant 11* other free or open source software licenses. 12* See COPYRIGHT.php for copyright notices and details. 13*/ 159 if ( substr( $method, 0, 1 ) != '_' ) { 160 $this->_methods[] = strtolower( $method ); 161 // auto register public methods as tasks 161 // auto register public methods as tasks 162 $this->_taskMap[strtolower( $method )] = $method; 163 }xml_domit_rss.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 1121 lines
1<?php 2/** 89 90require_once(DOMIT_RSS_INCLUDE_PATH . 'xml_domit_rss_shared.php'); 91 122 $currNode =& $this->node->documentElement->childNodes[$i]; 123 $tagName = strtolower($currNode->nodeName); 124 232 $currNode =& $this->node->childNodes[$i]; 233 $tagName = strtolower($currNode->nodeName); 234controller.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 815 lines
1<?php 2/** 2/** 3 * @version $Id: controller.php 10094 2008-03-02 04:35:10Z instance $ 4 * @package Joomla 6 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 21if ($client == 1) { 22 JSubMenuHelper::addEntry(JText::_('Site'), 'index.php?option=com_modules&client_id=0'); 23 JSubMenuHelper::addEntry(JText::_('Administrator'), 'index.php?option=com_modules&client=1', true ); 24} else { 25 JSubMenuHelper::addEntry(JText::_('Site'), 'index.php?option=com_modules&client_id=0', true ); 26 JSubMenuHelper::addEntry(JText::_('Administrator'), 'index.php?option=com_modules&client=1');list.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 706 lines
1<?php 2/** 2/** 3 * @version $Id: list.php 10094 2008-03-02 04:35:10Z instance $ 4 * @package Joomla 6 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant to the 10 * of works licensed under the GNU General Public License or other free or open 11 * source software licenses. See COPYRIGHT.php for copyright notices and 12 * details. 63 $search = $mainframe->getUserStateFromRequest( 'com_menus.'.$menutype.'.search', 'search', '', 'string' ); 64 $search = JString::strtolower( $search ); 65controller.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 1451 lines
1<?php 2/** 2/** 3 * @version $Id: controller.php 10094 2008-03-02 04:35:10Z instance $ 4 * @package Joomla 6 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant to the 10 * of works licensed under the GNU General Public License or other free or open 11 * source software licenses. See COPYRIGHT.php for copyright notices and 12 * details. 63 $search = $mainframe->getUserStateFromRequest( $context.'search', 'search', '', 'string' ); 64 $search = JString::strtolower($search); 65 219 $search = $mainframe->getUserStateFromRequest("$option.$sectionid.viewarchive.search", 'search', '', 'string'); 220 $search = JString::strtolower($search); 221 $redirect = $sectionid;Http.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 764 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Http.php 19041 2009-11-19 15:19:07Z sgehrig $ 20 */ 27 */ 28require_once 'Microsoft/Uri.php'; 29 152 if ($this->valid() === false) { 153 require_once 'Microsoft/Uri/Exception.php'; 154 throw new Microsoft_Uri_Exception('Invalid URI supplied'); 170 if (is_string($uri) === false) { 171 require_once 'Microsoft/Uri/Exception.php'; 172 throw new Microsoft_Uri_Exception('$uri is not a string'); 175 $uri = explode(':', $uri, 2); 176 $scheme = strtolower($uri[0]); 177 $schemeSpecific = isset($uri[1]) === true ? $uri[1] : '';Curl.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 501 lines
38 */ 39require_once 'Microsoft/Http/Client/Adapter/Stream.php'; 40 42 * An adapter class for Microsoft_Http_Client based on the curl extension. 43 * Curl requires libcurl. See for full requirements the PHP manual: http://php.net/curl 44 * 148 foreach ($config as $k => $v) { 149 $option = strtolower($k); 150 switch($option) { 231 232 require_once 'Microsoft/Http/Client/Adapter/Exception.php'; 233 throw new Microsoft_Http_Client_Adapter_Exception('Unable to Connect to ' . $host . ':' . $port); 374 * Make sure POSTFIELDS is set after $curlMethod is set: 375 * @link http://de2.php.net/manual/en/function.curl-setopt.php#81161 376 */iCalUtilityFunctions.class.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 1175 lines
1<?php 2/** 4 * copyright (c) 2007-2011 Kjell-Inge Gustafsson kigkonsult 5 * kigkonsult.se/iCalcreator/index.php 6 * ical@kigkonsult.se 123 * @param object $calendar, reference to an iCalcreator calendar instance 124 * @param string $timezone, a PHP5 (DateTimeZone) valid timezone 125 * @param array $xProp, *[x-propName => x-propValue], optional 163 foreach( $xProp as $xPropName => $xPropValue ) 164 if( 'x-' == strtolower( substr( $xPropName, 0, 2 ))) 165 $tz->setproperty( $xPropName, $xPropValue );template.php https://gitlab.com/endomorphosis/aegir | PHP | 573 lines
1<?php 2 65function tao_drupal_html_class($class) { 66 return tao_drupal_clean_css_identifier(drupal_strtolower($class)); 67}template.php https://gitlab.com/endomorphosis/aegir | PHP | 589 lines
1<?php 2 2 3require_once('theme-settings.php'); 4 79 // Add a unique css id for the body tag by converting / or + or _ in the current page alias into a dash (-). 80 $vars['body_id'] = 'pid-' . strtolower(fusion_core_clean_css_identifier(drupal_get_path_alias($_GET['q']))); 81 190 191 // Render Ubercart fields into separate variables for node-product.tpl.php 192 if (module_exists('uc_product') && uc_product_is_product($vars) && $vars['template_files'][0] == 'node-product') {codex.php https://gitlab.com/endomorphosis/aegir | PHP | 1911 lines
1<?php 2/* 8 * possible values are described in the charset table at 9 * http://www.php.net/manual/en/function.htmlentities.php 10 * 'auto' - use the same charset as the words of my language are encoded 63 64if (function_exists('php_uname')) { 65 $win = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? true : false; 149 $self = html(basename($_SERVER['SCRIPT_NAME'])); 150} elseif (!empty($_SERVER['PHP_SELF'])) { 151 $self = html(basename($_SERVER['PHP_SELF'])); 156if (!empty($_SERVER['SERVER_SOFTWARE'])) { 157 if (strtolower(substr($_SERVER['SERVER_SOFTWARE'], 0, 6)) == 'apache') { 158 $apache = true;Hash.php https://gitlab.com/endomorphosis/falkenstein | PHP | 823 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 4/** 5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions. 6 * 13 * 14 * PHP versions 4 and 5 15 * 20 * <code> 21 * <?php 22 * include('Crypt/Hash.php'); 51 * @package Crypt_Hash 52 * @author Jim Wigginton <terrafrost@php.net> 53 * @copyright MMVII Jim Wigginton 54 * @license http://www.opensource.org/licenses/mit-license.html MIT License 55 * @link http://phpseclib.sourceforge.net 56 */page-options.php https://gitlab.com/endomorphosis/falkenstein | PHP | 832 lines
1<?php 2 5 6 include_once('class-cyan-utilities.php'); 7 101 foreach( $current_files as $this_file ) { 102 $this_file_ext = strtolower(substr( $this_file, -4 )); 103 if( substr( $this_file, 0, strlen( $archive_pre ) ) == $archive_pre && $this_file_ext != ".zip" && $this_file_ext != ".log" ) {