100+ results results for 'php explode repo:gencer/zf2' (534 ms)
1<?php 2/** 86 // Check if converter class exists 87 $class = explode( '-', $converter ); 88 $class = array_map( 'ucfirst', $class ); 128 foreach ( $files as $file ) { 129 if ( 'converter.php' != $file['name'] ) { 130 $converter = substr( $file['name'], 0, -4 ); 132 // Generate data converter class name 133 $class = explode( '-', $converter ); 134 $class = array_map( 'ucfirst', $class );Arr.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 519 lines
1<?php 2 218 219 $parts = explode('.', $key); 220 259 260 foreach (explode('.', $key) as $segment) { 261 if (static::accessible($array) && static::exists($array, $segment)) { 300 301 foreach (explode('.', $key) as $segment) { 302 if (static::accessible($subKeyArray) && static::exists($subKeyArray, $segment)) { 351 352 list($value, $key) = static::explodePluckParameters($value, $key); 353 372 /** 373 * Explode the "value" and "key" arguments passed to "pluck". 374 *InputDefinition.php https://gitlab.com/puntodos/ean-landings | PHP | 455 lines
1<?php 2 182 { 183 return $this->hasAnArrayArgument ? PHP_INT_MAX : count($this->arguments); 184 } 248 if ($option->getShortcut()) { 249 foreach (explode('|', $option->getShortcut()) as $shortcut) { 250 if (isset($this->shortcuts[$shortcut]) && !$option->equals($this->options[$this->shortcuts[$shortcut]])) { 257 if ($option->getShortcut()) { 258 foreach (explode('|', $option->getShortcut()) as $shortcut) { 259 $this->shortcuts[$shortcut] = $option->getName();PHPLocTask.php https://gitlab.com/Isaki/le331.fr | PHP | 422 lines
24/** 25 * Runs phploc a tool for quickly measuring the size of PHP projects. 26 * 184 if (!class_exists('\SebastianBergmann\PHPLOC\Analyser')) { 185 if (!@include_once 'SebastianBergmann/PHPLOC/autoload.php') { 186 if (!@include_once 'PHPLOC/Analyser.php') { 361 if ($this->oldVersion) { 362 require_once 'PHPLOC/TextUI/ResultPrinter/XML.php'; 363 374 if ($this->oldVersion) { 375 require_once 'PHPLOC/TextUI/ResultPrinter/CSV.php'; 376 416 { 417 $analyserClass = ($this->oldVersion ? 'PHPLOC_Analyser' : '\\SebastianBergmann\\PHPLOC\\Analyser'); 418 $analyser = new $analyserClass();user_registration.php https://gitlab.com/mehedi-xion/Project-mehedi | PHP | 430 lines
1<?php 2 6 7require_once '../../src/DatabaseConnection/DatabaseConnection.php'; 8// require(dirname(__FILE__).'../../../../src/DatabaseConnection/DatabaseConnection.php'); 85 $this->error = TRUE; 86 // header('location:add_user.php'); 87 } 94 $this->error = TRUE; 95 // header('location:add_user.php'); 96 } 99 $this->error = TRUE; 100 // header('location:add_user.php'); 101 } 104 $this->error = TRUE; 105 // header('location:add_user.php'); 106 }threads.inc.php https://github.com/gcao/bbs.git | PHP | 402 lines
1<?php 2 6 7$Id: threads.inc.php 21059 2009-11-10 01:28:17Z monkey $ 8*/ 58 $or = ''; 59 $keywords = explode(',', str_replace(' ', '', $keywords)); 60 for($i = 0; $i < count($keywords); $i++) { 133 if($query) { 134 require_once DISCUZ_ROOT.'./include/misc.func.php'; 135 while ($thread = $db->fetch_array($query)) { 198 if($pidsdelete) { 199 require_once DISCUZ_ROOT.'./include/post.func.php'; 200 320 $or = ''; 321 $keywords = explode(',', str_replace(' ', '', $keywords)); 322 for($i = 0; $i < count($keywords); $i++) {node.php https://github.com/laposa/onxshop.git | PHP | 395 lines
1<?php 2/** 43 44 require_once('models/common/common_node.php'); 45 $this->Node = new common_node(); 136 137 $controller_file_path = "controllers/{$controller_path}.php"; 138 177 178 $css_classes = explode(" ", $node_data['css_class']); 179 foreach ($css_classes as $css_class_item) { 323 324 require_once ('models/common/common_configuration.php'); 325 $Configuration = new common_configuration(); 378 * merge array with overwrites (for local configuration overwrites) 379 * TEMP: native array_replace_recursive function available in PHP 5.3 380 */helper.php https://github.com/marcobarbosa/minima.git | PHP | 443 lines
1<?php 2/** 2/** 3 * @version $Id: helper.php 21091 2011-04-06 05:53:50Z infograf768 $ 4 * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. 144 $module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module); 145 $path = JPATH_BASE.'/modules/'.$module->module.'/'.$module->module.'.php'; 146 172 173 require_once JPATH_THEMES.'/system/html/modules.php'; 174 $chromePath = JPATH_THEMES.'/'.$app->getTemplate().'/html/modules.php'; 192 193 foreach(explode(' ', $attribs['style']) as $style) 194 { 229 // Get the template and file name from the string 230 $temp = explode(':', $layout); 231 $template = ($temp[0] == '_') ? $template : $temp[0];class-wc-shipping-zone.php https://gitlab.com/0072016/woocommerce | PHP | 438 lines
1<?php 2 188 foreach ( $states as $location ) { 189 $location_codes = explode( ':', $location->code ); 190 $location_parts[] = $all_states[ $location_codes[ 0 ] ][ $location_codes[ 1 ] ];complexsumpergame.php https://gitlab.com/julienv/joomleague | PHP | 456 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 */ 14 15require_once(JLG_PATH_ADMIN.DS.'statistics'.DS.'base.php'); 16 40 if(!is_array($params->get('stat_ids'))) { 41 $stat_ids = explode(',', $params->get('stat_ids')); 42 } else { 59 $params = &$this->getParams(); 60 $factors = explode(',', $params->get('factors')); 61 $stat_ids = $this->getSids();formEscalation.php https://gitlab.com/florianocomercial/centreon | PHP | 342 lines
1<?php 2/* 39 40require_once _CENTREON_PATH_ . 'www/class/centreonLDAP.class.php'; 41require_once _CENTREON_PATH_ . 'www/class/centreonContactgroup.class.php'; 43/* Init connection to storage db */ 44require_once _CENTREON_PATH_ . "/www/class/centreonBroker.class.php"; 45$brk = new CentreonBroker($pearDB); 88 # Set Host Options 89 $esc["escalation_options1"] = explode(',', $esc["escalation_options1"]); 90 foreach ($esc["escalation_options1"] as $key => $value) { 94 # Set Service Options 95 $esc["escalation_options2"] = explode(',', $esc["escalation_options2"]); 96 foreach ($esc["escalation_options2"] as $key => $value) { 176 'datasourceOrigin' => 'ajax', 177 'availableDatasetRoute' => './include/common/webServices/rest/internal.php?object=centreon_configuration_timeperiod&action=list', 178 'multiple' => false,SqlBase.php https://gitlab.com/reasonat/test8 | PHP | 393 lines
1<?php 2 178 } 179 $options = explode(',', $exposed_options); 180 if (!$error && is_array($options)) { 261 $page = $this->view->getRequest()->query->get('page'); 262 $page = isset($page) ? explode(',', $page) : array(); 263 332 if ($this->itemsPerPageExposed()) { 333 $options = explode(',', $this->options['expose']['items_per_page_options']); 334 $sanitized_options = array();form.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 404 lines
1<?php 2/** 193 $key = str_replace(']', '', $key); 194 $key = explode('[', trim($key, '[')); 195 $v2 = $ah->get($arr, $key);CustomValue.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 396 lines
1<?php 2/* 78 } 79 list($c, $id) = CRM_Utils_System::explode('_', $id, 2); 80 if ($c != 'custom') { 82 } 83 list($i, $n, $x) = CRM_Utils_System::explode(':', $id, 3); 84 if (is_numeric($i)) { 151 if (!is_array($returnVal)) { 152 $returnVal = explode(',', $returnVal); 153 } 154 foreach ($returnVal as $value) { 155 list($c, $i) = CRM_Utils_System::explode('_', $value, 2); 156 if ($c == 'custom' && is_numeric($i)) { 161 // Lookup names if ID was not supplied 162 list($group, $field) = CRM_Utils_System::explode(':', $value, 2); 163 $fldId = CRM_Core_BAO_CustomField::getCustomFieldID($field, $group);eztemplateautoload.php https://github.com/lserwatka/ezpublish.git | PHP | 206 lines
1<?php 2// 51 'implode', 52 'explode', 53 'repeat', 201 202// eZTemplatePHPOperator is not autoload due to it's generic use 203// it's up to the users of eZTemplate to initiate a proper usagesessions.php https://github.com/kipster/_csm.git | PHP | 521 lines
17 18 class php3session { 19 var $name = PHP_SESSION_NAME; 22 23 var $save_path = PHP_SESSION_SAVE_PATH; 24 var $save_handler = 'php3session_files'; 184 header(sprintf('Cache-Control: public, max-age=%s', $session->cache_expire * 60)); 185 header('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime(basename($GLOBALS['PHP_SELF']))) . ' GMT'); 186 break; 203 204 function _php_decode($data) { 205 global $session; 244 245 $php3session_user = new php3session_user; 246 $php3session_user->open_func = $open;imode.php https://github.com/wrobel/horde-fw3.git | PHP | 411 lines
1<?php 2/** 5 * 6 * $Horde: framework/Browser/Browser/imode.php,v 1.7.12.9 2009-01-06 15:22:55 jan Exp $ 7 * 304 $_error = 0; 305 $temp = explode('/', $input); 306init.php https://gitlab.com/mattswann/launch-housing | PHP | 367 lines
1<?php 2 2 3// DO NOT CALL THIS CLASS DIRECTLY. CALL VIA: pb_backupbuddy_destination in bootstrap.php. 4 23 'url' => '', // optional url for migration that corresponds to this ftp/path. 24 'disable_file_management' => '0', // When 1, _manage.php will not load which renders remote file management DISABLED. 25 'disabled' => '0', // When 1, disable this destination. 64 if ( strstr( $server, ':' ) ) { // Handle custom FTP port. 65 $server_params = explode( ':', $server ); 66 $server = $server_params[0]; 81 } else { 82 pb_backupbuddy::status( 'details', 'Your web server doesnt support FTPS in PHP.', 'error' ); 83 return false; 94 } else { 95 pb_backupbuddy::status( 'details', 'Your web server doesnt support FTP in PHP.', 'error' ); 96 return false;App.php https://github.com/Hildy/cerb5.git | PHP | 564 lines
1<?php 2class ChFnrAjaxController extends DevblocksControllerExtension { 98 99 @$stack = explode('/', $request_path); 100base.php https://github.com/bermi/akelos.git | PHP | 374 lines
1<?php 2 20 21 $source = preg_match('/^<\?php.*/', $source)?$source:"<?php ".$source; 22 $this->tokens = token_get_all($source); 43 $byReference = true; 44 } else if (((defined('T_DOC_COMMENT')?$prev[0] == T_DOC_COMMENT:false) || T_COMMENT) && !@preg_match('/<\?php.*/',$prev[1]) && @preg_match('/\/\*/',$prev[1])) { 45 $docBlock = isset($prev[1])?$prev[1]:null; 52 if(!empty($docBlock)) { 53 $doclines = explode("\n", $docBlock); 54 $lastLine = $doclines[count($doclines)-1]; 71 } 72 $docBlock = str_replace('<?php','',$docBlock); 73 $string = (!empty($docBlock)?$docBlock."\n":'').($visibility?$visibility.' ':'').($static?' static ':''); 161 $tags = array('_unmatched_'=>array()); 162 $docLines = explode("\n",$docPart); 163 $inComment = true;lib_insert.php https://github.com/matthewxu/doc.git | PHP | 369 lines
1<?php 2 12 * $Author: liuhui $ 13 * $Id: lib_insert.php 17063 2010-03-25 06:35:46Z liuhui $ 14*/ 34 { 35 if (PHP_VERSION >= '5.0.0') 36 { 40 { 41 list($now_usec, $now_sec) = explode(' ', microtime()); 42 list($start_usec, $start_sec) = explode(' ', $GLOBALS['db']->queryTime); 62 /* 加入触发cron代码 */ 63 $cron_method = empty($GLOBALS['_CFG']['cron_method']) ? '<img src="api/cron.php?t=' . gmtime() . '" alt="" style="width:0px;height:0px;" />' : ''; 64 124 125 return '<a href="flow.php" title="' . $GLOBALS['_LANG']['view_cart'] . '">' . $str . '</a>'; 126}transition.php https://github.com/antz29/transition.git | PHP | 484 lines
24 { 25 if (!file_exists(ROOT.'config.php')) { 26 $settings = array(); 28 else { 29 $settings = include(ROOT.'config.php'); 30 } 34 echo "Set {$setting} to '{$value}'\n"; 35 file_put_contents(ROOT.'config.php','<?php return '.var_export($settings,true).';'); 36 } 81 { 82 // explode the target string to get an array of targets 83 $task['target'] = explode(',',$task['target']); 154 if (isset($target)) { 155 $task['target'] = explode(',',$task['target']); 156 if (!in_array($target,$task['target'])) {class.wp-dependencies.php git://github.com/wordpress/wordpress.git | PHP | 452 lines
1<?php 2/** 165 foreach ( $handles as $handle ) { 166 $handle_parts = explode( '?', $handle ); 167 $handle = $handle_parts[0]; 314 foreach ( (array) $handles as $handle ) { 315 $handle = explode( '?', $handle ); 316 342 foreach ( (array) $handles as $handle ) { 343 $handle = explode( '?', $handle ); 344 $key = array_search( $handle[0], $this->queue, true );Import.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 353 lines
1<?php 2/* 2/* 3 * $Id: Import.php 2552 2007-09-19 19:33:00Z Jonathan.Wage $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Jonathan H. Wage <jwage@mac.com> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 76 foreach ((array) $directory as $dir) { 77 $e = explode('.', $dir); 78 87 foreach ($it as $file) { 88 $e = explode('.', $file->getFileName()); 89 if (in_array(end($e), $this->getFormats())) {Abstract.php https://github.com/jpbauer/knowledgetree.git | PHP | 479 lines
1<?php 2 6 */ 7require_once 'classes/rest/reflection/Node.php'; 8 11 */ 12require_once 'classes/rest/reflection/Parameter.php'; 13 16 */ 17require_once 'classes/rest/reflection/Prototype.php'; 18 88 { 89 // In PHP 5.1.x, ReflectionMethod extends ReflectionFunction. In 5.2.x, 90 // both extend ReflectionFunctionAbstract. So, we can't do normal type 94 && (!$r instanceof ReflectionMethod)) { 95 require_once 'classes/rest/Exception.php'; 96 throw new Rest_Exception('Invalid reflection class');imode.php git://pkgs.fedoraproject.org/horde | PHP | 412 lines
1<?php 2/** 5 * 6 * $Horde: framework/Browser/Browser/imode.php,v 1.7.12.9 2009/01/06 15:22:55 jan Exp $ 7 * 304 $_error = 0; 305 $temp = explode('/', $input); 306wiki.php https://bitbucket.org/wez/mtrack/ | PHP | 433 lines
1<?php # vim:ts=2:sw=2:et: 2/* For licensing and copyright terms, see the file named LICENSE */ 3 4include MTRACK_INC_DIR . '/wiki/trac.php'; 5include MTRACK_INC_DIR . '/lib/markdown.php'; 45 static function format_to_oneliner($text, $limit = 3) { 46 $lines = explode("\n", $text); 47 if (count($lines) > $limit + 1) { 111 if (!is_array($text)) { 112 $text = explode("\n", $text); 113 } 125 if (!is_array($text_lines)) { 126 $text_lines = explode("\n", $text_lines); 127 } 359 $link->class = 'wikilink'; 360 $link->url = $GLOBALS['ABSWEB'] . 'wiki.php/' . $link->target; 361 }Config_File.class.php git://github.com/cosmocode/contagged.git | PHP | 393 lines
1<?php 2 26 * @copyright Copyright: 2001-2005 New Digital Group, Inc. 27 * @author Andrei Zmievski <andrei@php.net> 28 * @access public 153 { 154 list($file_name, $section_name, $var_name) = explode('/', $config_key, 3); 155 $result = &$this->get($file_name, $section_name, $var_name); 381 /** 382 * @uses trigger_error() creates a PHP warning/error 383 * @param string $error_msgTextStatistics.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 369 lines
1<?php 2 5 TextStatistics Class 6 http://code.google.com/p/php-text-statistics/ 7 8 Released under New BSD license 9 http://www.opensource.org/licenses/bsd-license.php 10 218 $intWordCount = $this->word_count($strText); 219 $arrWords = explode(' ', $strText); 220 for ($i = 0; $i < $intWordCount; $i++) { 234 $intWordCount = $this->word_count($strText); 235 $arrWords = explode(' ', $strText); 236 for ($i = 0; $i < $intWordCount; $i++) {Network.php https://gitlab.com/Skull3x/GladiatorMine | PHP | 366 lines
1<?php 2 50use pocketmine\network\protocol\EntityEventPacket; 51use pocketmine\network\protocol\ExplodePacket; 52use pocketmine\network\protocol\HurtArmorPacket; 329 $this->registerPacket(ProtocolInfo::ADD_PAINTING_PACKET, AddPaintingPacket::class); 330 $this->registerPacket(ProtocolInfo::EXPLODE_PACKET, ExplodePacket::class); 331 $this->registerPacket(ProtocolInfo::LEVEL_EVENT_PACKET, LevelEventPacket::class);Config.php https://bitbucket.org/webpolis/liiv.git | PHP | 514 lines
1<?php 2/* 22 */ 23require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php"; 24/** 26 */ 27require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php"; 28/** 30 */ 31require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php"; 32/** 34 */ 35require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php"; 36 487 if (strlen($_defaultResourceTypes)) { 488 $this->_defaultResourceTypes = explode(",", $_defaultResourceTypes); 489 }50000.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 381 lines
32 'succ_url'=>'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']) 33 .'/index.php?ctl=trading/payment&act=do_install_online' 34 ); 62// 'http://flaboy.dev.shopex.cn/libtool-1.5.26.tar.gz', 63// 'http://flaboy.dev.shopex.cn/flist.php', 64// 'http://flaboy.dev.shopex.cn/m4-1.4.11.tar.bz2' 73// 'tools/libtool.tgz' => 'http://flaboy.dev.shopex.cn/libtool-1.5.26.tar.gz', 74// 'flist.php' => 'http://flaboy.dev.shopex.cn/flist.php', 75// 'm4.tar.bz2' => 'http://flaboy.dev.shopex.cn/m4-1.4.11.tar.bz2' 82 } 83 file_put_contents($this->workdir.'/task.php',serialize($this->taskinfo)); 84 } 102 $this->workdir = HOME_DIR.'/tmp/'.$ident; 103 $this->taskinfo = unserialize(file_get_contents($this->workdir.'/task.php')); 104 $this->_run($file_id);Direct.php https://gitlab.com/yousafsyed/easternglamor | PHP | 511 lines
1<?php 2/** 12 * PayPal Direct Module 13 * @SuppressWarnings(PHPMD.TooManyFields) 14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 154 * @param array $data 155 * @SuppressWarnings(PHPMD.ExcessiveParameterList) 156 */ 249 { 250 $ccTypes = explode(',', $this->_pro->getConfig()->getValue('cctypes')); 251 $country = $this->_pro->getConfig()->getMerchantCountry(); 277 * @return null|string 278 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 279 */Netdna.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 282 lines
1<?php 2 9 10w3_require_once(W3TC_LIB_W3_DIR . '/Cdn/Mirror.php'); 11 18 /** 19 * PHP5 Constructor 20 * 30 ), $config); 31 $split_keys = explode('+', $config['authorization_key']); 32 if (sizeof($split_keys)==3) 58 if (!class_exists('NetDNA')) { 59 w3_require_once(W3TC_LIB_NETDNA_DIR . '/NetDNA.php'); 60 } 176 if (!class_exists('NetDNA')) { 177 w3_require_once(W3TC_LIB_NETDNA_DIR . '/NetDNA.php'); 178 }class-wp-theme-install-list-table.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 431 lines
1<?php 2/** 50 51 /** This filter is documented in wp-admin/theme-install.php */ 52 $tabs = apply_filters( 'install_themes_tabs', $tabs ); 145 $class = ( $action == $tab ) ? ' class="current"' : ''; 146 $href = self_admin_url('theme-install.php?tab=' . $action); 147 $display_tabs['theme-install-'.$action] = "<a href='$href'$class>$text</a>"; 157 <div class="alignleft actions"> 158 <?php 159 /** 266 ?> 267 <a class="screenshot install-theme-preview" href="<?php echo esc_url( $preview_url ); ?>" title="<?php echo esc_attr( $preview_title ); ?>"> 268 <img src="<?php echo esc_url( $theme->screenshot_url ); ?>" width="150" /> 282 283 <?php 284 $this->install_theme_info( $theme );class-wp-filesystem-ftpext.php https://gitlab.com/thisishayat/itv-2016 | PHP | 602 lines
1<?php 2/** 30 if ( ! extension_loaded('ftp') ) { 31 $this->errors->add('no_ftp_ext', __('The ftp PHP extension is not available')); 32 return; 142 public function get_contents_array($file) { 143 return explode("\n", $this->get_contents($file)); 144 }StorageEngine.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 463 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * @package PhpMyAdmin 7 */ 38 * 39 * @package PhpMyAdmin 40 */ 56 var $comment 57 = 'If you read this text inside phpMyAdmin, something went wrong...'; 58 118 ); 119 foreach (explode(",", $disabled) as $engine) { 120 if (isset($storage_engines[$engine])) {FlattenException.php https://gitlab.com/milton2913/myBlog | PHP | 256 lines
1<?php 2 16/** 17 * FlattenException wraps a PHP Exception to be able to serialize it. 18 * 199 if (isset($entry['class'])) { 200 $parts = explode('\\', $entry['class']); 201 $class = array_pop($parts); 224 } 225 if ($value instanceof \__PHP_Incomplete_Class) { 226 // is_object() returns false on PHP<=7.1 249 250 private function getClassNameFromIncomplete(\__PHP_Incomplete_Class $value) 251 { 253 254 return $array['__PHP_Incomplete_Class_Name']; 255 }ini.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 249 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: ini.php 409 2011-01-24 09:30:22Z nikosdion $ 9 */ 15 * A class to load INI files, without bumping into incompatibilities between 16 * different PHP versions 17 */ 23 /** 24 * Parse an INI file and return an associative array. Since PHP versions before 25 * 5.1 are bitches with regards to INI parsing, I use a PHP-only solution to 34 { 35 return self::parse_ini_file_php($file, $process_sections, $rawdata); 36 }NumericField.php https://gitlab.com/reasonat/test8 | PHP | 181 lines
1<?php 2 95 96 $plural_array = explode(LOCALE_PLURAL_DELIMITER, $this->options['format_plural_string']); 97 $plurals = $this->getNumberOfPlurals($this->view->storage->get('langcode'));refresh-alarms.php https://gitlab.com/tiggerben/davical | PHP | 182 lines
1#!/usr/bin/env php 2<?php 13 14chdir(str_replace('/scripts/refresh-alarms.php','/htdocs',$script_file)); 15$_SERVER['SERVER_NAME'] = 'localhost'; 19* 20* scripts/refresh_alarms.php -p P1800D -f P1D 21* 43 case 's': $_SERVER['SERVER_NAME'] = $v; break; 44 case 'd': $args->debug = true; $debugging = explode(',',$v); break; 45 case 'l': $args->set_last = true; break; 55Usage: 56 refresh-alarms.php [-s server.domain.tld] [other options] 57 79 80require_once("./always.php"); 81if ( $args->slow_query_threshold !== false ) {ArrowMediaConnectorSingle.php http://arrowplatform.googlecode.com/svn/trunk/ | PHP | 384 lines
1<?php 2ArrowController::importModel("org.arrowplatform.model.ArrowDataSource"); 160 }else{ 161 $tmp = explode( ";", $this->getProperty("files")); 162 $files = "";AbstractClassMetadataFactory.php https://gitlab.com/mario.uriarte/doctrine2.5-tutorial | PHP | 429 lines
1<?php 2/* 194 if (strpos($className, ':') !== false) { 195 list($namespaceAlias, $simpleClassName) = explode(':', $className, 2); 196 294 * Scenarios in a code-generation setup might have access to XML/YAML 295 * Mapping files without the actual PHP code existing here. That is why the 296 * {@see Doctrine\Common\Persistence\Mapping\ReflectionService} interface 397 if (strpos($class, ':') !== false) { 398 list($namespaceAlias, $simpleClassName) = explode(':', $class, 2); 399 $class = $this->getFqcnFromAlias($namespaceAlias, $simpleClassName);Assets.php https://github.com/mydesignivan/Bottino.git | PHP | 459 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 285 if( $def && count($val)==2 ){ 286 $arr = explode("/", $val[0]); 287 $val[0] = !is_numeric(array_search("combine", $arr)) ? $this->combine : false; 457 458/* End of file Assets.php */ 459/* Location: ./application/libraries/Assets.php */MemcacheEngineTest.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 482 lines
1<?php 2/** 4 * 5 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests 14 * @package Cake.Test.Case.Cache.Engine 14 * @package Cake.Test.Case.Cache.Engine 15 * @since CakePHP(tm) v 1.2.0.5434 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 115 foreach ($servers as $server) { 116 list($host, $port) = explode(':', $server); 117 //@codingStandardsIgnoreStarthelper.php https://gitlab.com/ricardosanchez/prueba | PHP | 481 lines
1<?php 2/** 12$com_path = JPATH_SITE . '/components/com_content/'; 13require_once $com_path . 'helpers/route.php'; 14 178 { 179 $excluded_articles = explode("\r\n", $excluded_articles); 180 $articles->setState('filter.article_id', $excluded_articles); 239 $menu = $app->getMenu(); 240 $menuitems = $menu->getItems('link', 'index.php?option=com_users&view=login'); 241 251 252 $item->link = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $Itemid); 253 }postgresql.php https://gitlab.com/ricardosanchez/prueba | PHP | 641 lines
1<?php 2/** 132 133 $joinArray = explode($onWord, $joinElem[0]); 134Migrator.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 527 lines
1<?php 2 300 return Collection::make($paths)->flatMap(function ($path) { 301 return $this->files->glob($path.'/*_*.php'); 302 })->filter()->sortBy(function ($file) { 407 { 408 $class = Str::studly(implode('_', array_slice(explode('_', $file), 4))); 409 420 { 421 return str_replace('.php', '', basename($path)); 422 }ContactFormEditForm.php https://gitlab.com/mohamed_hussein/prodt | PHP | 193 lines
1<?php 2 140 // Validate and each email recipient. 141 $recipients = explode(',', $form_state->getValue('recipients')); 142Item.php https://bitbucket.org/kdms/sh-magento.git | PHP | 499 lines
1<?php 2/** 144 if (!empty($relatedProduct)) { 145 $cart->addProductsByIds(explode(',', $relatedProduct)); 146 }sybase_driver.inc http://scalr.googlecode.com/svn/ | PHP | 662 lines
1<?php 2 3/** 4 * ADOdb Lite is a PHP class to encapsulate multiple database APIs and is compatible with 5 * a subset of the ADODB Command Syntax. 248 if ($inputarr && is_array($inputarr)) { 249 $sqlarr = explode('?', $sql); 250 if (!is_array(reset($inputarr))) $inputarr = array($inputarr); 275 $this->sql = $sql; 276 $time_start = array_sum(explode(' ', microtime())); 277 $this->query_count++; 278 $resultId = @sybase_query( $this->sql, $this->connectionId ); 279 $time_total = (array_sum(explode(' ', microtime())) - $time_start); 280 $this->query_time_total += $time_total; 300 $this->sql = $sql; 301 $time_start = array_sum(explode(' ', microtime())); 302 $this->query_count++;DAOActionTrait.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 229 lines
1<?php 2namespace Civi\Api4\Generic\Traits; 13 protected function getBaoName() { 14 require_once 'api/v3/utils.php'; 15 return \_civicrm_api3_get_BAO($this->getEntityName()); 159 160 list($customGroup, $customField) = explode('.', $name); 161 223 // Fixme: decouple from v3 224 require_once 'api/v3/utils.php'; 225 _civicrm_api3_check_edit_permissions($baoName, ['check_permissions' => 1] + $item);agent.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 529 lines
1<?php 2/** 9 * @copyright 2010 - 2012 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 17 * 18 * This class uses PHP's get_browser() to get details from the browsers user agent 19 * string. If not available, it can use a coded alternative using the php_browscap.ini 98 'enabled' => true, 99 'url' => 'http://browsers.garykeith.com/stream.asp?Lite_PHP_BrowsCapINI', 100 'method' => 'wrapper', 437 curl_setopt($curl, CURLOPT_HEADER, 0); 438 curl_setopt($curl, CURLOPT_USERAGENT, 'Fuel PHP framework - Agent class (http://fuelphp.com)'); 439 curl_setopt($curl, CURLOPT_URL, static::$config['browscap']['url']); 444 case 'wrapper': 445 ini_set('user_agent', 'Fuel PHP framework - Agent class (http://fuelphp.com)'); 446 $data = file_get_contents(static::$config['browscap']['url']);MarkdownDescriptor.php https://gitlab.com/pr0055/symfonypizza | PHP | 371 lines
1<?php 2 325 } else { 326 $callableParts = explode('::', $callable); 327bookmark.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 414 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 ); 252 $keys = array( 'link_id', 'link_name', 'link_url', 'link_visible', 'link_rating', 'link_owner', 'link_updated', 'link_notes', 'link_description' ); 253 foreach ( explode( ',', $orderby ) as $ordparam ) { 254 $ordparam = trim( $ordparam ); 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 } else if ( 'db' == $context ) { 390 /** This filter is documented in wp-includes/post.php */ 391 $value = apply_filters( "pre_$field", $value );Route.php https://github.com/balupton/Zend-Framework-Mirror.git | PHP | 413 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Route.php 23486 2010-12-10 04:05:30Z mjh_ca $ 20 */ 24 */ 25require_once 'Zend/Controller/Router/Route/Interface.php'; 26 29 */ 30require_once 'Zend/Controller/Router/Route/Module.php'; 31 34 */ 35require_once 'Zend/Controller/Dispatcher/Interface.php'; 36 39 */ 40require_once 'Zend/Controller/Request/Abstract.php'; 41function.html_select_time.php https://gitlab.com/garabedian.kevin/web2TB | PHP | 364 lines
1<?php 2/** 11 */ 12require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php'); 13/** 15 */ 16require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php'); 17 24 * 25 * @link http://www.smarty.net/manual/en/language.function.html.select.time.php {html_select_time} 26 * (Smarty online manual) 163 $time = strtotime( $_hour . ':' . $_minute . ':' . $_second . $_meridian ); 164 list($_hour, $_minute, $_second) = $time = explode('-', date('H-i-s', $time)); 165 } elseif (isset($params['time'][$field_array][$prefix . 'Hour'])) { 176 $time = strtotime( $_hour . ':' . $_minute . ':' . $_second . $_meridian ); 177 list($_hour, $_minute, $_second) = $time = explode('-', date('H-i-s', $time)); 178 } else {Invoice.php https://gitlab.com/vincent.perdereau/picandparts | PHP | 352 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 * 15 * @copyright Copyright CedCommerce (http://cedcommerce.com/) 16 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 17 */ 145 $paymentInfo = htmlspecialchars_decode($paymentInfo, ENT_QUOTES); 146 $payment = explode('{{pdf_row_separator}}', $paymentInfo); 147 foreach ($payment as $key=>$value){imageupload.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 287 lines
1<?php 2 56 $imageExtensions = $modx->getOption('imageExtensions', $sourceProperties, 'jpg,jpeg,png,gif,JPG'); 57 $imageExtensions = explode(',', $imageExtensions); 58 $uniqueFilenames = $modx->getOption('uniqueFilenames', $sourceProperties, false); 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 imagesConsoleApp.php https://gitlab.com/madebycloud/derekman | PHP | 283 lines
1<?php 2namespace Craft; 123 * 124 * ```php 125 * craft()->on('entries.saveEntry', function(Event $event) { 151 152 list($componentId, $eventName) = explode('.', $event, 2); 153StaticTest.php https://github.com/tanduy/zf.git | PHP | 397 lines
33 */ 34require_once 'Zend/Db.php'; 35 38 */ 39require_once 'Zend/Config.php'; 40 69 { 70 list($major, $minor, $revision) = explode('.', PHP_VERSION); 71 if ($minor >= 2) { 162 { 163 list($major, $minor, $revision) = explode('.', PHP_VERSION); 164 if ($minor >= 2) { 177 { 178 list($major, $minor, $revision) = explode('.', PHP_VERSION); 179 if ($minor >= 2) {categories.php https://github.com/cpucci/oscommerce.git | PHP | 336 lines
1<?php 2/* 315 316 $category_array = explode('_', $new_id); 317magmi_csvreader.php https://gitlab.com/inglobe/mgt-clemente-css | PHP | 208 lines
1<?php 2require_once("magmi_mixin.php"); 2require_once("magmi_mixin.php"); 3require_once("magmi_utils.php"); 4 39 $this->_buffersize = $this->getParam($this->_prefix.":buffer", 0); 40 $this->_ignored = explode(",", $this->getParam($this->_prefix.":ignore")); 41 }Dbp.php https://bitbucket.org/kdms/sh-magento.git | PHP | 394 lines
1<?php 2/** 166 $parentPath = $parentNode; 167 $startLevel = count(explode($parentPath))-1; 168 $parentNode = null; 187 foreach ($arrNodes as $nodeInfo) { 188 $pathToParent = explode('/', $nodeInfo[$this->_pathField]); 189 array_pop($pathToParent); 212 213 //$node->setLevel(count(explode('/', $node->getData($this->_pathField)))-1); 214 $node->setLevel($node->getData($this->_levelField)); 219 if ($path) { 220 $childrenPath = explode('/', $path); 221 } else { 351 352 $pathToParent = explode('/', $nodeInfo[$this->_pathField]); 353 array_pop($pathToParent);assets.php https://gitlab.com/VxMxPx/mysli.old | PHP | 557 lines
1<?php 2 202 { 203 $flags = explode(' !', $file); 204 $file = trim( array_shift($flags) ); 471 { 472 $file = explode(' !', $file, 2)[0]; 473 } 539 { 540 list($id, $key) = explode('.', substr($module[$item], 1)); 541Image.php https://github.com/gryzz/crystal_magento.git | PHP | 501 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 431 { 432 $size = explode('x', strtolower($string)); 433 if( sizeof($size) == 2 ) {edit-comments.php https://gitlab.com/Fullerton/PolitePressCore | PHP | 334 lines
1<?php 2/** 9/** WordPress Administration Bootstrap */ 10require_once( dirname( __FILE__ ) . '/admin.php' ); 11if ( ! current_user_can( 'edit_posts' ) ) { 35 } elseif ( isset( $_REQUEST['ids'] ) ) { 36 $comment_ids = array_map( 'absint', explode( ',', $_REQUEST['ids'] ) ); 37 } elseif ( wp_get_referer() ) { 196 197require_once( ABSPATH . 'wp-admin/admin-header.php' ); 198?> 200<div class="wrap"> 201<h1 class="wp-heading-inline"><?php 202if ( $post_id ) { 214 215<?php 216if ( isset($_REQUEST['s']) && strlen( $_REQUEST['s'] ) ) {class.admin.autoterms.php https://gitlab.com/vanafroo/landingpage | PHP | 322 lines
1<?php 2 10 public function __construct() { 11 self::$tools_base_url = admin_url( 'tools.php' ) . '?page='; 12 64 $terms_list = stripslashes( $_POST['auto_list'] ); 65 $terms = explode( ',', $terms_list ); 66 160 ?> 161 <tr id="custom type-<?php echo $i; ?>" class="<?php echo $class; ?>"> 162 <th class="name column-name"><?php echo esc_html( $post_type->labels->name ); ?></th> 270 <a class="button-primary" 271 href="<?php echo self::$tools_base_url . 'st_auto&taxo=' . SimpleTags_Admin::$taxonomy . '&cpt=' . SimpleTags_Admin::$post_type . '&action=auto_tag'; ?>"><?php _e( 'Auto terms all content »', 'simpletags' ); ?></a> 272 </p> 294 <p><?php _e( "If your browser doesn't start loading the next page automatically click this link:", 'simpletags' ); ?> 295 <a href="<?php echo self::$tools_base_url . 'st_auto&taxo=' . SimpleTags_Admin::$taxonomy . '&cpt=' . SimpleTags_Admin::$post_type . '&action=auto_tag&n=' . ( $n + 20 ); ?>"><?php _e( 'Next content', 'simpletags' ); ?></a> 296 </p>sql_tools.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 144 lines
1<?php 2//Datenbanken 45 include ($config['files']['parameter']); 46 echo '<script language="JavaScript">parent.MySQL_Dumper_menu.location.href="menu.php?action=dbrefresh";</script>'; 47 55 if($col!="") { 56 $r=explode("|",$col); 57 $sqlc="CREATE DATABASE `$newname` DEFAULT CHARACTER SET $r[0] COLLATE $r[1]"; 62 include ($config['files']['parameter']); 63 echo '<script language="JavaScript">parent.MySQL_Dumper_menu.location.href="menu.php?action=dbrefresh";</script>'; 64 77 echo '<div align="center"><div align="left" id="sqleditbox">'; 78 echo '<form action="sql.php?context=3" method="post"><input type="hidden" name="db_action" value="'.$db_action.'"><input type="hidden" name="newname" value="'.$newname.'"><input type="hidden" name="db_index" value="'.$db_index.'">'; 79 switch($db_action) { 114 115 echo '<br><form action="sql.php?context=3" method="post"><input type="hidden" name="dbwantaction" value="1">'; 116 echo '<div align="center"><table class="border">';class.jetpack-xmlrpc-server.php https://gitlab.com/mattswann/launch-housing | PHP | 488 lines
1<?php 2 153 154 @list( $secret_1, $secret_2, $secret_eol, $user_id ) = explode( ':', $secrets ); 155 434 if ( strpos( $locale, '-' ) !== false ) { 435 $pieces = explode( '-', $locale ); 436 $new_locale = $locale_pieces[0]; 463 // needed? 464 require_once ABSPATH . 'wp-admin/includes/admin.php'; 465 465 466 require_once JETPACK__PLUGIN_DIR . 'class.json-api.php'; 467 $api = WPCOM_JSON_API::init( $method, $url, $post_body ); 468 $api->token_details['user'] = $user_details; 469 require_once JETPACK__PLUGIN_DIR . 'class.json-api-endpoints.php'; 470Page.php https://github.com/Getty/historical-php-rapidev.git | PHP | 273 lines
2/** 3 * RapiDev, Rapid Development PHP Application Framework 4 * 4 * 5 * PHP version 5 6 * 127 RDD::Log('Resulting Page: '.$this->Page,TRACE,1211); 128 $this->Pages = explode('_',$this->Page); 129 RDD::Log('Resulting Pages:',TRACE,1212); 149 if (!is_array($Pages)) { 150 $Pages = explode('_'.$Pages); 151 } 198 } catch (Exception $e) { 199 $FileName .= '.php'; 200 if ($File = $this->File($FileName)) {po.php https://gitlab.com/VTTE/sitios-vtte | PHP | 510 lines
1<?php 2/** 4 * 5 * @version $Id: po.php 1158 2015-11-20 04:31:23Z dd32 $ 6 * @package pomo 9 10require_once __DIR__ . '/translations.php'; 11 118 119 $po = $quote . implode( "${slash}n$quote$newline$quote", explode( $newline, $string ) ) . $quote; 120 // Add empty string on first line for readbility. 142 ); 143 $lines = array_map( 'trim', explode( "\n", $string ) ); 144 $lines = array_map( array( 'PO', 'trim_quotes' ), $lines ); 177 public static function prepend_each_line( $string, $with ) { 178 $lines = explode( "\n", $string ); 179 $append = '';language.php https://gitlab.com/Rad1calDreamer/honey | PHP | 569 lines
27 //First try to load customized class 28 $strDirName = $_SERVER["DOCUMENT_ROOT"].BX_PERSONAL_ROOT."/php_interface/".$sLang."/search"; 29 $strFileName = $strDirName."/language.php"; 38 $strDirName = $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/search/tools/".$sLang; 39 $strFileName = $strDirName."/language.php"; 40 if(file_exists($strFileName)) 72 $cache_id = filemtime($file_name).",".$file_name; 73 $obCache = new CPHPCache; 74 if($obCache->StartDataCache(360000, $cache_id, "search")) 76 $text = file_get_contents($file_name); 77 $ar = explode("\n", $text); 78 foreach($ar as $trigramm) 415 $language_from_to = key($arDetection); 416 list($language_from, $language_to) = explode("=>", $language_from_to); 417//echo "<pre>";foreach($arDetection as $i=>$ar){var_dump($i); print_r(array($ar[0],$ar[1],$ar[3],$ar[4],$ar[5],));}echo "<pre>";Dropdown.php https://gitlab.com/ElvisAns/tiki | PHP | 391 lines
1<?php 2 126 'value' => $value, 127 'selected' => $value === '' ? [] : explode(',', $value), 128 'possibilities' => $this->getPossibilities(), 133 { 134 $existing = explode(',', $this->getValue()); 135 if (! in_array($value, $existing)) { 142 { 143 $existing = explode(',', $this->getValue()); 144 $existing = array_filter($existing, function ($v) use ($value) {Resource.php https://github.com/sitengine/sitengine.git | PHP | 436 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 14026 2009-02-09 19:03:22Z matthew $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 115 if (!$this->hasResourceType($type)) { 116 require_once 'Zend/Loader/Exception.php'; 117 throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");mailer.php https://gitlab.com/alexprowars/bitrix | PHP | 374 lines
16use Bitrix\Main\Mail\SenderSendCounter; 17use PHPMailer\PHPMailer\PHPMailer; 18use Bitrix\Main\Diag\FileLogger; 57 /** 58 * Prepare PHPMailer configuration from bitrix/.settings.php 59 * @param array|null $configuration 99 { 100 $this->SMTPSecure = $this->Port == 465 ? PHPMailer::ENCRYPTION_SMTPS : PHPMailer::ENCRYPTION_STARTTLS; 101 } 134 * @return bool 135 * @throws \PHPMailer\PHPMailer\Exception 136 */ 248 * @throws \Bitrix\Main\ArgumentException 249 * @throws \PHPMailer\PHPMailer\Exception 250 */library.php git://github.com/joomla/joomla-platform.git | PHP | 427 lines
1<?php 2/** 115 { 116 $this->parent->setPath('extension_root', JPATH_PLATFORM . '/' . implode(DIRECTORY_SEPARATOR, explode('/', $group))); 117 }wikiplugin_attach.php https://gitlab.com/ElvisAns/tiki | PHP | 360 lines
1<?php 2 197 198 $attfields = explode(',', strtok($tracker_info["orderAttachments"], '|')); 199 276 if (isset($image) and $image) { 277 $link .= '<img src="tiki-download_wiki_attachment.php?attId=' . $atts['data'][$n]['attId'] . $url . '" class="wiki"'; 278 $link .= ' alt="'; 288 } else { 289 $link .= '<a href="tiki-download_wiki_attachment.php?attId=' . $atts['data'][$n]['attId'] . $url . '&download=y" class="wiki"'; 290 $link .= ' title="';options.php https://gitlab.com/BenjaminHolm/wp-rocket | PHP | 301 lines
1<?php 2use WP_Rocket\Logger\Logger; 113 if ( ! empty( $_POST ) && ! empty( $value['do_cloudflare'] ) && isset( $oldvalue['cloudflare_auto_settings'], $value['cloudflare_auto_settings'] ) && (int) $oldvalue['cloudflare_auto_settings'] !== (int) $value['cloudflare_auto_settings'] ) { 114 $cf_old_settings = explode( ',', $value['cloudflare_old_settings'] ); 115 196 197 // Regenerate advanced-cache.php file. 198 if ( ! empty( $_POST ) && ( ( isset( $oldvalue['do_caching_mobile_files'] ) && ! isset( $value['do_caching_mobile_files'] ) ) || ( ! isset( $oldvalue['do_caching_mobile_files'] ) && isset( $value['do_caching_mobile_files'] ) ) || ( isset( $oldvalue['do_caching_mobile_files'], $value['do_caching_mobile_files'] ) ) && $oldvalue['do_caching_mobile_files'] !== $value['do_caching_mobile_files'] ) ) { 207 208 // Set WP_CACHE constant in wp-config.php. 209 if ( ! defined( 'WP_CACHE' ) || ! WP_CACHE ) { 296 297 $scheme = rocket_extract_url_component( $value, PHP_URL_SCHEME ); 298Table.php https://bitbucket.org/acidel/buykoala.git | PHP | 236 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 80 $isMultiple = true; 81 $value = explode(',', $value); 82 }authentication.php https://gitlab.com/x33n/platform | PHP | 237 lines
1<?php 2/** 5 * @subpackage WebTester 6 * @version $Id: authentication.php 2011 2011-04-29 08:22:48Z pp11 $ 7 */ 10 */ 11require_once(dirname(__FILE__) . '/http.php'); 12 55 protected function getCommonPath($first, $second) { 56 $first = explode('/', $first); 57 $second = explode('/', $second);UserApi.php https://github.com/planetenkiller/core.git | PHP | 409 lines
1<?php 2/** 91 { 92 if (!isset($args['explode']) || $args['explode'] != false) { 93 if (isset($options['type']) && $options['type'] == 'select') { 93 if (isset($options['type']) && $options['type'] == 'select') { 94 $options['values'] = explode(',', $options['values']); 95 $options['output'] = explode(',', __($options['output'], $dom));Observer.php https://github.com/cinnamong/mag3nt0.git | PHP | 358 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 53 if (!is_array($rule->getWebsiteIds())) { 54 $ruleWebsiteIds = (array)explode(',', $rule->getWebsiteIds()); 55 } else {bylocation.php https://gitlab.com/alexprowars/bitrix | PHP | 295 lines
1<?php 2namespace Bitrix\Sale\Delivery\Restrictions; 109 { 110 $LOCATION1 = explode(':', $params["LOCATION"][$class::DB_LOCATION_FLAG]); 111 } 114 { 115 $LOCATION2 = explode(':', $params["LOCATION"][$class::DB_GROUP_FLAG]); 116 }ScreenArchive.php https://gitlab.com/slondon/fortissimo | PHP | 302 lines
1<?php 2 2 3require_once 'lib/abstract_regular_screen.php'; 4 4 5require_once 'tools/Common.php'; 6require_once 'tools/ScreenNavigator.php'; 182 183 $path_arr = explode('/', $path); 184 foreach($path_arr as $p) 231 { 232 $path_arr = explode('/', $path); 233 foreach($path_arr as $p)DBConnection.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 270 lines
1<?php 2 3/** 4 * @file classes/db/DBConnection.inc.php 5 * 15 16// $Id: DBConnection.inc.php,v 1.6 2009/04/24 18:50:15 mj Exp $ 17 114 function initConn() { 115 require_once('adodb.inc.php'); 116 255 $preparedSql = ''; 256 foreach(explode('?',$sql) as $key => $val) { 257 if (isset($params[$key])) {PhpdocToCommentFixerTest.php https://gitlab.com/I-NOZex/quiz | PHP | 472 lines
1<?php 2 3/* 4 * This file is part of the PHP CS utility. 5 * 16/** 17 * @author Ceeram <ceeram@cakephp.org> 18 */ 18 */ 19class PhpdocToCommentFixerTest extends AbstractFixerTestBase 20{ 29 /** 30 * @requires PHP 5.4 31 * @dataProvider provideTraits 42 $cases[] = array( 43 '<?php 44/**ConfigGenerator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 270 lines
1<?php 2/** 253 if (isset($data[ConfigOptionsListConstants::INPUT_KEY_CACHE_HOSTS])) { 254 $hostData = explode(',', $data[ConfigOptionsListConstants::INPUT_KEY_CACHE_HOSTS]); 255 $hosts = []; 256 foreach ($hostData as $data) { 257 $dataArray = explode(':', trim($data)); 258 $host = [];class.email.php https://github.com/mischka/Garden.git | PHP | 219 lines
17 * @copyright 2003 Mark O'Sullivan 18 * @license http://www.opensource.org/licenses/gpl-2.0.php GPL 19 * @package Garden 29 */ 30 private $_PhpMailer; 31 40 function __construct() { 41 $this->_PhpMailer = new PHPMailer(); 42 $this->Clear(); 146 public function MimeType($MimeType) { 147 $this->_PhpMailer->IsHTML($MimeType === 'text/html'); 148 return $this; 200 if (!$this->_IsToSet) { 201 $this->_PhpMailer->AddAddress($RecipientEmail, $RecipientName); 202 $this->_IsToSet = True;html_header.php https://github.com/ZenMagick/zc-base.git | PHP | 129 lines
30<meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com eCommerce" /> 31<?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?> 32<meta name="robots" content="noindex, nofollow" /> 38 39<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" /> 40<?php if (isset($canonicalLink) && $canonicalLink != '') { ?> 102 */ 103 $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.php'); 104 while(list ($key, $value) = each($directory_array)) { 106 * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically. 107 * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page 108 */ 117 * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. 118 * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page 119 */betfairDemoView.class.php https://github.com/sangau001/bflib.git | PHP | 166 lines
1<?php 2/** 103 case 'getAllMarkets': 104 $markets = explode(":",$this->soapResponse->Result->marketData); 105 array_shift($markets); 106 foreach($markets as $market){ 107 $marketData = explode('~',$market); 108 $displayUnit.="<li> {$marketData[1]} 116 case 'getInPlayMarkets': 117 $markets = explode(":",$this->soapResponse->Result->marketData); 118 array_shift($markets); 119 foreach($markets as $market){ 120 $marketData = explode('~',$market); 121 $displayUnit.="<li><a href='http://".betfairDemoConstants::HOSTNAME."/v1/getCompleteMarketPricesCompressed/{$marketData[0]}'>{$marketData[1]}</a></li>"; 127 $marketDescription = $this->soapResponse->Result->market->marketDescription; 128 include('templates/marketData.tpl.php'); 129 $displayUnit=betfairHelper::returnVar($this->soapResponse);SpecialExport.php https://github.com/sunnysujan/wikireader.git | PHP | 403 lines
1<?php 2# Copyright (C) 2003-2008 Brion Vibber <brion@pobox.com> 193 /* Split up the input and look up linked pages */ 194 $inputPages = array_filter( explode( "\n", $page ), array( $this, 'filterPage' ) ); 195 $pageSet = array_flip( $inputPages );common.inc.php https://github.com/ksv/limb.git | PHP | 301 lines
23lmb_require('limb/core/src/env.inc.php'); 24lmb_require('limb/core/src/package.inc.php'); 25lmb_require('limb/core/src/string.inc.php'); 26lmb_require('limb/core/src/exception/lmbException.class.php'); 27lmb_require('limb/core/src/exception/lmbPHPFileNotFoundException.class.php'); 28lmb_require('limb/core/src/exception/lmbInvalidArgumentException.class.php'); 28lmb_require('limb/core/src/exception/lmbInvalidArgumentException.class.php'); 29lmb_require('limb/core/src/lmbBacktrace.class.php'); 30lmb_require('limb/core/src/lmbErrorGuard.class.php'); 65{ 66 return explode(PATH_SEPARATOR, get_include_path()); 67} 99 $file = basename($file_path); 100 $items = explode('.', $file); 101internal-link-aliases.php https://gitlab.com/Gashler/sg | PHP | 374 lines
1<?php 2 34 if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS) 35 $this->print_message('error', sprintf(__('Link Mask Generator won’t work with default or “pathinfo” permalinks. Please change your <a href="%s">permalink structure</a> to enable this module’s functionality.', 'seo-ultimate'), 'options-permalink.php')); 36 69 if ($jls_post) { 70 $jls_post = $this->jlsuggest_value_explode($jls_post); 71 $posts = array($jls_post[2]);Cli.php https://gitlab.com/billyprice1/app-download.org | PHP | 260 lines
15 // PHP doesn't implement non-blocking stdin on Windows 16 // https://bugs.php.net/bug.php?id=34972 17 $isWin = 'WIN' === strtoupper(substr(PHP_OS, 0, 3)); 73 if (0 !== $return && 1 !== $return) { 74 fputs(STDERR, "ERROR: Unable to find the protoc command.". PHP_EOL); 75 fputs(STDERR, " Please make sure it's installed and available in the path." . PHP_EOL); 86 fputs(STDERR, "ERROR: The protoc command in your system is too old." . PHP_EOL); 87 fputs(STDERR, " Minimum version required is 2.3.0 but found {$m[0]}." . PHP_EOL); 88 exit(1); 91 $cmd[] = $protocBin; 92 $cmd[] = '--plugin=protoc-gen-php=' . escapeshellarg($pluginExecutable); 93 250 try { 251 echo 'Protobuf-PHP ' . Protobuf::VERSION . ' by Ivan -DrSlump- Montes' . PHP_EOL . PHP_EOL; 252 $result = $main->parse();class.phpmaileroauth.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 197 lines
2/** 3 * PHPMailer - PHP email creation and transport class. 4 * PHP Version 5.4 5 * @package PHPMailer 6 * @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project 7 * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> 20/** 21 * PHPMailerOAuth - PHPMailer subclass adding OAuth support. 22 * @package PHPMailer 23 * @author @sherryl4george 24 * @author Marcus Bointon (@Synchro) <phpmailer@synchromedia.co.uk> 25 */ 25 */ 26class PHPMailerOAuth extends PHPMailer 27{Post.php https://gitlab.com/fabiorf/curso-zend1-aula1 | PHP | 292 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Post.php 24593 2012-01-05 20:35:02Z matthew $ 22 */ 27 */ 28require_once 'Zend/Date.php'; 29 32 */ 33require_once 'Zend/Service/Delicious/SimplePost.php'; 34 93 */ 94 require_once 'Zend/Service/Delicious/Exception.php'; 95 throw new Zend_Service_Delicious_Exception("Second argument must be array with at least 2 keys ('url' and" 102 */ 103 require_once 'Zend/Service/Delicious/Exception.php'; 104 throw new Zend_Service_Delicious_Exception("Date has to be an instance of Zend_Date");locallib.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 234 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 * Get the URL of a script within this plugin. 29 * @param string $script the script name, without .php. E.g. 'index' 30 * @param array $params URL parameters (optional) 33function tool_assignmentupgrade_url($script, $params = array()) { 34 return new moodle_url('/admin/tool/assignmentupgrade/' . $script . '.php', $params); 35} 57 'tool_assignmentupgrade', 58 count(explode(',', $data->selectedassignments))); 59 $urlparams = array('upgradeselected'=>'1', 62 'selected'=>$data->selectedassignments); 63 $this->continueurl = new moodle_url('/admin/tool/assignmentupgrade/batchupgrade.php', $urlparams); 64 } else if (isset($data->upgradeall)) { 70 $urlparams = array('upgradeall'=>'1', 'confirm'=>'1', 'sesskey'=>sesskey()); 71 $this->continueurl = new moodle_url('/admin/tool/assignmentupgrade/batchupgrade.php', $urlparams); 72 }Save.php https://bitbucket.org/jhunsinfotech/blue-blues.git | PHP | 201 lines
1<?php 2/*+******************************************************************************** 10 11require_once('modules/Emails/Emails.php'); 12require_once('modules/Webmails/Webmails.php'); 12require_once('modules/Webmails/Webmails.php'); 13require_once('include/logging.php'); 14require_once('include/database/PearDatabase.php'); 14require_once('include/database/PearDatabase.php'); 15require_once('include/utils/UserInfoUtil.php'); 16require_once('include/utils/CommonUtils.php'); 16require_once('include/utils/CommonUtils.php'); 17require_once('modules/Webmails/MailParse.php'); 18require_once('modules/Webmails/MailBox.php'); 18require_once('modules/Webmails/MailBox.php'); 19require_once('modules/Documents/Documents.php'); 20require_once('modules/Settings/MailScanner/core/MailAttachmentMIME.php');Joomla.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 215 lines
1<?php 2/* 116 case 'Joomla': 117 return explode(':', $name); 118import.php https://bitbucket.org/ngmares/moodle.git | PHP | 210 lines
1<?php 2 25 26require_once('../config.php'); 27require_once($CFG->dirroot.'/course/lib.php'); 27require_once($CFG->dirroot.'/course/lib.php'); 28require_once($CFG->dirroot.'/group/lib.php'); 29include_once('import_form.php'); 34 35$PAGE->set_url('/group/import.php', array('id'=>$id)); 36 44$PAGE->navbar->add($strimportgroups); 45navigation_node::override_active_url(new moodle_url('/group/index.php', array('id' => $course->id))); 46$PAGE->set_title("$course->shortname: $strimportgroups"); 49 50$returnurl = new moodle_url('/group/index.php', array('id'=>$id)); 51Post.php https://gitlab.com/luisrepo/ClienteWS | PHP | 292 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Post.php 23775 2011-03-01 17:25:24Z ralph $ 22 */ 27 */ 28require_once 'Zend/Date.php'; 29 32 */ 33require_once 'Zend/Service/Delicious/SimplePost.php'; 34 93 */ 94 require_once 'Zend/Service/Delicious/Exception.php'; 95 throw new Zend_Service_Delicious_Exception("Second argument must be array with at least 2 keys ('url' and" 102 */ 103 require_once 'Zend/Service/Delicious/Exception.php'; 104 throw new Zend_Service_Delicious_Exception("Date has to be an instance of Zend_Date");Observer.php https://bitbucket.org/acidel/buykoala.git | PHP | 382 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 53 if (!is_array($rule->getWebsiteIds())) { 54 $ruleWebsiteIds = (array)explode(',', $rule->getWebsiteIds()); 55 } else {