100+ results for 'php array_push'
Not the results you expected?
lib.php (https://gitlab.com/MotoSport/morgue) PHP · 307 lines
StaffController.php (https://gitlab.com/kalasi/vispunchcard.com) PHP · 329 lines
Spider.php (https://gitlab.com/lalbert/daric) PHP · 395 lines
method.nav_blocks_player.php (https://github.com/txdv/psychostats4.git) PHP · 282 lines
1 <?php
2 /**
3 * PsychoStats method Nav_Blocks_Player()
22 if (!array_key_exists('player_actions', $blocks)) {
23 array_push_after($blocks, 'player_kill_profile', array(
24 'title' => trans('Player Actions'),
25 'rows' => array(),
189 );
191 array_push_after($blocks['player_kill_profile']['rows'],
192 'kills',
193 array(
206 );
208 array_push_after($blocks['player_kill_profile']['rows'],
209 'killed',
210 array(
project_hierarchy_api.php (https://github.com/fusenigk/mantisbt-1.git) PHP · 290 lines
1 <?php
2 # MantisBT - A PHP based bugtracking system
25 * @link http://www.mantisbt.org
26 *
27 * @uses constant_inc.php
28 * @uses database_api.php
29 */
31 require_api( 'constant_inc.php' );
32 require_api( 'database_api.php' );
282 $t_elem = array_shift( $t_todo );
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 ) );
286 }
users_dao.class.singleton.php (https://gitlab.com/boxnia/NFU_MOVIL) PHP · 278 lines
RealPath.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 139 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: RealPath.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
28 * @see Zend_Filter_Interface
29 */
30 require_once 'Zend/Filter/Interface.php';
32 /**
109 $drive = '';
110 if (substr(PHP_OS, 0, 3) == 'WIN') {
111 $path = preg_replace('/[\\\\\/]/', DIRECTORY_SEPARATOR, $path);
112 if (preg_match('/([a-zA-Z]\:)(.*)/', $path, $matches)) {
proxyReassignCasesList.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 97 lines
1 <?php
2 $callback = isset( $_POST['callback'] ) ? $_POST['callback'] : 'stcCallback1001';
3 $dir = isset( $_POST['dir'] ) ? $_POST['dir'] : 'DESC';
32 G::LoadClass( 'case' );
33 G::LoadClass( 'users' );
34 require_once ("classes/model/AppCacheView.php");
36 $oTasks = new Tasks();
71 $oTmp = $aUsersInvolved;
72 $aCase['USERS'] = $oTmp;
73 array_push( $aCasesList, $aCase );
74 }
classification.html (https://gitlab.com/team_fsn/fsn-php) HTML · 123 lines
1 <?php
2 $base_url = $request->getBaseUrl();
21 if(!empty($temp)){
22 $data_ep_classification = array();
23 array_push($data_ep_classification,$temp[0]);
24 }
25 if(!empty($temp) && $_SESSION['nb_er_poterie'] != 0){
36 <script type="text/javascript">
37 var json_ep_classification = <?php echo $json_ep_classification; ?> ;
39 $(function () {
40 $('#container_ep_classification_bar_<?php echo $unique_div ; ?>').highcharts({
41 credits: {
42 enabled: false
meta-box-saves.inc.php (https://gitlab.com/Gashler/dp) PHP · 148 lines
1 <?php
2 /**
3 * Meta box saves.
69 if (isset ($pages[$_p["ws_plugin__s2member_security_meta_box_level"]]) && is_array ($pages[$_p["ws_plugin__s2member_security_meta_box_level"]]))
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);
73 for ($n = 0, $new_options = array (); $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
95 if (isset ($posts[$_p["ws_plugin__s2member_security_meta_box_level"]]) && is_array ($posts[$_p["ws_plugin__s2member_security_meta_box_level"]]))
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);
99 for ($n = 0, $new_options = array (); $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
email_log.inc.php (https://github.com/axxtel/agilebill.git) PHP · 118 lines
Profiler.inc.php (https://gitlab.com/nacridan/Nacridan) PHP · 244 lines
theme.php (https://gitlab.com/x33n/respond) PHP · 363 lines
class.wp-dependencies.php (https://github.com/livinglab/openlab.git) PHP · 452 lines
com_contact.php (https://github.com/Shigaru/shigaru.git) PHP · 247 lines
MenuBar.php (https://github.com/jaws-project/jaws.git) PHP · 322 lines
1 <?php
2 /**
3 * MenuBar.php - MenuBar Class
9 * <c> Piwi
10 */
11 require_once PIWI_PATH . '/Widget/Container/Container.php';
12 require_once PIWI_PATH . '/Widget/Container/MenuItem.php';
45 function add($path, $url = '', $icon = '')
46 {
47 array_push($this->_paths, $path);
48 $explodedPath = explode('/',$path);
49 $numElements = count($explodedPath);
ArrayList.class.php (https://github.com/qhwang0427/backend_php.git) PHP · 351 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
78 public function add($element)
79 {
80 return (array_push($this->_elements, $element)) ? true : false;
81 }
base_test.php (https://github.com/markn86/moodle.git) PHP · 224 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
19 *
20 * @package mod_assign
21 * @category phpunit
22 * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29 global $CFG;
30 require_once($CFG->dirroot . '/mod/assign/locallib.php');
31 require_once($CFG->dirroot . '/mod/assign/upgradelib.php');
32 require_once(__DIR__ . '/fixtures/testable_assign.php');
34 /**
Ajax.php (https://github.com/intraweb-modules13/IWusers.git) PHP · 242 lines
panier.php (https://gitlab.com/thoussem/Tunisie-Shop) PHP · 315 lines
2 <?php
27 if(!verif_panier($select['id']))
28 {
29 array_push($_SESSION['panier']['id_article'],$select['id']);
30 array_push($_SESSION['panier']['nom'],$select['nom']);
31 array_push($_SESSION['panier']['qte'],$select['qte']);
32 array_push($_SESSION['panier']['srcimg'],$select['srcimg']);
33 array_push($_SESSION['panier']['taille'],$select['taille']);
34 array_push($_SESSION['panier']['prix'],$select['prix']);
139 if($_SESSION['panier']['id_article'][$i] != $ref_article)
140 {
141 array_push($panier_tmp['id_article'],$_SESSION['panier']['id_article'][$i]);
142 array_push($panier_tmp['nom'],$_SESSION['panier']['nom'][$i]);
stylesheet.php (https://gitlab.com/x33n/respond) PHP · 240 lines
scienceDetail.html.php (https://github.com/extraaa/Game.git) PHP · 193 lines
1 <?php
2 /*
3 * science_detail.html.php -
21 // first check whether that science should be displayed...
22 $science = $scienceTypeList[$scienceID];
23 $maxLevel = round(eval('return '.formula_parseToPHP("{$science->maxLevel};", '$caveData')));
24 if (!$science || ($science->nodocumentation &&
25 !$caveData[$science->dbFieldName] &&
46 $duration = time_formatDuration(
47 eval('return ' .
48 formula_parseToPHP($scienceTypeList[$scienceID]->productionTimeFunction.";",'$caveData'))
49 * BUILDING_TIME_BASE_FACTOR);
53 foreach ($science->resourceProductionCost as $resourceID => $function){
55 $cost = ceil(eval('return '. formula_parseToPHP($function . ';', '$caveData')));
56 if ($cost)
57 array_push($resourcecost,
ParanoidHTTPFetcher.php (https://github.com/drzalet1/IT391-Commuter-Challenge.git) PHP · 245 lines
1 <?php
3 /**
4 * This module contains the CURL-based HTTP fetcher implementation.
5 *
6 * PHP versions 4 and 5
7 *
8 * LICENSE: See the COPYING file included in this distribution.
17 * Interface import
18 */
19 require_once "Auth/Yadis/HTTPFetcher.php";
21 require_once "Auth/OpenID.php";
44 function _writeHeader($ch, $header)
45 {
46 array_push($this->headers, rtrim($header));
47 return strlen($header);
48 }
mf_register.php (https://bitbucket.org/rossberenson/michael-karas.git) PHP · 146 lines
Psr4Autoloader.php (https://github.com/markn86/moodle.git) PHP · 148 lines
1 <?php
3 namespace Box\Spout\Autoloader;
5 /**
6 * Class Psr4Autoloader
7 * @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader-examples.md#class-example
8 */
9 class Psr4Autoloader
55 \array_unshift($this->prefixes[$prefix], $baseDir);
56 } else {
57 \array_push($this->prefixes[$prefix], $baseDir);
58 }
59 }
114 // replace the namespace prefix with the base directory,
115 // replace namespace separators with directory separators
116 // in the relative class name, append with .php
117 $file = $baseDir
118 . \str_replace('\\', '/', $relativeClass)
FsExplorer.class.php (https://github.com/midnightskinhead/tubepress.git) PHP · 297 lines
1 <?php
2 /**
3 * Copyright 2006 - 2011 Eric D. Hough (http://ehough.com)
20 */
22 class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';
23 org_tubepress_impl_classloader_ClassLoader::loadClasses(array(
24 'org_tubepress_api_filesystem_Explorer',
88 }
90 array_push($toReturn, realpath($dir . DIRECTORY_SEPARATOR . $file));
91 }
130 }
132 array_push($toReturn, realpath($dir . DIRECTORY_SEPARATOR . $file));
133 }
134 closedir($handle);
http_build_query.php (https://github.com/martpy/akelos.git) PHP · 100 lines
1 <?PHP
2 // +----------------------------------------------------------------------+
3 // | PHP Version 4 |
4 // +----------------------------------------------------------------------+
5 // | Copyright (c) 1997-2004 The PHP Group |
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 // +----------------------------------------------------------------------+
15 // | Authors: Stephan Schmidt <schst@php.net> |
acl0001Test.php (https://github.com/gnomeontherun/joomla-cms.git) PHP · 288 lines
1 <?php
2 /**
3 * @package Joomla.SystemTest
6 * Creates test group and assigns priviledges with the ACL.
7 */
8 require_once 'SeleniumJoomlaTestCase.php';
10 class Acl0001Test extends SeleniumJoomlaTestCase
20 $this->assertTrue($this->isElementPresent("//ul[@id='menu-com-users-users']"), 'User manager should be visible');
21 }
22 catch (PHPUnit_Framework_AssertionFailedError $e)
23 {
24 array_push($this->verificationErrors, $this->getTraceFiles($e));
29 $this->assertTrue($this->isElementPresent("//ul[@id='menu-com-users-groups']"), 'Groups should be visible');
30 }
31 catch (PHPUnit_Framework_AssertionFailedError $e)
32 {
33 array_push($this->verificationErrors, $this->getTraceFiles($e));
rep.php (https://github.com/thomasbennett/tgb.git) PHP · 106 lines
1 <table width="100%" border="0" cellspacing=0 cellpadding=0>
2 <form action="admin.php" method="post">
3 <input type="hidden" name="a" value="rep">
4 <input type="hidden" name="r_id" value="<?=$_POST[r_id]?>">
10 foreach ($titles as $item => $val) {
11 if ($oslogin[$item]) {
12 array_push($access, "<a href=admin.php?a=$item><img src=images/buttons/$item.gif alt=$val border=0></a>");
13 }
14 }
20 <?=$access?>
21 <?=$access ? " ": ""?>
22 <a href="admin.php?a=my"><img src=images/buttons/my.gif alt="My Account" border=0></a>
23 </td></tr>
24 <tr><td><img src="images/spacer.gif" width="1" height="10"></td></tr>
OrdersFixtureTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 262 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
9 use \Magento\Setup\Fixtures\OrdersFixture;
11 class OrdersFixtureTest extends \PHPUnit_Framework_TestCase
12 {
14 /**
15 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Setup\Fixtures\FixtureModel
16 */
17 private $fixtureModelMock;
31 /**
32 *
33 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
34 */
35 public function testExecute()
CSV.class.php (https://github.com/lievenjanssen/The-DataTank.git) PHP · 131 lines
1 <?php
2 /**
3 * This class handles a CSV file
8 * @author Jan Vansteenlandt
9 */
10 include_once ("model/resources/strategies/ATabularData.class.php");
11 class CSV extends ATabularData {
41 $PK = "";
42 foreach ($allowed_columns as $result) {
43 array_push($columns, $result["column_name"]);
44 if ($result["is_primary_key"] == 1) {
45 $PK = $result["column_name"];
89 }
90 if ($PK == "") {
91 array_push($arrayOfRowObjects, $rowobject);
92 } else {
93 if (! isset($arrayOfRowObjects[$rowobject->$PK])) {
tags.php (https://bitbucket.org/marsl/marsl.git) PHP · 202 lines
1 <?php
2 include_once (dirname(__FILE__)."/../includes/errorHandler.php");
3 include_once (dirname(__FILE__)."/../user/user.php");
4 include_once (dirname(__FILE__)."/../includes/dbsocket.php");
5 include_once (dirname(__FILE__)."/../user/auth.php");
6 include_once (dirname(__FILE__)."/../includes/basic.php");
7 include_once (dirname(__FILE__)."/../user/role.php");
8 include_once (dirname(__FILE__)."/../user/auth.php");
56 $id = $row['id'];
57 $tag = htmlentities($row['tag'], null, "ISO-8859-1");
58 array_push($tags, array('id'=>$id, 'tag'=>$tag));
59 }
60 require_once("template/tags.tpl.php");
data_read.ejs.php (https://github.com/tagcool/MitosEHR-Official.git) PHP · 145 lines
1 <?php
2 //--------------------------------------------------------------------------------------------------------------------------
3 // data_read.ejs.php / Permissions List with values for role
11 session_cache_limiter('private');
13 include_once($_SESSION['site']['root']."/classes/dbHelper.class.php");
14 include_once($_SESSION['site']['root']."/classes/I18n.class.php");
15 require_once($_SESSION['site']['root']."/classes/dataExchange.class.php");
17 //******************************************************************************
81 }
82 $row['address_full'] = $row['line1'].' '.$row['line2'].' '.$row['city'].','.$row['state'].' '.$row['zip'].'-'.$row['plus_four'].' '.$row['country'];
83 array_push($rows, $row);
84 }
85 break;
grve-admin-custom-sidebars.php (https://github.com/Canuckaholic/Pop-Digital.git) PHP · 140 lines
51 ?>
52 <div id="grve-sidebar-wrap" class="wrap">
53 <h2><?php echo __( "Sidebars", GRVE_THEME_TRANSLATE ); ?></h2>
55 <?php if( isset( $_GET['sidebar-settings'] ) ) { ?>
65 </div>
66 <div class="grve-sidebar-notice-exists grve-notice-red" style="display:none;">
67 <strong><?php _e( 'Sidebar with this name already exists!', GRVE_THEME_TRANSLATE ); ?></strong>
68 </div>
69 <form method="post" action="themes.php?page=grve-custom-sidebar-settings">
101 <div class="grve-custom-sidebar-item">
102 <input class="<?php echo esc_attr( $grve_button_class ); ?> button" type="button" value="<?php _e( 'Delete', GRVE_THEME_TRANSLATE ); ?>">
103 <h3 class="grve-custom-sidebar-title">
104 <span><?php _e( 'Custom Sidebar', GRVE_THEME_TRANSLATE ); ?>: <?php echo grve_array_value( $sidebar_item, 'name' ); ?></span>
categoriesfc.php (https://github.com/amet17/webstar.git) PHP · 131 lines
1 <?php
2 /**
3 * Element: CategoriesFC
27 $this->params = $params;
29 if ( !file_exists( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'admin.flexicontent.php' ) ) {
30 return 'Flexicontent files not found...';
31 }
68 $pt = $v->parent;
69 $list = @$children[$pt] ? $children[$pt] : array();
70 array_push( $list, $v );
71 $children[$pt] = $list;
72 }
75 // second pass - get an indent list of the items
76 require_once JPATH_LIBRARIES.DS.'joomla'.DS.'html'.DS.'html'.DS.'menu.php';
77 $list = JHTMLMenu::treerecurse( 0, '', array(), $children, 9999, 0, 1 );
iCalendar.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 137 lines
CPSTimer.php (https://github.com/Pogostick/ps-yii-extensions.git) PHP · 307 lines
storestocksale.php (https://gitlab.com/alexprowars/bitrix) PHP · 292 lines
DocBlockScanner.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 326 lines
tksample.php (https://github.com/r1zib/salesforce.git) PHP · 314 lines
1 <?php
2 // session_start() has to go right at the top, before any output!
3 session_start();
11 <body>
12 <tt>
13 <?php
15 require_once ('soapclient/SforcePartnerClient.php');
16 require_once ('soapclient/SforceEnterpriseClient.php');
18 define("USERNAME", "user@example.com");
29 // Simple example of session management - first call will do
30 // login, refresh will use session ID and location cached in
31 // PHP session
32 if (isset($_SESSION['enterpriseSessionId'])) {
33 $location = $_SESSION['enterpriseLocation'];
grve_counter.php (https://github.com/Canuckaholic/Pop-Digital.git) PHP · 213 lines
1 <?php
2 /**
3 * Counter Shortcode
34 $counter_classes = array( 'grve-element' );
36 array_push( $counter_classes, 'grve-counter' );
37 array_push( $counter_classes, 'grve-align-center' );
39 if ( !empty( $animation ) ) {
40 array_push( $counter_classes, 'grve-animated-item' );
41 array_push( $counter_classes, $animation);
45 if ( !empty ( $el_class ) ) {
46 array_push( $counter_classes, $el_class);
47 }
JMailTest.php (https://github.com/dextercowley/joomla-cms.git) PHP · 414 lines
1 <?php
2 /**
3 * @package Joomla.UnitTest
10 /**
11 * Test class for JMail.
12 * Generated by PHPUnit on 2011-10-26 at 19:32:59.
13 *
14 * @package Joomla.UnitTest
259 public function testAddAttachment()
260 {
261 $attachments = array(JPATH_PLATFORM . '/joomla/mail/mail.php');
262 $names = array('mail.php');
271 foreach ($actual as $attach)
272 {
273 array_push($actual_attachments, $attach[0]);
274 array_push($actual_names, $attach[2]);
Paymentmethods.php (https://bitbucket.org/nharland/wikl.nl.git) PHP · 110 lines
errors.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 288 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: errors.php 2460 2008-04-08 21:03:22Z mz $
7 */
9 /**
10 * @ignore - PHP5 compatibility fix.
11 */
12 if (! defined('E_STRICT')) {
17 * Includes SimpleTest files.
18 */
19 require_once dirname(__FILE__) . '/invoker.php';
20 require_once dirname(__FILE__) . '/test_case.php';
web.php (https://github.com/andreatarr/joomla-cms.git) PHP · 315 lines
1 <?php
2 /**
3 * @package Joomla.Test
79 *
80 * @param TestCase $test A test object.
81 * @param PHPUnit_Framework_MockObject_MockObject $mockObject The mock object.
82 * @param array $options A set of options to configure the mock.
83 *
84 * @return PHPUnit_Framework_MockObject_MockObject The object with the behaviours added
85 *
86 * @since 3.4
147 * @param array $options A set of options to configure the mock.
148 *
149 * @return PHPUnit_Framework_MockObject_MockObject
150 *
151 * @since 11.3
PaymentRequest.class.php (https://github.com/madeinnordeste/kohana-pagseguro.git) PHP · 433 lines
1 <?php if (!defined('PAGSEGURO_LIBRARY')) { die('No direct script access allowed'); }
2 /*
3 ************************************************************************
210 }
211 if (is_array($param)) {
212 array_push($this->items, new Item($param));
213 } else if ($param instanceof Item) {
214 array_push($this->items, $param);
221 $item->setWeight($weight);
222 $item->setShippingCost($shippingCost);
223 array_push($this->items, $item);
224 }
225 }
Validation.php (https://github.com/alrik11es/sPHPf.git) PHP · 158 lines
1 <?php
2 namespace coldstarstudios\validation;
28 if(empty($param)){
29 $this->isValid = false;
30 array_push($this->errors, array('id'=>$this->count, 'message'=>$message));
31 }
32 }
46 if($condition){
47 $this->isValid = false;
48 array_push($this->errors, array('id'=>$this->count, 'message'=>$message));
49 }
50 }
63 if($param['size'] > $size) {
64 $this->isValid = false;
65 array_push($this->errors, array('id'=>$this->count, 'message'=>$message_size));
66 }
Group.php (https://bitbucket.org/spenna/alexoo_produzione.git) PHP · 344 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Core
23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
262 /* @var $store Mage_Core_Model_Store */
263 if ($store->getLocaleCode() == $locale) {
264 array_push($stores, $store);
265 }
266 }
SQLQuery.class.php (https://github.com/indieenergy/thresholds-php.git) PHP · 251 lines
1 <?php
3 class SQLQuery {
92 for ($i = 0; $i < $numOfFields; ++$i) {
93 array_push($table,mysql_field_table($this->_result, $i));
94 array_push($field,mysql_field_name($this->_result, $i));
100 $tempResults[$table[$i]][$field[$i]] = $row[$i];
101 }
102 array_push($result,$tempResults);
103 }
136 $numOfFields = mysql_num_fields($this->_result);
137 for ($i = 0; $i < $numOfFields; ++$i) {
138 array_push($table,mysql_field_table($this->_result, $i));
139 array_push($field,mysql_field_name($this->_result, $i));
ajax_income_1.php (https://gitlab.com/dev.essetel/sjnuri) PHP · 262 lines
1 <?php
2 include_once('./_common.php');
103 <td class='addtd15'>{$row['tollfee4_1']}</td>
104 <td>
105 <a href='./income_day_print.php?calldate={$row['a_call_date']}&drvseq={$a_mb_seq}&drv_distance={$row['a_drv_distance']}&cnt={$row['a_cnt']}&drv_cash={$row['a_drv_cash']}&drv_vccash={$row['a_drv_vccash']}&cnt_1={$row['a_cnt_1']}&drv_cash_1={$row['a_drv_cash_1']}&drv_vccash_1={$row['a_drv_vccash_1']}&tollfee_a={$a_tollfee_a}' onclick='return dayprint(this.href);' target='_blank' class='btn btn_02'>일계표</a>
106 </td>
107 </tr>";
124 // <td class='addtd15'>{$row['tollfee4_1']}</td>
125 // <td>
126 // <form id='fincome1' method='post' action='./income_day_print.php'>
127 // <input type='hidden' name='calldate' value='{$row['a_call_date']}'>
128 // <input type='hidden' name='drvseq' value='{$a_mb_seq}'>
140 // </tr>";
141 // $option['date'] = $row['call_date'];
142 // array_push($options, preg_replace('/\r\n|\r|\n/','',$option));
143 array_push($options, $option);
expression.php (https://github.com/dburkart/scurvy.git) PHP · 383 lines
Zone.php (https://github.com/seosamba/ecommerce.git) PHP · 223 lines
request.php (https://github.com/mandriva-management-console/mmc.git) PHP · 210 lines
1 <?php
3 /**
115 $parts = array();
116 foreach ($this->subs as $id => $sub) {
117 array_push($parts, $sub->display());
118 $p = $default_params;
119 $p['subedition'] = 1;
121 $p['sub_id'] = $id;
122 $p['request'] = null;
123 array_push($parameters, $p);
124 }
125 $n = new ListInfos($parts, _T('Search part', 'dyngroup'), "&id=" . $default_params['gid']);
shortcodes.php (https://gitlab.com/hop23typhu/list-theme) PHP · 267 lines
1 <?php
2 //////////////////////////////////////////////////////////////////
3 // Button shortcode
250 function register_button($buttons) {
251 array_push($buttons, "button", "button_progression", "one_half", "one_third", "two_third", "one_fourth", "three_fourth", "toggle", "tabs", "divider");
252 return $buttons;
253 }
CursoProfesor.php (https://github.com/camilo255423/gcad.git) PHP · 123 lines
option_model.php (https://bitbucket.org/adrianricardo/newstatus.git) PHP · 335 lines
helper.php (https://github.com/ponlue/abktours.git) PHP · 162 lines
1 <?php
2 /**
3 * @version $Id: helper.php 2009-12-05 vinaora $
15 defined( '_JEXEC' ) or die( 'Restricted access' );
16 ?>
17 <?php
19 define( 'VERSION_MODULE' , "2.0" );
69 // Push Leading Zeros
70 while ( $diff>0 ){
71 array_push( $arr,0 );
72 $diff--;
73 }
75 // For PHP 4.x
76 /*
77 $arrNumber = array();
ActionStack.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 245 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Controller_Plugin_Abstract */
23 require_once 'Zend/Controller/Plugin/Abstract.php';
25 /** Zend_Registry */
26 require_once 'Zend/Registry.php';
28 /**
35 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
36 * @license http://framework.zend.com/license/new-bsd New BSD License
37 * @version $Id: ActionStack.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
38 */
39 class Zend_Controller_Plugin_ActionStack extends Zend_Controller_Plugin_Abstract
FormService.php (https://github.com/coreui/coreui-free-vue-laravel-admin-template.git) PHP · 353 lines
TermLocalizedTranslationTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 237 lines
1 <?php
3 namespace Drupal\Tests\taxonomy\Kernel\Plugin\migrate\source\d7;
138 // The source data.
139 $tests[1] = $tests[0];
140 array_push($tests[1]['source_data']['i18n_string'],
141 [
142 'lid' => 10,
155 'format' => 0,
156 ]);
157 array_push($tests[1]['source_data']['locales_target'],
158 [
159 'lid' => 10,
175 // The expected results.
176 array_push($tests[1]['expected_data'],
177 [
178 'tid' => 3,
WebDriver.php (https://github.com/perzeababa/saunter.php.git) PHP · 218 lines
6 namespace WebDriver;
8 require_once 'SaunterPHP/Framework/SeleniumConnection.php';
9 require_once 'SaunterPHP/Framework/SuiteIdentifier.php';
10 require_once 'PHPUnit/Framework/TestCase.php';
11 require_once 'Log.php';
13 abstract class SaunterPHP_Framework_SaunterTestCase extends \PHPUnit_Framework_TestCase {
14 static public $log;
15 static public $verificationErrors;
129 array_push(self::$verificationErrors, $message);
130 } else {
131 array_push(self::$verificationErrors, $e->toString());
132 }
133 }
Statuses.class.php (https://github.com/stvvt/ef.git) PHP · 151 lines
smarty_internal_compilebase.php (https://gitlab.com/adamlwalker/generatedata) PHP · 176 lines
match.php (https://github.com/Sa-ryong/Stadioom-php.git) PHP · 199 lines
index.php (https://github.com/hinablue/TextCube.git) PHP · 115 lines
1 <?php
2 /// Copyright (c) 2004-2016, Needlworks / Tatter Network Foundation
3 /// All rights reserved. Licensed under the GPL.
4 /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
5 define('OPENID_REGISTERS', 10); /* check also ../index.php */
7 /* ID Provider로부터 Redirect되어 연결이 되므로 GET 방식으로 구현되었습니다 */
14 );
16 require ROOT . '/library/preprocessor.php';
18 global $openid_list;
22 $openid = Setting::getUserSetting( "openid." . $i ,null,true);
23 if( !empty($openid) ) {
24 array_push( $openid_list, $openid );
25 }
26 }
array.idl.php (https://github.com/diegoIta/hiphop-php.git) PHP · 376 lines
search.php (https://github.com/archoo/electionleaflets.git) PHP · 214 lines
FsExplorer.class.php (https://gitlab.com/endomorphosis/jeffersonsmithmayor) PHP · 297 lines
1 <?php
2 /**
3 * Copyright 2006 - 2012 Eric D. Hough (http://ehough.com)
20 */
22 class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';
23 org_tubepress_impl_classloader_ClassLoader::loadClasses(array(
24 'org_tubepress_api_filesystem_Explorer',
88 }
90 array_push($toReturn, realpath($dir . DIRECTORY_SEPARATOR . $file));
91 }
130 }
132 array_push($toReturn, realpath($dir . DIRECTORY_SEPARATOR . $file));
133 }
134 closedir($handle);
Exceptions.php (https://gitlab.com/hunt9310/ras) PHP · 290 lines
Dashboard.php (https://gitlab.com/rhungs/pelayanan_cs) PHP · 236 lines
1 <?php
74 $build_array = array ("data_grafik"=>array(), "jml"=>$ttl);
75 foreach($results as $row) {
76 array_push($build_array["data_grafik"],
77 array(
78 $row->indikator_name,
97 foreach($results as $row) {
98 if($row->indikator_category_id==1){
99 array_push($build_array["data_sangat_puas"],
100 array(
101 $row->indikator_name,
104 );
105 }else if($row->indikator_category_id==2){
106 array_push($build_array["data_puas"],
107 array(
108 $row->indikator_name,
usermodel.php (https://github.com/atomicflowtechorg/tasker.git) PHP · 178 lines
resultados.php (https://bitbucket.org/glaucomunsberg/kenobi.git) PHP · 141 lines
1 <?php
2 if (!defined('BASEPATH'))
3 exit('No direct script access allowed');
38 'quadrado'=> $this->quintilModel->getQuintilAgilidadeByGenero($teste['genero'], $idade ,$teste['quadrado']),
39 'sentar_alcancar'=> $this->quintilModel-> getQuintilFlexibilidadeByGenero($teste['genero'], $idade ,$teste['sentar_alcancar']));
40 array_push($linhas, $valoresLinha);
41 }
42 array_push($data['testes'], array('ocorrencia'=>$avalicao['dt_ocorrencia'], 'testes'=> $linhas));
70 $idade = $this->quintilModel->calc_idade($teste['dt_nascimento'],$teste['dt_ocorrencia']);
71 $quintil['forcaAbdominal']= $this->quintilModel->mudaQuintil($this->quintilModel->getQuintilAbdominaisByGenero($aluno[0]['genero'],$idade,$teste['num_abdominais']));
72 // array_push($resultados, $quintil);
73 $quintil['mebroSuperior']= $this->quintilModel->mudaQuintil($this->quintilModel->getQuintilForcaExplosivaSuperiorByGenero($aluno[0]['genero'], $idade ,$teste['arremesso_medicineball']));
74 $quintil['salto_horizontal']= $this->quintilModel->mudaQuintil($this->quintilModel->getQuintilForcaExplosivaInferiorByGenero($aluno[0]['genero'], $idade ,$teste['salto_em_distancia']));
77 $quintil['sentar_alcancar']= $this->quintilModel->mudaQuintil($this->quintilModel-> getQuintilFlexibilidadeByGenero($aluno[0]['genero'], $idade ,$teste['sentar_alcancar']));
78 $quintil['dt_ocorrencia']= $teste['dt_ocorrencia'];
79 array_push($data['testes'],array('nome'=>$teste['nome'],'dt_nascimento'=>$teste['dt_nascimento'] ,'nome_mae'=>$teste['nome_mae'] , 'dt_ocorrencia'=>$quintil['dt_ocorrencia'], 'forcaAbdominal'=>$quintil['forcaAbdominal'],
80 'membroSuperior'=>$quintil['mebroSuperior'],'corrida_vinte_metros'=>$quintil['corrida_vinte_metros'],
81 'salto_horizontal'=>$quintil['salto_horizontal'],
LinkedItem.php (https://github.com/dswalker/xerxes.git) PHP · 95 lines
1 <?php
3 /*
67 case 'x': // $x - International Standard Serial Number (NR)
69 array_push($this->issns, $subfield->value);
70 break;
74 case 'z': // $z - International Standard Book Number (R)
76 array_push($this->isbns, $subfield->value);
77 break;
88 default: // everything else is a note
90 array_push($this->notes, $subfield->value);
91 break;
92 }
XmlImportTemplateParser.php (https://gitlab.com/najomie/ljm) PHP · 444 lines
1 <?php
2 /**
3 * @author Olexandr Zanichkovsky <olexandr.zanichkovsky@zophiatech.com>
5 */
7 require_once dirname(__FILE__) . '/ast/XmlImportAstSequence.php';
8 require_once dirname(__FILE__) . '/ast/XmlImportAstPrint.php';
9 require_once dirname(__FILE__) . '/ast/XmlImportAstText.php';
10 require_once dirname(__FILE__) . '/ast/XmlImportAstWith.php';
11 require_once dirname(__FILE__) . '/ast/XmlImportAstForeach.php';
12 require_once dirname(__FILE__) . '/ast/XmlImportAstIf.php';
13 require_once dirname(__FILE__) . '/ast/XmlImportAstMath.php';
14 require_once dirname(__FILE__) . '/ast/XmlImportAstSpintax.php';
pages.inc.php (https://github.com/nDIGAH3CEYIiCsq/gold.git) PHP · 367 lines
manageusers-3.inc.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 190 lines
1 <?php
2 $f_userid = (int)readGetVar('userid');
3 $bIsNewUser = ($f_userid <= 0);
158 if($g_vars['page']['errors']) {
159 include_once($DOCUMENT_PAGES."manageusers-2.inc.php");
160 } else {
161 if($bIsNewUser) {
176 if(!empty($arrGroupIDsNew[$i_rSet1->fields['groupid']]))
177 unset($arrGroupIDsNew[$i_rSet1->fields['groupid']]);
178 else array_push($arrGroupIDsToDelete, $i_rSet1->fields['groupid']);
179 $i_rSet1->MoveNext();
180 }
182 }
183 foreach($arrGroupIDsNew as $key=>$val)
184 array_push($arrGroupIDsToAdd, $key);
185 manageUserGroups(array($f_userid), $arrGroupIDsToAdd, true);
186 manageUserGroups(array($f_userid), $arrGroupIDsToDelete, false);
SkillAPIManager.php (https://gitlab.com/EleonoraUA/rpg_server) PHP · 374 lines
1 <?php
2 /**
3 * Class File SkillAPIManager
4 *
5 * PHP version 5.5
6 *
7 * @package AppBundle\Manager
64 $skills = array();
65 foreach ($char_skills as $char_skill) {
66 array_push($skills, $char_skill);
67 }
68 return $skills;
98 $skills = array();
99 foreach ($char_skills as $char_skill) {
100 array_push($skills, $char_skill->getSkill());
101 }
102 return $skills;
User.php (https://github.com/josephwegner/holidaywish.es.git) PHP · 264 lines
Exporter.php (https://github.com/ewandor/horde.git) PHP · 215 lines
1 <?php
2 /**
3 * Connector class for exporting ActiveSync messages to the wbxml output stream.
13 /**
14 * File : streamimporter.php
15 * Project : Z-Push
16 * Descr : Stream import classes
193 public function folderChange($folder)
194 {
195 array_push($this->changed, $folder);
196 $this->count++;
208 public function folderDeletion($id)
209 {
210 array_push($this->deleted, $id);
211 $this->count++;
OrdersFixtureTest.php (https://gitlab.com/daigiangaitu91/magento) PHP · 262 lines
1 <?php
2 /**
3 * Copyright © 2015 Magento. All rights reserved.
9 use \Magento\Setup\Fixtures\OrdersFixture;
11 class OrdersFixtureTest extends \PHPUnit_Framework_TestCase
12 {
14 /**
15 * @var \PHPUnit_Framework_MockObject_MockObject|\Magento\Setup\Fixtures\FixtureModel
16 */
17 private $fixtureModelMock;
31 /**
32 *
33 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
34 */
35 public function testExecute()
table_torch.php (https://github.com/splitfeed/Table-Torch.git) PHP · 374 lines
1 <?php
3 if (! defined('BASEPATH')) exit('No direct script access');
20 'key'=>'' );
22 //php 5 constructor
23 function __construct() {
336 $fieldname = humanize( $fieldname );
337 }
338 array_push( $headers, anchor( torch_url( $this->url_vals, FALSE ), $prefix . $fieldname, array( 'class'=>$class )));
339 }
news_api.php (https://github.com/osarrat/sigmah-website.git) PHP · 326 lines
1 <?php
2 # MantisBT - a php based bugtracking system
28 * requires current_user_api
29 */
30 require_once( 'current_user_api.php' );
31 /**
32 * requires twitter_api
33 */
34 require_once( 'twitter_api.php' );
36 # --------------------
219 for( $i = 0;$i < $t_row_count;$i++ ) {
220 $row = db_fetch_array( $result );
221 array_push( $t_rows, $row );
222 }
QRssFeed.class.php (https://github.com/quinta/qcodo.git) PHP · 272 lines
vmshoppergroups.php (https://bitbucket.org/ghazalp/news-show-pro-gk5.git) PHP · 118 lines
web.php (https://github.com/dextercowley/joomla-cms.git) PHP · 288 lines
mysql.php (https://github.com/smartarts/php-class-mysql.git) PHP · 115 lines
74 $parts=explode("=",$t);
75 if($parts[1]=='') $parts[1]=$parts[0];
76 array_push($this->dbvar,$parts[0]);
77 array_push($this->expvar,$parts[1]);
108 }
110 require(getdir(__FILE__)."select.php");
111 require(getdir(__FILE__)."insert.php");
112 require(getdir(__FILE__)."update.php");
113 require(getdir(__FILE__)."delete.php");
114 require(getdir(__FILE__)."string.php");
115 ?>
Dump.php (https://github.com/Arkadiy-Sedelnikov/joostina-1.4.git) PHP · 72 lines
1 <?php
2 /**
3 * @package Joostina
4 * @copyright ��������� ����� (C) 2008 Joostina team. ��� ����� ��������.
5 * @license �������� http://www.gnu.org/licenses/gpl-2.0.htm GNU/GPL, ��� help/license.php
6 * Joostina! - ��������� ����������� ����������� ���������������� �� �������� �������� GNU/GPL
7 * ��� ��������� ���������� � ������������ ����������� � ��������� �� ��������� �����, �������� ���� help/copyright.php.
8 * @version 3.1.0
9 * @package patTemplate
10 * @author Stephan Schmidt <schst@php.net>
11 * @license LGPL
12 * @link http://www.php-tools.net
43 if(!isset($flatten[$var]) || !is_array($flatten[$var]))
44 $flatten[$var] = array();
45 array_push($flatten[$var], $value);
46 }
47 }
ThumbBase.php (https://gitlab.com/gregtyka/SiberianCMS) PHP · 323 lines
1 <?php
2 /**
3 * PhpThumb Base Class Definition File
7 * PHP Version 5 with GD 2.0+
8 * PhpThumb : PHP Thumb Library <http://phpthumb.gxdlabs.com>
9 * Copyright (c) 2009, Ian Selby/Gen X Design
10 *
16 * @author Ian Selby <ian@gen-x-design.com>
17 * @copyright Copyright (c) 2009 Gen X Design
18 * @link http://phpthumb.gxdlabs.com
19 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
20 * @version 3.0
21 * @package PhpThumb
22 * @filesource
23 */
dir.php (https://github.com/denibrain/fowork.git) PHP · 93 lines
PartialStack.php (https://gitlab.com/gideonmarked/yovelife) PHP · 93 lines
simpleCaptcha.php (https://github.com/Bigjoos/U-232-V3.git) PHP · 72 lines
1 <?php
2 /**
3 * https://github.com/Bigjoos/
55 $r = rand(0, $size - 1);
56 }
57 array_push($used, $keys[$r]);
58 }
59 $selectText = $used[rand(0, $num - 1) ];
63 shuffle($used);
64 for ($i = 0; $i < sizeof($used); ++$i) {
65 array_push($resp['images'], array(
66 'hash' => sha1($used[$i].$SALT) ,
67 'file' => $images[$used[$i]]
simpleCaptcha.php (https://github.com/Bigjoos/U-232-V1.git) PHP · 75 lines
1 <?php
2 /**
3 * http://btdev.net:1337/svn/test/Installer09_Beta
56 $r = rand(0, $size-1);
57 }
58 array_push($used, $keys[$r]);
59 }
60 $selectText = $used[rand(0, $num-1)];
66 shuffle($used);
67 for ($i=0; $i<sizeof($used); ++$i) {
68 array_push($resp['images'], array(
69 'hash'=>sha1($used[$i] . $SALT),
70 'file'=>$images[$used[$i]]
MigrationManager_SectionsService.php (https://github.com/Firstborn/Craft-CMS-Migration-Manager.git) PHP · 320 lines
XmlDAO.php (https://github.com/iconifyit/SkyBlue-CMS.git) PHP · 160 lines
perms.php (https://gitlab.com/kath.de/cibedo_cibedo.de) PHP · 260 lines
peuplement_ldap.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 67 lines
1 <?php
3 if (!defined("_ECRIRE_INC_VERSION")) return;
42 $ligne[1]=$info_auteur[1];
43 $ligne[2]="<img src=\""._DIR_PLUGIN_PEUPLEMENTLDAP."/img_pack/".$image."\" />";
44 array_push($compte_rendu,$ligne);
45 }
46 }
55 $ligne[1]=$entreesLdap[$i]["mail"][0];
56 $ligne[2]="<img src=\""._DIR_PLUGIN_PEUPLEMENTLDAP."/img_pack/".$image."\" />";
57 array_push($compte_rendu,$ligne);
58 }
59 }
setting_model.php (https://gitlab.com/exabyte-lab/tiffinbox) PHP · 196 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
3 class Setting_Model extends CI_Model {
37 if($row->sliders){
38 $sliders = unserialize($row->sliders);
39 array_push($sliders, [
40 'image'=> site_url().'/media/slider/'.$this->upload_image($data, 'image', 'title', 'slider', './media/slider'),
41 'title'=>$data['title'],
autoloader.php (https://bitbucket.org/codeyash/bootstrap.git) PHP · 356 lines
1 <?php
2 /**
3 * Part of the Fuel framework.
8 * @license MIT License
9 * @copyright 2010 - 2013 Fuel Development Team
10 * @link http://fuelphp.com
11 */
204 else
205 {
206 array_push(static::$core_namespaces, $namespace);
207 }
208 }
316 $file = str_replace('\\', DS, $namespace).DS;
317 }
318 $file .= str_replace('_', DS, $class).'.php';
320 if ( ! $psr)
LogController.php (https://bitbucket.org/spenna/alexoo_produzione.git) PHP · 191 lines
1 <?php
3 /**
6 * Packaged: 2013-04-23T16:34:14+00:00
7 * Last Modified: 2013-03-17T16:34:28+01:00
8 * File: app/code/local/Xtento/OrderExport/controllers/Adminhtml/Orderexport/LogController.php
9 * Copyright: Copyright (c) 2013 XTENTO GmbH & Co. KG <info@xtento.com> / All rights reserved.
10 */
81 $baseFilenames = array();
82 foreach ($savedFiles as $filePath) {
83 array_push($baseFilenames, basename($filePath));
84 }
85 $baseFilenames = array_unique($baseFilenames);
160 $baseFilenames = array();
161 foreach ($savedFiles as $filePath) {
162 array_push($baseFilenames, basename($filePath));
163 }
164 $baseFilenames = array_unique($baseFilenames);
ExchangeController.class.php (https://gitlab.com/xuebutayan/yshop) PHP · 274 lines
menus.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 184 lines
fsa_tree_mem.php (https://github.com/Oreolek/Togataltu.git) PHP · 271 lines
1 <?php
2 /**
3 * This file is part of phpMorphy library
4 *
5 * Copyright c 2007-2008 Kamaev Vladimir <heromantor@users.sourceforge.net>
24 * This file is autogenerated at Wed, 14 Oct 2009 01:33:59 +0400, don`t change it!
25 */
26 class phpMorphy_Fsa_Tree_Mem extends phpMorphy_Fsa {
27 function walk($trans, $word, $readAnnot = true) {
28 $__mem = $this->resource; $fsa_start = $this->fsa_start;
30 for($i = 0, $c = $GLOBALS['__phpmorphy_strlen']($word); $i < $c; $i++) {
31 $prev_trans = $trans;
32 $char = ord($word[$i]);
137 array_push($stack, null);
138 array_push($stack_idx, null);
140 $state = $this->readState((($startNode) >> 11) & 0x1FFFFF);
db.php (https://github.com/vivid-planet/library.git) PHP · 153 lines
1 <?php
3 Class Database {
71 $param_mappings[$param] = '%'.$param_mappings[$param].'%';
72 }
73 array_push($col_mappings, $conjunction.' '.$col.' '.$comparator.' '.$param);
74 }
104 foreach ($values as $col => $value) {
105 $param = ':'.$col;
106 array_push($param_names, $param);
107 $param_mappings[$param] = $value;
108 array_push($col_mappings, $col.'='.$param);
News.class.php (http://antilophpe.googlecode.com/svn/) PHP · 454 lines
1 <?php
2 /**
3 * File News.class.php
327 $listRow=array();
328 while($arrayRow=mysql_fetch_assoc($result)){
329 array_push($listRow,$arrayRow);
330 }
331 return $listRow;
350 $listRow=array();
351 while($arrayRow=mysql_fetch_assoc($result)){
352 array_push($listRow,$arrayRow);
353 }
354 return $listRow;
367 $filesList=array();
368 while($news_File_array=mysql_fetch_assoc($result)){
369 array_push($filesList, $news_File_array);
370 }
371 return $filesList;
FsExplorer.class.php (https://github.com/tengle1080/tubepress.git) PHP · 163 lines
1 <?php
2 /**
3 * Copyright 2006 - 2011 Eric D. Hough (http://ehough.com)
20 */
22 class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';
23 org_tubepress_impl_classloader_ClassLoader::loadClasses(array(
24 'org_tubepress_api_filesystem_Explorer',
82 }
84 array_push($toReturn, realpath($dir . '/' . $file));
85 }
86 closedir($handle);
120 }
122 array_push($toReturn, realpath($dir . '/' . $file));
123 }
124 closedir($handle);
Action.class.php (http://antilophpe.googlecode.com/svn/) PHP · 324 lines
1 <?php
2 /**
3 * File Action.class.php
232 $filesList=array();
233 while($action_File_array=adodb_fetch_assoc($result)){
234 array_push($filesList, $action_File_array);
235 }
236 return $filesList;
315 $list= array();
316 while($action_array=adodb_fetch_assoc($result)){
317 array_push($list,$action_array);
318 }
319 return $list;
LanguageHandler.php (https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git) PHP · 243 lines
1 <?php
2 /*+**********************************************************************************
3 * The contents of this file are subject to the vtiger CRM Public License Version 1.1
28 $translatedString = self::getLanguageTranslatedString($currentLanguage, $key, $module);
30 // label not found in users language pack, then check in the default language pack(config.inc.php)
31 if($translatedString === null) {
32 $defaultLanguage = vglobal('default_language');
176 //To merge base language and user selected language translations
177 if($userSelectedLanguage != $defaultLanguage) {
178 array_push($languages, $defaultLanguage);
179 }
Amalgamator.php (https://github.com/livinglab/openlab.git) PHP · 305 lines
1 <?php
2 /**
3 * Merge pre-3.0 duplicate venues and organizers
66 $eventbrite = get_post_meta( $id, '_OrganizerEventBriteID', true );
67 if ( empty( $eventbrite ) ) {
68 array_push( $buckets[ $hash ], $id );
69 } else {
70 array_unshift( $buckets[ $hash ], $id );
114 $eventbrite = get_post_meta( $id, '_VenueEventBriteID', true );
115 if ( empty( $eventbrite ) ) {
116 array_push( $buckets[ $hash ], $id );
117 } else {
118 array_unshift( $buckets[ $hash ], $id );
268 'post_type' => Tribe__Events__Main::POSTTYPE,
269 'page' => $settings->adminSlug,
270 ], admin_url( 'edit.php' )
271 )
272 );
ActionStack.php (https://github.com/drietsch/newcms.git) PHP · 245 lines
1 <?php
2 /**
3 * Zend Framework
22 /** Zend_Controller_Plugin_Abstract */
23 require_once 'Zend/Controller/Plugin/Abstract.php';
25 /** Zend_Registry */
26 require_once 'Zend/Registry.php';
28 /**
35 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
36 * @license http://framework.zend.com/license/new-bsd New BSD License
37 * @version $Id: ActionStack.php,v 1.1 2008/05/13 13:41:32 holger.meyer Exp $
38 */
39 class Zend_Controller_Plugin_ActionStack extends Zend_Controller_Plugin_Abstract
regions5.js.php (https://github.com/cnlpete/Minecraft-Overviewer-Addons.git) PHP · 132 lines
1 <?php
2 // OPTIONS HERE.... ooooOooo so many options it's overwhelming, how are you ever going to get through all of these!?
3 $yml = @'<serverdir>\plugins\WorldGuard\worlds\<worldname>\regions.yml';
12 $output .= "overviewer.collections.regionDatas.push([\n";
14 require_once "spyc.php"; // YAML Library.
15 $data = spyc_load_file($yml);
96 for ($n = 0;$n <= count($region);$n++) {
97 if (isset($region[$n]["x"]) && isset($region[$n]["z"])) {
98 array_push($points["x"],$region[$n]["x"]);
99 array_push($points["z"],$region[$n]["z"]);
DocBlockScanner.php (https://github.com/bruisedlee/zf2.git) PHP · 375 lines
StarWriterTask.php (https://github.com/stubbles/star.git) PHP · 321 lines
1 <?php
2 /**
3 * Task to create star files.
10 * Uses the Phing Task
11 */
12 require_once 'phing/Task.php';
13 /**
14 * Uses star writer classes
15 */
16 require_once 'star/StarArchive.php';
17 /**
18 * Uses star writer classes
19 */
20 require_once 'star/StarFile.php';
21 /**
22 * Uses star writer classes
updateActivity.php (https://github.com/qarnac/CyberHawk-Adventure.git) PHP · 56 lines
1 <?php
2 include '../php/credentials.php';
3 include '../php/getConstants.php';
34 $choic=array("choices"=>array());
35 if($data->a!="")
36 array_push($choic['choices'],array('choice'=>'a','content'=>$data->a,'ans'=> btos($data->answer=='a')));
37 if($data->b!="")
38 array_push($choic['choices'],array('choice'=>'b','content'=>$data->b,'ans'=> btos($data->answer=='b')));
39 if($data->c!="")
40 array_push($choic['choices'],array('choice'=>'c','content'=>$data->c,'ans'=> btos($data->answer=='c')));
41 if($data->d!="")
42 array_push($choic['choices'],array('choice'=>'d','content'=>$data->d,'ans'=> btos($data->answer=='d')));
43 if($data->e!="")
44 array_push($choic['choices'],array('choice'=>'e','content'=>$data->e,'ans'=> btos($data->answer=='e')));
45 $choic=json_encode($choic);
46 return $choic;