PageRenderTime 359ms queryTime 51ms sortTime 73ms getByIdsTime 79ms findMatchingLines 66ms

100+ results results for 'php explode' (359 ms)

Not the results you expected?
converter.php https://gitlab.com/hunt9310/ras | PHP | 438 lines
                    
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 );
                    
                
InputDefinition.php https://gitlab.com/4gdevs/online-class-record-system | 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();
                    
                
helper.php https://github.com/rietn/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];
                    
                
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     *
                    
                
URI.php https://github.com/mkhairul/Presta.git | PHP | 591 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
154		
                    
155		$parsed_uri = explode("/", $request_uri);
                    
156				
                    
157		$i = 0;
                    
158		foreach(explode("/", $fc_path) as $segment)
                    
159		{
                    
216	/**
                    
217	 * Explode the URI Segments. The individual segments will
                    
218	 * be stored in the $this->segments array.	
                    
222	 */		
                    
223	function _explode_segments()
                    
224	{
                    
                
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();
                    
                
Data.php https://github.com/arush/fancydress.git | PHP | 389 lines
                    
1<?php
                    
2class Ebizmarts_MailchimpPro_Helper_Data extends Mage_Core_Helper_Abstract{
                    
37        }else{
                    
38			list($key, $dc) = explode('-',$apikey,2);
                    
39			if (!$dc) $dc = 'us1';
                    
39			if (!$dc) $dc = 'us1';
                    
40			list($aux, $host) = explode('http://',$this->getGeneralConfig('url',$store));
                    
41			$api_host = 'http://'.$dc.'.'.$host;
                    
130		if($this->mailChimpProEnabled($currentStore)){
                    
131			$avlists = explode(',',$this->getGeneralConfig('listid',$currentStore));
                    
132			$lists = array();
                    
147		$merge_vars = array();
                    
148		$maps = explode('<',$this->getSubscribeConfig('mapping_fields',Mage::app()->getStore()->getStoreId()));
                    
149		foreach($maps as $map){
                    
178			foreach($groups as $option){
                    
179				$parts = explode(']',$option);
                    
180				if(substr($parts[0],1) == $customer->getListId() && count($parts) == 5){
                    
                
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		}
                    
                
Null.php https://github.com/sgtcarneiro/horde.git | PHP | 412 lines
                    
1<?php
                    
2/**
                    
135        if (strpos($fullname, ':') !== false) {
                    
136            $parts = explode(':', $fullname);
                    
137            $name = array_pop($parts);
                    
                
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++) {
                    
                
upload.php https://github.com/dmcb/dmcb-cms.git | PHP | 361 lines
                    
1<?php
                    
2/**
                    
328			// Break down filename into it's name and extension
                    
329			$filepieces = explode(".", $filename);
                    
330			$extension = $filepieces[count($filepieces)-1];
                    
                
eztemplateautoload.php https://github.com/mohammeda/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 usage
                    
                
Schema.php https://github.com/michaelmcandrew/lbc.git | PHP | 370 lines
                    
1<?php
                    
2
                    
36
                    
37require_once 'CRM/Core/DAO.php';
                    
38
                    
57    {
                    
58        require_once 'CRM/Contact/DAO/Contact.php';
                    
59        $dao = new CRM_Contact_DAO_Contact( );
                    
162        $dao->fetch();
                    
163        $create = explode("\n", $dao->Create_Table);
                    
164        foreach ($cols as $col) {
                    
201        // add report instances
                    
202        require_once 'CRM/Report/DAO/Instance.php';
                    
203        $domain_id = CRM_Core_Config::domainID();
                    
322        // delete report instances
                    
323        require_once 'CRM/Report/DAO/Instance.php';
                    
324        $domain_id = CRM_Core_Config::domainID();
                    
                
helper.php https://github.com/Macsmice/Tamka.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
144		$module->module = preg_replace('/[^A-Z0-9_\.-]/i', '', $module->module);
                    
145		$path = JPATH_BASE.'/modules/'.$module->module.'/'.$module->module.'.php';
                    
146
                    
171
                    
172		require_once JPATH_THEMES.'/system/html/modules.php';
                    
173		$chromePath = JPATH_THEMES.'/'.$app->getTemplate().'/html/modules.php';
                    
191
                    
192		foreach(explode(' ', $attribs['style']) as $style)
                    
193		{
                    
227			// Get the template and file name from the string
                    
228			$temp = explode(':', $layout);
                    
229			$template = ($temp[0] == '_') ? $template : $temp[0];
                    
234		// Build the template and base path for the layout
                    
235		$tPath = JPATH_THEMES.'/'.$template.'/html/'.$module.'/'.$layout.'.php';
                    
236		$bPath = JPATH_BASE.'/modules/'.$module.'/tmpl/'.$defaultLayout.'.php';
                    
                
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     */
                    
                
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();
                    
                
imode.php https://github.com/Excito/horde3.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);
                    
306
                    
                
sessions.php https://github.com/validoc/Pikmas.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;
                    
                
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,
                    
                
info.php https://github.com/inode64/PhpSpeed.git | PHP | 402 lines
                    
71} else {
                    
72	$error->addError('include(class.' . PHP_OS . '.php.inc)' , PHP_OS . ' is not currently supported', __LINE__, __FILE__ );
                    
73}
                    
75if (!extension_loaded('xml')) {
                    
76	$error->addError('extension_loaded(xml)', 'phpsysinfo requires the xml module for php to work', __LINE__, __FILE__);
                    
77}
                    
78if (!extension_loaded('pcre')) {
                    
79	$error->addError('extension_loaded(pcre)', 'phpsysinfo requires the pcre module for php to work', __LINE__, __FILE__);
                    
80}
                    
82if (!file_exists(APP_ROOT . '/config.php')) {
                    
83	$error->addError('file_exists(config.php)', 'config.php does not exist in the phpsysinfo directory.', __LINE__, __FILE__);
                    
84} else {
                    
351
                    
352		$bottom = "<br /><center><span class=\"gen\">Created by: <a href=\"http://phpsysinfo.sourceforge.net\" target=\"_blank\">phpSysInfo-2.5.2.rc3</a> {time1} in {time2} Seconds
                    
353           </span></center>";
                    
                
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();
                    
                
Backend.php https://github.com/corneliusweiss/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 325 lines
                    
1<?php
                    
2/**
                    
38        
                    
39        $principalParts = explode('/', $principalUri);
                    
40        
                    
96        
                    
97        $principalParts = explode('/', $principalUri);
                    
98        
                    
                
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);
                    
                
DebuggerTest.php https://bitbucket.org/koronios/cakephp.git | PHP | 582 lines
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP Project
                    
12 * @since         CakePHP(tm) v 1.2.0.5432
                    
12 * @since         CakePHP(tm) v 1.2.0.5432
                    
13 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
14 */
                    
69		new Debugger();
                    
70		$this->assertEquals(ini_get('docref_root'), 'http://php.net/');
                    
71	}
                    
87
                    
88		$pattern = '/<code>.*?<span style\="color\: \#\d+">.*?&lt;\?php/';
                    
89		$this->assertRegExp($pattern, $result[0]);
                    
                
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);
                    
306
                    
                
init.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);
                    
100		
                    
                
base.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;
                    
                
form.php https://github.com/micron/concrete5.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
193			$key = str_replace(']', '', $key);
                    
194			$key = explode('[', trim($key, '['));
                    
195			$v2 = $ah->get($arr, $key);
                    
                
release.php https://github.com/kazaff/destoon.git | PHP | 399 lines
                    
246						$message_obj->setValue('任务标题',$txt_task_title);
                    
247						$url= "<a href =\'index.php?do=task&task_id=$res\' target=\'_blank\' >$txt_task_title</a>";
                    
248						$message_obj->setValue ( '任务链接', $url );
                    
253					}
                    
254					Func_comm_class::feed_add('<a href="index.php?do=space&member_id='.$uid.'" target="_blank">'.$username.'</a>发布了任务 <a target="_blank" href="index.php?do=task&task_id='.$res.'">'.$task_obj->getTask_title().'</a>',$uid,$username,'pub_task',$res);
                    
255					Func_comm_class::update_score_value($uid,'pub_task',2);
                    
271					  $js.='<p>
                    
272					    <a href="index.php?do=release&model_id='.$model_id.'">继续发布任务</a>  <a href="index.php?do=task_list&model_id='.$model_id.'">返回任务大厅</a>
                    
273					      </P>';
                    
283					Func_comm_class::showmessage('任务发布提示','index.php?do=task_list&model_id='.$model_id,5,'您的任务付款成功,此任务已进入后台审核流程,审核通过后才可看到该任务<p>
                    
284					      <a href="index.php?do=release&model_id='.$model_id.'">继续发布任务</a>  <a href="index.php?do=task_list&model_id='.$model_id.'">返回任务大厅</a>
                    
285					      </P>');
                    
359    			$username_arr = explode(',',$usernames);
                    
360    		    $sms_conent = $username.'于'.date('Y年-m月-d日',time()).'发布了悬赏任务<< <a href="index.php?do=task&task_id='.$task_id.'" target="_blank" >'.$task_title.' </a>  >> 特邀请您参与投标!'; 
                    
361 				$sql = "insert into ".TABLEPRE."witkey_message (recive_uid,recive_username,title,content,on_time) values";
                    
                
document.php https://github.com/mblodau/GMTJ.git | PHP | 583 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version   $Id: document.php 221 2011-06-11 17:30:33Z happy_noodle_boy $
                    
4 * @package      JCE
                    
205			
                    
206			$parts 	= explode('.', $path);
                    
207			$path 	= array_shift($parts);
                    
280	{
                    
281		$parts = explode('.', $image);
                    
282		$parts = preg_replace('#[^A-Z0-9-_]#i', '', $parts);
                    
459		if ($this->get('compress_javascript', 0)) {
                    
460			$script = JURI::base(true) . '/index.php?option=com_jce&view=editor&layout='.$layout.'&'.$layout.'=' . $item . $dialog . $standalone . '&task=pack&' . $token . '=1';
                    
461			$output .= "\t\t<script type=\"text/javascript\" src=\"" . $script . "\"></script>\n";
                    
468		if ($this->get('compress_css', 0)) {
                    
469			$file = JURI::base(true) . '/index.php?option=com_jce&view=editor&layout='.$layout.'&'.$layout.'=' . $item . $dialog . $standalone . '&task=pack&type=css&' . $token . '=1';
                    
470
                    
                
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'])) {
                    
                
File.php https://github.com/Spavacz/NPG.git | PHP | 465 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
Abstract.php https://github.com/csbde/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');
                    
                
sfMessageSource_XLIFF.class.php https://github.com/richhl/kalturaCE.git | PHP | 518 lines
                    
1<?php
                    
2
                    
15 * @author     Wei Zhuo <weizhuo[at]gmail[dot]com>
                    
16 * @version    $Id: sfMessageSource_XLIFF.class.php 2834 2006-11-27 14:09:05Z fabien $
                    
17 * @package    symfony
                    
141  {
                    
142    $variants = explode('_', $this->culture);
                    
143    $source = $catalogue.$this->dataExt;
                    
173  {
                    
174    $variants = explode('_', $this->culture);
                    
175    $catalogues = array();
                    
                
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');
                    
                
wiki.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_msg
                    
                
TextStatistics.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++) {
                    
                
MaildirTest.php https://github.com/mrbanzai/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
236        $content = $mail->getMessage(3)->getContent();
                    
237        list($content, ) = explode("\n", $content, 2);
                    
238        $this->assertEquals('Fair river! in thy bright, clear flow', trim($content));
                    
                
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);
                    
                
v014.php https://github.com/denisbz/SPIP.git | PHP | 328 lines
                    
1<?php
                    
2
                    
56			$images = $row['images'];
                    
57			$images = explode(",", $images);
                    
58			reset($images);
                    
60			foreach ($images as $val) {
                    
61				$image = explode("|", $val);
                    
62				$fichier = $image[0];
                    
                
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 );
                    
                
query__string_8php.html https://github.com/claudiopro/emerails.git | HTML | 157 lines
                    
86<tr class="separator:af7d1893b08fd736125a4ef3330a3f913"><td class="memSeparator" colspan="2">&#160;</td></tr>
                    
87<tr class="memitem:a1410cbb9bc7bada00a1b8f71456d2e7d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="query__string_8php.html#a1410cbb9bc7bada00a1b8f71456d2e7d">QueryString_explode_item</a> ($item)</td></tr>
                    
88<tr class="separator:a1410cbb9bc7bada00a1b8f71456d2e7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
                    
95        <tr>
                    
96          <td class="memname">QueryString_explode_item </td>
                    
97          <td>(</td>
                    
104
                    
105<p>Definition at line <a class="el" href="query__string_8php_source.html#l00015">15</a> of file <a class="el" href="query__string_8php_source.html">query_string.php</a>.</p>
                    
106
                    
138
                    
139<p>Definition at line <a class="el" href="query__string_8php_source.html#l00010">10</a> of file <a class="el" href="query__string_8php_source.html">query_string.php</a>.</p>
                    
140
                    
149  <ul>
                    
150    <li class="navelem"><a class="el" href="dir_861f50189fda057e6c57d1c1130602b3.html">helpers</a></li><li class="navelem"><a class="el" href="query__string_8php.html">query_string.php</a></li>
                    
151    <li class="footer">Generated by
                    
                
Resource.php https://bitbucket.org/valmy/openx.git | PHP | 436 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 14026 2009-02-09 19:03:22Z matthew $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
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");
                    
                
normalizer_test.php https://github.com/naderman/phpbb-orchestra.git | PHP | 320 lines
                    
1<?php
                    
2/**
                    
4* @package testing
                    
5* @copyright (c) 2011 phpBB Group
                    
6* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
9
                    
10require_once dirname(__FILE__) . '/../../phpBB/includes/utf/utf_normalizer.php';
                    
11
                    
14*/
                    
15class phpbb_utf_normalizer_test extends phpbb_test_case
                    
16{
                    
79
                    
80			list($c1, $c2, $c3, $c4, $c5) = explode(';', $line);
                    
81
                    
248	{
                    
249		return implode('', array_map(array($this, 'hex_to_utf'), explode(' ', $seq)));
                    
250	}
                    
                
RevisionDeleter.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 213 lines
                    
1<?php
                    
2/**
                    
160			// $paramArray[1] is a CSV of the IDs
                    
161			$Ids = explode( ',', $paramArray[1] );
                    
162
                    
                
bookmark.php https://github.com/mhoofman/wordpress-heroku.git | 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 );
                    
                
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])) {
                    
                
class-wp-filesystem-ftpext.php https://gitlab.com/websumon/tosnib | 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	}
                    
                
FlattenException.php https://gitlab.com/mdabutaleb/bitm-laravel-1 | 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 */
                    
                
Image.php https://github.com/rgranadino/magento-mirror.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) 2011 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 ) {
                    
                
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			//@codingStandardsIgnoreStart
                    
                
inbox.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 180 lines
                    
1<?php
                    
2
                    
13
                    
14require_once '../inc/global.inc.php';
                    
15
                    
22    if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') {
                    
23        header('Location:inbox.php'.$social_link);
                    
24    }
                    
54        //allow to insert messages
                    
55        $info_reply = explode(base64_encode('&%ff..x'), $_GET['form_reply']);
                    
56        $count_reply = count($info_reply);
                    
61        //allow to delete messages
                    
62        $info_delete = explode(',', $_GET['form_delete']);
                    
63        $count_delete = (count($info_delete) - 1);
                    
71        $user_email_base = str_replace(')', '(', $info_reply[5]);
                    
72        $user_email_prepare = explode('(', $user_email_base);
                    
73        if (count($user_email_prepare) == 1) {
                    
                
helper.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]);
                    
134
                    
                
Getopt.php https://github.com/samar-tmr/MyVenture.git | PHP | 208 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPUnit
                    
4 *
                    
4 *
                    
5 * Copyright (c) 2002-2011, Sebastian Bergmann <sebastian@phpunit.de>.
                    
6 * All rights reserved.
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Util
                    
38 * @subpackage Util
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
41 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
42 * @link       http://www.phpunit.de/
                    
                
Migrator.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'));
                    
142
                    
                
Item.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']);
                    
                
submit.php https://github.com/digitalstrategyworks/Reese-WordPress.git | PHP | 288 lines
                    
1<?php
                    
2
                    
190		} else {				
                    
191			$a['custom-user-agents'] = explode( ",", $_POST['custom-user-agents'] );
                    
192			foreach( $a['custom-user-agents'] as $agent ) {
                    
                
MarkdownDescriptor.php https://gitlab.com/pr0055/symfonypizza | PHP | 371 lines
                    
1<?php
                    
2
                    
325            } else {
                    
326                $callableParts = explode('::', $callable);
                    
327
                    
                
barrac_mes_options.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 186 lines
                    
1<?php 
                    
2
                    
2
                    
3	// barrac_mes_options.php
                    
4
                    
51	if (!defined('_DIR_PLUGIN_BARRAC')) {
                    
52		$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
                    
53		define('_DIR_PLUGIN_BARRAC',(_DIR_PLUGINS.end($p)).'/');
                    
                
tickets_fonctions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 245 lines
                    
1<?php
                    
2
                    
25
                    
26	return explode(':', $liste);
                    
27}
                    
73	if (defined('_TICKETS_LISTE_JALONS') OR lire_config()) {
                    
74		$liste = explode(":", _TICKETS_LISTE_JALONS);
                    
75		$i = 0;
                    
234	$p->code = "trouve_nom(".$id_auteur.")";
                    
235	$p->statut = 'php';
                    
236	return $p;
                    
                
Route.php https://bitbucket.org/nblaudez/maerdo.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Route.php 23486 2010-12-10 04:05:30Z mjh_ca $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Controller/Router/Route/Interface.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Controller/Router/Route/Module.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Controller/Dispatcher/Interface.php';
                    
36
                    
39 */
                    
40require_once 'Zend/Controller/Request/Abstract.php';
                    
41
                    
                
Route.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Route.php 23485 2010-12-10 04:03:18Z mjh_ca $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Controller/Router/Route/Interface.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Controller/Router/Route/Module.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Controller/Dispatcher/Interface.php';
                    
36
                    
39 */
                    
40require_once 'Zend/Controller/Request/Abstract.php';
                    
41
                    
                
ustep2.php https://github.com/atutor/AChecker.git | PHP | 164 lines
                    
1<?php
                    
2/************************************************************************/
                    
76			foreach ($files as $file) {
                    
77				if(count($file = explode('_',$file))==5) {
                    
78					$file[4] = substr($file[4],0,-3);
                    
103
                    
104				echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post" name="form">
                    
105				<input type="hidden" name="step" value="3" />
                    
133
                    
134	echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post" name="form">
                    
135	<input type="hidden" name="step" value="2" />';
                    
149</table><br />
                    
150	<?php
                    
151	}
                    
                
function.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){
                    
                
query.php https://bitbucket.org/viswanath608/roar.git | PHP | 316 lines
                    
1<?php namespace System\Database;
                    
2
                    
5 *
                    
6 * Lightweight php framework
                    
7 *
                    
29		if(strpos(strtolower($column), ' as ') !== false) {
                    
30			list($col, $alias) = explode(' as ', strtolower($column));
                    
31			return $this->wrap($col) . ' AS ' . $this->wrap($alias);
                    
38
                    
39		foreach(explode('.', $column) as $segment) {
                    
40			$sql[] = ($segment !== '*') ? $this->wrapper . $segment . $this->wrapper : $segment;
                    
                
Format.php https://bitbucket.org/paulkish/no-cms.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
28    {
                    
29        // Stupid stuff to emulate the "new static()" stuff in this libraries PHP 5.3 equivalent
                    
30        $class = __CLASS__;
                    
199
                    
200        $output = implode(',', $headings).PHP_EOL;
                    
201        foreach ($data as &$row)
                    
202        {
                    
203            $output .= '"'.implode('","', $row).'"'.PHP_EOL;
                    
204        }
                    
220
                    
221    // Output as a string representing the PHP structure
                    
222    public function to_php()
                    
239        // Splits
                    
240        $rows = explode("\n", trim($string));
                    
241        $headings = explode(',', array_shift($rows));
                    
                
Google_OAuth2.php https://bitbucket.org/insigngmbh/googlephpapi.git | PHP | 453 lines
                    
1<?php
                    
2/*
                    
17
                    
18require_once "Google_Verifier.php";
                    
19require_once "Google_LoginTicket.php";
                    
19require_once "Google_LoginTicket.php";
                    
20require_once "service/Google_Utils.php";
                    
21
                    
373  function verifySignedJwtWithCerts($jwt, $certs, $required_audience) {
                    
374    $segments = explode(".", $jwt);
                    
375    if (count($segments) != 3) {
                    
                
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 images
                    
                
ConsoleApp.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);
                    
153
                    
                
StaticTest.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/jongleur/oscommerce.git | PHP | 336 lines
                    
1<?php
                    
2/*
                    
315
                    
316      $category_array = explode('_', $new_id);
                    
317
                    
                
ExtractStyleBlocks.php https://github.com/mackensen/moodle.git | PHP | 341 lines
                    
1<?php
                    
2
                    
2
                    
3// why is this a top level function? Because PHP 5.2.0 doesn't seem to
                    
4// understand how to interpret this filter if it's a static method.
                    
16 * @note
                    
17 *      See tests/HTMLPurifier/Filter/ExtractStyleBlocksTest.php for
                    
18 *      sample usage.
                    
126        if ($scope !== null) {
                    
127            $scopes = array_map('trim', explode(',', $scope));
                    
128        } else {
                    
215                // handle ruleset
                    
216                $selectors = array_map('trim', explode(',', $selector));
                    
217                $new_selectors = array();
                    
                
magmi_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);
                    
                
categories.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 305 lines
                    
1<?php
                    
2/**
                    
71		$this->setState('filter.extension', $extension);
                    
72		$parts = explode('.', $extension);
                    
73
                    
286		$assoc = isset($app->item_associations) ? $app->item_associations : 0;
                    
287		$extension = explode('.', $extension);
                    
288		$component = array_shift($extension);
                    
297			$hname = $cname . 'HelperAssociation';
                    
298			JLoader::register($hname, JPATH_SITE . '/components/' . $component . '/helpers/association.php');
                    
299
                    
                
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));
                    
541
                    
                
Image.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 ) {
                    
                
Ftp.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 509 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
78        $this->checkConnected();
                    
79        $dir = explode("/", $path);
                    
80        $path= "";
                    
201        $d = $this->raw("pwd");
                    
202        $data = explode(" ", $d[0], 3);
                    
203        if(empty($data[1])) {
                    
444    /**
                    
445     * Get directory contents in PHP array
                    
446     *
                    
                
Grid.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 179 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
88        if ($this->getFilterData()->getStoreIds()) {
                    
89            $this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
                    
90        }
                    
171            if (isset($rulesList[0])) {
                    
172                $rulesIds = explode(',', $rulesList[0]);
                    
173                $collection->addRuleFilter($rulesIds);
                    
                
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&amp;taxo=' . SimpleTags_Admin::$taxonomy . '&amp;cpt=' . SimpleTags_Admin::$post_type . '&amp;action=auto_tag'; ?>"><?php _e( 'Auto terms all content &raquo;', '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&amp;taxo=' . SimpleTags_Admin::$taxonomy . '&amp;cpt=' . SimpleTags_Admin::$post_type . '&amp;action=auto_tag&amp;n=' . ( $n + 20 ); ?>"><?php _e( 'Next content', 'simpletags' ); ?></a>
                    
296				</p>
                    
                
locallib.php https://bitbucket.org/kudutest1/moodlegit.git | 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            }
                    
                
 

Source

Language