PageRenderTime 267ms queryTime 38ms sortTime 8ms getByIdsTime 67ms findMatchingLines 92ms

100+ results results for 'php array_push repo:krihal/Tiny-Tiny-RSS' (267 ms)

Not the results you expected?
generage-wiki.php https://github.com/bhaumik25/zend-framework.git | PHP | 337 lines
                    
1<?php
                    
2
                    
4
                    
5require_once dirname(__FILE__) . '/config.php';
                    
6require_once dirname(__FILE__) . '/library/Confluence/Book.php';
                    
6require_once dirname(__FILE__) . '/library/Confluence/Book.php';
                    
7require_once dirname(__FILE__) . '/library/Confluence/Chapter.php';
                    
8
                    
77
                    
78    array_push($new, 'Appendix');
                    
79}
                    
90
                    
91    array_push($prev, $wikiPage->title);
                    
92}
                    
106
                    
107    array_push($new, $mainChapter->getTitle());
                    
108
                    
                
PaymentMethodGateway.php https://github.com/strangerstudios/paid-memberships-pro.git | PHP | 363 lines
                    
1<?php
                    
2namespace Braintree;
                    
186        $billingAddressSignature = AddressGateway::updateSignature();
                    
187        array_push($billingAddressSignature, [
                    
188            'options' => [
                    
                
Text.php https://bitbucket.org/spenna/alexoo_produzione.git | PHP | 289 lines
                    
1<?php
                    
2/**
                    
148                foreach ($this->__inserts[$__position] as $__item) {
                    
149                    array_push($this->__inserts[$__position - $count], $__item);
                    
150                }
                    
161        if (!isset($this->__inserts[$position])) $this->__inserts[$position] = array();
                    
162        array_push($this->__inserts[$position], $content);
                    
163    }
                    
                
zkuser.php https://gitlab.com/zubair_xenomorph/zubair_zklib | PHP | 269 lines
                    
1<?php
                    
2    function getSizeUser($self) {
                    
100                    @socket_recvfrom($self->zkclient, $data_recv, 1032, 0, $self->ip, $self->port);
                    
101                    array_push( $self->userdata, $data_recv);
                    
102
                    
                
fitzgerald.php https://bitbucket.org/timcubb/mcms.git | PHP | 366 lines
                    
1<?php
                    
2
                    
6
                    
7    /*  Fitzgerald - a single file PHP framework
                    
8     *  (c) 2010 Jim Benton and contributors, released under the MIT license
                    
210                }
                    
211                array_push($arr_filter[$method], $filterName);
                    
212            }
                    
269            extract($locals);
                    
270            include(realpath($this->root() . 'views/' . $fileName . '.php'));
                    
271            return ob_get_clean();
                    
334            if (method_exists($this, $methodName)) {
                    
335                array_push($this->mappings, array($httpMethod, $url, $methodName, $conditions));
                    
336            }
                    
                
Imap.php https://github.com/rkabir/Ushahidi_Web.git | PHP | 408 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
34		More Info about above options at:
                    
35		http://php.net/manual/en/function.imap-open.php
                    
36		*/
                    
169
                    
170			array_push($messages, array('message_id' => $message_id,
                    
171										'date' => $date,
                    
393		// but AOL uses type 1 (multipart), which is not handled here.
                    
394		// There are no PHP functions to parse embedded messages,
                    
395		// so this just appends the raw source to the main message.
                    
                
lib.php https://gitlab.com/MotoSport/morgue | PHP | 307 lines
                    
1<?php
                    
2
                    
153        foreach($tickets as $k => $v) {
                    
154            array_push($tickets_ids, $v['ticket']);
                    
155        }
                    
                
DoctrineJsonView.php https://gitlab.com/gothcon/cthulhu | PHP | 347 lines
                    
1<?php
                    
2require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR."../Views/HtmlView.php");
                    
90	foreach($metadata->associationMappings as $propertyName => $mappingInformation){
                    
91		array_push($propertyNames,$propertyName);
                    
92	}
                    
                
Sql.php https://github.com/sgtcarneiro/horde.git | PHP | 365 lines
                    
1<?php
                    
2/**
                    
8 * See the enclosed file LICENSE for license information (ASL). If you
                    
9 * did not receive this file, see http://www.horde.org/licenses/asl.php.
                    
10 *
                    
192        $query .= ' WHERE memo_owner = ? AND memo_id = ?';
                    
193        array_push($values, $this->_notepad, $noteId);
                    
194
                    
                
StaffController.php https://gitlab.com/kalasi/vispunchcard.com | PHP | 329 lines
                    
1<?php
                    
2namespace App\Http\Controllers\Manage;
                    
40
                    
41                array_push($staffs,$userInfo);
                    
42            }
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
36		foreach( $admins as $k => $v ) {
                    
37			array_push($admin_review_ids, $v["user_id"]);
                    
38		};
                    
472		foreach( $project_keywords_exp as $k => $v ) {
                    
473			array_push($project_keywordstrim, trim($v));
                    
474		}
                    
                
Spider.php https://gitlab.com/lalbert/daric | PHP | 395 lines
                    
1<?php
                    
2
                    
138        if (!\in_array($link, $this->links)) {
                    
139            \array_push($this->links, $link);
                    
140        }
                    
177     *
                    
178     * @see http://docs.guzzlephp.org/en/latest/request-options.html
                    
179     *
                    
                
class.Object.php https://github.com/janislankovskis/OwlSite.git | PHP | 678 lines
                    
1<?php 
                    
2
                    
156		{
                    
157			array_push($_SESSION[$this->sessionName]['opened'], $parent);
                    
158		}
                    
                
Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
                    
1<?php
                    
2require_once dirname(__FILE__) . '/../ExtensionInterface.php';
                    
102                        $directory_path = $file . DIRECTORY_SEPARATOR;
                    
103                        array_push($directories, $directory_path);
                    
104                    } elseif (is_file($file)) {
                    
                
upgrade.php https://github.com/raymanuk/moodle.git | PHP | 182 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
93                    // We assume the middle separator (rounding down).
                    
94                    $divisionindex = round($sepcount / 2, 0, PHP_ROUND_HALF_DOWN);
                    
95
                    
109                }
                    
110                array_push($newtoolbars, $toolbar);
                    
111            }
                    
                
Console.php https://github.com/andersruberg/Delfinen.git | PHP | 307 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Console.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Client/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Tool/Framework/Client/Interactive/InputInterface.php';
                    
32
                    
35 */
                    
36require_once 'Zend/Tool/Framework/Client/Interactive/OutputInterface.php';
                    
37
                    
77    /**
                    
78     * main() - This is typically called from zf.php. This method is a
                    
79     * self contained main() function.
                    
                
quipthread.class.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
204            $email = $member->get('email');
                    
205            if (!empty($email)) array_push($moderators,$email);
                    
206        }
                    
279
                    
280        $this->xpdo->getService('mail', 'mail.modPHPMailer');
                    
281        if (!$this->xpdo->mail) return false;
                    
                
Nirvanix.php https://github.com/mrbanzai/zf2.git | PHP | 403 lines
                    
1<?php
                    
2/**
                    
325                $folderPath = $response->ListFolder->Folder->Path;
                    
326                array_push($resultArray, $folderPath);
                    
327                $this->getAllFolders('/' . $folderPath, $resultArray);
                    
330                    $folderPath = $arrayElem->Path;
                    
331                    array_push($resultArray, $folderPath);
                    
332                    $this->getAllFolders('/' . $folderPath, $resultArray);
                    
                
gk.portal_mode_1.php https://gitlab.com/ppapadatis/Videolearn | PHP | 237 lines
                    
1<?php
                    
2
                    
144			// creating table with news content
                    
145			array_push($news_html_tab, $news_generated_content);
                    
146		}
                    
                
lexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
                    
1<?php  // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $
                    
2
                    
2
                    
3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 
                    
4 * http://sourceforge.net/projects/lamplib
                    
143        function enter($state) {
                    
144            array_push($this->_stack, $state);
                    
145        }
                    
165     *    Some optimisation to make the sure the
                    
166     *    content is only scanned by the PHP regex
                    
167     *    parser once. Lexer modes must not start
                    
                
PatternSet.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 491 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: PatternSet.php 257 2007-10-21 00:27:07Z hans $
                    
4 *
                    
21
                    
22include_once 'phing/system/io/FileReader.php';
                    
23include_once 'phing/types/DataType.php';
                    
160    private function addPatternToList(&$list) {
                    
161    	$num = array_push($list, new PatternSetNameEntry());
                    
162    	return $list[$num-1];
                    
286    		$stk = array();
                    
287    		array_push($stk, $this);
                    
288    		$this->dieOnCircularReference($stk, $p);
                    
309    		if ($pattern !== null && strlen($pattern) > 0) {
                    
310    			array_push($tmpNames, $pattern);
                    
311    		}
                    
                
Console.php https://github.com/luisbraschi/ursp.git | PHP | 307 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Console.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26#require_once 'Zend/Tool/Framework/Client/Abstract.php';
                    
27
                    
30 */
                    
31#require_once 'Zend/Tool/Framework/Client/Interactive/InputInterface.php';
                    
32
                    
35 */
                    
36#require_once 'Zend/Tool/Framework/Client/Interactive/OutputInterface.php';
                    
37
                    
77    /**
                    
78     * main() - This is typically called from zf.php. This method is a
                    
79     * self contained main() function.
                    
                
renderer.php https://github.com/cgtaylor/moodle.git | PHP | 298 lines
                    
1<?php
                    
2
                    
29// get parent class
                    
30require_once($CFG->dirroot.'/mod/hotpot/attempt/hp/6/renderer.php');
                    
31
                    
53        parent::init($quiz);
                    
54        array_push($this->javascripts, 'mod/hotpot/attempt/hp/6/jmix/jmix.js');
                    
55    }
                    
                
class.TwitterPlugin.php https://github.com/dagda/ThinkUp.git | PHP | 326 lines
                    
1<?php
                    
2/**
                    
111        $alltab->addDataset($alltabds);
                    
112        array_push($child_tabs, $alltab);
                    
113
                    
118        $mrttab->addDataset($mrttabds);
                    
119        array_push($child_tabs, $mrttab);
                    
120
                    
125        $mstab->addDataset($mstabds);
                    
126        array_push($child_tabs, $mstab);
                    
127
                    
145            $amtab->addDataset($amtabds2);
                    
146            array_push($child_tabs, $amtab);
                    
147
                    
153            $artab->addDataset($artabds);
                    
154            array_push($child_tabs, $artab);
                    
155
                    
                
vpsbaselib.php https://github.com/lxcenter/hypervm.git | PHP | 420 lines
                    
1<?php 
                    
2
                    
112	$this->newlocation = $this->corerootdir;
                    
113	$nlist = array_push_unique($nlist, $this->corerootdir);
                    
114
                    
                
Main.php https://gitlab.com/Skull3x/BuildBattlePE-1 | PHP | 419 lines
                    
1<?php
                    
2namespace ImagicalGamer\BuildBattle;
                    
128									$this->getServer()->getLevelByName($args[1])->loadChunk($this->getServer()->getLevelByName($args[1])->getSafeSpawn()->getFloorX(), $this->getServer()->getLevelByName($args[1])->getSafeSpawn()->getFloorZ());
                    
129									array_push($this->arenas,$args[1]);
                    
130									$this->currentLevel = $args[1];
                    
                
Attribute.php https://github.com/rodneyrehm/php-template-engines.git | PHP | 324 lines
                    
1<?php
                    
2/*
                    
195			{
                    
196				array_push($list, $attribute);
                    
197				$parent->set('call:attribute', $list);
                    
273			}
                    
274			// Pack the tags into the PHP code.
                    
275			foreach($tags as $tag)
                    
                
DataFeed.php https://github.com/neek-syndk8/OpenBH-Cash-Generator.git | PHP | 232 lines
                    
1<?php
                    
2/******** Syndk8's OpenBH *********
                    
20/**
                    
21 *   baselibs/DataFeed.php
                    
22 *   The DataFeed class helps us map keywords, urls etc
                    
24 *   Networks either in CSV Format or XML
                    
25 *   For the fmap array check the config/config.php file
                    
26 *
                    
48		if(!array_key_exists('keyword',$this->fmap)) {
                    
49			writeLog("Missing 'keyword' in 'feedmapping' (see config..php)");
                    
50			return false; // ... missing keyword mapping
                    
60                    while(!feof($handle)) {
                    
61                        if (strnatcmp(phpversion(),'5.3.0') >= 0) {
                    
62                            $data = fgetcsv($handle, 10000, OpenBHConf::get('csv_delimiter'), OpenBHConf::get('csv_enclosure'),OpenBHConf::get('csv_escape'));
                    
65                        }
                    
66		        array_push($this->feed,$data);
                    
67		    }
                    
                
Meta.php https://gitlab.com/ebrjose/comcebu | PHP | 461 lines
                    
1<?php
                    
2namespace AIOSEO\Plugin\Common\Migration;
                    
8
                    
9// phpcs:disable WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound
                    
10
                    
252		if ( ! in_array( 'excludePosts', $deprecatedOptions, true ) ) {
                    
253			array_push( $deprecatedOptions, 'excludePosts' );
                    
254			aioseo()->internalOptions->internal->deprecatedOptions = $deprecatedOptions;
                    
                
template.class.php https://github.com/konfirm/konsolidate.git | PHP | 383 lines
                    
1<?php
                    
2
                    
53		/**
                    
54		 *  Does the server support short PHP open tags
                    
55		 *  @name    _shortopentag
                    
149									if ( is_int( $sKey ) )
                    
150										array_push( $mCurrent, $mVal );
                    
151									else
                    
153							else
                    
154								array_push( $mCurrent, $mValue );
                    
155							break;
                    
267
                    
268				//  get the buffer contents and convert the request-time PHP tags to normal PHP tags
                    
269				$sCapture = strtr( ob_get_contents(), Array( "<!?"=>"<?", "?!>"=>"?>" ) );
                    
277					$sCapture = preg_replace( "/<\?=\s*/", "<?php echo ", $sCapture );
                    
278					$sCapture = preg_replace( "/<\?[^php]/", "<?php", $sCapture );
                    
279				}
                    
                
ShellDispatcherTest.php https://bitbucket.org/LeThanhDat/firstdummyapp.git | PHP | 577 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
                    
16 * @package       Cake.Test.Case.Console
                    
16 * @package       Cake.Test.Case.Console
                    
17 * @since         CakePHP(tm) v 1.2.0.5432
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
208		$params = array(
                    
209			'./console/cake.php',
                    
210			'bake',
                    
267		$expected = array(
                    
268			'./console/cake.php', 'schema', 'run', 'create', '-dry', '-f', '-name', 'DbAcl'
                    
269		);
                    
                
main.php https://gitlab.com/BaseX/BaseX | PHP | 254 lines
                    
1<?php
                    
2// $Id: main.php 2 2005-11-02 18:23:29Z skalpa $
                    
3//  ------------------------------------------------------------------------ //
                    
4//                XOOPS - PHP Content Management System                      //
                    
5//                    Copyright (c) 2000 XOOPS.org                           //
                    
34} else {
                    
35    include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';
                    
36    include_once XOOPS_ROOT_PATH."/modules/system/admin/groups/groups.php";
                    
57    case "modify":
                    
58        include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
                    
59        modifyGroup($g_id);
                    
62        if (!$GLOBALS['xoopsSecurity']->check()) {
                    
63            redirect_header("admin.php?fct=groups&amp;op=adminMain", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
                    
64        }
                    
96            if (count($system_catids) > 0) {
                    
97                array_push($admin_mids, 1);
                    
98                foreach ($system_catids as $s_cid) {
                    
                
ApiData.php https://github.com/holsinger/openfloor.git | PHP | 418 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
35    		if (!$this->state) $this->state = $this->getStateFromZip ();
                    
36    		foreach ($this->districtsArray as $key => $value) array_push($repIdArray,$this->getRepFromDistrict ($value));    		
                    
37    	} else if ($this->city && $this->state) {
                    
199		function getPersonalInfo ($id) {
                    
200			$resultsArray = $this->callAPI ('http://api.sunlightlabs.com/people.getPersonInfo.php?id='.$id,'getPersonInfo');
                    
201			return $resultsArray;
                    
217			//sunlight api url
                    
218			$url='http://api.sunlightlabs.com/places.getDistrictsFromZip.php?zip='.$zip;
                    
219
                    
225			//add to districts array
                    
226			foreach ($resultsArray['districts'] as $value) array_push($this->districtsArray,$value['district']);
                    
227			
                    
242			//sunlight api url
                    
243			$url='http://api.sunlightlabs.com/people.reps.getRepFromDistrict.php?state='.$this->state.'&district='.$value;
                    
244
                    
                
method.nav_blocks_player.php https://github.com/txdv/psychostats4.git | PHP | 282 lines
                    
1<?php
                    
2/**
                    
22		if (!array_key_exists('player_actions', $blocks)) {
                    
23			array_push_after($blocks, 'player_kill_profile', array(
                    
24				'title' => trans('Player Actions'),
                    
190			
                    
191		array_push_after($blocks['player_kill_profile']['rows'],
                    
192			'kills',
                    
207
                    
208		array_push_after($blocks['player_kill_profile']['rows'],
                    
209			'killed',
                    
217
                    
218		array_push_after($blocks['player_kill_profile']['rows'],
                    
219			'headshot_kills',
                    
228
                    
229		array_push_after($blocks['player_kill_profile']['rows'],
                    
230			'headshot_kills',
                    
                
scheduled_task.php https://github.com/ankitagarwal/moodle.git | PHP | 466 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
277            if ($match == '*') {
                    
278                array_push($range, range($min, $max));
                    
279            } else if ($match == '/') {
                    
298                    if ($match >= $min && $match <= $max) {
                    
299                        array_push($range, $match);
                    
300                    }
                    
358
                    
359        // We need to change to the server timezone before using php date() functions.
                    
360        \core_date::set_default_server_timezone();
                    
                
customforms.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 428 lines
                    
1<?php
                    
2/**
                    
141			{
                    
142				array_push($r,$role->access_level);
                    
143			}
                    
284					{
                    
285						array_push($options,$i);
                    
286					}
                    
                
view-offer_ride_second.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 258 lines
                    
1<?php
                    
2	  include_once(TPATH_CLASS_APP . "class.customer.php");
                    
30			#Server side validation start
                    
31			include_once(TPATH_LIBRARIES."/general/validation.class.php");
                    
32			$validobj = new validation();
                    
84			#Server side validation start
                    
85			include_once(TPATH_LIBRARIES."/general/validation.class.php");
                    
86			$validobj = new validation();
                    
136	$new_arr['lon'] = number_format($lat_long[1],6,'.','');
                    
137	array_push($points_arr, $new_arr);
                    
138	for($i=1;$i<=6;$i++)
                    
146			$new_arr['lon'] = number_format($lat_long[1],6,'.','');
                    
147			array_push($points_arr, $new_arr);
                    
148		}
                    
154	$new_arr['lon'] = number_format($lat_long[1],6,'.','');
                    
155	array_push($points_arr, $new_arr);
                    
156	$loop = count($points_arr)-1;
                    
                
functions.php https://github.com/iconifyit/SkyBlue-1.1.git | PHP | 428 lines
                    
1<?php
                    
2
                    
39        if ($field->formid == $formId) {
                    
40            array_push($filtered, $field);
                    
41        }
                    
89				    if (in_array($fieldName, $errorFields)) continue;
                    
90				    array_push($errorFields, $fieldName);
                    
91				    $Request->$fieldName = "";
                    
97					}
                    
98					array_push($errors, array('errStr'=>$errorMessage, 'fieldName'=>$fieldName));
                    
99				}
                    
231		    if (trim($tmp[$i]) == "") continue;
                    
232		    array_push($list, formbuilder_split_option($tmp[$i]));
                    
233		}
                    
                
helper.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 392 lines
                    
5* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
                    
6* @license		GNU/GPL, see LICENSE.php
                    
7* Joomla! is free software. This version may have been modified pursuant
                    
10* other free or open source software licenses.
                    
11* See COPYRIGHT.php for copyright notices and details.
                    
12*/
                    
57					if(!array_key_exists($row->id, $unresolved) || $unresolved[$row->id] < $maxdepth) {
                    
58						array_push($rows, $row);
                    
59						// so let us do max $maxdepth passes
                    
135				// Include the legacy library file
                    
136				require_once(dirname(__FILE__).DS.'legacy.php');
                    
137				mosShowHFMenu($params, 1);
                    
347					// hrm...this is a bit dickey
                    
348					$link = str_replace('index.php', 'index2.php', $tmp->url);
                    
349					$data = '<a href="'.$link.'" onclick="window.open(this.href,\'targetWindow\',\''.$attribs.'\');return false;">'.$image.$tmp->name.'</a>';
                    
                
SectionProfiler.php https://gitlab.com/link233/bootmw | PHP | 529 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Arbitrary section name based PHP profiling.
                    
4 *
                    
25/**
                    
26 * Custom PHP profiler for parser/DB type section names that xhprof/xdebug can't handle
                    
27 *
                    
315			foreach ( $working as $item ) {
                    
316				array_push( $output, $item );
                    
317			}
                    
341		$space = str_repeat( ' ', $level );
                    
342		# The ugly double sprintf is to work around a PHP bug,
                    
343		# which has been fixed in recent releases.
                    
                
activitymanager.php https://gitlab.com/wuhang2003/core | PHP | 534 lines
                    
1<?php
                    
2/**
                    
229	public function registerConsumer(\Closure $callable) {
                    
230		array_push($this->consumersClosures, $callable);
                    
231		$this->consumers = [];
                    
243	public function registerExtension(\Closure $callable) {
                    
244		array_push($this->extensionsClosures, $callable);
                    
245		$this->extensions = [];
                    
                
Nodes.php https://gitlab.com/diva-lab/essam-labs | PHP | 314 lines
                    
1<?php 
                    
2require_once 'CRUD.php'; 
                    
43   public function enable_relation(){ 
                    
44		array_push(static::$primary_fields ,'lang_name','$category_title','category_alias','content_id','title','alias','summary','body','lang_id', 
                    
45		'first_name','last_name','meta_keys','meta_description','model_name','layout_name','theme_name'); 
                    
                
ShellDispatcherTest.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 577 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
                    
16 * @package       Cake.Test.Case.Console
                    
16 * @package       Cake.Test.Case.Console
                    
17 * @since         CakePHP(tm) v 1.2.0.5432
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
208		$params = array(
                    
209			'./console/cake.php',
                    
210			'bake',
                    
267		$expected = array(
                    
268			'./console/cake.php', 'schema', 'run', 'create', '-dry', '-f', '-name', 'DbAcl'
                    
269		);
                    
                
tags.php https://github.com/xmirror/piwigo.git | PHP | 531 lines
                    
5// | Copyright(C) 2008-2013 Piwigo Team                  http://piwigo.org |
                    
6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
                    
7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
                    
28
                    
29include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
                    
30check_status(ACCESS_ADMINISTRATOR);
                    
219  {
                    
220    array_push(
                    
221      $page['errors'],
                    
300
                    
301      array_push(
                    
302        $page['infos'],
                    
408  array(
                    
409    'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=tags',
                    
410    'PWG_TOKEN' => get_pwg_token(),
                    
                
project_hierarchy_api.php https://github.com/fusenigk/mantisbt-1.git | PHP | 290 lines
                    
1<?php
                    
2# MantisBT - A PHP based bugtracking system
                    
26 *
                    
27 * @uses constant_inc.php
                    
28 * @uses database_api.php
                    
30
                    
31require_api( 'constant_inc.php' );
                    
32require_api( 'database_api.php' );
                    
283		if( !in_array( $t_elem, $t_subprojects ) ) {
                    
284			array_push( $t_subprojects, $t_elem );
                    
285			$t_todo = array_merge( $t_todo, project_hierarchy_get_subprojects( $t_elem, $p_show_disabled ) );
                    
                
class.redux_sass.php https://gitlab.com/eita/agencia-consumo-responsavel | PHP | 255 lines
                    
1<?php
                    
2
                    
67            if (!in_array($path, self::$path)) {
                    
68                array_push(self::$path, $path);
                    
69            }
                    
73            if (!in_array($import, self::$import)) {
                    
74                array_push (self::$import, $import);
                    
75            }
                    
139                        $GLOBALS['redux_scss_compiler'] = true;
                    
140                        require( "scssphp/scss.inc.php" );
                    
141                    }
                    
190                $GLOBALS['redux_scss_compiler'] = true;
                    
191                require( "scssphp/scss.inc.php" );
                    
192            }
                    
                
mlm_fns.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 580 lines
                    
1<?php
                    
2
                    
253    {
                    
254      array_push($list, array(mysql_result($result, $i, 0),
                    
255                              mysql_result($result, $i, 1)));
                    
276    {
                    
277      array_push($list, array(mysql_result($result, $i, 0), 
                    
278                 mysql_result($result, $i, 1)));
                    
298    {
                    
299      array_push($list, array(mysql_result($result, $i, 0), 
                    
300                              mysql_result($result, $i, 1)));
                    
328                   mysql_result($result, $i, 1), $listname, $listid); 
                    
329      array_push($list, $row);
                    
330    }
                    
358    {
                    
359      array_push($list, array(mysql_result($result, $i, 0), 
                    
360                              mysql_result($result, $i, 1), 
                    
                
Chapter05.tex https://github.com/bergmannf/hw_spas10.git | LaTeX | 205 lines
                    
18
                    
19The graphical representation of the login is provided in the \texttt{login\_form.inc.php} file, whereas the login-logic (the checking of the username and password) is provided via the \texttt{login.inc.php} file.
                    
20
                    
20
                    
21This way the developer can reuse the login form by including the \texttt{login\_form.inc.php}-file and the page the form will redirect to in it's form field must implement the \texttt{login.inc.php} as well.
                    
22
                    
59
                    
60The search functionality is provided via two files: the form to enter the possible values is declared in the \texttt{products.php} file, whereas the real search function is declared in the \texttt{database.inc.php} file.
                    
61
                    
121
                    
122The product details are displayed via the \texttt{product\_details.php} file that queries the database via the \texttt{database.inc.php} file and the \texttt{id} that was provided from the search form via \texttt{GET}-request.
                    
123
                    
170
                    
171Therefore many files are includes: for example the header, footer and sidebar of every web page are implemented in one php file that is included in the page (\texttt{footer.php, sidebar.php, header.php}).
                    
172
                    
                
users_dao.class.singleton.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 278 lines
                    
1<?php
                    
2
                    
133            );
                    
134            array_push($json, $tmp);
                    
135        }
                    
150            );
                    
151            array_push($json, $tmp);
                    
152        }
                    
                
main2.php https://github.com/MyITCRM/myitcrm1.git | PHP | 373 lines
                    
1<?php
                    
2require('include.php');
                    
2require('include.php');
                    
3if(!xml2php("schedule")) {
                    
4	$smarty->assign('error_msg',"Error in language file");
                    
90	while (!$rs->EOF ){
                    
91		array_push($sch, array(
                    
92				 "SCHEDULE_ID"		=> $rs->fields["SCHEDULE_ID"],
                    
322				$verticalblocks = renderVerticalEventBlocks($_events, $hrdateline, ($hrdateline+3599), true, $_schedule);
                    
323 				$data .= '<td width="'. $splitwidth .'%" class="'. $tdclass .'"'. iif(empty($verticalblocks), ' style="CURSOR: pointer;" onMouseOver="javascript:this.className=\'calhrbg\';" onMouseOut="javascript:this.className=\''. $tdclass .'\';" onClick="javascript:window.location.href=\'index.php?_m=teamwork&_a=insertevent&startdateline='. $hrdateline .'\';" title="'. $_SWIFT["language"]["insertevent"] .'"') .'>';
                    
324 //				$data .= "Event: ".date("d m Y h:i:s A", $_events[8]["startdateline"])."<BR />";
                    
                
Admin.php https://github.com/digicontents/Dizkus.git | PHP | 325 lines
                    
1<?php
                    
2/**
                    
176                }
                    
177                array_push($allusers, $user);
                    
178            }
                    
                
Commandline.php https://github.com/vinnivinsachi/Vincent-DR.git | PHP | 467 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Commandline.php,v 1.11 2005/05/26 13:10:53 mrook Exp $
                    
4 *
                    
87        } else {
                    
88            array_push($this->arguments, $argument);
                    
89        }
                    
                
Api.php https://bitbucket.org/atipso/atipso-magento-extension.git | PHP | 275 lines
                    
1<?php
                    
2/**
                    
28		// // Set tax percent (its always percent right ? right ?)
                    
29		// // Inspired by Magento's app\code\core\Mage\Tax\Model\Observer.php.
                    
30		// // Please note that this value must be manually added into the 'result'
                    
72					'label' => $productAttribute->getFrontend()->getLabel(),
                    
73					// // Next one from function 'getConfigurableAttributesAsArray' in app\code\core\Mage\Catalog\Model\Product\Type\Configurable.php
                    
74					'options' => $attribute->getPrices()
                    
79				);
                    
80				array_push($configurable_attributes, $att);
                    
81
                    
122				
                    
123				array_push($used_products, 
                    
124					// $rp->getData()
                    
150					// // The next line has 'option_id', 'title', 'default_price' etc
                    
151					array_push($ov, $v->getData());
                    
152				}
                    
                
inline_editing.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 234 lines
                    
1<?php
                    
2	require_once('../qcubed.inc.php');
                    
106			if ($this->intEditPersonId == -1)
                    
107				array_push($objPersonArray, new Person());
                    
108
                    
                
write_cp_options.php https://bitbucket.org/gfelizola/pacaembu-institucional.git | PHP | 256 lines
                    
1<?php
                    
2/**
                    
19			<div class="postbox">
                    
20				<div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
                    
21				<h3 class="hndle" id="config_edit_<?php echo $post_type; ?>">
                    
21				<h3 class="hndle" id="config_edit_<?php echo $post_type; ?>">
                    
22					<?php _e('Write options', FB_ADMINIMIZE_TEXTDOMAIN ); echo ' - ' . $post_type_object->label; ?>
                    
23				</h3>
                    
29							<tr>
                    
30								<th><?php _e('Write options', FB_ADMINIMIZE_TEXTDOMAIN ); echo ' - ' . $post_type_object->label ?></th>
                    
31							<?php
                    
32							foreach ( $user_roles_names as $role_name ) { ?>
                    
33								<th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th>
                    
34							<?php } ?>
                    
38						<tbody>
                    
39						<?php
                    
40							$metaboxes = array(
                    
                
index.php https://github.com/hinablue/TextCube.git | PHP | 280 lines
                    
133?>
                    
134										<img src="<?php echo $context->getProperty('service.path');?>/skin/blog/<?php echo $skinSetting['skin'];?>/preview.jpg" width="150" height="150" alt="<?php echo _t('스킨 미리보기');?>" />
                    
135<?php
                    
137?>
                    
138										<img src="<?php echo $context->getProperty('service.path');?>/skin/blog/<?php echo $skinSetting['skin'];?>/preview.gif" width="150" height="150" alt="<?php echo _t('스킨 미리보기');?>" />
                    
139<?php
                    
141?>
                    
142										<img src="<?php echo $context->getProperty('service.path').$context->getProperty('panel.skin');?>/image/noPreview.gif" width="150" height="150" alt="<?php echo _t('스킨 미리보기');?>" />
                    
143<?php
                    
251										<div id="button_<?php echo $skin['name'];?>" class="button-box">
                    
252											<a class="preview-button button" href="<?php echo $context->getProperty('uri.blog');?>/owner/skin/preview/?skin=<?php echo $skin['name'];?>" onclick="window.open(this.href, &quot;<?php echo $skin['name'];?>&quot;,&quot;location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0&quot;); return false;"><span><?php echo _t('미리보기');?></span></a>
                    
253											<span class="hidden">|</span>
                    
253											<span class="hidden">|</span>
                    
254											<a class="apply-button button" href="<?php echo $context->getProperty('uri.blog');?>/owner/skin/change/?skinName=<?php echo urlencode($skin['name']);?>" onclick="selectSkin('<?php echo $skin['name'];?>'); return false;"><span><?php echo _t('적용');?></span></a>
                    
255										</div>
                    
                
meta-box-saves.inc.php https://gitlab.com/Gashler/dp | PHP | 148 lines
                    
1<?php
                    
2/**
                    
70																if ($pages[$_p["ws_plugin__s2member_security_meta_box_level"]] !== array ("all")&& !in_array ("all-pages", $posts[$_p["ws_plugin__s2member_security_meta_box_level"]]))
                    
71																	array_push ($pages[$_p["ws_plugin__s2member_security_meta_box_level"]], (string)$page_id);
                    
72
                    
96																if ($posts[$_p["ws_plugin__s2member_security_meta_box_level"]] !== array ("all")&& !in_array ("all-" . $_p["post_type"] . "s", $posts[$_p["ws_plugin__s2member_security_meta_box_level"]]))
                    
97																	array_push ($posts[$_p["ws_plugin__s2member_security_meta_box_level"]], (string)$post_id);
                    
98
                    
                
class.attachments.migrate.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 235 lines
                    
136                // append this legacy attachment to the existing instance
                    
137                array_push( $existing_attachments->$instance, $converted_attachment );
                    
138            }
                    
140            // we're done! let's save everything in our new format
                    
141            $existing_attachments = version_compare( PHP_VERSION, '5.4.0', '>=' ) ? json_encode( $existing_attachments, JSON_UNESCAPED_UNICODE ) : json_encode( $existing_attachments );
                    
142
                    
177                                <input name="attachments-instance" id="attachments-instance" value="attachments" class="regular-text" />
                    
178                                <p class="description"><?php _e( 'The instance name you would like to use in the migration. Required.', 'attachments' ); ?></p>
                    
179                            </td>
                    
186                                <input name="attachments-title" id="attachments-title" value="title" class="regular-text" />
                    
187                                <p class="description"><?php _e( 'The <code>Title</code> field data will be migrated to this field name in Attachments 3.x. Leave empty to disregard.', 'attachments' ); ?></p>
                    
188                            </td>
                    
224            <h3><?php _e( 'Migration Complete!', 'attachments' ); ?></h3>
                    
225            <p><?php _e( 'The migration has completed.', 'attachments' ); ?> <strong><?php _e( 'Migrated', 'attachments'); ?>: <?php echo $total; ?></strong>.</p>
                    
226        <?php else : ?>
                    
                
locallib.php https://github.com/totara/moodle.git | PHP | 297 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
118                                                   false);
                    
119                    array_push($stampfiles, $url->out());
                    
120                }
                    
                
editattributes.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 191 lines
                    
1<?php
                    
2require_once dirname(__FILE__).'/accesscheck.php';
                    
3
                    
3
                    
4# $Id: editattributes.php,v 1.3.4.3 2007-07-16 19:18:14 basovink Exp $
                    
5
                    
36if (!isset($table_prefix )) {
                    
37  $table_prefix = 'phplist_';
                    
38}
                    
56<br><?php echo PageLink2("editattributes",$GLOBALS['I18N']->get('AddNew'),"id=$id&action=new")?> <?php echo $data["name"]?>
                    
57<br><a href="javascript:deleteRec2('<?php echo $GLOBALS['I18N']->get('SureToDeleteAll');?>','<?php echo PageURL2("editattributes",$GLOBALS['I18N']->get('DelAll'),"id=$id&deleteall=yes")?>');"><?php echo $GLOBALS['I18N']->get('DelAll');?></a>
                    
58<hr><p>
                    
58<hr><p>
                    
59<?php echo formStart()?>
                    
60<input type=hidden name="action" value="add">
                    
                
genericAjax.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 367 lines
                    
1<?php
                    
2
                    
67        // Parsed SQL Structure
                    
68        G::LoadClass('phpSqlParser');
                    
69
                    
69
                    
70        $parser = new PHPSQLParser($SQL);
                    
71        // Verif parsed array
                    
82          while ( $rs->next() ) {
                    
83            array_push($aRows, $rs->getRow());
                    
84          }
                    
162        //$err = eregi_replace("[\n|\r|\n\r]", ' ', $err);
                    
163        $err = preg_replace("[\n|\r|\n\r]", ' ', $err);//Made compatible to PHP 5.3
                    
164        echo '{"status":1, "message":"'.$err.'"}';
                    
187        //$err = eregi_replace("[\n|\r|\n\r]", ' ', $err);
                    
188        $err = preg_replace("[\n|\r|\n\r]", " ", $err); //Made compatible to PHP 5.3
                    
189
                    
                
proxyReassignCasesList.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 97 lines
                    
1<?php
                    
2$callback = isset( $_POST['callback'] ) ? $_POST['callback'] : 'stcCallback1001';
                    
33G::LoadClass( 'users' );
                    
34require_once ("classes/model/AppCacheView.php");
                    
35
                    
72    $aCase['USERS'] = $oTmp;
                    
73    array_push( $aCasesList, $aCase );
                    
74}
                    
                
admin-express-functions-deprecated.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 385 lines
                    
1<?php
                    
2
                    
157	for ($j=0; $j<count($struct); $j++) {
                    
158		array_push($recent_posts, $struct[$j]);
                    
159	}
                    
                
Profiler.inc.php https://gitlab.com/nacridan/Nacridan | PHP | 244 lines
                    
1<?php
                    
2
                    
81        $this->trace .= "start   $name\n";
                    
82        $n = array_push($this->stack, $this->cur_timer);
                    
83        $this->__suspendTimer($this->stack[$n - 1]);
                    
                
classification.html https://gitlab.com/team_fsn/fsn-php | HTML | 123 lines
                    
1<?php
                    
2 $base_url = $request->getBaseUrl();
                    
22$data_ep_classification = array();
                    
23	array_push($data_ep_classification,$temp[0]);
                    
24}
                    
36<script type="text/javascript">
                    
37  var json_ep_classification = <?php  echo $json_ep_classification; ?> ;  
                    
38
                    
39  $(function () {
                    
40    $('#container_ep_classification_bar_<?php echo $unique_div  ; ?>').highcharts({
                    
41        credits: {
                    
84          enabled: false,
                    
85          filename: '<?php  echo $sitefouille_nom_secure.'_ep_classification_bar-charts'  ; ?>'
                    
86        }
                    
88    	setTimeout(function(){
                    
89    		$('#container_ep_classification_bar_<?php echo $unique_div  ; ?>').highcharts().reflow();
                    
90    		},100);            	            	
                    
                
OAIDAO.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 499 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file classes/oai/ojs/OAIDAO.inc.php
                    
5 *
                    
15
                    
16// $Id: OAIDAO.inc.php,v 1.43 2009/11/19 14:51:38 asmecher Exp $
                    
17
                    
176		if (isset($journalId)) {
                    
177			array_push($params, $journalId);
                    
178		}
                    
179		if (isset($sectionId)) {
                    
180			array_push($params, $sectionId);
                    
181		}
                    
236		if (isset($journalId)) {
                    
237			array_push($params, $journalId);
                    
238		}
                    
                
FMModelGenerete_xml.php https://gitlab.com/ezgonzalez/integral | PHP | 276 lines
                    
1<?php
                    
2
                    
56				$label_id_each = explode('#**id**#', $label_each);
                    
57				array_push($label_id, $label_id_each[0]);
                    
58				$label_oder_each = explode('#**label**#', $label_id_each[1]);
                    
58				$label_oder_each = explode('#**label**#', $label_id_each[1]);
                    
59				array_push($label_order_original, $label_oder_each[0]);
                    
60				$label_temp = preg_replace($ptn, $rpltxt, $label_oder_each[0]);
                    
60				$label_temp = preg_replace($ptn, $rpltxt, $label_oder_each[0]);
                    
61				array_push($label_order, $label_temp);
                    
62				array_push($label_type, $label_oder_each[1]);
                    
65				if (in_array($label, $labels) && $label_type[$key] !='type_arithmetic_captcha') {
                    
66					array_push($sorted_labels, $label_order[$key]);
                    
67					array_push($sorted_labels_id, $label);
                    
67					array_push($sorted_labels_id, $label);
                    
68					array_push($label_titles, stripslashes($label_order_original[$key]));
                    
69				}
                    
                
TargetListUpdate.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 95 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
47
                    
48require_once 'include/formbase.php';
                    
49
                    
58	
                    
59	require_once('include/MassUpdate.php');
                    
60	$mass = new MassUpdate();
                    
67	{
                    
68		array_push($uids, $val['id']);
                    
69	}
                    
                
AddCustomFieldToDB.php https://github.com/vtiger-jp/vtigercrm-5.1.x-ja.git | PHP | 309 lines
                    
1<?php
                    
2/*+********************************************************************************
                    
10
                    
11require_once('include/database/PearDatabase.php');
                    
12require_once('include/ComboUtil.php');
                    
41	$checkquery .= " and fieldid !=?";
                    
42	array_push($params, $_REQUEST['fieldid']);
                    
43}
                    
63	
                    
64	header("Location:index.php?module=Settings&action=CustomFieldList&fld_module=".$fldmodule."&fldType=".$fldType."&fldlabel=".$fldlabel."&parenttab=".$parenttab."&duplicate=yes");
                    
65
                    
89	} elseif($fldmodule != '') {
                    
90		include_once('data/CRMEntity.php');
                    
91		$focus = CRMEntity::getInstance($fldmodule);
                    
306	}
                    
307	header("Location:index.php?module=Settings&action=CustomFieldList&fld_module=".$fldmodule."&parenttab=".$parenttab);
                    
308}
                    
                
panier.php https://gitlab.com/thoussem/Tunisie-Shop | PHP | 315 lines
                    
1
                    
2<?php 
                    
3
                    
28        { 
                    
29            array_push($_SESSION['panier']['id_article'],$select['id']); 
                    
30            array_push($_SESSION['panier']['nom'],$select['nom']);
                    
30            array_push($_SESSION['panier']['nom'],$select['nom']);
                    
31            array_push($_SESSION['panier']['qte'],$select['qte']);
                    
32            array_push($_SESSION['panier']['srcimg'],$select['srcimg']);
                    
32            array_push($_SESSION['panier']['srcimg'],$select['srcimg']);
                    
33            array_push($_SESSION['panier']['taille'],$select['taille']); 
                    
34            array_push($_SESSION['panier']['prix'],$select['prix']); 
                    
140                { 
                    
141                    array_push($panier_tmp['id_article'],$_SESSION['panier']['id_article'][$i]); 
                    
142                    array_push($panier_tmp['nom'],$_SESSION['panier']['nom'][$i]); 
                    
                
theme.php https://gitlab.com/x33n/respond | PHP | 363 lines
                    
1<?php
                    
2
                    
251                
                    
252                array_push($arr, $file); 
                    
253
                    
                
email_log.inc.php https://github.com/axxtel/agilebill.git | PHP | 118 lines
                    
1<?php
                    
2	
                    
33			while(!$rs->EOF) {
                    
34				array_push($smart, $rs->fields);
                    
35				$rs->MoveNext();		
                    
                
main.installer.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 315 lines
                    
79            <h2>Error: PHP is not running</h2>
                    
80            <p>Duplicator requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
                    
81        </body>
                    
102$GLOBALS['FW_VERSION_DB']	= '%fwrite_version_db%';
                    
103$GLOBALS['FW_VERSION_PHP']	= '%fwrite_version_php%';
                    
104$GLOBALS['FW_VERSION_OS']	= '%fwrite_version_os%';
                    
298	case "2" :
                    
299	?> @@VIEW.STEP2.PHP@@ <?php
                    
300	break;
                    
301	case "3" :
                    
302	?> @@VIEW.STEP3.PHP@@ <?php
                    
303	break;
                    
305} else {
                    
306	?> @@VIEW.HELP.PHP@@ <?php
                    
307}
                    
                
S3.php https://gitlab.com/x33n/respond | PHP | 460 lines
                    
1<?php 
                    
2
                    
22		
                    
23			// #ref: http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.S3.S3Client.html#_createBucket
                    
24			$result = $client->createBucket(array(
                    
282		            // push file to array
                    
283					array_push($arr, $file);
                    
284	    		}
                    
303			            // push file to array
                    
304						array_push($arr, $file);
                    
305					}
                    
397		
                    
398		// sync folders, #ref: http://blogs.aws.amazon.com/php/post/Tx2W9JAA7RXVOXA/Syncing-Data-with-Amazon-S3
                    
399		$client->uploadDirectory($local_dir, $bucket, $keyPrefix, $options);
                    
415		// #support for S3 ANAME   
                    
416		// #ref: http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.S3.S3Client.html#_createBucket
                    
417		$result = $client->createBucket(array(
                    
                
PieChart.php https://bitbucket.org/vees/symulacja-rynku-lotniczego.git | PHP | 266 lines
                    
1<?php
                    
2    /* Libchart - PHP chart library
                    
36            parent::Chart($width, $height);
                    
37            $this->plot->setGraphPadding(new Padding(15, 10, 30, 30));
                    
38        }
                    
86
                    
87                array_push($this->percent, array($percent, $point));
                    
88            }
                    
129                
                    
130                array_push($labelList, $label);
                    
131            }
                    
                
com_contact.php https://github.com/Shigaru/shigaru.git | PHP | 247 lines
                    
1<?php
                    
2/*
                    
206				$category = self::_getCategory($row[2]);
                    
207				array_push($category, $name);
                    
208				$cache[$id]['name'] = $category;
                    
                
ScheduledTaskTool.inc.php https://github.com/mbehiels/pkp-lib.git | PHP | 249 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file classes/cliTool/ScheduledTaskTool.inc.php
                    
5 *
                    
123		while(($arg = $task->getChildByName('arg', $index)) != null) {
                    
124			array_push($args, $arg->getValue());
                    
125			$index++;
                    
                
http_build_query.php https://github.com/usagi-project/mynets1.git | PHP | 100 lines
                    
1<?PHP
                    
2// +----------------------------------------------------------------------+
                    
2// +----------------------------------------------------------------------+
                    
3// | PHP Version 4                                                        |
                    
4// +----------------------------------------------------------------------+
                    
4// +----------------------------------------------------------------------+
                    
5// | Copyright (c) 1997-2004 The PHP Group                                |
                    
6// +----------------------------------------------------------------------+
                    
6// +----------------------------------------------------------------------+
                    
7// | This source file is subject to version 3.0 of the PHP license,       |
                    
8// | that is bundled with this package in the file LICENSE, and is        |
                    
9// | available at through the world-wide-web at                           |
                    
10// | http://www.php.net/license/3_0.txt.                                  |
                    
11// | If you did not receive a copy of the PHP license and are unable to   |
                    
12// | obtain it through the world-wide-web, please send a note to          |
                    
13// | license@php.net so we can mail you a copy immediately.               |
                    
14// +----------------------------------------------------------------------+
                    
                
collection.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 264 lines
                    
1<?php
                    
2/**
                    
95	{
                    
96		array_push($this->stack, $name);
                    
97		$tag = $this->_getStackLocation();
                    
                
xajaxArgumentManager.inc.php https://github.com/sarriaroman/PuntoUBP.git | PHP | 466 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3	File: xajaxArgumentManager.inc.php
                    
4
                    
8
                    
9	Please see <copyright.inc.php> for a detailed description, copyright
                    
10	and license information.
                    
14	@package xajax
                    
15	@version $Id: xajaxArgumentManager.inc.php 362 2007-05-29 15:32:24Z calltoconstruct $
                    
16	@copyright Copyright (c) 2005-2007 by Jared White & J. Max Wilson
                    
30	will be processed.  During a xajax request, any arguments found in the
                    
31	GET or POST will be converted to a PHP array.
                    
32*/
                    
182							++$nStackDepth;
                    
183							array_push($aStack, $aArg);
                    
184							$aArg = array();
                    
                
navigation-link.php https://gitlab.com/campus-academy/krowkaramel | PHP | 350 lines
                    
1<?php
                    
2/**
                    
42		// Add the color class.
                    
43		array_push( $colors['css_classes'], 'has-text-color', sprintf( 'has-%s-color', $named_text_color ) );
                    
44	} elseif ( ! is_null( $custom_text_color ) ) {
                    
68		// Add the background-color class.
                    
69		array_push( $colors['css_classes'], 'has-background', sprintf( 'has-%s-background-color', $named_background_color ) );
                    
70	} elseif ( ! is_null( $custom_background_color ) ) {
                    
                
mf_register.php https://bitbucket.org/rossberenson/michael-karas.git | PHP | 146 lines
                    
1<?php
                    
2 /**
                    
54      unset($option['with_front']);
                    
55      array_push($mf_pt_register,$name);
                    
56
                    
74      if ($p['core']['quantity']) {
                    
75        array_push($mf_pt_unique, "edit.php?post_type=".$name);
                    
76      }
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
115                } else {
                    
116                    $id = array_push(self::$_objects, $var);
                    
117                    $className = get_class($var);
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
                
new_project.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 372 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
146		foreach( $project_keywords_exp as $k => $v ) {
                    
147			array_push($project_keywordstrim, trim($v));
                    
148		}
                    
                
zkfingerprint.php https://gitlab.com/zubair_xenomorph/zubair_zklib | PHP | 305 lines
                    
1<?php
                    
2
                    
178                    @socket_recvfrom($self->zkclient, $data_recv, 1032, 0, $self->ip, $self->port);
                    
179                    array_push( $self->userdata, $data_recv);
                    
180
                    
                
Ajax.php https://github.com/intraweb-modules13/IWusers.git | PHP | 242 lines
                    
1<?php
                    
2
                    
142            if ($group['id']) {
                    
143                array_push($userGroups, array('id' => $group['id'],
                    
144                    'name' => $groupsInfo[$group['id']]));
                    
                
stylesheet.php https://gitlab.com/x33n/respond | PHP | 240 lines
                    
1<?php
                    
2/**
                    
222
                    
223                array_push($arr, $name);
                    
224            }
                    
                
projects.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 413 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2require_once(APPPATH.'controllers/admin/dashboard.php');
                    
291				$types =  $this->types->get_types($par);
                    
292				array_push($this->data['types'], $types[0]["type_name"]);
                    
293			}
                    
411
                    
412/* End of file welcome.php */
                    
413/* Location: ./application/controllers/welcome.php */
                    
                
Message.php https://github.com/TravianWar/Travianx.git | PHP | 372 lines
                    
1<?php
                    
2
                    
5## --------------------------------------------------------------------------- ##
                    
6##  Filename       Message.php                                                 ##
                    
7##  License:       TravianX Project                                            ##
                    
42				$this->sendMessage($post['an'],$post['be'],$post['message']);
                    
43				header("Location: ../nachrichten.php?t=2");
                    
44				break;
                    
68			if($get['t'] == 5 && !$session->plus) {
                    
69				header("Location: berichte.php");
                    
70			}
                    
105				$this->reply = $_SESSION['reply'] = $message;
                    
106				header("Location: nachrichten.php?t=1&id=".$message['owner']);
                    
107			}
                    
146                if ($temp[$key] != $value){ 
                    
147				   array_push($newarray,$array[$key]);
                    
148                    //$newarray[$key] = $array[$key]; 
                    
                
XsltFilter.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 341 lines
                    
1<?php
                    
2
                    
3/*
                    
4 *  $Id: XsltFilter.php 420 2008-10-26 19:21:39Z alexeyshockov $
                    
5 *
                    
22
                    
23include_once 'phing/filters/BaseParamFilterReader.php';
                    
24include_once 'phing/filters/ChainableReader.php';
                    
28 * 
                    
29 * Uses PHP XSLT support (libxslt).
                    
30 * 
                    
67    function createParam() {
                    
68        $num = array_push($this->xsltParams, new XSLTParam());
                    
69        return $this->xsltParams[$num-1];
                    
130        if (!class_exists('XSLTProcessor')) {
                    
131            throw new BuildException("Could not find the XSLTProcessor class. Make sure PHP has been compiled/configured to support XSLT.");
                    
132        }
                    
                
api.php https://bitbucket.org/mike_kelly/omnicaster.git | PHP | 251 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
93					
                    
94					array_push($formattedResponse, $temp);
                    
95				}
                    
143						
                    
144						array_push($formattedResponse, $temp);
                    
145						}
                    
175						
                    
176						array_push($formattedResponse, $temp);
                    
177						}
                    
                
ref.array.html https://bitbucket.org/thncr/manuals.git | HTML | 645 lines
                    
11 <div class="up"><a href="book.array.html">数组</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="ref.array" class="reference">
                    
637
                    
638<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.array-change-key-case.html">array_change_key_case</a> — 返回字符串键名全为小写或大写的数组</li><li><a href="function.array-chunk.html">array_chunk</a> — 将一个数组分割成多个</li><li><a href="function.array-combine.html">array_combine</a> — 创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值</li><li><a href="function.array-count-values.html">array_count_values</a> — 统计数组中所有的值出现的次数</li><li><a href="function.array-diff-assoc.html">array_diff_assoc</a> — 带索引检查计算数组的差集</li><li><a href="function.array-diff-key.html">array_diff_key</a> — 使用键名比较计算数组的差集</li><li><a href="function.array-diff-uassoc.html">array_diff_uassoc</a> — 用用户提供的回调函数做索引检查来计算数组的差集</li><li><a href="function.array-diff-ukey.html">array_diff_ukey</a> — 用回调函数对键名比较计算数组的差集</li><li><a href="function.array-diff.html">array_diff</a> — 计算数组的差集</li><li><a href="function.array-fill-keys.html">array_fill_keys</a> — 使用指定的键和值填充数组</li><li><a href="function.array-fill.html">array_fill</a> — 用给定的值填充数组</li><li><a href="function.array-filter.html">array_filter</a> — 用回调函数过滤数组中的单元</li><li><a href="function.array-flip.html">array_flip</a> — 交换数组中的键和值</li><li><a href="function.array-intersect-assoc.html">array_intersect_assoc</a> — 带索引检查计算数组的交集</li><li><a href="function.array-intersect-key.html">array_intersect_key</a> — 使用键名比较计算数组的交集</li><li><a href="function.array-intersect-uassoc.html">array_intersect_uassoc</a> — 带索引检查计算数组的交集,用回调函数比较索引</li><li><a href="function.array-intersect-ukey.html">array_intersect_ukey</a> — 用回调函数比较键名来计算数组的交集</li><li><a href="function.array-intersect.html">array_intersect</a> — 计算数组的交集</li><li><a href="function.array-key-exists.html">array_key_exists</a> — 检查给定的键名或索引是否存在于数组中</li><li><a href="function.array-keys.html">array_keys</a> — 返回数组中所有的键名</li><li><a href="function.array-map.html">array_map</a> — 将回调函数作用到给定数组的单元上</li><li><a href="function.array-merge-recursive.html">array_merge_recursive</a> — 递归地合并一个或多个数组</li><li><a href="function.array-merge.html">array_merge</a> — 合并一个或多个数组</li><li><a href="function.array-multisort.html">array_multisort</a> — 对多个数组或多维数组进行排序</li><li><a href="function.array-pad.html">array_pad</a> — 用值将数组填补到指定长度</li><li><a href="function.array-pop.html">array_pop</a> — 将数组最后一个单元弹出(出栈)</li><li><a href="function.array-product.html">array_product</a> — 计算数组中所有值的乘积</li><li><a href="function.array-push.html">array_push</a> — 将一个或多个单元压入数组的末尾(入栈)</li><li><a href="function.array-rand.html">array_rand</a> — 从数组中随机取出一个或多个单元</li><li><a href="function.array-reduce.html">array_reduce</a> — 用回调函数迭代地将数组简化为单一的值</li><li><a href="function.array-replace-recursive.html">array_replace_recursive</a> — 使用传递的数组递归替换第一个数组的元素</li><li><a href="function.array-replace.html">array_replace</a> — 使用传递的数组替换第一个数组的元素</li><li><a href="function.array-reverse.html">array_reverse</a> — 返回一个单元顺序相反的数组</li><li><a href="function.array-search.html">array_search</a> — 在数组中搜索给定的值,如果成功则返回相应的键名</li><li><a href="function.array-shift.html">array_shift</a> — 将数组开头的单元移出数组</li><li><a href="function.array-slice.html">array_slice</a> — 从数组中取出一段</li><li><a href="function.array-splice.html">array_splice</a> — 把数组中的一部分去掉并用其它值取代</li><li><a href="function.array-sum.html">array_sum</a> — 计算数组中所有值的和</li><li><a href="function.array-udiff-assoc.html">array_udiff_assoc</a> — 带索引检查计算数组的差集,用回调函数比较数据</li><li><a href="function.array-udiff-uassoc.html">array_udiff_uassoc</a> — 带索引检查计算数组的差集,用回调函数比较数据和索引</li><li><a href="function.array-udiff.html">array_udiff</a> — 用回调函数比较数据来计算数组的差集</li><li><a href="function.array-uintersect-assoc.html">array_uintersect_assoc</a> — 带索引检查计算数组的交集,用回调函数比较数据</li><li><a href="function.array-uintersect-uassoc.html">array_uintersect_uassoc</a> — 带索引检查计算数组的交集,用回调函数比较数据和索引</li><li><a href="function.array-uintersect.html">array_uintersect</a> — 计算数组的交集,用回调函数比较数据</li><li><a href="function.array-unique.html">array_unique</a> — 移除数组中重复的值</li><li><a href="function.array-unshift.html">array_unshift</a> — 在数组开头插入一个或多个单元</li><li><a href="function.array-values.html">array_values</a> — 返回数组中所有的值</li><li><a href="function.array-walk-recursive.html">array_walk_recursive</a> — 对数组中的每个成员递归地应用用户函数</li><li><a href="function.array-walk.html">array_walk</a> — 对数组中的每个成员应用用户函数</li><li><a href="function.array.html">array</a> — 新建一个数组</li><li><a href="function.arsort.html">arsort</a> — 对数组进行逆向排序并保持索引关系</li><li><a href="function.asort.html">asort</a> — 对数组进行排序并保持索引关系</li><li><a href="function.compact.html">compact</a> — 建立一个数组,包括变量名和它们的值</li><li><a href="function.count.html">count</a> — 计算数组中的单元数目或对象中的属性个数</li><li><a href="function.current.html">current</a> — 返回数组中的当前单元</li><li><a href="function.each.html">each</a> — 返回数组中当前的键/值对并将数组指针向前移动一步</li><li><a href="function.end.html">end</a> — 将数组的内部指针指向最后一个单元</li><li><a href="function.extract.html">extract</a> — 从数组中将变量导入到当前的符号表</li><li><a href="function.in-array.html">in_array</a> — 检查数组中是否存在某个值</li><li><a href="function.key.html">key</a> — 从关联数组中取得键名</li><li><a href="function.krsort.html">krsort</a> — 对数组按照键名逆向排序</li><li><a href="function.ksort.html">ksort</a> — 对数组按照键名排序</li><li><a href="function.list.html">list</a> — 把数组中的值赋给一些变量</li><li><a href="function.natcasesort.html">natcasesort</a> — 用&ldquo;自然排序&rdquo;算法对数组进行不区分大小写字母的排序</li><li><a href="function.natsort.html">natsort</a> — 用&ldquo;自然排序&rdquo;算法对数组排序</li><li><a href="function.next.html">next</a> — 将数组中的内部指针向前移动一位</li><li><a href="function.pos.html">pos</a> — current 的别名</li><li><a href="function.prev.html">prev</a> — 将数组的内部指针倒回一位</li><li><a href="function.range.html">range</a> — 建立一个包含指定范围单元的数组</li><li><a href="function.reset.html">reset</a> — 将数组的内部指针指向第一个单元</li><li><a href="function.rsort.html">rsort</a> — 对数组逆向排序</li><li><a href="function.shuffle.html">shuffle</a> — 将数组打乱</li><li><a href="function.sizeof.html">sizeof</a> — count 的别名</li><li><a href="function.sort.html">sort</a> — 对数组排序</li><li><a href="function.uasort.html">uasort</a> — 使用用户自定义的比较函数对数组中的值进行排序并保持索引关联</li><li><a href="function.uksort.html">uksort</a> — 使用用户自定义的比较函数对数组中的键名进行排序</li><li><a href="function.usort.html">usort</a> — 使用用户自定义的比较函数对数组中的值进行排序</li></ul>
                    
639</div>
                    
643 <div class="up"><a href="book.array.html">数组</a></div>
                    
644 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
645</div></body></html>
                    
                
interface.php https://github.com/Lithixium/HawkEye.git | PHP | 244 lines
                    
22	//Check if required functions are here
                    
23	if (!function_exists("json_decode")) return error("JSON PHP library not installed! Update to PHP 5.3 or later!");
                    
24	
                    
61				if (stristr($val2, $val))
                    
62					array_push($pids, $key2);
                    
63		if (count($pids) > 0)
                    
87	if ($data["loc"][0] != "")
                    
88		array_push($args, "(`x` BETWEEN " . ($data["loc"][0] - $range) . " AND " . ($data["loc"][0] + $range) . ")");
                    
89	if ($data["loc"][1] != "")
                    
91	if ($data["loc"][2] != "")
                    
92		array_push($args, "(`z` BETWEEN " . ($data["loc"][2] - $range) . " AND " . ($data["loc"][2] + $range) . ")");
                    
93	if ($data["block"] != "00") {
                    
96		else
                    
97			array_push($data["keywords"], $data["block"]);
                    
98	}
                    
                
PersonaController.php https://code.google.com/p/ss-cup-autogestion-site/ | PHP | 441 lines
                    
1<?php
                    
2
                    
6	 * @var string the default layout for the views. Defaults to '//layouts/column2', meaning
                    
7	 * using two-column layout. See 'protected/views/layouts/column2.php'.
                    
8	 */
                    
97			$tmpDireccion= array();
                    
98			array_push($tmpDireccion, $direccion);
                    
99			$model->direcciones = $tmpDireccion;
                    
103			$tmpComunicacion = array();
                    
104			array_push($tmpComunicacion, $comunicacion);
                    
105			$model->comunicaciones = $tmpComunicacion;
                    
339			
                    
340			array_push($communications, $modelCommunication);
                    
341		}
                    
                
scripts.php https://gitlab.com/mattyhead/RPB-chessboard | PHP | 186 lines
                    
1<?php
                    
2/******************************************************************************
                    
110	{
                    
111		array_push($buttons, 'rpb-chessboard');
                    
112		return $buttons;
                    
                
xml.class.php http://wikiplot.googlecode.com/svn/trunk/ | PHP | 398 lines
                    
1<?php
                    
2/*
                    
30 * <code>
                    
31 * <?php
                    
32 * $xml_data = "<root> 
                    
213    *
                    
214    * The function uses xml_parse() function from XML Parser Functions in PHP
                    
215    * and parses only the first tag in the given XML data and ignores
                    
289   	   	   //this will return the complete tag = <tag>Hello</tag>
                    
290   	   	   array_push($this->Tags, $this->Separator . $InterestedTags[$i]);
                    
291   	   }
                    
389   		//Store the data parsed by the XMLParser in the $Graph
                    
390   	  	array_push($Graph, $XMLParser->Tag);
                    
391   	  }
                    
                
Install.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 313 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * @file classes/install/Install.inc.php
                    
9 *
                    
24
                    
25// $Id: Install.inc.php,v 1.15.2.2 2009/04/08 19:42:47 asmecher Exp $
                    
26
                    
64		if (!in_array($this->locale, $this->installedLocales) && Locale::isLocaleValid($this->locale)) {
                    
65			array_push($this->installedLocales, $this->locale);
                    
66		}
                    
                
gk.portal_mode_5.php https://gitlab.com/ppapadatis/Videolearn | PHP | 189 lines
                    
1<?php
                    
2//
                    
107			if($news_image !== '') {
                    
108				array_push($news_image_tab, $news_image_content);
                    
109				array_push($news_title_tab, $news_generated_content);
                    
                
ParanoidHTTPFetcher.php https://github.com/DartmouthHackerClub/Monologue_Community.git | PHP | 245 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
18 */
                    
19require_once "Auth/Yadis/HTTPFetcher.php";
                    
20
                    
20
                    
21require_once "Auth/OpenID.php";
                    
22
                    
45    {
                    
46        array_push($this->headers, rtrim($header));
                    
47        return strlen($header);
                    
                
MUser.php https://bitbucket.org/yishenggudou/101xd.git | PHP | 383 lines
                    
1<?php
                    
2
                    
105        foreach($data as $key=>$value){
                    
106            array_push($res,$value['Name']);
                    
107            }
                    
                
iCalendar.php https://gitlab.com/rsilveira1987/Expresso | PHP | 137 lines
                    
1<?php
                    
2/**
                    
62					// add the child to the parent
                    
63					array_push($parent['children'], $child);
                    
64				}
                    
                
MultiTableSQL.php https://github.com/JeCat/framework.git | PHP | 275 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////////////////////////////////////
                    
2////////////////////////////////////////////////////////////////////////////////////////////////////////////
                    
3//  这个文件是 JeCat PHP框架的一部分,该项目和此文件 均遵循 GNU 自由软件协议
                    
4// 
                    
7//
                    
8//  JeCat PHP框架 的正式全名是:Jellicle Cat PHP Framework。
                    
9//  “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。
                    
9//  “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。
                    
10//  JeCat 是一个开源项目,它像音乐剧中的猫一样自由,你可以毫无顾忌地使用JCAT PHP框架。JCAT 由中国团队开发维护。
                    
11//  正在使用的这个版本是:0.7.1
                    
162		{
                    
163			array_push($arrTokens,'ON','(',$on,')') ;
                    
164		}
                    
166		{
                    
167			array_push($arrTokens,'USING','(',$using,')') ;
                    
168		}
                    
                
OrdersFixtureTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 262 lines
                    
1<?php
                    
2/**
                    
10
                    
11class OrdersFixtureTest extends \PHPUnit_Framework_TestCase
                    
12{
                    
14    /**
                    
15     * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Setup\Fixtures\FixtureModel
                    
16     */
                    
32     *
                    
33     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
34     */
                    
183
                    
184        array_push(
                    
185            $mockObjects,
                    
                
Element.php https://gitlab.com/r.collas/site_central | PHP | 360 lines
                    
1<?php
                    
2/**
                    
186		if(!in_array($class, $classes))
                    
187			array_push($classes, $class);
                    
188			
                    
359
                    
360// Do not clause PHP tags unless it is really necessary
                    
                
dbfuncs.php https://bitbucket.org/JaKXz/photoflo2.git | PHP | 399 lines
                    
1<?php
                    
2/**
                    
26
                    
27require("config.php");
                    
28require_once("signature.php");
                    
121        while ($row = mysql_fetch_row($result)) {
                    
122            array_push($objs, HardwareClass::load_from_id($row[0]));
                    
123        }
                    
172        while ($row = mysql_fetch_row($result)) {
                    
173           array_push($ret, $row[0]);
                    
174        }
                    
                
MessageBuilder.php https://gitlab.com/m.ghanbari/mailgun-subscriber | PHP | 484 lines
                    
1<?PHP
                    
2
                    
15 *
                    
16 * @link https://github.com/mailgun/mailgun-php/blob/master/src/Mailgun/Messages/README.md
                    
17 */
                    
110        if (isset($this->message[$headerName])) {
                    
111            array_push($this->message[$headerName], $compiledAddress);
                    
112        } elseif ($headerName == "h:reply-to") {
                    
262            );
                    
263            array_push($this->files["attachment"], $attachment);
                    
264        } else {
                    
290                );
                    
291                array_push($this->files['inline'], $inlineAttachment);
                    
292            } else {
                    
331            if (isset($this->message['o:campaign'])) {
                    
332                array_push($this->message['o:campaign'], $campaignId);
                    
333            } else {
                    
                
tags.php https://bitbucket.org/marsl/marsl.git | PHP | 202 lines
                    
1<?php
                    
2include_once (dirname(__FILE__)."/../includes/errorHandler.php");
                    
2include_once (dirname(__FILE__)."/../includes/errorHandler.php");
                    
3include_once (dirname(__FILE__)."/../user/user.php");
                    
4include_once (dirname(__FILE__)."/../includes/dbsocket.php");
                    
4include_once (dirname(__FILE__)."/../includes/dbsocket.php");
                    
5include_once (dirname(__FILE__)."/../user/auth.php");
                    
6include_once (dirname(__FILE__)."/../includes/basic.php");
                    
6include_once (dirname(__FILE__)."/../includes/basic.php");
                    
7include_once (dirname(__FILE__)."/../user/role.php");
                    
8include_once (dirname(__FILE__)."/../user/auth.php");
                    
57					$tag = htmlentities($row['tag'], null, "ISO-8859-1");
                    
58					array_push($tags, array('id'=>$id, 'tag'=>$tag));
                    
59				}
                    
59				}
                    
60				require_once("template/tags.tpl.php");
                    
61			}
                    
                
storestocksale.php https://gitlab.com/alexprowars/bitrix | PHP | 292 lines
                    
1<?php
                    
2
                    
211			$columnElements = array_column($item, $columnKey);
                    
212			array_push($combineColumnElements, ...$columnElements);
                    
213		}
                    
                
CompareController.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 191 lines
                    
1<?php
                    
2include_once ROOT . DS . 'libraries' . DS . 'backend' . DS . 'SlideCompare' . DS . 'SlideCompare.php';
                    
171						$flag ++;
                    
172						array_push ( $changes, array ($index, $deck2->content [$index]->id, $val->id ) );
                    
173					}
                    
                
index.php https://github.com/kpike/moodle.git | PHP | 196 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26
                    
27require_once("../../config.php");
                    
28require_once("locallib.php");
                    
30$id = required_param('id', PARAM_INT);
                    
31$PAGE->set_url('/mod/quiz/index.php', array('id'=>$id));
                    
32if (!$course = $DB->get_record('course', array('id' => $id))) {
                    
38
                    
39add_to_log($course->id, "quiz", "view all", "index.php?id=$course->id", "");
                    
40
                    
46    $streditquestions =
                    
47            "<form target=\"_parent\" method=\"get\" action=\"$CFG->wwwroot/question/edit.php\">
                    
48               <div>
                    
61if (!$quizzes = get_all_instances_in_course("quiz", $course)) {
                    
62    notice(get_string('thereareno', 'moodle', $strquizzes), "../../course/view.php?id=$course->id");
                    
63    die;
                    
                
Config.php https://github.com/ireeps/agilebill.git | PHP | 401 lines
                    
10 * the PHP License and are unable to obtain it through the web, please
                    
11 * send a note to license@php.net so we can mail you a copy immediately.
                    
12 *
                    
17 * @copyright  1997-2005 The PHP Group
                    
18 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
19 * @version    CVS: $Id: Config.php,v 1.48 2005/09/24 04:25:33 cellog Exp $
                    
26 */
                    
27require_once 'PEAR/Command/Common.php';
                    
28
                    
36 * @copyright  1997-2005 The PHP Group
                    
37 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
38 * @version    Release: 1.4.5
                    
333        $config->noRegistry();
                    
334        $config->set('php_dir', $windows ? "$root\\pear\\php" : "$root/pear/php", 'user');
                    
335        $config->set('data_dir', $windows ? "$root\\pear\\data" : "$root/pear/data");
                    
                
Mail.inc.php https://github.com/mbehiels/pkp-lib.git | PHP | 460 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * @file classes/mail/Mail.inc.php
                    
9 *
                    
58		}
                    
59		array_push($recipients, array('name' => $name, 'email' => $email));
                    
60
                    
91		}
                    
92		array_push($ccs, array('name' => $name, 'email' => $email));
                    
93
                    
108		}
                    
109		array_push($bccs, array('name' => $name, 'email' => $email));
                    
110
                    
161		if (!$updated) {
                    
162			array_push($headers, array('name' => $name,'content' => $content));
                    
163		}
                    
                
UEditorAction.php https://gitlab.com/tangsengjiu/Talk | PHP | 281 lines
                    
1<?php
                    
2namespace kucha\ueditor;
                    
20        //默认设置
                    
21        $_config = require(__DIR__ . '/config.php');
                    
22        //load config file
                    
234            $info = $item->getFileInfo();
                    
235            array_push($list, array(
                    
236                "state" => $info["state"],
                    
                
Mail.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 363 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Mail.inc.php
                    
5 *
                    
12 *
                    
13 * $Id: Mail.inc.php,v 1.17 2005/05/15 10:36:06 kevin Exp $
                    
14 */
                    
31		}
                    
32		array_push($recipients, array('name' => $name, 'email' => $email));
                    
33		
                    
64		}
                    
65		array_push($ccs, array('name' => $name, 'email' => $email));
                    
66		
                    
81		}
                    
82		array_push($bccs, array('name' => $name, 'email' => $email));
                    
83		
                    
                
CSV.class.php https://github.com/lievenjanssen/The-DataTank.git | PHP | 131 lines
                    
1<?php
                    
2/**
                    
9 */
                    
10include_once ("model/resources/strategies/ATabularData.class.php");
                    
11class CSV extends ATabularData {
                    
42        foreach ($allowed_columns as $result) {
                    
43            array_push($columns, $result["column_name"]);
                    
44            if ($result["is_primary_key"] == 1) {
                    
90                    if ($PK == "") {
                    
91                        array_push($arrayOfRowObjects, $rowobject);
                    
92                    } else {
                    
                
options-framework.php https://bitbucket.org/eduplessis/html5-reset-wordpress-theme.git | PHP | 470 lines
                    
43function optionsframework_load_sanitization() {
                    
44	require_once dirname( __FILE__ ) . '/options-sanitize.php';
                    
45}
                    
60	require_once dirname( __FILE__ ) . '/options-interface.php';
                    
61	require_once dirname( __FILE__ ) . '/options-media-uploader.php';
                    
62	
                    
241    <h2 class="nav-tab-wrapper">
                    
242        <?php echo optionsframework_tabs(); ?>
                    
243    </h2>
                    
251				<input type="submit" class="button-primary" name="update" value="<?php esc_attr_e( 'Save Options', 'options_framework_theme' ); ?>" />
                    
252				<input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e( 'Restore Defaults', 'options_framework_theme' ); ?>" onclick="return confirm( '<?php print esc_js( __( 'Click OK to reset. Any theme settings will be lost!', 'options_framework_theme' ) ); ?>' );" />
                    
253				<div class="clear"></div>
                    
414 * Also allows for setting options via a return statement in the
                    
415 * options.php file.  For example (in options.php):
                    
416 *
                    
                
html.php https://github.com/whiletrue/fluxcms.git | PHP | 265 lines
                    
1<?php
                    
2
                    
133        if (!empty($a)) {
                    
134            array_push($e, 'assets');
                    
135        }
                    
138        if (!empty($v)) {
                    
139            array_push($e,'versioning');
                    
140        }
                    
                
dbo_odbc.php https://bitbucket.org/d1rk/cakephp-including-capistrano.git | PHP | 360 lines
                    
1<?php
                    
2/* SVN FILE: $Id: dbo_odbc.php 7921 2008-12-14 18:36:40Z TommyO $ */
                    
8 *
                    
9 * PHP versions 4 and 5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
                    
12 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
18 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
19 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
20 * @package       cake
                    
21 * @subpackage    cake.cake.libs.model.dbo
                    
22 * @since         CakePHP(tm) v 0.10.5.1790
                    
23 * @version       $Revision: 7921 $
                    
25 * @lastmodified  $Date: 2008-12-14 19:36:40 +0100 (So, 14. Dez 2008) $
                    
26 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
27 */
                    
                
Logs.php https://github.com/kennethjiang/Wolke.git | PHP | 330 lines
                    
1<?php
                    
2
                    
84		foreach ($farms as $f)
                    
85			array_push($frms, $f['id']);
                    
86
                    
                
legend.php https://gitlab.com/ricardosanchez/prueba | PHP | 252 lines
                    
1<?php
                    
2/**
                    
15 */
                    
16include_once(JPATH_SITE."/modules/mod_jevents_legend/tmpl/default/legend.php");
                    
17
                    
49
                    
50		include_once(JPATH_ADMINISTRATOR."/components/".JEV_COM_COMPONENT."/libraries/colorMap.php");
                    
51
                    
115
                    
116		array_push($allrows,$allcats);
                    
117		if (count($allrows)==0) return "";
                    
169
                    
170					//include_once(JPATH_SITE."/components/$option/events.html.php");
                    
171					ob_start();
                    
193		."<td class='legend' >"
                    
194		."<a style='text-decoration:none' href='".JRoute::_("index.php?option=".JEV_COM_COMPONENT."$cat$itm$tsk")."' title='".JEventsHTML::special($row->name)."'>"
                    
195		.JEventsHTML::special($row->name)."</a></td></tr>\n";
                    
                
LoggerNDC.php https://github.com/kennethjiang/Wolke.git | PHP | 242 lines
                    
24 */
                    
25if (!defined('LOG4PHP_DIR')) define('LOG4PHP_DIR', dirname(__FILE__)); 
                    
26 
                    
28 */
                    
29require_once(LOG4PHP_DIR . '/LoggerLog.php');
                    
30
                    
128    
                    
129        return $GLOBALS['log4php.LoggerNDC.ht'];
                    
130    }
                    
199    
                    
200        array_push($GLOBALS['log4php.LoggerNDC.ht'], (string)$message);
                    
201    }
                    
235            if (LoggerNDC::getDepth() > $maxDepth) {
                    
236                $GLOBALS['log4php.LoggerNDC.ht'] = array_slice($GLOBALS['log4php.LoggerNDC.ht'], $maxDepth);
                    
237            }
                    
                
DocBlockScanner.php https://gitlab.com/yousafsyed/easternglamor | PHP | 326 lines
                    
1<?php
                    
2/**
                    
149            case 'DOCBLOCK_TAG':
                    
150                array_push($this->tags, array('name'  => $token[1],
                    
151                                              'value' => ''));
                    
                
mediaaccess.php https://gitlab.com/thisishayat/itv-2016 | PHP | 414 lines
                    
1<?php
                    
2
                    
175		{
                    
176			array_push($elem_attr, $n . '="' . $v . '"');
                    
177		}
                    
203		
                    
204		return 'media-upload.php?post_id=' . $post_ID . '&tab=' . $tab . '&TB_iframe=1';
                    
205	}
                    
288		{
                    
289			array_push($elem_attr, $n . '="' . $v . '"');
                    
290		}
                    
308
                    
309		$file = basename(parse_url($uri, PHP_URL_PATH));
                    
310
                    
310
                    
311		if ($uri AND in_array($file, array('post.php', 'post-new.php')))
                    
312		{
                    
                
dbo_odbc.php https://github.com/castlino/linonico.com.git | PHP | 360 lines
                    
1<?php
                    
2/* SVN FILE: $Id: dbo_odbc.php 7945 2008-12-19 02:16:01Z gwoo $ */
                    
8 *
                    
9 * PHP versions 4 and 5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
                    
12 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
18 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
19 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
20 * @package       cake
                    
21 * @subpackage    cake.cake.libs.model.dbo
                    
22 * @since         CakePHP(tm) v 0.10.5.1790
                    
23 * @version       $Revision: 7945 $
                    
25 * @lastmodified  $Date: 2008-12-18 18:16:01 -0800 (Thu, 18 Dec 2008) $
                    
26 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
27 */
                    
                
function.menu.php https://gitlab.com/ElvisAns/tiki | PHP | 248 lines
                    
1<?php
                    
2
                    
114                if ($level === 0) {
                    
115                    array_push($structured, $element);
                    
116                    continue;
                    
130                if (! empty($branch['children'])) {
                    
131                    array_push($branch['children'], $element);
                    
132                } else {
                    
                
index.php https://github.com/rsinger/Jangle.git | PHP | 384 lines
                    
1<?php
                    
2
                    
2
                    
3require 'lib/jangle.php';
                    
4require 'lib/spyc.php5';
                    
4require 'lib/spyc.php5';
                    
5require 'lib/models.php';
                    
6
                    
14    if($p) {
                    
15        array_push($path, $p);
                    
16    }
                    
224            }
                    
225            array_push($query_args, $query_arg);
                    
226        }
                    
281        if(!in_array($index, $ctx_sets[$name])) {
                    
282            array_push($ctx_sets[$name],$index);
                    
283        }
                    
                
CPSTimer.php https://github.com/Pogostick/ps-yii-extensions.git | PHP | 307 lines
                    
1<?php
                    
2/**
                    
171		if ( self::START_TIMER == $command )
                    
172			array_push( self::$_timerQueue, $_timer );
                    
173		else
                    
                
Campaign.php https://gitlab.com/estratega.pe/cc | PHP | 309 lines
                    
1<?php
                    
2defined('BASEPATH') OR exit('No direct script access allowed');
                    
97		while ($name = current($opciones_sino)) {
                    
98			array_push($p_select_ind_activo, ['ID' => key($opciones_sino), 'NAME' => $name]);
                    
99			next($opciones_sino);
                    
232					foreach($result as $r) {
                    
233						array_push($records, [
                    
234							'id_campaign'	=> $r->id_campaign
                    
                
run_js_tests.php https://bitbucket.org/jokusafet/magento2.git | PHP | 241 lines
                    
32
                    
33$userConfig = normalize('jsTestDriver.php');
                    
34$defaultConfig = normalize('jsTestDriver.php.dist');
                    
114
                    
115fwrite($fh, "load:" . PHP_EOL);
                    
116foreach ($sortedFiles as $file) {
                    
117    if (!in_array($file, $serveFiles)) {
                    
118        fwrite($fh, "  - " . $file . PHP_EOL);
                    
119    }
                    
182{
                    
183    reportError('Usage: php run_js_tests.php');
                    
184}
                    
228            $path = substr_replace($path, RELATIVE_APP_ROOT, 0, strlen($baseDir));
                    
229            array_push($result, $path);
                    
230        } else {
                    
                
notes.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 184 lines
                    
1<?php
                    
2
                    
41				// si le marqueur n'a pas encore ete utilise, on le recycle dans la pile courante
                    
42				array_push($pile, array(@$les_notes, @$compt_note, $notes_vues,0));
                    
43			else {
                    
44				// sinon on le stocke au chaud, et on en cree un nouveau
                    
45				array_push($pile, array(@$les_notes, @$compt_note, $notes_vues,$marqueur));
                    
46				$next_marqueur++; // chaque fois qu'on rempile on incremente le marqueur general
                    
                
legal_file.php https://bitbucket.org/JakePratt/kupcakz.com.git | PHP | 310 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
26  private static $movie_types;
                    
27  private static $blacklist = array("php", "php3", "php4", "php5", "phtml", "phtm", "shtml", "shtm",
                    
28                                    "pl", "cgi", "asp", "sh", "py", "c", "js");
                    
186    foreach (legal_file::get_extensions() as $extension) {
                    
187      array_push($filters, "*." . $extension, "*." . strtoupper($extension));
                    
188    }
                    
                
Settings.php https://gitlab.com/waltspence/woocommerce-html5-video | PHP | 220 lines
                    
1<?php
                    
2namespace WooCommerceHTML5Video;
                    
40    ?>
                    
41    <a href="options-general.php?page=html5-video-settings">Settings</a>
                    
42    <?php
                    
44    ob_end_clean();
                    
45    array_push( $links, $settings_link );
                    
46    ob_start();
                    
48    <a title="documentation" target="_blank" href="http://www.webilop.com/products/woocommerce-html5-video/">Docs</a>
                    
49    <?php
                    
50    $docs_link = ob_get_contents();
                    
51    ob_end_clean();
                    
52    array_push( $links, $docs_link);
                    
53    return $links;
                    
65    <div class="wrap">
                    
66      <?php screen_icon(); ?>
                    
67      <h2>WooCommerce Html5 Video Settings</h2>
                    
                
GraphComponent.php https://bitbucket.org/kramx7/dc-portal.git | PHP | 317 lines
                    
1<?php
                    
2
                    
32
                    
33        require_once('jpgraph.php');
                    
34        require_once('jpgraph_line.php');
                    
152            $row = $data[$i];
                    
153            array_push($this->xdata, $row[0]);
                    
154            for ($j = 0; $j < $this->num_of_yaxis; $j++) {
                    
154            for ($j = 0; $j < $this->num_of_yaxis; $j++) {
                    
155                array_push($this->ydata[$j], $row[$j + 1]);
                    
156            }
                    
193
                    
194        require_once('jpgraph.php');
                    
195        require_once('jpgraph_line.php');
                    
195        require_once('jpgraph_line.php');
                    
196        require_once('jpgraph_date.php');
                    
197
                    
                
update.php https://bitbucket.org/rubbystar/carimod.git | PHP | 487 lines
                    
1<?php
                    
2/**
                    
240	{
                    
241		array_push($this->stack, $name);
                    
242		$tag = $this->_getStackLocation();
                    
324					// Check if PHP version supported via <php_minimum> tag, assume true if tag isn't present
                    
325					if (!isset($this->currentUpdate->php_minimum) || version_compare(PHP_VERSION, $this->currentUpdate->php_minimum->_data, '>='))
                    
326					{
                    
326					{
                    
327						$phpMatch = true;
                    
328					}
                    
330					{
                    
331						$phpMatch = false;
                    
332					}
                    
341
                    
342					if ($phpMatch && $stabilityMatch)
                    
343					{
                    
                
model.php https://github.com/keiouu/Evelite.git | PHP | 398 lines
                    
1<?php
                    
2/*
                    
9
                    
10require_once(home_dir . "framework/database.php");
                    
11require_once(home_dir . "framework/model_query.php");
                    
11require_once(home_dir . "framework/model_query.php");
                    
12require_once(home_dir . "framework/model_fields/init.php");
                    
13
                    
231			if (strlen($query) > 0)
                    
232				array_push($extra_scripts, $query);
                    
233		}
                    
241			if (strlen($query) > 0)
                    
242				array_push($extra_scripts, $query);
                    
243		}
                    
                
 

Source

Language