PageRenderTime 310ms queryTime 38ms sortTime 5ms getByIdsTime 106ms findMatchingLines 95ms

100+ results results for 'php array_unshift' (310 ms)

Not the results you expected?
ArgvInput.php https://gitlab.com/I-NOZex/quiz | PHP | 351 lines
                    
1<?php
                    
2
                    
233            } else {
                    
234                array_unshift($this->parsed, $next);
                    
235            }
                    
                
Form_Input.php https://bitbucket.org/JakePratt/kupcakz.com.git | PHP | 555 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
4 *
                    
5 * $Id: Form_Input.php 3326 2008-08-09 21:24:30Z Shadowhand $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
238					{
                    
239						array_unshift($this->rules, $rule);
                    
240					}
                    
319				// Add the label or name to the beginning of the args
                    
320				array_unshift($args, $this->label ? mb_strtolower($this->label) : $this->name);
                    
321
                    
                
bookings.php https://gitlab.com/pankajmohale/chef2go | PHP | 200 lines
                    
91										<?php if( $EM_Ticket->get_bookings_count() == 0 ): ?>
                    
92										| <a href="<?php bloginfo('wpurl'); ?>/wp-load.php" class="ticket-actions-delete"><?php esc_html_e('Delete','events-manager'); ?></a>
                    
93										<?php else: ?>
                    
128								<td colspan="<?php echo apply_filters('em_event_edit_ticket_td_colspan', 7); ?>">
                    
129									<?php include( em_locate_template('forms/event/bookings-ticket-form.php')); ?>
                    
130									<div class="em-ticket-form-actions">
                    
150		    </a>
                    
151		    <a href="<?php echo esc_url(add_query_arg('recreate_tickets', '1')); ?>" class="em-reschedule-trigger em-button button-secondary<?php if( !empty($_REQUEST['recreate_tickets']) ) echo ' reschedule-hidden'; ?>" data-target=".em-tickets-form">
                    
152		    	<?php esc_html_e('Modify Recurring Event Tickets ', 'events-manager'); ?>
                    
168		<input type="text" name="event_rsvp_spaces" value="<?php if( $EM_Event->event_rsvp_spaces > 0 ){ echo $EM_Event->event_rsvp_spaces; } ?>" /><br />
                    
169		<em><?php esc_html_e('If set, the total number of spaces for a single booking to this event cannot exceed this amount.','events-manager'); ?><?php esc_html_e('Leave blank for no limit.','events-manager'); ?></em>
                    
170	</p>
                    
182			<select name="recurrence_rsvp_days_when">
                    
183				<option value="before" <?php if( !empty($EM_Event->recurrence_rsvp_days) && $EM_Event->recurrence_rsvp_days <= 0) echo 'selected="selected"'; ?>><?php echo sprintf(_x('%s the event starts','before or after','events-manager'),__('Before','events-manager')); ?></option>
                    
184				<option value="after" <?php if( !empty($EM_Event->recurrence_rsvp_days) && $EM_Event->recurrence_rsvp_days > 0) echo 'selected="selected"'; ?>><?php echo sprintf(_x('%s the event starts','before or after','events-manager'),__('After','events-manager')); ?></option>
                    
                
BigMath.php https://github.com/umbecr/camilaframework.git | PHP | 471 lines
                    
1<?php
                    
2
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
20 */
                    
21require_once dirname(__FILE__).'/CryptUtil.php';
                    
22
                    
25 */
                    
26require_once dirname(__FILE__).'/../OpenID.php';
                    
27
                    
39     *
                    
40     * @param integer $long The long number (can be a normal PHP
                    
41     * integer or a number created by one of the available long number
                    
60        while ($this->cmp($long, 0) > 0) {
                    
61            array_unshift($bytes, $this->mod($long, 256));
                    
62            $long = $this->div($long, pow(2, 8));
                    
                
Logger.php https://github.com/pmjones/php-framework-benchmarks.git | PHP | 393 lines
                    
1<?php
                    
2
                    
108    {
                    
109        array_unshift($this->handlers, $handler);
                    
110    }
                    
134        }
                    
135        array_unshift($this->processors, $callback);
                    
136    }
                    
161        if (!$this->handlers) {
                    
162            $this->pushHandler(new StreamHandler('php://stderr', self::DEBUG));
                    
163        }
                    
                
Option.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 307 lines
                    
1<?php
                    
2
                    
205                }
                    
206                if(!$Field['require']) array_unshift($Field['options'], array('text' => 'Select', 'value' => ''));
                    
207                $FieldObj = $Form->$T($fname)
                    
247            if($Field['type'] == 'tags') {
                    
248                $TagsTextText = 'Theme::JqueryUI(\'autocomplete\');' . PHP_EOL;
                    
249                $TagsTextText .= "\t\t" . 'Theme::JqueryPlugin(\'TagsInput\');' . PHP_EOL;
                    
249                $TagsTextText .= "\t\t" . 'Theme::JqueryPlugin(\'TagsInput\');' . PHP_EOL;
                    
250                $TagsTextText .= "\t\t" . 'Theme::CssHeader(\'jquery-ui-autocomplete\', GLOBAL_DATA_DIR . \'library/jquery-ui/jquery-ui-1.10.4.autocomplete.css\');' . PHP_EOL;
                    
251                $TagsTextText .= "\t\t" . 'Theme::CssHeader(\'jquery-plugin-TagsInput\', GLOBAL_DATA_DIR . \'library/jquery-plugins/TagsInput/jquery.tagsinput.css\');' . PHP_EOL;
                    
272							}
                    
273						});\';' . PHP_EOL;
                    
274
                    
287
                    
288        $returnString = '<?php ' . implode(PHP_EOL, $PrepareOptions) . '?>
                    
289        <form action="' . $hook['form_action'] . '" class="' . $hook['form_class'] . '" id="' . $hook['form_id'] . '" method="post">
                    
                
access.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 427 lines
                    
1<?php
                    
2/**
                    
72		$identities = self::getGroupsByUser($userId);
                    
73		array_unshift($identities, $userId * -1);
                    
74
                    
                
function.html_select_date.php https://bitbucket.org/seyar/kinda.local.git | PHP | 287 lines
                    
1<?php
                    
2function quicky_function_html_select_date($params,$quicky)
                    
22    $reverse_years   = false;
                    
23    /* Should the select boxes be part of an array when returned from PHP?
                    
24       e.g. setting it to "birthday", would create "birthday[Day]",
                    
240            if(isset($year_empty)) {
                    
241                array_unshift($years, $year_empty);
                    
242                array_unshift($yearvals, '');
                    
                
Store.php https://github.com/jTownsend/Symfony-2.0.git | PHP | 405 lines
                    
1<?php
                    
2
                    
179
                    
180        array_unshift($entries, array($storedEnv, $headers));
                    
181
                    
                
Psr4Autoloader.php https://github.com/mackensen/moodle.git | PHP | 148 lines
                    
1<?php
                    
2
                    
6 * Class Psr4Autoloader
                    
7 * @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader-examples.md#class-example
                    
8 */
                    
54        if ($prepend) {
                    
55            \array_unshift($this->prefixes[$prefix], $baseDir);
                    
56        } else {
                    
115            // replace namespace separators with directory separators
                    
116            // in the relative class name, append with .php
                    
117            $file = $baseDir
                    
118                  . \str_replace('\\', '/', $relativeClass)
                    
119                  . '.php';
                    
120
                    
                
CakeRoute.php https://github.com/gustavor/lore.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * PHP5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
18 * @link          http://cakephp.org CakePHP(tm) Project
                    
19 * @package       Cake.Routing.Route
                    
19 * @package       Cake.Routing.Route
                    
20 * @since         CakePHP(tm) v 1.3
                    
21 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
233				if (isset($route[$this->options['pass'][$j]])) {
                    
234					array_unshift($route['pass'], $route[$this->options['pass'][$j]]);
                    
235				}
                    
                
class-admin.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 467 lines
                    
1<?php
                    
2
                    
19	 */
                    
20	private $plugin_file = 'mailchimp-for-wp/mailchimp-for-wp.php';
                    
21
                    
66		// Hooks for Plugins overview
                    
67		if( isset( $pagenow ) && $pagenow === 'plugins.php' ) {
                    
68			$this->plugin_file = plugin_basename( MC4WP_LITE_PLUGIN_FILE );
                    
132
                    
133		 $settings_link = '<a href="admin.php?page=mc4wp-lite">'. __( 'Settings', 'mailchimp-for-wp' ) . '</a>';
                    
134         array_unshift( $links, $settings_link );
                    
371	{
                    
372		?><script type="text/javascript">window.location.replace('https://mc4wp.com/#utm_source=lite-plugin&utm_medium=link&utm_campaign=menu-upgrade-link'); </script><?php
                    
373	}
                    
395
                    
396		require MC4WP_LITE_PLUGIN_DIR . 'includes/views/api-settings.php';
                    
397	}
                    
                
yst_plugin_tools.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 406 lines
                    
1<?php
                    
2
                    
32			global $pagenow;
                    
33			if ( $pagenow == 'admin.php' && isset($_GET['page']) && in_array($_GET['page'], $this->adminpages) ) {
                    
34				wp_enqueue_style('dashboard');
                    
67		function plugin_options_url() {
                    
68			return admin_url( 'admin.php?page=wpseo_dashboard' );
                    
69		}
                    
78				$settings_link = '<a href="' . $this->plugin_options_url() . '">' . __('Settings', 'wordpress-seo' ) . '</a>';
                    
79				array_unshift( $links, $settings_link );
                    
80			}
                    
91
                    
92			if ( $pagenow == 'admin.php' && isset($_GET['page']) && in_array($_GET['page'], $this->adminpages) ) {
                    
93				wp_enqueue_script( 'wpseo-admin-script', WPSEO_URL.'js/wp-seo-admin.js', array('jquery'), WPSEO_VERSION, true );
                    
310		?>
                    
311			<div id="<?php echo $id; ?>" class="yoastbox">
                    
312				<h2><?php echo $title; ?></h2>
                    
                
Form.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 346 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
209                     ->addGroupFilter($groupModel->getId())->toOptionArray();
                    
210                //array_unshift($stores, array('label'=>'', 'value'=>0));
                    
211                $fieldset->addField('group_default_store_id', 'select', array(
                    
                
core.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 206 lines
                    
1<?php
                    
2!defined('P_W') && exit('Forbidden');
                    
2!defined('P_W') && exit('Forbidden');
                    
3!defined('CMS_BASEURL') && define("CMS_BASEURL", "index.php?m=cms&");;
                    
4
                    
75	}
                    
76	$postion = $cms_sitename ? "<a href='index.php?m=cms'>$cms_sitename</a>":'<a href="index.php?m=cms">資訊</a>';
                    
77	if (!$cid) {return $postion . '<em>&gt;</em>文章列表';}
                    
109	
                    
110	array_unshift($list, $thisColumn);
                    
111	
                    
                
template.php https://bitbucket.org/frazras/higgler.git | PHP | 384 lines
                    
1<?php
                    
2
                    
66        if (!empty($vars['elements']['#grid'][$quality])) {
                    
67          array_unshift($vars['attributes_array']['class'], $quality . '-' . $vars['elements']['#grid'][$quality]);
                    
68        }
                    
70
                    
71      array_unshift($vars['attributes_array']['class'], 'grid-' . $vars['elements']['#grid']['columns']);
                    
72    }
                    
104  if (variable_get('preprocess_css', FALSE) && (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update')) {
                    
105    array_unshift($elements['styles']['#pre_render'], 'alpha_css_preprocessor');
                    
106  }
                    
                
Filter.php https://github.com/miros/mvc_framework.git | PHP | 134 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPUnit
                    
4 *
                    
37 * @category   Testing
                    
38 * @package    PHPUnit
                    
39 * @author     Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
40 * @copyright  2002-2010 Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
41 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
42 * @link       http://www.phpunit.de/
                    
45
                    
46require_once 'File/Iterator/Factory.php';
                    
47
                    
51 * @category   Testing
                    
52 * @package    PHPUnit
                    
53 * @author     Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
                
Form.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 346 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 */
                    
209                     ->addGroupFilter($groupModel->getId())->toOptionArray();
                    
210                //array_unshift($stores, array('label'=>'', 'value'=>0));
                    
211                $fieldset->addField('group_default_store_id', 'select', array(
                    
                
ObjectMixin.php https://bitbucket.org/iiic/iszp.git | PHP | 247 lines
                    
1<?php
                    
2
                    
67		} elseif ($cb = Reflection\ClassType::from($_this)->getExtensionMethod($name)) { // extension methods
                    
68			array_unshift($args, $_this);
                    
69			return $cb->invokeArgs($args);
                    
                
Hydrator.php https://github.com/weaverryan/mongodb-odm.git | PHP | 192 lines
                    
1<?php
                    
2/*
                    
34 *
                    
35 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
36 * @link        www.doctrine-project.com
                    
103                $names = isset($mapping['alsoLoadFields']) ? $mapping['alsoLoadFields'] : array();
                    
104                array_unshift($names, $mapping['name']);
                    
105                foreach ($names as $name) {
                    
151                    $targetMetadata = $this->dm->getClassMetadata($className);
                    
152                    $id = $targetMetadata->getPHPIdentifierValue($reference[$this->cmd . 'id']);
                    
153                    $value = $this->dm->getReference($className, $id);
                    
166            } else {
                    
167                $value = Type::getType($mapping['type'])->convertToPHPValue($rawValue);
                    
168                $data[$mapping['name']] = $value;
                    
                
Captcha.php https://gitlab.com/yousafsyed/easternglamor | PHP | 302 lines
                    
1<?php
                    
2/**
                    
23/** @see Zend_Form_Element_Xhtml */
                    
24#require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** @see Zend_Captcha_Adapter */
                    
27#require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
174            if (!empty($decorator) && !array_key_exists($key, $decorators)) {
                    
175                array_unshift($decorators, $decorator);
                    
176            }
                    
181            if ($captcha instanceof Zend_Captcha_Word && !array_key_exists($key, $decorators)) {
                    
182                array_unshift($decorators, $decorator);
                    
183            }
                    
206            if (!isset($this->_loaders[$type])) {
                    
207                #require_once 'Zend/Loader/PluginLoader.php';
                    
208                $this->_loaders[$type] = new Zend_Loader_PluginLoader(
                    
                
Table.php https://bitbucket.org/jokusafet/magento2.git | PHP | 236 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
63        if ($withEmpty) {
                    
64            array_unshift($options, array('label' => '', 'value' => ''));
                    
65        }
                    
                
MenuLinkTree.php https://gitlab.com/mohamed_hussein/prodt | PHP | 307 lines
                    
1<?php
                    
2
                    
144      if (isset($manipulator['args'])) {
                    
145        array_unshift($manipulator['args'], $tree);
                    
146        $tree = call_user_func_array($callable, $manipulator['args']);
                    
                
autoloader.php https://bitbucket.org/codeyash/bootstrap.git | PHP | 356 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
201		{
                    
202			array_unshift(static::$core_namespaces, $namespace);
                    
203		}
                    
317		}
                    
318		$file .= str_replace('_', DS, $class).'.php';
                    
319
                    
                
medias_fonctions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 205 lines
                    
1<?php
                    
2
                    
59	// sauf s'ils sont distants (taille inconnue)
                    
60	array_unshift($boucle->where,array("'($id_table.taille > 0 OR $id_table.distant=\\'oui\\')'"));
                    
61
                    
70		$modes = addslashes(join(',', array_map($f, array_unique($modes))));
                    
71		array_unshift($boucle->where,array("'IN'", "'$id_table.mode'", "'($modes)'"));
                    
72	}
                    
                
RedirectMiddleware.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 177 lines
                    
1<?php
                    
2
                    
96            $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER);
                    
97            \array_unshift($historyHeader, $uri);
                    
98            \array_unshift($statusHeader, $statusCode);
                    
                
Status.php https://bitbucket.org/jokusafet/magento2.git | PHP | 324 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
127        $options = self::getOptionArray();
                    
128        array_unshift($options, array('value'=>'', 'label'=>''));
                    
129        return $options;
                    
                
josc_com_docman.class.php https://github.com/DanielTichy/plagat.com.git | PHP | 371 lines
                    
1<?php

                    
2defined('_JEXEC')  or die('Restricted access');

                    
20	 * Set specific properties

                    
21	 * will be called also in admin.html.php manage comments during row loop

                    
22	 */

                    
107//		/* COPY of docman latest module to get the itemid */

                    
108//		include_once( JPATH_SITE."/administrator/components/com_docman/docman.class.php");

                    
109//

                    
120		$url	= ($admin ? "/" : "" )

                    
121				. "index.php?option=com_docman&task=doc_details&gid=$contentId" 

                    
122				. ( $menuid ? "&Itemid=$menuid" : "" );

                    
221		if (!$id && $select && count($content)>0) { 

                    
222			array_unshift( $content, JHTML::_('select.option', '0', '-- Select Document --', 'id', 'title' ) );

                    
223		}

                    
345		// add "All sections"

                    
346		array_unshift( $sectoptions, JHTML::_('select.option', '0', '-- All --', 'id', 'title' ) );

                    
347		

                    
                
Main.php https://bitbucket.org/kdms/sh-magento.git | PHP | 178 lines
                    
1<?php
                    
2class MW_FreeGift_Block_Adminhtml_Catalog_Edit_Tab_Main
                    
118        if (!$found) {
                    
119            array_unshift($customerGroups, array('value'=>0, 'label'=>Mage::helper('catalogrule')->__('NOT LOGGED IN')));
                    
120        }
                    
                
functions.inc.php https://github.com/martijnvermaat/quick-hacks.git | PHP | 160 lines
                    
1<?php
                    
2// UTF-8 functions
                    
2// UTF-8 functions
                    
3require_once(dirname(__FILE__) .'/includes/utf8.php');
                    
4
                    
5// Translation
                    
6require_once(dirname(__FILE__) .'/includes/php-gettext/gettext.inc');
                    
7$domain = 'messages';
                    
69                $return = $result;
                    
70                array_unshift($return, $key);
                    
71                return $return;
                    
89    if (!$cleanurls && $page != '') {
                    
90        $page .= '.php';
                    
91    }
                    
                
Form.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
209                     ->addGroupFilter($groupModel->getId())->toOptionArray();
                    
210                //array_unshift($stores, array('label'=>'', 'value'=>0));
                    
211                $fieldset->addField('group_default_store_id', 'select', array(
                    
                
StatementPrefetch.php https://gitlab.com/guillaumev/alkarama | PHP | 537 lines
                    
1<?php
                    
2
                    
284        case \PDO::FETCH_CLASS | \PDO::FETCH_CLASSTYPE:
                    
285          $class_name = array_unshift($this->currentRow);
                    
286          // Deliberate no break.
                    
464    $result = array();
                    
465    // Traverse the array as PHP would have done.
                    
466    while (isset($this->currentRow)) {
                    
483      $result = array();
                    
484      // Traverse the array as PHP would have done.
                    
485      while (isset($this->currentRow)) {
                    
506    $result = array();
                    
507    // Traverse the array as PHP would have done.
                    
508    while (isset($this->currentRow)) {
                    
522    $result = array();
                    
523    // Traverse the array as PHP would have done.
                    
524    while (isset($this->currentRow)) {
                    
                
UtfNormalTest.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 248 lines
                    
1<?php
                    
2/**
                    
48if( isset( $_SERVER['argv'] ) && in_array( '--icu', $_SERVER['argv'] ) ) {
                    
49	dl( 'php_utfnormal.so' );
                    
50}
                    
51
                    
52require_once 'UtfNormalDefines.php';
                    
53require_once 'UtfNormalUtil.php';
                    
53require_once 'UtfNormalUtil.php';
                    
54require_once 'UtfNormal.php';
                    
55
                    
55
                    
56if( php_sapi_name() != 'cli' ) {
                    
57	die( "Run me from the command line please.\n" );
                    
87	$columns = array_map( "hexSequenceToUtf8", explode( ";", $data ) );
                    
88	array_unshift( $columns, '' );
                    
89
                    
                
csv.php https://github.com/pratikdhaboo/kodelearn.git | PHP | 300 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2
                    
285        $matrix[0] = array_values($exams);
                    
286        array_unshift($matrix[0], "Student Id", "Student Name");
                    
287        // print_r($matrix[0]); exit;
                    
                
Captcha.php https://github.com/zf/ZendFramework-Library.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
23/** @see Zend_Form_Element_Xhtml */
                    
24require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** @see Zend_Captcha_Adapter */
                    
27require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
174            if (!empty($decorator) && !array_key_exists($key, $decorators)) {
                    
175                array_unshift($decorators, $decorator);
                    
176            }
                    
181            if ($captcha instanceof Zend_Captcha_Word && !array_key_exists($key, $decorators)) {
                    
182                array_unshift($decorators, $decorator);
                    
183            }
                    
206            if (!isset($this->_loaders[$type])) {
                    
207                require_once 'Zend/Loader/PluginLoader.php';
                    
208                $this->_loaders[$type] = new Zend_Loader_PluginLoader(
                    
                
ReedSolomonCodec.php https://gitlab.com/jjpa2018/dashboard | PHP | 468 lines
                    
1<?php
                    
2declare(strict_types = 1);
                    
311                $tmp = $b->toArray();
                    
312                array_unshift($tmp, $this->blockSize);
                    
313                array_pop($tmp);
                    
339                $tmp = $b->toArray();
                    
340                array_unshift($tmp, $this->blockSize);
                    
341                array_pop($tmp);
                    
                
ArgvInput.php https://gitlab.com/madwanz64/laravel | PHP | 350 lines
                    
1<?php
                    
2
                    
140            if ('' === $value = substr($name, $pos + 1)) {
                    
141                array_unshift($this->parsed, $value);
                    
142            }
                    
216            } else {
                    
217                array_unshift($this->parsed, $next);
                    
218            }
                    
                
FormExtension.php https://bitbucket.org/wayfarer/verse.git | PHP | 256 lines
                    
1<?php
                    
2
                    
163        $blocks = $view->get('types');
                    
164        array_unshift($blocks, '_'.$view->get('id'));
                    
165
                    
                
environment.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 195 lines
                    
1<?php // $Id$
                    
2/**
                    
4 *
                    
5 * This should really be a singleton. A PHP5 Todo I guess.
                    
6 */
                    
126                $this->keypair['expires'] = $this->public_key_expires;
                    
127                array_unshift($openssl_history, $this->keypair);
                    
128            }
                    
                
Loader.php https://gitlab.com/bossagna/meik | PHP | 155 lines
                    
1<?php
                    
2
                    
17    if ($include) {
                    
18      array_unshift($classes, $parent_class_name);
                    
19    }
                    
                
Optimizer.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 246 lines
                    
1<?php
                    
2
                    
57
                    
58        if (!version_compare(phpversion(), '5.4.0RC1', '>=') && self::OPTIMIZE_VAR_ACCESS === (self::OPTIMIZE_VAR_ACCESS & $this->optimizers) && !$env->isStrictVariables() && !$env->hasExtension('sandbox')) {
                    
59            if ($this->inABody) {
                    
61                    if (get_class($node) !== 'Twig_Node') {
                    
62                        array_unshift($this->prependedNodes, array());
                    
63                    }
                    
175            $node->setAttribute('with_loop', false);
                    
176            array_unshift($this->loops, $node);
                    
177        } elseif (!$this->loops) {
                    
                
ImageTagging_body.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 291 lines
                    
1<?php
                    
2/**
                    
122	function insert( $image, $html = '' ) {
                    
123		array_unshift( $this->mImages, array( &$image, $html ) );
                    
124	}
                    
                
Mysqli.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 369 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mysqli.php 16927 2009-07-21 17:49:39Z ralph $
                    
21 */
                    
26 */
                    
27//*** require_once 'Zend/Db/Statement.php';
                    
28
                    
82             */
                    
83            //*** require_once 'Zend/Db/Statement/Mysqli/Exception.php';
                    
84            throw new Zend_Db_Statement_Mysqli_Exception("Mysqli prepare error: " . $mysqli->error);
                    
91     * @param mixed $parameter Name the parameter, either integer or string.
                    
92     * @param mixed $variable  Reference to PHP variable containing the value.
                    
93     * @param mixed $type      OPTIONAL Datatype of SQL parameter.
                    
202        if ($params) {
                    
203            array_unshift($params, str_repeat('s', count($params)));
                    
204            $stmtParams = array();
                    
                
toolbar.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 302 lines
                    
1<?php
                    
2/**
                    
142		$btn = func_get_args();
                    
143		array_unshift($this->_bar, $btn);
                    
144		return true;
                    
237
                    
238				$file = JFilterInput::getInstance()->clean(str_replace('_', DIRECTORY_SEPARATOR, strtolower($type)) . '.php', 'path');
                    
239
                    
297			// Add to the top of the search dirs.
                    
298			array_unshift($this->_buttonPath, $dir);
                    
299		}
                    
                
Abstract.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 240 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 */
                    
28
                    
29require_once('googleresponse.php');
                    
30require_once('googlemerchantcalculations.php');
                    
30require_once('googlemerchantcalculations.php');
                    
31require_once('googleresult.php');
                    
32require_once('googlerequest.php');
                    
45        $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), 'Mage_GoogleCheckout');
                    
46        array_unshift($args, $expr);
                    
47        return Mage::app()->getTranslator()->translate($args);
                    
                
menuitems.php https://github.com/sherdog/GitWitty.git | PHP | 191 lines
                    
1<?php
                    
2/**
                    
81		// second pass - get an indent list of the items
                    
82		require_once JPATH_LIBRARIES.DS.'joomla'.DS.'html'.DS.'html'.DS.'menu.php';
                    
83		$list = JHTMLMenu::treerecurse( 0, '', array(), $children, 9999, 0, 0 );
                    
138		if ( $showinput) {
                    
139			array_unshift( $options,JHTML::_( 'select.option', '-', '&nbsp;', 'value', 'text', true) );
                    
140			array_unshift( $options, JHTML::_( 'select.option', '-', '- '.JText::_('Select Item').' -') );
                    
                
Translator.php https://gitlab.com/techniconline/kmc | PHP | 440 lines
                    
1<?php
                    
2
                    
351            $content = sprintf(<<<EOF
                    
352<?php
                    
353
                    
377    {
                    
378        return $this->cacheDir . '/catalogue.' . $locale . '.' . sha1(serialize($this->fallbackLocales)) . '.php';
                    
379    }
                    
420        if (strrchr($locale, '_') !== false) {
                    
421            array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));
                    
422        }
                    
                
Object.class.php https://github.com/eugenix/recess.git | PHP | 266 lines
                    
1<?php
                    
2Library::import('recess.lang.ClassDescriptor');
                    
20 * method being wrapped. The annotation takes a single parameter, which is
                    
21 * the desired name of the wrapped method. By convention the native PHP method
                    
22 * being wrapped is prefixed with 'wrapped', i.e.:
                    
49 * @copyright 2008, 2009 Kris Jordan
                    
50 * @package Recess PHP Framework
                    
51 * @license MIT
                    
97			$method = $attachedMethod->method;
                    
98			array_unshift($arguments, $this);
                    
99			$reflectedMethod = new ReflectionMethod($object, $method);
                    
                
Loader.php https://github.com/kadoshmt/Pyro-Deals.git | PHP | 390 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
83			if (is_dir($module_path = $location.$module.'/')) {
                    
84				array_unshift($this->_ci_model_paths, $module_path);
                    
85			}
                    
300		if ((bool) @ini_get('short_open_tag') === FALSE AND CI::$APP->config->item('rewrite_short_tags') == TRUE) {
                    
301			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
302		} else {
                    
389/** load the CI class for Modular Separation **/
                    
390(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
                    
1<?php
                    
2/**
                    
112				{
                    
113					array_unshift($paths[$prefix], JPath::clean($includePath));
                    
114				}
                    
117				{
                    
118					array_unshift($paths[''], JPath::clean($includePath));
                    
119				}
                    
156			case 'model':
                    
157				$filename = strtolower($parts['name']) . '.php';
                    
158				break;
                    
                
inputparameter.inc.php https://github.com/viglesiasce/testlink.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
54 * @copyright 	2005-2009, TestLink community 
                    
55 * @version    	CVS: $Id: inputparameter.inc.php,v 1.27 2010/01/11 19:16:30 franciscom Exp $
                    
56 * @link 		http://www.teamst.org/index.php
                    
61/** include logic */
                    
62require_once("object.class.php");
                    
63require_once("inputparameter.class.php");
                    
120	{
                    
121		array_unshift($info,$source);
                    
122	}
                    
                
install.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 337 lines
                    
80		if (file_exists(DIR_CONFIG_SITE . '/site_install_user.php')) {
                    
81			require(DIR_CONFIG_SITE . '/site_install.php');
                    
82			@include(DIR_CONFIG_SITE . '/site_install_user.php');
                    
110		$phpVmin = '5.2.4';
                    
111		if (version_compare(PHP_VERSION, $phpVmin, '>=')) {
                    
112			$phpVtest = true;
                    
116		$this->set('phpVmin',$phpVmin);
                    
117		$this->set('phpVtest',$phpVtest);
                    
118	}
                    
168		require(DIR_CONFIG_SITE . '/site_install.php');
                    
169		@include(DIR_CONFIG_SITE . '/site_install_user.php');
                    
170		
                    
229		}
                    
230		if (file_exists(DIR_CONFIG_SITE . '/site_install.php')) {
                    
231			unlink(DIR_CONFIG_SITE . '/site_install.php');
                    
                
install.php https://bitbucket.org/hudsonite/concrete5.git | PHP | 337 lines
                    
79	protected function testAndRunInstall() {
                    
80		if (file_exists(DIR_CONFIG_SITE . '/site_install_user.php')) {
                    
81			require(DIR_CONFIG_SITE . '/site_install.php');
                    
110		$phpVmin = '5.2.4';
                    
111		if (version_compare(PHP_VERSION, $phpVmin, '>=')) {
                    
112			$phpVtest = true;
                    
116		$this->set('phpVmin',$phpVmin);
                    
117		$this->set('phpVtest',$phpVtest);
                    
118	}
                    
224	public function reset() {
                    
225		// remove site.php so that we can try again ?
                    
226		return;
                    
229		}
                    
230		if (file_exists(DIR_CONFIG_SITE . '/site_install.php')) {
                    
231			unlink(DIR_CONFIG_SITE . '/site_install.php');
                    
                
html.php https://github.com/whiletrue/fluxcms.git | PHP | 265 lines
                    
1<?php
                    
2
                    
114 		if(popoon_classes_browser::supportedByFCK() && $perm->isAllowed($localUri,array('xhtml-back-edit_fck'))) {
                    
115            array_unshift($e, "fck");
                    
116        }   
                    
119        	if($perm->isAllowed($localUri,array('xhtml-back-edit_kupu'))) {
                    
120        		array_unshift($e, 'kupu');
                    
121    		}	
                    
122        	if($perm->isAllowed($localUri,array('xhtml-back-edit_bxe'))) {
                    
123        		array_unshift($e, 'bxe');
                    
124    		}	
                    
127        	if($perm->isAllowed($localUri,array('xhtml-back-edit_kupu'))) {
                    
128        		array_unshift($e, 'kupu');
                    
129    		}	
                    
                
Tokenizer.php https://github.com/pauln/moodle.git | PHP | 322 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of Mustache.php.
                    
5 *
                    
298        // Pragmas are hoisted to the front of the template.
                    
299        array_unshift($this->tokens, array(
                    
300            self::TYPE => self::T_PRAGMA,
                    
                
Abstract.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
26 */
                    
27// require_once 'Zend/Mime.php';
                    
28
                    
186             */
                    
187            // require_once 'Zend/Mail/Transport/Exception.php';
                    
188            throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property');
                    
215             */
                    
216            // require_once 'Zend/Mail/Transport/Exception.php';
                    
217            throw new Zend_Mail_Exception('At least one mail header line is too long');
                    
264            // Ensure first part contains text alternatives
                    
265            array_unshift($this->_parts, $mp);
                    
266
                    
                
ForumController.php https://gitlab.com/wuhang2003/phpwind | PHP | 350 lines
                    
1<?php
                    
2
                    
8 * @author Jianmin Chen <sky_hold@163.com>
                    
9 * @license http://www.phpwind.com
                    
10 * @version $Id: ForumController.php 28803 2013-05-24 07:58:21Z jieyin $
                    
152			}
                    
153			array_unshift($cate, array('my', '我的版块'));
                    
154			$forum['my'] = $tmp;
                    
                
atomlib.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Atom Syndication Format PHP Library
                    
4 *
                    
5 * @package AtomLib
                    
6 * @link http://code.google.com/p/phpatomlib/
                    
7 *
                    
84
                    
85    var $FILE = "php://input";
                    
86
                    
90	/**
                    
91	 * PHP5 constructor.
                    
92	 */
                    
101	/**
                    
102	 * PHP4 constructor.
                    
103	 */
                    
                
Mail.php https://github.com/shafiqissani/ASTRA-College-Website.git | PHP | 197 lines
                    
1<?php
                    
2//
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP Version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2003 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
AbstractTransport.php https://github.com/Exercise/zf2.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
258            // Ensure first part contains text alternatives
                    
259            array_unshift($this->_parts, $mp);
                    
260
                    
267        if (false !== ($body = $this->_mail->getBodyHtml())) {
                    
268            array_unshift($this->_parts, $body);
                    
269        } elseif (false !== ($body = $this->_mail->getBodyText())) {
                    
269        } elseif (false !== ($body = $this->_mail->getBodyText())) {
                    
270            array_unshift($this->_parts, $body);
                    
271        }
                    
                
ConfigPaths.php https://gitlab.com/nmhieucoder/laravel_tintuc | PHP | 413 lines
                    
1<?php
                    
2
                    
78    {
                    
79        if (\defined('PHP_WINDOWS_VERSION_MAJOR')) {
                    
80            $homeDrive = $this->getEnv('HOMEDRIVE');
                    
306        // Add some Windows specific ones :)
                    
307        if (\defined('PHP_WINDOWS_VERSION_MAJOR')) {
                    
308            if ($appData = $this->getEnv('APPDATA')) {
                    
309                // AppData gets preference
                    
310                \array_unshift($dirs, \strtr($appData, '\\', '/').'/PsySH');
                    
311            }
                    
                
Base.php https://github.com/smoke/maintainable-framework.git | PHP | 313 lines
                    
1<?php
                    
2/**
                    
4 * presentation logic.  It allows for templates to be written in 
                    
5 * mostly HTML with lightweight embedded PHP helpers.
                    
6 *
                    
9 * @copyright  (c) 2007-2009 Maintainable Software, LLC
                    
10 * @license    http://opensource.org/licenses/bsd-license.php BSD
                    
11 */
                    
15 * presentation logic.  It allows for templates to be written in 
                    
16 * mostly HTML with lightweight embedded PHP helpers.
                    
17 *
                    
20 * @copyright  (c) 2007-2009 Maintainable Software, LLC
                    
21 * @license    http://opensource.org/licenses/bsd-license.php BSD
                    
22 */
                    
93     * <code>
                    
94     *  <?php
                    
95     *  ...
                    
                
Grid.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 221 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
193
                    
194        array_unshift($groups, array('label'=> '', 'value'=> ''));
                    
195        $this->getMassactionBlock()->addItem('assign_group', array(
                    
                
AbstractContainer.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 282 lines
                    
2/**
                    
3 * This file is part of PHPWord - A pure PHP library for reading and writing
                    
4 * word processing documents.
                    
10 * file that was distributed with this source code. For the full list of
                    
11 * contributors, visit https://github.com/PHPOffice/PHPWord/contributors.
                    
12 *
                    
12 *
                    
13 * @link        https://github.com/PHPOffice/PHPWord
                    
14 * @copyright   2010-2016 PHPWord contributors
                    
17
                    
18namespace PhpOffice\PhpWord\Element;
                    
19
                    
76     * @param mixed $args
                    
77     * @return \PhpOffice\PhpWord\Element\AbstractElement
                    
78     */
                    
                
access.php https://github.com/rietn/minima.git | PHP | 383 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: access.php 21147 2011-04-14 16:49:40Z dextercowley $
                    
4 * @package		Joomla.Framework
                    
62		$identities = self::getGroupsByUser($userId);
                    
63		array_unshift($identities, $userId * -1);
                    
64
                    
                
ArrayList.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 240 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
59    public function unshift($element) {
                    
60        return (array_unshift($this->_elements,$element))?true : false;
                    
61    }
                    
                
Abstract.php https://github.com/rgranadino/magento-mirror.git | PHP | 358 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
184        $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), $this->_getModuleName());
                    
185        array_unshift($args, $expr);
                    
186        return Mage::app()->getTranslator()->translate($args);
                    
                
Mysql.php https://github.com/grjones/qframe.git | PHP | 331 lines
                    
1<?php
                    
2/**
                    
164    if(!isset($options['primary'])) {
                    
165      array_unshift($columns, array('id', 'integer', array('null' => false)));
                    
166      $options['primary'] = 'id';
                    
                
helper.php https://github.com/chalosalvador/GDS.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
182				if (!in_array($path, $paths)) {
                    
183					array_unshift($paths, $path);
                    
184				}
                    
190		// Try to find the class file.
                    
191		if ($file = JPath::find($paths, strtolower($type).'.php')) {
                    
192			require_once $file;
                    
272			if (!in_array($path, $paths)) {
                    
273				array_unshift($paths, trim($path));
                    
274			}
                    
                
ShowCommand.php https://gitlab.com/madwanz64/laravel | PHP | 299 lines
                    
1<?php
                    
2
                    
163        $trace = $exception->getTrace();
                    
164        \array_unshift($trace, [
                    
165            'file' => $exception->getFile(),
                    
                
Abstract.php https://github.com/gryzz/crystal_magento.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 18760 2009-10-31 13:09:01Z yoshida@zend.co.jp $
                    
21 */
                    
26 */
                    
27#require_once 'Zend/Mime.php';
                    
28
                    
186             */
                    
187            #require_once 'Zend/Mail/Transport/Exception.php';
                    
188            throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property');
                    
215             */
                    
216            #require_once 'Zend/Mail/Transport/Exception.php';
                    
217            throw new Zend_Mail_Exception('At least one mail header line is too long');
                    
264            // Ensure first part contains text alternatives
                    
265            array_unshift($this->_parts, $mp);
                    
266
                    
                
Manager.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 770 lines
                    
1<?php
                    
2
                    
123		if (\preg_match('/^[a-z0-9\-]+$/', $sName) &&
                    
124			\file_exists(APP_PLUGINS_PATH.$sName.'/index.php'))
                    
125		{
                    
129			{
                    
130				include APP_PLUGINS_PATH.$sName.'/index.php';
                    
131			}
                    
170				if (\preg_match('/^[a-z0-9\-]+$/', $sName) &&
                    
171					\file_exists($sPathName.'/index.php'))
                    
172				{
                    
518			{
                    
519				\array_unshift($this->aProcessTemplate[$sName][$sPlace], $sHtml);
                    
520			}
                    
                
bookings.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 168 lines
                    
23		<p><strong><?php _e('Tickets','dbem'); ?></strong></p>
                    
24		<p><em><?php _e('You can have single or multiple tickets, where certain tickets become availalble under certain conditions, e.g. early bookings, group discounts, maximum bookings per ticket, etc.', 'dbem'); ?> <?php _e('Basic HTML is allowed in ticket labels and descriptions.','dbem'); ?></em></p>					
                    
25		<table class="form-table">
                    
54							<td class="ticket-status"><span class="<?php echo ($EM_Ticket->is_available()) ? 'ticket_on':'ticket_off'; ?>"></span></td>													
                    
55							<td class="ticket-name"><span class="ticket_name"><?php if($EM_Ticket->ticket_members) echo '* ';?><?php echo wp_kses_data($EM_Ticket->ticket_name); ?></span><br /><span class="ticket_description"><?php echo wp_kses($EM_Ticket->ticket_description,$allowedposttags); ?></span></td>
                    
56							<td class="ticket-price">
                    
88								<?php if( count($EM_Ticket->get_bookings()->bookings) == 0 ): ?>
                    
89								| <a href="<?php bloginfo('wpurl'); ?>/wp-load.php" class="ticket-actions-delete"><?php _e('Delete','dbem'); ?></a>
                    
90								<?php else: ?>
                    
90								<?php else: ?>
                    
91								| <a href="<?php echo EM_ADMIN_URL; ?>&amp;page=events-manager-bookings&ticket_id=<?php echo $EM_Ticket->ticket_id ?>"><?php _e('View Bookings','dbem'); ?></a>
                    
92								<?php endif; ?>
                    
99								<input type="hidden" class="ticket_end" name="em_tickets[<?php echo $count; ?>][ticket_end]" value="<?php echo ( !empty($EM_Ticket->ticket_end) ) ? date("Y-m-d", $EM_Ticket->end_timestamp):''; ?>" />
                    
100								<input type="hidden" class="ticket_min" name="em_tickets[<?php echo $count; ?>][ticket_min]" value="<?php echo $EM_Ticket->ticket_min ?>" />
                    
101								<input type="hidden" class="ticket_max" name="em_tickets[<?php echo $count; ?>][ticket_max]" value="<?php echo $EM_Ticket->ticket_max ?>" />
                    
                
Loader.php https://bitbucket.org/behamin_/mundocaravanas.git | PHP | 487 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
12 *
                    
13 * Install this file as application/third_party/MX/Loader.php
                    
14 *
                    
84			{
                    
85				array_unshift($this->_ci_model_paths, $module_path);
                    
86			}
                    
358		{
                    
359			echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));
                    
360		}
                    
486/** load the CI class for Modular Separation **/
                    
487(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';
                    
                
Api.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 272 lines
                    
1<?php
                    
2
                    
116    if ($errorRequired) {
                    
117      array_unshift($values, ts('Missing required field(s) :') . $missingField);
                    
118      return CRM_Import_Parser::ERROR;
                    
128      $tempMsg = "Invalid value for field(s) : $errorMessage";
                    
129      array_unshift($values, $tempMsg);
                    
130      $errorMessage = NULL;
                    
190      $error = $e->getMessage();
                    
191      array_unshift($values, $error);
                    
192      return CRM_Import_Parser::ERROR;
                    
                
class-extensions-page.php https://gitlab.com/chernushov881/charity-fund | PHP | 286 lines
                    
1<?php
                    
2
                    
93		foreach ($this->known_extensions as $k => $v) {
                    
94			$this->known_extensions[$k] = array_key_exists($k . '/' . $k . '.php', $plugins) ? 'installed' : 'not-installed';
                    
95			if ($this->known_extensions[$k] === 'installed') {
                    
95			if ($this->known_extensions[$k] === 'installed') {
                    
96				$this->known_extensions[$k] = is_plugin_active($k . '/' . $k . '.php') ? 'active' : 'installed';
                    
97			}
                    
162		unset($this->extensions['kali-forms-pro']);
                    
163		array_unshift($this->extensions, $pro);
                    
164
                    
251			case 'installed';
                    
252				$html .= '<a class="button button-primary" data-url="' . $this->generate_activate_link($extension['slug'] . '/' . $extension['slug'] . '.php') . '" data-action="activate" data-slug="' . $extension['slug'] . '">' . esc_html__('Activate', 'kaliforms') . '</a>';
                    
253				break;
                    
258				if ('no-license' === $extension['download_link']) {
                    
259					$html .= '<a class"button" href="' . admin_url('edit.php?post_type=kaliforms_forms&page=kaliforms-license') . '">' . esc_html__('Please activate your license', 'kaliforms') . '</a>';
                    
260				} else {
                    
                
videos.php https://github.com/jersub/gallery3-contrib.git | PHP | 302 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
47      while (videos::is_valid_path(dirname($tree->parents[0]))) {
                    
48        array_unshift($tree->parents, dirname($tree->parents[0]));
                    
49      }
                    
                
Model.php https://github.com/buldezir/dja_on_php.git | PHP | 509 lines
                    
1<?php
                    
2
                    
150    {
                    
151        array_unshift($args, $this);
                    
152        $matches = array();
                    
180    {
                    
181        array_unshift($args, get_called_class());
                    
182        $h = static::_getHelper($method);
                    
186    /**
                    
187     * return php-representaion of field value
                    
188     *
                    
241            if ($force) {
                    
242                $value = $fieldObj->toPhp($value);
                    
243            }
                    
248                if ($force) {
                    
249                    $value = $fieldObj->toPhp($value);
                    
250                }
                    
                
curl.php https://gitlab.com/afdallah/myongkir | PHP | 356 lines
                    
1<?php
                    
2/**
                    
49    		$verb = str_replace('simple_', '', $method);
                    
50    		array_unshift($arguments, $verb);
                    
51    		return call_user_func_array(array($this, '_simple_call'), $arguments);
                    
                
Arr.php https://gitlab.com/leon0399/damnit-engine | PHP | 475 lines
                    
1<?php
                    
2
                    
359        if (is_null($key)) {
                    
360            array_unshift($array, $value);
                    
361        } else {
                    
                
core.php https://github.com/justus/kohana-formo.git | PHP | 724 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2
                    
407
                    
408		array_unshift($this->_defaults['fields'], $item);
                    
409
                    
                
woocommerce-product-navigation.php https://gitlab.com/hunt9310/ras | PHP | 260 lines
                    
1<?php
                    
2/*
                    
52		// Include Required Files
                    
53		require_once( 'wpn-settings.php' );
                    
54		
                    
82  	  $support_link = '<a href="http://www.wpbackoffice.com">Premium Support</a>'; 
                    
83	  array_unshift($links, $support_link); 
                    
84	  
                    
85	  $docs_link = '<a href="http://www.wpbackoffice.com/plugins/woocommerce-product-navigation">Docs</a>'; 
                    
86	  array_unshift($links, $docs_link); 
                    
87	  
                    
87	  
                    
88	  $settings_link = '<a href="/wp-admin/admin.php?page=wpn-settings.php">Settings</a>'; 
                    
89	  array_unshift($links, $settings_link); 
                    
                
TableTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 230 lines
                    
1<?php
                    
2/**
                    
10
                    
11class TableTest extends \PHPUnit_Framework_TestCase
                    
12{
                    
18    /**
                    
19     * @var CollectionFactory | \PHPUnit_Framework_MockObject_MockObject
                    
20     */
                    
147        if ($withEmpty) {
                    
148            array_unshift($options, ['label' => '', 'value' => '']);
                    
149        }
                    
                
Router.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 214 lines
                    
1<?php
                    
2namespace Concrete\Core\Routing;
                    
134        foreach ($routes as $route => $route_settings) {
                    
135            array_unshift($route_settings, $route);
                    
136            call_user_func_array(array($this, 'register'), $route_settings);
                    
                
Abstract.php https://github.com/gryzz/crystal_magento.git | PHP | 358 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
184        $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), $this->_getModuleName());
                    
185        array_unshift($args, $expr);
                    
186        return Mage::app()->getTranslator()->translate($args);
                    
                
parsedownextra.php https://gitlab.com/RikaPM/vrindi | PHP | 526 lines
                    
1<?php
                    
2
                    
34        # identify footnote definitions before reference definitions
                    
35        array_unshift($this->BlockTypes['['], 'Footnote');
                    
36
                    
37        # identify footnote markers before before links
                    
38        array_unshift($this->InlineTypes['['], 'FootnoteMarker');
                    
39    }
                    
                
TextDescriptor.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 325 lines
                    
1<?php
                    
2
                    
85        if (isset($options['name'])) {
                    
86            array_unshift($description, '<comment>Name</comment>         '.$options['name']);
                    
87            array_unshift($description, $this->formatSection('router', sprintf('Route "%s"', $options['name'])));
                    
                
JUtilityTest.php https://github.com/dg482/joomla-platform.git | PHP | 502 lines
                    
1<?php
                    
2/**
                    
9
                    
10include_once JPATH_PLATFORM . '/joomla/utilities/utility.php';
                    
11
                    
13 * Test class for JUtility.
                    
14 * Generated by PHPUnit on 2009-10-26 at 22:28:32.
                    
15 *
                    
246		);**/
                    
247                require_once(JPATH_PLATFORM . '/joomla/registry/registry.php');
                    
248		$temp = JFactory::$application;
                    
294	{
                    
295		//include_once JPATH_BASE . '/libraries/joomla/application/application.php';
                    
296/**		$mockSession = $this->getMock('JSession', array('_start', 'getFormToken'), array(), 'JSession'.$counter, false);
                    
433	/**
                    
434	 * Test array_unshift_ref
                    
435	 *
                    
                
ClassNode.php https://gitlab.com/madwanz64/laravel | PHP | 169 lines
                    
1<?php
                    
2
                    
63
                    
64        array_unshift($this->interfaces, $interface);
                    
65    }
                    
                
Repository.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 466 lines
                    
1<?php namespace October\Rain\Config;
                    
2
                    
155
                    
156        array_unshift($array, $value);
                    
157
                    
                
memberships.civix.php https://gitlab.com/bmnepali/CiviCRM-Membership-Module | PHP | 348 lines
                    
1<?php
                    
2
                    
22  if ( is_array( $template->template_dir ) ) {
                    
23      array_unshift( $template->template_dir, $extDir );
                    
24  }
                    
119function _memberships_civix_upgrader() {
                    
120  if (!file_exists(__DIR__.'/CRM/Memberships/Upgrader.php')) {
                    
121    return NULL;
                    
167 *
                    
168 * Find any *.mgd.php files, merge their content, and return.
                    
169 *
                    
172function _memberships_civix_civicrm_managed(&$entities) {
                    
173  $mgdFiles = _memberships_civix_find_files(__DIR__, '*.mgd.php');
                    
174  foreach ($mgdFiles as $file) {
                    
216 *
                    
217 * Find any and return any files matching "ang/*.ang.php"
                    
218 *
                    
                
Filesystem.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 303 lines
                    
1<?php
                    
2
                    
129        } else {
                    
130            array_unshift($this->paths[$namespace], $path);
                    
131        }
                    
299            )
                    
300            || null !== parse_url($file, PHP_URL_SCHEME)
                    
301        ;
                    
                
Optimizer.php https://gitlab.com/pr0055/symfonypizza | PHP | 271 lines
                    
1<?php
                    
2
                    
58
                    
59        if (PHP_VERSION_ID < 50400 && self::OPTIMIZE_VAR_ACCESS === (self::OPTIMIZE_VAR_ACCESS & $this->optimizers) && !$env->isStrictVariables() && !$env->hasExtension('Twig_Extension_Sandbox')) {
                    
60            if ($this->inABody) {
                    
62                    if (get_class($node) !== 'Twig_Node') {
                    
63                        array_unshift($this->prependedNodes, array());
                    
64                    }
                    
180            $node->setAttribute('with_loop', false);
                    
181            array_unshift($this->loops, $node);
                    
182            array_unshift($this->loopsTargets, $node->getNode('value_target')->getAttribute('name'));
                    
182            array_unshift($this->loopsTargets, $node->getNode('value_target')->getAttribute('name'));
                    
183            array_unshift($this->loopsTargets, $node->getNode('key_target')->getAttribute('name'));
                    
184        } elseif (!$this->loops) {
                    
                
toolbar.php https://github.com/chrisinammo/arthurmcneil.git | PHP | 261 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: toolbar.php 9764 2007-12-30 07:48:11Z ircmaxell $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
18//Register the session storage class with the loader
                    
19JLoader::register('JButton', dirname(__FILE__).DS.'toolbar'.DS.'button.php');
                    
20
                    
132		$btn = func_get_args();
                    
133		array_unshift($this->_bar, $btn);
                    
134		return true;
                    
                
FixNesting.php https://github.com/mihalyf/gallery3-contrib.git | PHP | 328 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
43        $parent_name = $definition->info_parent;
                    
44        array_unshift($tokens, new HTMLPurifier_Token_Start($parent_name));
                    
45        $tokens[] = new HTMLPurifier_Token_End($parent_name);
                    
                
Captcha.php https://bitbucket.org/lanoversolutions/afterschool.git | PHP | 305 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Captcha.php 22275 2010-05-24 18:17:35Z alab $
                    
21 */
                    
23/** @see Zend_Form_Element_Xhtml */
                    
24require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** @see Zend_Captcha_Adapter */
                    
27require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
184        if (!empty($decorator)) {
                    
185            array_unshift($decorators, $decorator);
                    
186        }
                    
188        $decorator = array('Captcha', array('captcha' => $captcha));
                    
189        array_unshift($decorators, $decorator);
                    
190
                    
                
Abstract.php https://github.com/Enrise/Zend.git | PHP | 350 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
26 */
                    
27// require_once 'Zend/Mime.php';
                    
28
                    
186             */
                    
187            // require_once 'Zend/Mail/Transport/Exception.php';
                    
188            throw new Zend_Mail_Transport_Exception('Missing Zend_Mail object in _mail property');
                    
215             */
                    
216            // require_once 'Zend/Mail/Transport/Exception.php';
                    
217            throw new Zend_Mail_Exception('At least one mail header line is too long');
                    
264            // Ensure first part contains text alternatives
                    
265            array_unshift($this->_parts, $mp);
                    
266
                    
                
RedirectMiddleware.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 237 lines
                    
1<?php
                    
2namespace GuzzleHttp;
                    
129                $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER);
                    
130                array_unshift($historyHeader, $uri);
                    
131                array_unshift($statusHeader, $statusCode);
                    
                
Abstract.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 484 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
184        $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), $this->_getModuleName());
                    
185        array_unshift($args, $expr);
                    
186        return Mage::app()->getTranslator()->translate($args);
                    
                
Collection.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 705 lines
                    
1<?php namespace Illuminate\Support;
                    
2
                    
304	{
                    
305		array_unshift($this->items, $value);
                    
306	}
                    
                
Form.php https://bitbucket.org/kdms/sh-magento.git | PHP | 312 lines
                    
1<?php
                    
2/**
                    
211        else {
                    
212            array_unshift($options, array('value'=>'', 'label'=>Mage::helper('catalogsearch')->__('All')));
                    
213        }
                    
                
storage.php https://github.com/rietn/minima.git | PHP | 287 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id:storage.php 6961 2007-03-15 16:06:53Z tcp $
                    
4 * @package		Joomla.Framework
                    
120			jimport('joomla.filesystem.path');
                    
121			if ($path = JPath::find(JCacheStorage::addIncludePath(), strtolower($handler).'.php')) {
                    
122				require_once $path;
                    
153		if (!class_exists('JCacheStorageHelper', false)) {
                    
154			require_once JPATH_LIBRARIES.'/joomla/cache/storage/helpers/helper.php';
                    
155		}
                    
281			jimport('joomla.filesystem.path');
                    
282			array_unshift($paths, JPath::clean($path));
                    
283		}
                    
                
Main.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 282 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
155        if (!$found) {
                    
156            array_unshift($customerGroups, array(
                    
157                'value' => 0,
                    
                
array.idl.php https://github.com/diegoIta/hiphop-php.git | PHP | 376 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'base.php';
                    
4
                    
159
                    
160f('array_unshift', Int32,
                    
161  array('array' => VariantMap | Reference,
                    
                
seo_utils.php https://gitlab.com/Rad1calDreamer/honey | PHP | 151 lines
                    
75				{
                    
76					array_unshift($arDomains, array(
                    
77						'DOMAIN' => $defaultDomain,
                    
112					|| ($file["TYPE"]=="D" && !$USER->CanDoFileOperation('fm_view_listing',$arPath))
                    
113					|| ($file["TYPE"]=="F" && $file["NAME"]==".section.php")
                    
114				)
                    
125				if($f->isSystem()
                    
126					|| $file['TYPE'] == 'F' && in_array($p, array("urlrewrite.php"))
                    
127					|| $file['TYPE'] == 'D' && preg_match("/\/(bitrix|".\COption::getOptionString("main", "upload_dir", "upload").")\//", "/".$p."/")
                    
                
class.csstidy_print.php https://github.com/KenBoyer/CompactCMS.git | PHP | 446 lines
                    
1<?php
                    
2/**
                    
24 *
                    
25 * @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
                    
26 * @package csstidy
                    
158            $cssparsed = file_get_contents('cssparsed.css');
                    
159            $output .= $cssparsed; // Adds an invisible BOM or something, but not in css_optimised.php
                    
160            $output .= "\n</style>";
                    
195        if ($this->parser->get_cfg('timestamp')) {
                    
196            array_unshift($this->tokens, array(COMMENT, ' CSSTidy ' . $this->parser->version . ': ' . date('r') . ' '));
                    
197        }
                    
207
                    
208                This would've happened around line 830 in class.csstidy.php:
                    
209                  $this->sub_value_arr[] = '"' . trim($this->sub_value) . '"';
                    
                
tickets_fonctions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 270 lines
                    
1<?php
                    
2
                    
16	if (!isset($boucle->modificateur['criteres']['statut']) OR !isset($boucle->modificateur['criteres']['tout'])) {
                    
17		array_unshift($boucle->where,array("'IN'", "'$mstatut'", "'(\\'ouvert\\',\\'resolu\\',\\'ferme\\',\\'redac\\')'"));
                    
18	}
                    
21		if(($desactiver_public == 'on') && !test_espace_prive()){
                    
22			array_unshift($boucle->where,array("'='", "'$mstatut'", "'(\\'none\\')'"));
                    
23		}
                    
259	$p->code = "trouve_nom(".$id_auteur.")";
                    
260	$p->statut = 'php';
                    
261	return $p;
                    
                
Captcha.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 304 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Captcha.php 17616 2009-08-15 03:28:29Z yoshida@zend.co.jp $
                    
21 */
                    
23/** @see Zend_Form_Element_Xhtml */
                    
24require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** @see Zend_Captcha_Adapter */
                    
27require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
183        if (!empty($decorator)) {
                    
184            array_unshift($decorators, $decorator);
                    
185        }
                    
187        $decorator = array('Captcha', array('captcha' => $captcha));
                    
188        array_unshift($decorators, $decorator);
                    
189
                    
                
atomlib.php https://bitbucket.org/stephenharris/stephenharris.git | PHP | 368 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Atom Syndication Format PHP Library
                    
4 *
                    
5 * @package AtomLib
                    
6 * @link http://code.google.com/p/phpatomlib/
                    
7 *
                    
84
                    
85    var $FILE = "php://input";
                    
86
                    
90	/**
                    
91	 * PHP5 constructor.
                    
92	 */
                    
124        if ( ! function_exists( 'xml_parser_create_ns' ) ) {
                    
125        	trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
                    
126        	return false;
                    
                
AsciiSlugger.php https://gitlab.com/hoangduys4k5/laravelproject | PHP | 176 lines
                    
1<?php
                    
2
                    
109            $symbolsMap = $this->symbolsMap;
                    
110            array_unshift($transliterator, static function ($s) use ($symbolsMap, $locale) {
                    
111                return $symbolsMap($s, $locale);
                    
                
Config.php https://gitlab.com/x33n/grav | PHP | 383 lines
                    
1<?php
                    
2namespace Grav\Common\Config;
                    
7use RocketTheme\Toolbox\Blueprints\Blueprints;
                    
8use RocketTheme\Toolbox\File\PhpFile;
                    
9use RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator;
                    
216        if (file_exists(USER_DIR.$environment.'/config')) {
                    
217            array_unshift($items['streams']['schemes']['config']['prefixes'][''], $env_stream);
                    
218        }
                    
226        $filename = $filename
                    
227            ? CACHE_DIR . 'compiled/blueprints/' . $filename . '-' . $this->environment . '.php'
                    
228            : CACHE_DIR . 'compiled/blueprints/' . $checksum . '-' . $this->environment . '.php';
                    
228            : CACHE_DIR . 'compiled/blueprints/' . $checksum . '-' . $this->environment . '.php';
                    
229        $file = PhpFile::instance($filename);
                    
230        $cache = $file->exists() ? $file->content() : null;
                    
273        $filename = $filename
                    
274            ? CACHE_DIR . 'compiled/config/' . $filename . '-' . $this->environment . '.php'
                    
275            : CACHE_DIR . 'compiled/config/' . $checksum . '-' . $this->environment . '.php';
                    
                
get_start_menu.php https://gitlab.com/Rad1calDreamer/honey | PHP | 279 lines
                    
3define("NOT_CHECK_PERMISSIONS", true);
                    
4require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
5require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_js.php");
                    
43				if (!$bSkipRecent)
                    
44					$aItem['ONCLICK'] = 'BX.admin.startMenuRecent('.CUtil::PhpToJsObject($aItem).')';
                    
45			}
                    
54			{
                    
55				$aItem["MENU_URL"] = '/bitrix/admin/get_start_menu.php?mode=dynamic&lang='.LANGUAGE_ID.'&admin_mnu_module_id='.urlencode($item['module_id']).'&admin_mnu_menu_id='.urlencode($item['items_id']).($bSkipRecent?'&skip_recent=Y':'').($_REQUEST["back_url_pub"]<>''? '&back_url_pub='.urlencode($_REQUEST["back_url_pub"]):'').'&'.bitrix_sessid_get();
                    
56				$aItem['MENU_PRELOAD'] = false;
                    
99			unset($aRecent[$pos]);
                    
100		array_unshift($aRecent, $aLink);
                    
101		$aRecent = array_slice($aRecent, 0, $nLinks);
                    
118	//generate JavaScript array for popup menu
                    
119	echo CAdminPopup::PhpToJavaScript(__GetSubmenu($aSubmenu));
                    
120}
                    
                
RatingsStars.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 238 lines
                    
1<?php
                    
2
                    
7 * 
                    
8 * @file RatingsStars.php
                    
9 * @ingroup Ratings
                    
16	/**
                    
17	 * No LSB in pre-5.3 PHP *sigh*.
                    
18	 * This is to be refactored as soon as php >=5.3 becomes acceptable.
                    
25	/**
                    
26	 * No LSB in pre-5.3 PHP *sigh*.
                    
27	 * This is to be refactored as soon as php >=5.3 becomes acceptable.
                    
122		if ( $parameters['incsummary'] ) {
                    
123			array_unshift( $inputs, htmlspecialchars( Ratings::getRatingSummaryMessage( $parameters['page'], $parameters['tag'] ) ) . '<br />' );
                    
124		}
                    
                
EntityAutocomplete.php https://gitlab.com/guillaumev/alkarama | PHP | 361 lines
                    
1<?php
                    
2
                    
45    $info['#element_validate'] = array(array($class, 'validateEntityAutocomplete'));
                    
46    array_unshift($info['#process'], array($class, 'processEntityAutocomplete'));
                    
47
                    
                
connection.php https://github.com/ringmaster/system.git | PHP | 276 lines
                    
1<?php
                    
2/**
                    
86			else if ( preg_match("|CREATE DATABASE ([^ ]*)|", $qry, $matches) ) {
                    
87				array_unshift($cqueries, $qry);
                    
88			}
                    
                
template.php https://github.com/kbasarab/d7-core.git | PHP | 375 lines
                    
1<?php
                    
2
                    
66        if (!empty($vars['elements']['#grid'][$quality])) {
                    
67          array_unshift($vars['attributes_array']['class'], $quality . '-' . $vars['elements']['#grid'][$quality]);
                    
68        }
                    
70
                    
71      array_unshift($vars['attributes_array']['class'], 'grid-' . $vars['elements']['#grid']['columns']);
                    
72    }
                    
98  if (variable_get('preprocess_css', FALSE) && (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update')) {
                    
99    array_unshift($elements['styles']['#pre_render'], 'alpha_grid_css_aggregate');
                    
100  }
                    
                
Grid.php https://github.com/guiohm/magento-french.git | PHP | 183 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) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
143
                    
144        array_unshift($statuses, array('label'=>'', 'value'=>''));
                    
145
                    
                
Context.php https://github.com/ratbird/hope.git | PHP | 492 lines
                    
1<?php
                    
2
                    
379            'urlArgs', // whether to add args into url tokens
                    
380            'customVariables', // variables from the php API
                    
381            'currentFileInfo', // current file information object
                    
409            'importantScope',  // used to bubble up !important statements
                    
410            'customVariables', // variables from the php API
                    
411        ];
                    
464    {
                    
465        array_unshift($this->frames, $frame);
                    
466    }
                    
                
facebook.php https://gitlab.com/iamgraeme/royalmile | PHP | 173 lines
                    
1<?php
                    
2/**
                    
17
                    
18require_once "base_facebook.php";
                    
19
                    
21 * Extends the Basepsp_Facebook class with the intent of using
                    
22 * PHP sessions to store user ids and access tokens.
                    
23 */
                    
36   * Identical to the parent constructor, except that
                    
37   * we start a PHP session to store the user ID and
                    
38   * access token if during the course of execution
                    
44   * shares the domain with other apps).
                    
45   * @see Basepsp_Facebook::__construct in facebook.php
                    
46   */
                    
108   * Provides the implementations of the inherited abstract
                    
109   * methods.  The implementation uses PHP sessions to maintain
                    
110   * a store for authorization codes, user ids, CSRF states, and
                    
                
PhpiredisStreamConnection.php https://bitbucket.org/larryg/powerhut.git | PHP | 197 lines
                    
20 * This class provides the implementation of a Predis connection that uses PHP's
                    
21 * streams for network communication and wraps the phpiredis C extension (PHP
                    
22 * bindings for hiredis) to parse and serialize the Redis protocol. Everything
                    
31 *
                    
32 * For instructions on how to build and install the phpiredis extension, please
                    
33 * consult the repository of the project.
                    
74    /**
                    
75     * Checks if the phpiredis extension is loaded in PHP.
                    
76     */
                    
102    {
                    
103        $reader = phpiredis_reader_create();
                    
104
                    
152
                    
153        while (PHPIREDIS_READER_STATE_INCOMPLETE === $state = phpiredis_reader_get_state($reader)) {
                    
154            $buffer = fread($socket, 4096);
                    
                
next-post.php https://gitlab.com/bhargavi_dcw/dflocal | PHP | 279 lines
                    
102</style>
                    
103<?php 
                    
104}
                    
109    <div class="wrap">
                    
110	<form method="post" id="next_post_form" action="options.php">
                    
111		<?php settings_fields('next_post');
                    
131    <input type="text" name="next_post[before_prev_link]" id="before_prev_link" 
                    
132		value="<?php echo esc_html($options['before_prev_link']); ?>" />  </label></p>
                    
133    
                    
141    <p><?php _e('Shortcode:'); ?> <strong>[previous_custom_post]</strong><br />
                    
142    <?php _e('Template tag:'); ?> <strong>&lt;?php previous_custom_post(); ?&gt;</strong></p>
                    
143    </div>
                    
158    <p><?php _e('Shortcode:'); ?> <strong>[next_custom_post]</strong><br />
                    
159    <?php _e('Template tag:'); ?> <strong>&lt;?php next_custom_post(); ?&gt;</strong></p>
                    
160    </div>
                    
                
sqlAdmin_fonctions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 237 lines
                    
1<?php
                    
2$GLOBALS['sqla_version'] = '0.3.5';
                    
29	include_spip('inc/flock');
                    
30	$files = preg_files(_DIR_CONNECT, '.*\.php');
                    
31	$liste = array();
                    
33		$f = str_replace(_DIR_CONNECT,'',$f);
                    
34		$f = str_replace('.php','',$f);
                    
35		$liste[] = $f;
                    
51	
                    
52	if ($histo['fonction']) array_unshift($historique, $histo);
                    
53	if (count($historique)>5) array_pop($historique);
                    
                
 

Source

Language