PageRenderTime 232ms queryTime 25ms sortTime 0ms getByIdsTime 45ms findMatchingLines 47ms

100+ results results for 'php array_pop repo:gencer/punbb' (232 ms)

Not the results you expected?
BaseTest.php git://github.com/manuelpichler/staticReflection.git | PHP | 347 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5
                    
6 *
                    
38 *
                    
39 * @category  PHP
                    
40 * @package   pdepend\reflection
                    
42 * @copyright 2009-2011 Manuel Pichler. All rights reserved.
                    
43 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
44 * @version   SVN: $Id$
                    
52 *
                    
53 * @category  PHP
                    
54 * @package   pdepend\reflection
                    
56 * @copyright 2009-2011 Manuel Pichler. All rights reserved.
                    
57 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
58 * @version   Release: @package_version@
                    
                
rights_editor.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms-dev/ | PHP | 317 lines
                    
1<?php
                    
2
                    
24/**
                    
25 * $Id: reporting_viewer.class.php 216 2009-11-13 14:08:06Z kariboe $
                    
26 * @package application.lib.weblcms.tool.component
                    
167        //remove last separator, or '<br/>' if no objects were found
                    
168        array_pop($info);
                    
169        
                    
                
PartialHelper.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 390 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: PartialHelper.php 10227 2008-07-11 19:36:32Z fabien $
                    
18 */
                    
160 * The partial name is composed as follows: 'mymodule/mypartial'.
                    
161 * The partial file name is _mypartial.php and is looked for in modules/mymodule/templates/.
                    
162 * If the partial name doesn't include a module name,
                    
274
                    
275  $name = array_pop($slot_names);
                    
276
                    
                
genorder.php http://opixido-ocms.googlecode.com/svn/trunk/ | PHP | 275 lines
                    
1<?php
                    
2
                    
42            foreach ($_Gconfig['fullArbo'] as $root_table => $v) {
                    
43                $v = array_pop($v);
                    
44                $_Gconfig['fullArboRev'][$v[0]] = array($v[1], $v[2]);
                    
                
class.mime.message.php https://bitbucket.org/dotclear/dotclear/ | PHP | 467 lines
                    
1<?php
                    
2# ***** BEGIN LICENSE BLOCK *****
                    
78			$r = $this->headers[$hdr];
                    
79			return array_pop($r);
                    
80		}
                    
300				# This splits on a semi-colon, if there's no preceeding backslash
                    
301				# Now works with quoted values; had to glue the \; breaks in PHP
                    
302				# the regex is already bordering on incomprehensible
                    
                
sfPropelFormGenerator.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 492 lines
                    
99
                    
100      file_put_contents($baseDir.'/base/Base'.$table->getPhpName().'Form.class.php', $this->evalTemplate('sfPropelFormGeneratedTemplate.php'));
                    
101      if (!file_exists($classFile = $baseDir.'/'.$table->getPhpName().'Form.class.php'))
                    
123      {
                    
124        if ($column->isForeignKey() && $column->isPrimaryKey() && $this->table->getPhpName() == $this->getForeignTable($column)->getPhpName())
                    
125        {
                    
129          {
                    
130            if ($relatedColumn->isForeignKey() && $relatedColumn->isPrimaryKey() && $this->table->getPhpName() != $this->getForeignTable($relatedColumn)->getPhpName())
                    
131            {
                    
167      {
                    
168        $names[] = array($this->getForeignTable($column)->getPhpName(), $column->getPhpName(), $column->isNotNull(), false);
                    
169      }
                    
173    {
                    
174      $names[] = array($tables['relatedTable']->getPhpName(), $tables['middleTable']->getPhpName(), false, true);
                    
175    }
                    
                
AdvindexHelper.php git://github.com/morrislaptop/advindex.git | PHP | 307 lines
                    
1<?php
                    
2
                    
136		$paging = $this->params['paging'];
                    
137		$paging = array_pop($paging);
                    
138		$limit = $paging['options']['limit'];
                    
138		$limit = $paging['options']['limit'];
                    
139		if ( $limit == PHP_INT_MAX ) {
                    
140			$limit = 'All';
                    
                
simple_parser_engine.php http://textmotion.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
18 * @lastmodified    $Date: $
                    
19 * @license         http://www.opensource.org/licenses/mit-license.php The MIT License
                    
20 *
                    
103                // what did we close?
                    
104                $start = array_pop($stack);
                    
105
                    
149    if ($stack) { 
                    
150      debug("Filter syntax error near '".substr($buff, array_pop($stack), 60)."'");
                    
151      return false;
                    
                
mime_content_type.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 121 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////
                    
44
                    
45			However, if the system detects that the Fileinfo extension for PHP
                    
46			is installed, then that will be used instead of the crappy method.
                    
49	{
                    
50		// Is the Fileinfo extension installed in your PHP setup? Even better!
                    
51		if(function_exists('finfo_file'))
                    
52		{
                    
53			$ff = finfo_open(FILEINFO_MIME, settings()->get('finfo_magic_file', 'string', substr(PHP_OS, 0, 3) == 'WIN' ? 'C:\Program Files\PHP\magic' : '/usr/share/misc/file/magic.mgc'));
                    
54			$mime_type = finfo_file($ff, $location);
                    
64			$tmp = explode('.', $filename);
                    
65			$extension = sha1(strtolower(array_pop($tmp)));
                    
66
                    
                
ModulesTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: ModulesTest.php 24226 2011-07-12 19:41:03Z matthew $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Application_Resource_ModulesTest::main');
                    
29 */
                    
30require_once 'Zend/Loader/Autoloader.php';
                    
31
                    
39 */
                    
40class Zend_Application_Resource_ModulesTest extends PHPUnit_Framework_TestCase
                    
41{
                    
43    {
                    
44        $suite  = new PHPUnit_Framework_TestSuite(__CLASS__);
                    
45        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
                
xajaxArgumentManager.inc.php https://code.google.com/p/evedev-kb/ | PHP | 467 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*/
                    
190								$mValue = $aArg;								
                    
191								$sKey = array_pop($aStack);
                    
192								$aArg = array_pop($aStack);
                    
                
parsepath.php http://firmkernel.googlecode.com/svn/trunk/ | PHP | 63 lines
                    
1<?php
                    
2/*
                    
3+-----------------------------------------------------------------------------+
                    
4| $Id: parsepath.php 2010-05-24 12:37:44Z Bleakwind $
                    
5| Parse template and some other thing
                    
32    $CONFIGURE['common']['sub_path_split']          = $CONFIGURE['common']['sub_split'];
                    
33    array_pop($CONFIGURE['common']['sub_path_split']);
                    
34    if (!empty($CONFIGURE['common']['sub_path_split'])) {
                    
                
variablesTreatment.functions.php http://bideew.googlecode.com/svn/Development/ | PHP | 158 lines
                    
1<?php
                    
2/**
                    
111           
                    
112            $arr_map = array_pop($arr_list);
                    
113           
                    
135
                    
136//fonction d'affichage de variable php en Javascript
                    
137function php2js($var){
                    
141		foreach ($var as $a_var){
                    
142			$array[] = Debug::php2js($a_var);
                    
143		}
                    
                
ArrayList.php git://github.com/silverstripe/sapphire.git | PHP | 529 lines
                    
1<?php
                    
2/**
                    
205	public function pop() {
                    
206		return array_pop($this->items);
                    
207	}
                    
346			}
                    
347			// PHP 5.3 requires below arguments to be reference when using array_multisort together 
                    
348			// with call_user_func_array
                    
                
SearchFilter.php git://github.com/silverstripe/sapphire.git | PHP | 301 lines
                    
1<?php
                    
2
                    
73			$parts = explode('.', $name);
                    
74			$this->name = array_pop($parts);
                    
75			$this->relation = $parts;
                    
                
survey_template_user.class.php https://bitbucket.org/chamilo/chamilo-survey/ | PHP | 326 lines
                    
1<?php
                    
2namespace repository\content_object\survey;
                    
86        $class = self :: type_to_class($type);
                    
87        require_once dirname(__FILE__) . '/template/' . $type . '/' . $type . '.class.php';
                    
88        return new $class($defaultProperties, $additionalProperties);
                    
313        //            $context_ids = explode('_', $path);
                    
314        //            $context_id = array_pop($context_ids);
                    
315        //            $path_child_context_ids[$path] = $parent_child_context_ids[$context_id];
                    
                
database.php http://prails.googlecode.com/svn/trunk/ | PHP | 148 lines
                    
1<?php
                    
2/**
                    
70		$pkfield = str_replace($this->str_prefix, "", $table)."_id";
                    
71		return @array_pop($this->SqlQuery("SELECT * FROM ".$table." WHERE ".$pkfield."=".if_set($id, "0")));
                    
72	}
                    
                
PhabricatorRepositoryMercurialCommitDiscoveryDaemon.php git://github.com/facebook/phabricator.git | PHP | 138 lines
                    
1<?php
                    
2
                    
95    while (true) {
                    
96      $target = array_pop($discover);
                    
97      list($stdout) = $repository->execxLocalCommand(
                    
121    while (true) {
                    
122      $target = array_pop($insert);
                    
123      list($stdout) = $repository->execxLocalCommand(
                    
                
Profiler.php git://github.com/silverstripe/sapphire.git | PHP | 235 lines
                    
1<?php
                    
2/********************************************************************************\
                    
111            $this->running[$name] += $this->elapsedTime($name);
                    
112        $this->cur_timer=array_pop($this->stack);
                    
113        $this->__resumeTimer($this->cur_timer);
                    
                
validate-and-send.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 469 lines
                    
1<?php
                    
2/**
                    
4  *
                    
5  * PHP Version 5
                    
6  *
                    
29			'html' => 'text/html',
                    
30			'php' => 'text/html',
                    
31			'css' => 'text/css',
                    
80
                    
81		$ext = strtolower(array_pop(explode('.', $filename)));
                    
82		if (array_key_exists($ext, $mime_types)) {
                    
434	if (@$vars['forms_captcha_required']) {
                    
435		require_once $_SERVER['DOCUMENT_ROOT'].'/ww.incs/recaptcha.php';
                    
436		if (!isset($_REQUEST['recaptcha_challenge_field'])) {
                    
                
LoggerNDC.php http://owasp-esapi-php.googlecode.com/svn/trunk/ | PHP | 202 lines
                    
94	public static function clear() {
                    
95		$GLOBALS['log4php.LoggerNDC.ht'] = array();
                    
96	}
                    
103	public static function get() {
                    
104		if(!array_key_exists('log4php.LoggerNDC.ht', $GLOBALS)) {
                    
105			LoggerNDC::clear();
                    
117	public static function getDepth() {
                    
118		return count($GLOBALS['log4php.LoggerNDC.ht']);	  
                    
119	}
                    
132		if(count($GLOBALS['log4php.LoggerNDC.ht']) > 0) {
                    
133			return array_pop($GLOBALS['log4php.LoggerNDC.ht']);
                    
134		} else {
                    
195			if(LoggerNDC::getDepth() > $maxDepth) {
                    
196				$GLOBALS['log4php.LoggerNDC.ht'] = array_slice($GLOBALS['log4php.LoggerNDC.ht'], $maxDepth);
                    
197			}
                    
                
ms_storage_raw_info_pop.php http://prohits.googlecode.com/svn/trunk/ | PHP | 363 lines
                    
25
                    
26include("./ms_permission.inc.php");
                    
27/*echo "<pre>";
                    
43if($tableName){
                    
44  $bar_color = array_pop($colorArr);
                    
45  $tableName_arr[$tableName] = $bar_color;
                    
48    if(array_key_exists($baseTable, $table_arr)) continue;
                    
49    $bar_color = array_pop($colorArr);
                    
50    $tableName_arr[$baseTable] = $bar_color;
                    
203  if($line_style){
                    
204    $tmp_file = "./line_status_gif.php?tital=$tital&imageWidth=$tableWidth&border=$border&size_unit=$size_unit&tableName=$tableName&file_type=$file_type&bigest_size=$bigest_size&bigest_num_file=$bigest_num_file&show_single=$show_single&show_all=$show_all&content=$content&interval=$interval";
                    
205?>
                    
209      <td width="100">
                    
210      <img src="./line_status_gif.php?tital=<?=$tital?>&imageWidth=<?=$tableWidth?>&border=<?=$border?>&size_unit=<?=$size_unit?>&tableName=<?=$tableName?>&file_type=<?=$file_type?>&bigest_size=<?=$bigest_size?>&bigest_num_file=<?=$bigest_num_file?>&show_single=<?=$show_single?>&show_all=<?=$show_all?>&content=<?=$content?>&interval=<?=$interval?>">
                    
211      <!--a href="javascript: newpopwin('<?=$tmp_file?>',850,1000);">table</a-->
                    
                
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 503 lines
                    
4 *
                    
5 * Copyright (c) 2006 - 2007 PHPExcel, Maarten Balliauw
                    
6 *
                    
22 * @package    PHPExcel_Calculation
                    
23 * @copyright  Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/lgpl.txt	LGPL
                    
33 * @package    PHPExcel_Calculation
                    
34 * @copyright  Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Calculation_Functions {
                    
37	/**
                    
71		// Loop trough arguments
                    
72		$aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
                    
73		foreach ($aArgs as $arg) {
                    
                
FunctionDeclarationArgumentSpacingSniff.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 260 lines
                    
13 * @version   CVS: $Id: FunctionDeclarationArgumentSpacingSniff.php 274897 2009-01-29 23:39:52Z squiz $
                    
14 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
15 */
                    
28 * @version   Release: 1.2.2
                    
29 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
30 */
                    
48     *
                    
49     * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
                    
50     * @param int                  $stackPtr  The position of the current token in the
                    
54     */
                    
55    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
56    {
                    
98            // Find and check the comma (if there is one).
                    
99            $nextComma = $phpcsFile->findNext(T_COMMA, ($nextParam + 1), $closeBracket);
                    
100            if ($nextComma !== false)
                    
                
YouPorn.php http://vlc-shares.googlecode.com/svn/trunk/ | PHP | 378 lines
                    
1<?php 
                    
2
                    
107		
                    
108		array_pop($exploded);
                    
109		
                    
                
LatteFilter.php https://code.google.com/p/celebrio/ | PHP | 565 lines
                    
1<?php
                    
2
                    
24{
                    
25	/** @internal single & double quoted PHP string */
                    
26	const RE_STRING = '\'(?:\\\\.|[^\'\\\\])*\'|"(?:\\\\.|[^"\\\\])*"';
                    
27
                    
28	/** @internal PHP identifier */
                    
29	const RE_IDENTIFIER = '[_a-zA-Z\x7F-\xFF][_a-zA-Z0-9\x7F-\xFF]*';
                    
147				$nl = isset($matches['newline']) ? "\n" : ''; // double newline
                    
148				if ($nl && $matches['indent'] && strncmp($code, '<?php echo ', 11)) {
                    
149					$this->output .= "\n" . $code; // remove indent, single newline
                    
198			do {
                    
199				$tag = array_pop($this->tags);
                    
200				if (!$tag) {
                    
289				$this->escape = 'Nette\Templates\TemplateHelpers::escapeHtml';
                    
290				if ($tag->closing) array_pop($this->tags);
                    
291			}
                    
                
KLogger.php git://github.com/katzgrau/KLogger.git | PHP | 396 lines
                    
1<?php
                    
2
                    
98    /**
                    
99     * Valid PHP date() format string for log timestamps
                    
100     * @var string
                    
211    {
                    
212        return array_pop($this->_messageQueue);
                    
213    }
                    
                
phob.class.php http://phob.googlecode.com/svn/trunk/ | PHP | 540 lines
                    
1<?php
                    
2
                    
7 * @copyright   Copyright (c) 2008 - 2009, Jan Skrasek
                    
8 * @version     0.8 $Id: phob.class.php 42 2010-01-16 19:01:17Z skrasek.jan@gmail.com $
                    
9 * @link        http://phob.skrasek.com
                    
166		if (in_array($this->router['action'], array('view', 'preview')))
                    
167			$this->router['name'] = array_pop($url);
                    
168
                    
201					$upPath = $this->router['path'];
                    
202					array_pop($upPath);
                    
203					$upPath = implode('/', $upPath);
                    
                
ImageServerOppClass.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 453 lines
                    
1<?php
                    
2define('HEX2BIN_WS', " \t\n\r");
                    
32        }
                    
33        $list = self::getServerContent2('/listImages.php');
                    
34        return $list;
                    
43        
                    
44        $sclient = self::getServerContent2('/clientVersion.php');       
                    
45        if(is_array($sclient) && isset($sclient['user'] ) && !empty($sclient['password'])){
                    
73        if (ImageServerOppClass::is_validServer()) {
                    
74            $info = self::getServerContent2('/imageInfo.php');
                    
75            return $info;
                    
86        }
                    
87        $list = self::getServerContent2('/listImageSets.php');
                    
88        return $list;
                    
92
                    
93        $v = self::getServerContent('/check.php');
                    
94        if (is_array($v)) {
                    
                
rebuildParser.php git://github.com/nikic/PHP-Parser.git | PHP | 212 lines
                    
39echo 'Building parser. Output: "',
                    
40     trim(shell_exec('kmyacc -l -m kmyacc.php.parser -p PHPParser_Parser ' . TMP_FILE . ' 2>&1')),
                    
41     '"', "\n";
                    
42
                    
43rename(RESULT_FILE, '../lib/PHPParser/Parser.php');
                    
44
                    
46    echo 'Building debug parser. Output: "',
                    
47    trim(shell_exec('kmyacc -t -v -l -m kmyacc.php.parser -p PHPParser_Parser ' . TMP_FILE . ' 2>&1')),
                    
48    '"', "\n";
                    
52    }
                    
53    rename(RESULT_FILE, '../lib/PHPParser/Parser/Debug.php');
                    
54}
                    
149
                    
150                return 'foreach (' . $args[0] . ' as &$s) { if (is_string($s)) { $s = PHPParser_Node_Scalar_String::parseEscapeSequences($s, null); } } $s = preg_replace(\'~(\r\n|\n|\r)$~\', \'\', $s); if (\'\' === $s) array_pop(' . $args[0] . ');';
                    
151            }
                    
                
Highlighter.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 448 lines
                    
10 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
11 * the PHP License and are unable to obtain it through the web, please
                    
12 * send a note to license@php.net so we can mail you a copy immediately.
                    
17 * @copyright  2004-2006 Andrey Demenev
                    
18 * @license    http://www.php.net/license/3_0.txt  PHP License
                    
19 * @version    CVS: $Id: Highlighter.php,v 1.1 2007/06/03 02:35:28 ssttoo Exp $
                    
19 * @version    CVS: $Id: Highlighter.php,v 1.1 2007/06/03 02:35:28 ssttoo Exp $
                    
20 * @link       http://pear.php.net/package/Text_Highlighter
                    
21 */
                    
62 * @copyright  2004-2006 Andrey Demenev
                    
63 * @license    http://www.php.net/license/3_0.txt  PHP License
                    
64 * @version    Release: 0.7.1
                    
64 * @version    Release: 0.7.1
                    
65 * @link       http://pear.php.net/package/Text_Highlighter
                    
66 */
                    
                
ContainableBehavior.php git://github.com/cakephp/cakephp.git | PHP | 429 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.Model.Behavior
                    
17 * @package       Cake.Model.Behavior
                    
18 * @since         CakePHP(tm) v 1.2.0.5669
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
27 * @package       Cake.Model.Behavior
                    
28 * @link http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html
                    
29 */
                    
                
smarty_internal_compile_private_registered_block.php http://kemiaeve.googlecode.com/svn/trunk/ | PHP | 79 lines
                    
1<?php
                    
2/**
                    
48            if (!is_array($function)) {
                    
49                $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; {$function}({$_params}, null, \$_smarty_tpl->smarty, \$_block_repeat, \$_smarty_tpl);while (\$_block_repeat) { ob_start();?>";
                    
50            } else if (is_object($function[0])) {
                    
50            } else if (is_object($function[0])) {
                    
51                $output = "<?php \$_smarty_tpl->smarty->_tag_stack[] = array('{$tag}', {$_params}); \$_block_repeat=true; call_user_func_array(\$_smarty_tpl->smarty->registered_plugins['block']['{$tag}'][0],array({$_params}, null, \$_smarty_tpl->smarty, &\$_block_repeat, \$_smarty_tpl));while (\$_block_repeat) { ob_start();?>";
                    
52            } else {
                    
67            if (!is_array($function)) {
                    
68                $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false; echo {$function}({$_params}, \$_block_content, \$_smarty_tpl->smarty, \$_block_repeat, \$_smarty_tpl); } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
                    
69            } else if (is_object($function[0])) {
                    
69            } else if (is_object($function[0])) {
                    
70                $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false; echo call_user_func_array(\$_smarty_tpl->smarty->registered_plugins['block']['{$base_tag}'][0],array({$_params}, \$_block_content, \$_smarty_tpl->smarty, &\$_block_repeat, \$_smarty_tpl)); } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
                    
71            } else {
                    
71            } else {
                    
72                $output = "<?php \$_block_content = ob_get_clean(); \$_block_repeat=false; echo call_user_func_array(array('{$function[0]}','{$function[1]}'),array({$_params}, \$_block_content, \$_smarty_tpl->smarty, &\$_block_repeat, \$_smarty_tpl)); } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>";
                    
73            } 
                    
                
index.html http://dyhb-frame.googlecode.com/svn/trunk/ | HTML | 160 lines
                    
3 <head>
                    
4  <title>The DoYouHaoBaby PHP Framework For PHP5 | ????????</title>
                    
5  <meta http-equiv="content-type" content="text/html; charset=gbk" />
                    
15     <div id="version">
                    
16	    The DoYouHaoBaby PHP Framework????????<br>
                    
17        Copyright(c) <a href="http://doyouhaobaby.net">DoYouHaoBaby.NET</a>
                    
50				<li>??Node?????????????</li>
                    
51				<li>??????PHP????? <span style="color: #808080"><strong>?????????????PHP ???</strong></span></li>
                    
52				<li>???????</li>
                    
64				??????????????????????<span style="color: #008000"><strong>????</strong></span>????????????<span style="color: #008000"><strong>PHP??</strong></span>????????????<span style="color: #008000"><strong>App/~Runtime/Cache</strong></span>?????[<span style="color: #0000ff"><strong>????/??????????????????????????????????/????????{???/??}?.compiled.php</strong></span>]???????????????????????????????????????????????????????</p>
                    
65				<p>???????????<span style="color: #008000"><strong>D:\php\htdocs\dianniu\DoYouHaoBaby\LibPHP\App\Package\Template\Template.class.php</strong></span>???getCompiledPath???????????????????<br/>
                    
66				<DIV class=dp-highlighter><DIV class=bar></DIV>
                    
128					   <li class="nodot"><a href="./php/index.html">??????PHP ??</a></li>
                    
129					   <li class="nodot"><a href="./tagphp/index.html">??????PHP ??</a></li>
                    
130					   <li class="nodot"><a href="./tagself/index.html">????Tagself( ????? )</a></li>
                    
                
QueryParserContext.php git://github.com/concrete5/concrete5.git | PHP | 402 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: QueryParserContext.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
23/** Zend_Search_Lucene_Search_QueryToken */
                    
24require_once 'Zend/Search/Lucene/Search/QueryToken.php';
                    
25
                    
143        if ($this->_mode === self::GM_BOOLEAN) {
                    
144            require_once 'Zend/Search/Lucene/Search/QueryParserException.php';
                    
145            throw new Zend_Search_Lucene_Search_QueryParserException('It\'s not allowed to mix boolean and signs styles in the same subquery.');
                    
154        } else {
                    
155            require_once 'Zend/Search/Lucene/Exception.php';
                    
156            throw new Zend_Search_Lucene_Exception('Unrecognized sign type.');
                    
187        if ($this->_nextEntryField !== null  ||  $this->_nextEntrySign !== null) {
                    
188            require_once 'Zend/Search/Lucene/Search/QueryParserException.php';
                    
189            throw new Zend_Search_Lucene_Search_QueryParserException('\'~\' modifier must follow word or phrase.');
                    
                
string_utilities.class.php https://bitbucket.org/chamilo/chamilo/ | PHP | 312 lines
                    
1<?php
                    
2namespace common\libraries;
                    
5/**
                    
6 * $Id: string.class.php 128 2009-11-09 13:13:20Z vanpouckesven $
                    
7 * @package common.string
                    
296            {
                    
297                array_pop($tags);
                    
298            }
                    
                
view_render_php.php http://enaj.googlecode.com/svn/trunk/ | PHP | 479 lines
                    
1<?php
                    
2// $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
3
                    
9 * @license New BSD License {@link http://qeephp.com/license/}
                    
10 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
11 * @package mvc
                    
17 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
18 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
19 * @package mvc
                    
67     *
                    
68     * @var QView_Render_PHP_Parser
                    
69     */
                    
234 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
235 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
236 * @package mvc
                    
                
tree.php git://github.com/klevo/wildflower.git | PHP | 393 lines
                    
1<?php 
                    
2/* SVN FILE: $Id: tree.php 112 2008-06-19 11:57:33Z AD7six $ */
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
23 * @lastModified         $Date: 2008-06-19 13:57:33 +0200 (Thu, 19 Jun 2008) $
                    
24 * @license              http://www.opensource.org/licenses/mit-license.php The MIT License
                    
25 */
                    
154			while ($stack && ($stack[count($stack)-1] < $result[$model][$right])) {
                    
155				array_pop($stack);
                    
156				$return .= "\r\n" . str_repeat("\t",count($stack) + 1) . '</' . $type . '>';
                    
240		while ($stack) {
                    
241			array_pop($stack);
                    
242			$return .= "\r\n" . str_repeat("\t",count($stack) + 1) . '</' . $type . '>';
                    
                
ReflectionAnnotation.php git://github.com/Andrewsville/PHP-Token-Reflection.git | PHP | 484 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHP Token Reflection
                    
4 *
                    
225			array_walk_recursive($this->annotations, function(&$value) {
                    
226				// {@*} is a placeholder for */ (phpDocumentor compatibility)
                    
227				$value = str_replace('{@*}', '*/', $value);
                    
310
                    
311					array_pop(self::$copydocStack);
                    
312				}
                    
317
                    
318		array_pop(self::$copydocStack);
                    
319	}
                    
                
selenium.php http://prado3.googlecode.com/svn/trunk/ | PHP | 555 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Selenium PHP driver. Saves the test command in a "out" queue (in session),
                    
4 * and for each selenese request, remove the first comand from the "out" queue
                    
7 *
                    
8 * Usage: See ../../example.php
                    
9 *
                    
19 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
                    
20 * @version $Id: selenium.php 1771 2007-03-26 00:27:59Z xue $
                    
21 * @package Prado.tests
                    
27 * @author Wei Zhuo<weizhuo[at]gmail[dot]com>
                    
28 * @version $Id: selenium.php 1771 2007-03-26 00:27:59Z xue $
                    
29 * @package Prado.tests
                    
31
                    
32require_once(dirname(__FILE__).'/results.php');
                    
33
                    
                
fooLoader.php http://kosimpin.googlecode.com/svn/trunk/ | PHP | 387 lines
                    
1<?php
                    
2
                    
6* Released under the MIT license, see:
                    
7* http://www.opensource.org/licenses/mit-license.php
                    
8*/
                    
43        {
                    
44            $class = array_pop($folders);
                    
45            $folders = join('/', $folders).'/';
                    
291	 *
                    
292	 * The config/autoload.php file contains an array that permits sub-systems,
                    
293	 * libraries, plugins, and helpers to be loaded automatically.
                    
369    * Can load a view file from an absolute path and
                    
370    * relative to the CodeIgniter index.php file
                    
371    * Handy if you have views outside the usual CI views dir
                    
                
bpm-profiler.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
70
                    
71		$item = array_pop($this->stack);
                    
72		$time = $this->microtime($item['start']);
                    
                
IOFactory.php https://PHPExcel.svn.codeplex.com/svn | PHP | 283 lines
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
42 * @package    PHPExcel
                    
43 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
44 */
                    
55		array( 'type' => 'IWriter', 'path' => 'PHPExcel/Writer/{0}.php', 'class' => 'PHPExcel_Writer_{0}' ),
                    
56		array( 'type' => 'IReader', 'path' => 'PHPExcel/Reader/{0}.php', 'class' => 'PHPExcel_Reader_{0}' )
                    
57	);
                    
181	/**
                    
182	 * Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution
                    
183	 *
                    
212	/**
                    
213	 * Create PHPExcel_Reader_IReader for file using automatic PHPExcel_Reader_IReader resolution
                    
214	 *
                    
                
SetCookie.php git://github.com/zendframework/zf2.git | PHP | 400 lines
                    
1<?php
                    
2
                    
110        if (count($multipleHeaders) <= 1) {
                    
111            return $setCookieProcessor(array_pop($multipleHeaders));
                    
112        } else {
                    
                
html.php http://joostina.googlecode.com/svn/trunk/ | PHP | 398 lines
                    
1<?php 
                    
2/**
                    
4 *
                    
5 * $Id: html.php 4376 2009-06-01 11:40:39Z samsoir $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
33            // Do not encode existing HTML entities
                    
34            // From PHP 5.2.3 this functionality is built-in, otherwise use a regex
                    
35            if (version_compare(PHP_VERSION, '5.2.3', '>=')) {
                    
210        $array = array();
                    
211        while ($segment = array_pop($segments)) {
                    
212            $array[] = html::anchor
                    
                
SilvercartAddressHolder.php https://bitbucket.org/silvercart/silvercart/ | PHP | 311 lines
                    
1<?php
                    
2/**
                    
91            $parts = explode(self::$breadcrumbs_delimiter, $breadcrumbs);
                    
92            $addressHolder = array_pop($parts);
                    
93            $parts[] = ("<a href=\"" . $this->Link() . "\">" . $addressHolder . "</a>");
                    
                
Htmldiff.php https://bitbucket.org/seezoo/seezoo/ | PHP | 308 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
22	public function __construct() {
                    
23		require_once APPPATH . 'libraries/HtmlDiff/Diff.php';
                    
24		require_once APPPATH . 'libraries/HtmlDiff/Diff/Renderer.php';
                    
24		require_once APPPATH . 'libraries/HtmlDiff/Diff/Renderer.php';
                    
25		require_once APPPATH . 'libraries/HtmlDiff/Diff/Renderer/unified.php';
                    
26	}
                    
125		/* Create the Diff object. */
                    
126		// 'shell' means to use diff command, we select it because it's smarter than 'native' PHP diff engine.
                    
127		$diff = new Text_Diff('auto', array($lines1, $lines2));
                    
140				foreach ($op->orig as $line) {
                    
141					$out .= $line . PHP_EOL;
                    
142				}
                    
148				foreach ($op->final as $line) {
                    
149					$out .= $line . PHP_EOL;
                    
150				}
                    
                
PropelSQLDiffTask.php git://github.com/propelorm/Propel.git | PHP | 191 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/AbstractPropelDataModelTask.php';
                    
12require_once dirname(__FILE__) . '/../builder/om/ClassTools.php';
                    
12require_once dirname(__FILE__) . '/../builder/om/ClassTools.php';
                    
13require_once dirname(__FILE__) . '/../builder/om/OMBuilder.php';
                    
14require_once dirname(__FILE__) . '/../model/diff/PropelDatabaseComparator.php';
                    
14require_once dirname(__FILE__) . '/../model/diff/PropelDatabaseComparator.php';
                    
15require_once dirname(__FILE__) . '/../util/PropelMigrationManager.php';
                    
16
                    
143        $appDatasFromXml = $this->getDataModels();
                    
144        $appDataFromXml = array_pop($appDatasFromXml);
                    
145
                    
                
content_object_user_share_rights_browser_table_cell_renderer.class.php https://bitbucket.org/chamilo/chamilo-repository-dev/ | PHP | 92 lines
                    
1<?php
                    
2namespace repository;
                    
13
                    
14require_once dirname(__FILE__) . '/share_right_column.class.php';
                    
15require_once dirname(__FILE__) . '/action_column.php';
                    
15require_once dirname(__FILE__) . '/action_column.php';
                    
16require_once dirname(__FILE__) . '/content_object_user_share_rights_browser_table_column_model.class.php';
                    
17require_once Path :: get_user_path() . 'lib/user_table/default_user_table_cell_renderer.class.php';
                    
41        {
                    
42            $location = RepositoryRights :: get_instance()->get_location_by_identifier_from_users_subtree(RepositoryRights :: TYPE_USER_CONTENT_OBJECT, array_pop($this->browser->get_content_objects())->get_id(), array_pop($this->browser->get_content_objects())->get_owner_id());
                    
43            $rights = RepositoryRights :: get_instance()->get_granted_rights_for_rights_entity_item(RepositoryManager :: APPLICATION_NAME, UserEntity :: ENTITY_TYPE, $user->get_id(), $location);
                    
                
Cronjob.php git://github.com/daylightstudio/FUEL-CMS.git | PHP | 265 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
23 * based on this:
                    
24 * http://www.underwaterdesign.com/2006/06/php_create_a_cron_job_with_php.php
                    
25 *
                    
152		$cron = '';
                    
153		if (!empty($this->mailto)) $cron .= "MAILTO=".$this->mailto.PHP_EOL;
                    
154		$joiner = (empty($this->mailto)) ? ">> /dev/null 2>&1" : '';
                    
154		$joiner = (empty($this->mailto)) ? ">> /dev/null 2>&1" : '';
                    
155		$cron .= implode($joiner.PHP_EOL, $this->_jobs);
                    
156		$cron .= PHP_EOL; // !!!important... for cronjobs to run, you must have this ending newline
                    
170			$dir = explode(DIRECTORY_SEPARATOR, $this->cronfile);
                    
171			array_pop($dir);
                    
172			$dir = implode(DIRECTORY_SEPARATOR, $dir).DIRECTORY_SEPARATOR;
                    
262
                    
263/* End of file Cronjob.php */
                    
264/* Location: ./modules/cronjob/libraries/Cronjob.php */
                    
                
FlashMessengerTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
5 */
                    
6require_once dirname(__FILE__) . '/../../../../TestHelper.php';
                    
7
                    
8// Call Zend_Controller_Action_Helper_FlashMessengerTest::main() if this source file is executed directly.
                    
9if (!defined("PHPUnit_MAIN_METHOD")) {
                    
10    define("PHPUnit_MAIN_METHOD", "Zend_Controller_Action_Helper_FlashMessengerTest::main");
                    
12
                    
13require_once 'Zend/Controller/Front.php';
                    
14require_once 'Zend/Controller/Request/Http.php';
                    
14require_once 'Zend/Controller/Request/Http.php';
                    
15require_once 'Zend/Controller/Response/Cli.php';
                    
16require_once 'Zend/Controller/Action/HelperBroker.php';
                    
16require_once 'Zend/Controller/Action/HelperBroker.php';
                    
17require_once 'Zend/Controller/Action/Helper/FlashMessenger.php';
                    
18require_once 'Zend/Session.php';
                    
                
File.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 348 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPUnit
                    
4 *
                    
4 *
                    
5 * Copyright (c) 2002-2011, Sebastian Bergmann <sebastian@phpunit.de>.
                    
6 * All rights reserved.
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Util
                    
38 * @subpackage Util
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
41 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
42 * @link       http://www.phpunit.de/
                    
                
MXI_functions.inc.php http://quan-li-cua-hang-bang-dia.googlecode.com/svn/trunk/ | PHP | 163 lines
                    
1<?php
                    
2/*
                    
17/**
                    
18include a PHP page (containing HTML/HEAD/BODY and strips away the outer HTML
                    
19then eval the code
                    
49		if ($chk === false) {
                    
50			die(KT_getResource('PHP_CHDIR_FAILED', 'MXI', array($tmpArr['dirRelPath'])));
                    
51		}
                    
64    ob_end_clean();
                    
65    $tmpArr = array_pop($GLOBALS['KT_dir_depth']);
                    
66    $GLOBALS['KT_REL_PATH'] = $tmpArr['relpath'];
                    
76    if ($chk === false) {
                    
77        die(KT_getResource('PHP_CHDIR_FAILED', 'MXI', array($tmpArr['dirRelPath'])));
                    
78    }
                    
82		if (isset($GLOBALS['arrTNGs']) && count($GLOBALS['arrTNGs']) > 0) {
                    
83			$GLOBALS['tNGs'] = array_pop($GLOBALS['arrTNGs']);
                    
84		}
                    
                
createNewProject.php http://marcel-as3-framework.googlecode.com/svn/trunk/ | PHP | 326 lines
                    
58	///////////////////////////////////////
                    
59	@rename($destFolderContainer."/marcel-as3-framework.as3proj", $destFolderContainer."/".array_pop(explode("/", $destFolderContainer)).".as3proj");
                    
60	@rename($destFolderContainer."/src/actionscript/project/project_name", $destFolderContainer."/src/actionscript/project/".$destPackageName);
                    
218	$dir = dir($source);
                    
219	$scriptName = array_pop(explode("/", $_SERVER["SCRIPT_NAME"]));
                    
220	while (false !== $entry = $dir->read())
                    
284		<form action="" method="POST">
                    
285		New Project path: <input name="destFolderContainer" style="width:300px;" value="<?php echo str_replace('\\', '/', realpath('../')); ?>/client_YYYYMMDD_project">
                    
286		<br><br>
                    
294		?>
                    
295		<input id="ui_id_<?php echo $i;?>" name="ui_id_<?php echo $i;?>" value="name_ui" onkeyup="updateUIList();">
                    
296		<span id="span_<?php echo $i;?>">clientproj.</span><input name="ui_class_<?php echo $i;?>" value="uis.UI">
                    
297		<input type="checkbox" name="ui_<?php echo $i;?>_form_cb" id="ui_<?php echo $i;?>_form_cb" /><label for="ui_<?php echo $i;?>_form_cb"> contains form</label>
                    
298		<input type="checkbox" name="ui_<?php echo $i;?>_video_cb" id="ui_<?php echo $i;?>_video_cb" /><label for="ui_<?php echo $i;?>_video_cb"> contains video</label>
                    
299		<br/>
                    
                
ContainerTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2// Call Zend_View_Helper_Placeholder_Container_AbstractTest::main() if this source file is executed directly.
                    
2// Call Zend_View_Helper_Placeholder_Container_AbstractTest::main() if this source file is executed directly.
                    
3if (!defined("PHPUnit_MAIN_METHOD")) {
                    
4    define("PHPUnit_MAIN_METHOD", "Zend_View_Helper_Placeholder_ContainerTest::main");
                    
8require_once "PHPUnit/Framework/TestCase.php";
                    
9require_once "PHPUnit/Framework/TestSuite.php";
                    
10
                    
11/** Zend_View_Helper_Placeholder_Container */
                    
12require_once 'Zend/View/Helper/Placeholder/Container.php';
                    
13
                    
34    {
                    
35        require_once "PHPUnit/TextUI/TestRunner.php";
                    
36
                    
376        $value = $this->container->toString();
                    
377        $expectedValue = '    <ul><li>foo</li>' . PHP_EOL . '    <li>bar</li>' . PHP_EOL . '    <li>baz</li></ul>';
                    
378        $this->assertEquals($expectedValue, $value);
                    
                
PlayerWithOpponentControllerTest.php git://github.com/ornicar/lichess.git | PHP | 333 lines
                    
1<?php
                    
2
                    
71        $response = json_decode($p2->getResponse()->getContent(), true);
                    
72        $lastEvent = array_pop($response['e']);
                    
73        $this->assertEquals('redirect', $lastEvent['type']);
                    
104        $response = json_decode($p2->getResponse()->getContent(), true);
                    
105        $lastEvent = array_pop($response['e']);
                    
106        $url = $lastEvent['url'];
                    
                
class.phpdocpdf.php http://prado3.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
6 * 
                    
7 * PHP versions 4 and 5
                    
8 *
                    
29 * @subpackage PDFdefault
                    
30 * @author     Greg Beaver <cellog@php.net>
                    
31 * @copyright  2000-2006 Joshua Eichorn, Gregory Beaver
                    
32 * @license    http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
33 * @version    CVS: $Id: class.phpdocpdf.php 212211 2006-04-30 22:18:14Z cellog $
                    
34 * @filesource
                    
35 * @link       http://www.phpdoc.org
                    
36 * @link       http://pear.php.net/PhpDocumentor
                    
37 * @since      1.2
                    
40/** ezPdf libraries */
                    
41include_once 'phpDocumentor/Converters/PDF/default/class.ezpdf.php';
                    
42include_once 'phpDocumentor/Converters/PDF/default/ParserPDF.inc';
                    
                
DocBlockScanner.php git://github.com/zendframework/zf2.git | PHP | 327 lines
                    
1<?php
                    
2/**
                    
321
                    
322        array_pop($tokens);
                    
323
                    
                
xajaxArgumentManager.inc.php http://prosporous.googlecode.com/svn/trunk/ | PHP | 451 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-2006 by Jared White & J. Max Wilson

                    
29	will be processed.  During a xajax request, any arguments found in the

                    
30	GET or POST will be converted to a PHP array.

                    
31*/

                    
178							$mValue = $aArg;								

                    
179							$sKey = array_pop($aStack);

                    
180							$aArg = array_pop($aStack);

                    
                
router.php git://github.com/eryx/php-framework-benchmark.git | PHP | 292 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
81	 * Does reverse routing for a named route.  This will return the FULL url
                    
82	 * (including the base url and index.php).
                    
83	 *
                    
88	 *
                    
89	 * <a href="<?php echo Router::get('foo'); ?>">Foo</a>
                    
90	 *
                    
263			$class = $namespace.static::$prefix.\Inflector::words_to_upper(implode('_', $temp_segments));
                    
264			array_pop($temp_segments);
                    
265			if (class_exists($class))
                    
                
str.php git://github.com/eryx/php-framework-benchmark.git | PHP | 416 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
17 *
                    
18 * PHP needs to be compiled with --enable-mbstring
                    
19 * or a fallback without encoding support is used
                    
65				{
                    
66					array_pop($tags);
                    
67				}
                    
                
get_zip_code.php git://github.com/mheadd/tropo-webapi-php.git | PHP | 142 lines
                    
1<?php
                    
2
                    
3// Include Tropo classes.
                    
4require('tropo.class.php');
                    
5
                    
6// Include Limonade framework.
                    
7require('path/to/limonade/lib/limonade.php');
                    
8
                    
40	$weather_info = getWeather($zip);
                    
41	$city = array_pop($weather_info);
                    
42
                    
80		// Welcome prompt (for phone channel, and IM/SMS sessions with invalid initial text).
                    
81		$tropo->say("Welcome to the Tropo PHP zip code example for $channel");
                    
82		
                    
89		// Tell Tropo what to do when the user has entered input, or if there is an error.
                    
90		$tropo->on(array("event" => "continue", "next" => "get_zip_code.php?uri=end", "say" => "Please hold."));
                    
91		$tropo->on(array("event" => "error", "next" => "get_zip_code.php?uri=error", "say" => "An error has occured."));
                    
                
compiler-path.html http://dyhb-frame.googlecode.com/svn/trunk/ | HTML | 112 lines
                    
3 <head>
                    
4  <title>The DoYouHaoBaby PHP Framework For PHP5 | ????????</title>
                    
5  <meta http-equiv="content-type" content="text/html; charset=gbk" />
                    
7  <meta name="Keywords" content="DoYouHaoBaby,Framework">
                    
8  <meta name="Description" content="The DoYouHaoBaby PHP Framework | ?????????????">
                    
9  <link rel="stylesheet" type="text/css" href="./../../media/css/style.css" />
                    
12 <body style="margin:0">
                    
13  <div id="header"><img src="./../../media/images/logo.png"  border="0" title="The DoYouHaoBaby PHP Framework Logo" ></div>
                    
14  <div id="content"> 
                    
15     <div id="version">
                    
16	    The DoYouHaoBaby PHP Framework????????<br>
                    
17        Copyright(c) <a href="http://doyouhaobaby.net">DoYouHaoBaby.NET</a>
                    
59		<p>
                    
60			??????????????? <span style="color: rgb(0, 128, 0);"><strong>DoYouHaoBaby\LibPHP\App\Package\Template\Template.class.php</strong></span>???????</p>
                    
61		<p><DIV class=dp-highlighter><DIV class=bar></DIV>
                    
                
Cf_menu_lib.php http://cmsdamu.googlecode.com/svn/trunk/ | PHP | 214 lines
                    
1<?php
                    
2//If BASEPATH is not defined, simply exit.
                    
108
                    
109        //array_pop($this->menu[0]);
                    
110        //$this->last_id = $this->last_id['']
                    
                
mk_composers.php http://mikrokosmos.googlecode.com/svn/trunk/ | PHP | 550 lines
                    
1<?php
                    
2/*
                    
25	function reduce_timeline($numberOfFrames = 1){
                    
26		for($i = 0; i < $numberOfFrames; $i++) array_pop($this->fc);
                    
27	}
                    
                
CList.php git://github.com/eryx/php-framework-benchmark.git | PHP | 343 lines
                    
1<?php
                    
2/**
                    
30 * @author Qiang Xue <qiang.xue@gmail.com>
                    
31 * @version $Id: CList.php 3001 2011-02-24 16:42:44Z alexander.makarow $
                    
32 * @package system.collections
                    
197				if($index===$this->_c)
                    
198					return array_pop($this->_d);
                    
199				else
                    
                
ErrorCollector.php git://github.com/gallery/gallery3-contrib.git | PHP | 209 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
36     * Sends an error message to the collector for later use
                    
37     * @param $severity int Error severity, PHP error style (don't use E_USER_)
                    
38     * @param $msg string Error message text
                    
173        $context_stack = array(array());
                    
174        while ($current = array_pop($stack)) {
                    
175            $context = array_pop($context_stack);
                    
                
DoctrineCrudGenerator.php git://github.com/eryx/php-framework-benchmark.git | PHP | 290 lines
                    
1<?php
                    
2
                    
113            case 'xml':
                    
114            case 'php':
                    
115            case 'annotation':
                    
129    {
                    
130        if (!in_array($this->format, array('yml', 'xml', 'php'))) {
                    
131            return;
                    
158        $parts = explode('\\', $this->entity);
                    
159        $entityClass = array_pop($parts);
                    
160        $entityNamespace = implode('\\', $parts);
                    
162        $target = sprintf(
                    
163            '%s/Controller/%s/%sController.php',
                    
164            $dir,
                    
172
                    
173        $this->renderFile($this->skeletonDir, 'controller.php', $target, array(
                    
174            'actions'           => $this->actions,
                    
                
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 503 lines
                    
4 *
                    
5 * Copyright (c) 2006 - 2007 PHPExcel
                    
6 *
                    
22 * @package    PHPExcel_Calculation
                    
23 * @copyright  Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/lgpl.txt	LGPL
                    
33 * @package    PHPExcel_Calculation
                    
34 * @copyright  Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Calculation_Functions {
                    
37	/**
                    
71		// Loop trough arguments
                    
72		$aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args());
                    
73		foreach ($aArgs as $arg) {
                    
                
SourceServer.php http://globalban-spanish.googlecode.com/svn/globalban/ | PHP | 93 lines
                    
1<?php
                    
2/**
                    
8 * @author     Sebastian Staudt
                    
9 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
10 * @package    Steam Condenser (PHP)
                    
13
                    
14require_once STEAM_CONDENSER_PATH . 'InetAddress.php';
                    
15require_once STEAM_CONDENSER_PATH . 'exceptions/RCONNoAuthException.php';
                    
15require_once STEAM_CONDENSER_PATH . 'exceptions/RCONNoAuthException.php';
                    
16require_once STEAM_CONDENSER_PATH . 'steam/packets/rcon/RCONAuthRequest.php';
                    
17require_once STEAM_CONDENSER_PATH . 'steam/packets/rcon/RCONAuthResponse.php';
                    
17require_once STEAM_CONDENSER_PATH . 'steam/packets/rcon/RCONAuthResponse.php';
                    
18require_once STEAM_CONDENSER_PATH . 'steam/packets/rcon/RCONExecRequest.php';
                    
19require_once STEAM_CONDENSER_PATH . 'steam/servers/GameServer.php';
                    
19require_once STEAM_CONDENSER_PATH . 'steam/servers/GameServer.php';
                    
20require_once STEAM_CONDENSER_PATH . 'steam/sockets/RCONSocket.php';
                    
21require_once STEAM_CONDENSER_PATH . 'steam/sockets/SourceSocket.php';
                    
                
Resource.php git://github.com/centurion-project/Centurion.git | PHP | 460 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24//$1 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            //$1 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            //$1 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
118            if (!$this->hasResourceType($type)) {
                    
119                //$1 'Zend/Loader/Exception.php';
                    
120                throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");
                    
122            if (empty($args)) {
                    
123                //$1 'Zend/Loader/Exception.php';
                    
124                throw new Zend_Loader_Exception("Cannot load resources; no resource specified");
                    
                
taxonomy.pages.inc http://goldcat.googlecode.com/svn/ | Pascal | 128 lines
                    
1<?php
                    
2
                    
83  $tags_typed = drupal_explode_tags($tags_typed);
                    
84  $tag_last = drupal_strtolower(array_pop($tags_typed));
                    
85
                    
                
Validator.php git://github.com/eryx/php-framework-benchmark.git | PHP | 207 lines
                    
1<?php
                    
2
                    
39        $this->aliases = array();
                    
40        // PHP is a bit lax with integer <=> string conversions in
                    
41        // arrays, so we don't use the identical !== comparison
                    
64            ->assertIsString(); // implicit assertIsString handled by InterchangeBuilder
                    
65        array_pop($this->context);
                    
66    }
                    
104
                    
105        array_pop($this->context);
                    
106    }
                    
123        }
                    
124        array_pop($this->context);
                    
125    }
                    
151        }
                    
152        array_pop($this->context);
                    
153    }
                    
                
common.php http://endcms.googlecode.com/svn/trunk/ | PHP | 361 lines
                    
1<?php
                    
2
                    
152	{
                    
153		include_once('model/user.php');
                    
154		$user = new END_User;
                    
195	
                    
196	$ftype = array_pop(explode('.',$path));
                    
197	$etag = basename($path).$mw.'x'.$mh;
                    
282			{
                    
283				if (is_dir($mdir.$v) && file_exists($mfile = $mdir.$v.'/'.$v.'.config.php'))
                    
284				{
                    
304{
                    
305	echo ' <a href="admin.php?p=item&action=view_item&category_id='.END_ADMIN_CATEGORY_ID.'&item_id='.$id.'">'.$s.'</a> ';
                    
306}
                    
308{
                    
309	echo ' <a href="admin.php?p=item&action=edit_item&category_id='.END_ADMIN_CATEGORY_ID.'&item_id='.$id.'">'.$s.'</a> ';
                    
310}
                    
                
PEARSax3.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 157 lines
                    
1<?php
                    
2
                    
98        if (! empty($this->stack))
                    
99            array_pop($this->stack);
                    
100        return true;
                    
                
Table.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 179 lines
                    
1<?php
                    
2
                    
169        
                    
170        array_pop($tokens_of_children); // remove phantom token
                    
171        
                    
                
text_renderer.cls.php https://code.google.com/p/ecartcommerce/ | PHP | 136 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * DOMPDF - PHP5 HTML to PDF renderer
                    
4 *
                    
4 *
                    
5 * File: $RCSfile: text_renderer.cls.php,v $
                    
6 * Created on: 2004-06-01
                    
25 * Alternatively, you may distribute this software under the terms of the
                    
26 * PHP License, version 3.0 or later.  A copy of this license should have
                    
27 * been distributed with this file in the file LICENSE.PHP .  If this is not
                    
27 * been distributed with this file in the file LICENSE.PHP .  If this is not
                    
28 * the case, you can obtain a copy at http://www.php.net/license/3_0.txt.
                    
29 *
                    
39
                    
40/* $Id: text_renderer.cls.php,v 1.5 2006/07/07 21:31:05 benjcarson Exp $ */
                    
41
                    
                
attachments_controller.php http://croogo.googlecode.com/svn/trunk/ | PHP | 210 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP version 5
                    
8 *
                    
12 * @author   Fahad Ibnay Heylaal <contact@fahad19.com>
                    
13 * @license  http://www.opensource.org/licenses/mit-license.php The MIT License
                    
14 * @link     http://www.croogo.org
                    
117                $fileTitleE = explode('.', $file['name']);
                    
118                array_pop($fileTitleE);
                    
119                $fileTitle = implode('.', $fileTitleE);
                    
                
draftfiles_ajax.php git://github.com/moodle/moodle.git | PHP | 288 lines
                    
1<?php
                    
2
                    
28
                    
29require('../config.php');
                    
30require_once($CFG->libdir.'/filelib.php');
                    
30require_once($CFG->libdir.'/filelib.php');
                    
31require_once($CFG->libdir.'/adminlib.php');
                    
32require_once($CFG->dirroot.'/repository/lib.php');
                    
163        $filepath = explode('/', trim($file->get_filepath(), '/'));
                    
164        $filepath = array_pop($filepath);
                    
165        $zipfile = repository::get_unused_filename($draftid, $parent_path, $filepath . '.zip');
                    
                
ActionStack.php git://github.com/centurion-project/Centurion.git | PHP | 280 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Controller_Plugin_Abstract */
                    
23//$1 'Zend/Controller/Plugin/Abstract.php';
                    
24
                    
25/** Zend_Registry */
                    
26//$1 'Zend/Registry.php';
                    
27
                    
207
                    
208        $next = array_pop($stack);
                    
209        $this->_saveStack($stack);
                    
211        if (!$next instanceof Zend_Controller_Request_Abstract) {
                    
212            //$1 'Zend/Controller/Exception.php';
                    
213            throw new Zend_Controller_Exception('ArrayStack should only contain request objects');
                    
                
CronParser.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 604 lines
                    
1<?php /* $Id: CronParser.php,v 1.7 2005/09/12 01:04:05 ns Exp $ */
                    
2
                    
25$cron_str0 = "0,12,30-51 3,21-23,10 1-25 9-12,1 0,3-7";
                    
26require_once("CronParser.php");
                    
27$cron = new CronParser();
                    
191		{
                    
192			$this->month = array_pop($arMonths);
                    
193		}
                    
209			{
                    
210				$this->day = array_pop($arDays);
                    
211			}
                    
225				{
                    
226					$this->hour = array_pop($arHours);
                    
227				}
                    
244					{
                    
245						$this->minute = array_pop($arMinutes);
                    
246					}
                    
                
Captcha.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
3/** Zend_Form_Element_Xhtml */
                    
4require_once 'Zend/Form/Element/Xhtml.php';
                    
5
                    
6/** Zend_Captcha_Adapter */
                    
7require_once 'Zend/Captcha/Adapter.php';
                    
8
                    
167            if (!isset($this->_loaders[$type])) {
                    
168                require_once 'Zend/Loader/PluginLoader.php';
                    
169                $this->_loaders[$type] = new Zend_Loader_PluginLoader(
                    
248        array_unshift($segments, $root);
                    
249        array_pop($segments);
                    
250        $newContext = $context;
                    
                
Captcha.php git://github.com/valentinbora/joobsbox-php.git | PHP | 303 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Captcha.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
21 */
                    
23/** Zend_Form_Element_Xhtml */
                    
24require_once 'Zend/Form/Element/Xhtml.php';
                    
25
                    
26/** Zend_Captcha_Adapter */
                    
27require_once 'Zend/Captcha/Adapter.php';
                    
28
                    
210            if (!isset($this->_loaders[$type])) {
                    
211                require_once 'Zend/Loader/PluginLoader.php';
                    
212                $this->_loaders[$type] = new Zend_Loader_PluginLoader(
                    
292        array_unshift($segments, $root);
                    
293        array_pop($segments);
                    
294        $newContext = $context;
                    
                
lib.php http://swf-activity-module.googlecode.com/svn/trunk/ | PHP | 358 lines
                    
1<?php  // $Id: lib.php,v 1.1 2010/02/02 matbury Exp $
                    
2/**
                    
36 
                    
37require_once('swfformlib.php'); // functions for mod_form.php
                    
38require_once('swfviewlib.php'); // functions for view.php
                    
89	
                    
90    if (!function_exists('grade_update')) { //workaround for buggy PHP versions
                    
91        require_once($CFG->libdir.'/gradelib.php');
                    
155	global $CFG;
                    
156	require_once($CFG->libdir.'/gradelib.php');
                    
157	$grades = grade_get_grades($course->id, 'mod', 'swf', $swf->id, $user->id);
                    
173        $numviews = count($logs);
                    
174        $lastlog = array_pop($logs);
                    
175        $result = new object();
                    
193    global $CFG;
                    
194	require_once($CFG->libdir.'/gradelib.php');
                    
195	$grades = grade_get_grades($course->id,'mod','swf',$swf->id,$user->id);
                    
                
IniFileTokenReader.php http://prado3.googlecode.com/svn/trunk/ | PHP | 98 lines
                    
1<?php
                    
2/*
                    
21
                    
22include_once 'phing/types/TokenReader.php';
                    
23include_once 'phing/system/io/IOException.php';
                    
23include_once 'phing/system/io/IOException.php';
                    
24include_once 'phing/filters/ReplaceTokens.php'; // For class Token
                    
25
                    
82        if (count($tokens) > 0) {
                    
83            return array_pop($tokens);
                    
84        } else
                    
                
down.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 165 lines
                    
1<?php
                    
2
                    
125
                    
126        require_once ( NV_ROOTDIR . '/includes/class/pclzip.class.php' );
                    
127
                    
134            $paths = explode( "/", $global_config['site_logo'] );
                    
135            array_pop( $paths );
                    
136            $paths = implode("/", $paths );
                    
153
                    
154require_once ( NV_ROOTDIR . '/includes/class/download.class.php' );
                    
155
                    
                
lang_data.php http://prails.googlecode.com/svn/trunk/ | PHP | 262 lines
                    
1<?php
                    
2/**
                    
35		if (IS_SETUP) {
                    
36			$arr_result = @array_pop($this->obj_sql->SqlQuery("SELECT * FROM ".tbl_prailsbase_language." WHERE ".(strlen($str_lang) > 0 ? "abbreviation='".$str_lang."'" : "isDefault=1")));
                    
37			if (strlen($str_lang) <= 0 && DEFAULT_LANGUAGE != $arr_result["language_id"]) {
                    
69	      	);
                    
70	      	if ($res != null) $arr_result = @array_pop($res);
                    
71	      	if (!$arr_result) $arr_result["content"] = "{".$str_item."}";
                    
83	function selectTextByIdentifier($str_item) {
                    
84		$arr_result = @array_pop($this->obj_sql->SqlQuery(
                    
85          	"SELECT " .
                    
152	function getAllTextsById($id) {
                    
153		$arr_text = @array_pop($this->obj_sql->SqlQuery("SELECT * FROM tbl_prailsbase_texts WHERE texts_id=".(int)$id));
                    
154
                    
169			if (strlen($arr_data["old_identifier"]) > 0) {
                    
170				$exists = @array_pop($this->obj_sql->SqlQuery("SELECT * FROM tbl_prailsbase_texts WHERE fk_language_id=".(int)$lang." AND identifier='".$arr_data["old_identifier"]."'"));
                    
171			} else {
                    
                
NonExecutableCodeSniff.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 272 lines
                    
13 * @version   CVS: $Id: NonExecutableCodeSniff.php 293565 2010-01-15 01:18:35Z squiz $
                    
14 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
15 */
                    
31 */
                    
32class Squiz_Sniffs_PHP_NonExecutableCodeSniff implements PHP_CodeSniffer_Sniff
                    
33{
                    
49     *
                    
50     * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
                    
51     * @param int                  $stackPtr  The position of the current token in
                    
55     */
                    
56    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
57    {
                    
119        // we should ignore this token.
                    
120        $prev = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens :: $emptyTokens, ($stackPtr - 1), null, true);
                    
121        if (isset($tokens[$prev]['parenthesis_owner']) === true)
                    
                
Resource.php git://github.com/valentinbora/joobsbox-php.git | PHP | 436 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 16541 2009-07-07 06:59:03Z bkarwin $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
115            if (!$this->hasResourceType($type)) {
                    
116                require_once 'Zend/Loader/Exception.php';
                    
117                throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");
                    
                
percentage_analyzer.class.php https://bitbucket.org/chamilo/chamilo-survey/ | PHP | 388 lines
                    
1<?php 
                    
2namespace repository\content_object\survey;
                    
207                        {
                    
208                            $option_id = array_pop(explode('_', $key));
                    
209                        	$answer_count[$option_id] ++;
                    
                
MentorAD.php http://umple.googlecode.com/svn/trunk/ | PHP | 246 lines
                    
1<?php
                    
2/*PLEASE DO NOT EDIT THIS CODE*/
                    
120      {
                    
121        array_pop($this->students);
                    
122      }
                    
                
ArrowFormCtrlManager.php http://arrowplatform.googlecode.com/svn/trunk/ | PHP | 160 lines
                    
1<?php
                    
2ArrowController::importModel("org.arrowplatform.controls.forms.ctrl.ArrowForm");
                    
124		$class = explode(".", $model);
                    
125		$class = array_pop($class);
                    
126		ArrowController::importModel($this->registredFields[$name]);
                    
                
XmlLogger.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 378 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Id: XmlLogger.php 552 2009-08-29 12:18:13Z mrook $
                    
4 *
                    
21
                    
22require_once 'phing/BuildLogger.php';
                    
23require_once 'phing/listener/DefaultLogger.php';
                    
23require_once 'phing/listener/DefaultLogger.php';
                    
24require_once 'phing/system/util/Timer.php';
                    
25
                    
32 * @author Michiel Rook <michiel.rook@gmail.com>
                    
33 * @version $Id: XmlLogger.php 552 2009-08-29 12:18:13Z mrook $
                    
34 * @package phing.listener
                    
196        
                    
197        array_pop($this->elementStack);
                    
198        array_pop($this->timesStack);
                    
                
cache.php http://goodgirl.googlecode.com/svn/ | PHP | 177 lines
                    
1<?php                                                      /* `,
                    
2                                                           ,\, #
                    
20        if (!isset(self::$tags)){
                    
21            if (!is_file($file = file::path('tmp/').'cache.php'))
                    
22                arr::export($file, array());
                    
29
                    
30        $is_array = (substr($key, -4) == '.php');
                    
31
                    
44        if (!isset(self::$tags)){
                    
45            if (!is_file($file = file::path('tmp/').'cache.php'))
                    
46                arr::export($file, array());
                    
64
                    
65        arr::export(file::path('tmp/').'cache.php', self::$tags);
                    
66        file::mkdir(dirname($dir = $file));
                    
67        b::call((is_array($value) ? 'arr::export' : 'file_put_contents'), $file, $value);
                    
68        array_pop(self::$scope);
                    
69
                    
                
footer.template.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 96 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////
                    
36			<div id="footer-text">
                    
37				<p><?php echo l('Powered by <a href="http://www.snowcms.com/" target="_blank" title="SnowCMS">SnowCMS</a> v%s.', settings()->get('version', 'string')); ?></p>
                    
38				<p><?php echo l('Page created in %s seconds with %u queries.', round(microtime(true) - starttime, 3), db()->num_queries); ?></p>
                    
39			</div>
                    
40<?php
                    
41if(!admin_prompt_required() && empty(api()->context['cp_access_denied']))
                    
46					<select name="jump_to_select" onchange="this.form.go.click();">
                    
47						<option><?php echo l('Control Panel'); ?></option>
                    
48<?php
                    
61			{
                    
62				$area_id = array_pop($index);
                    
63			}
                    
83      </select>
                    
84      <input type="submit" name="go" title="', l('Go'), '" value="', l('Go'), '" onclick="if(this.form.jump_to_select.value == \'', l('Control Panel'), '\') { location.href = \'', baseurl, '/index.php?action=admin\'; } else { location.href = decodeURIComponent(this.form.jump_to_select.value); }" />';
                    
85?>
                    
                
log.php https://bitbucket.org/wez/mtrack/ | PHP | 157 lines
                    
1<?php # vim:ts=2:sw=2:et:
                    
2/* For licensing and copyright terms, see the file named LICENSE */
                    
3
                    
4include '../inc/common.php';
                    
5MTrackACL::requireAllRights('Browser', 'read');
                    
29$location = null;
                    
30$last = array_pop($crumbs);
                    
31foreach ($crumbs as $i => $path) {
                    
33    $path = '[root]';
                    
34    echo "<a href='{$ABSWEB}browse.php$jump'>$path</a> / ";
                    
35  } else if ($i == 1) {
                    
36    $location .= '/' . htmlentities(urlencode($path), ENT_QUOTES, 'utf-8');
                    
37    echo "<a href='{$ABSWEB}browse.php$location$jump'>$path</a> / ";
                    
38  } else {
                    
39    $location .= '/' . htmlentities(urlencode($path), ENT_QUOTES, 'utf-8');
                    
40    echo "<a href='{$ABSWEB}log.php$location$jump'>$path</a> / ";
                    
41  }
                    
                
ProjectTask.php git://github.com/phpundercontrol/phpUnderControl.git | PHP | 241 lines
                    
6 *
                    
7 * Copyright (c) 2007-2011, Manuel Pichler <mapi@phpundercontrol.org>.
                    
8 * All rights reserved.
                    
58 */
                    
59class phpucProjectTask extends phpucAbstractTask implements phpucConsoleExtensionI
                    
60{
                    
74        {
                    
75            throw new phpucValidateException(
                    
76                'Missing projects directory <cc-install-dir>/projects.'
                    
87            {
                    
88                throw new phpucValidateException('Not a valid ant-script location.');
                    
89            }
                    
102    {
                    
103        $out = phpucConsoleOutput::get();
                    
104        $out->writeLine( 'Performing project task.' );
                    
                
generate-command-test.php git://github.com/nrk/predis.git | PHP | 261 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
3
                    
19//
                    
20//   $ ./bin/generate-command-test.php --class=StringSet
                    
21//
                    
95        $options['fqn'] = "Predis\\Commands\\{$options['class']}";
                    
96        $options['path'] = "Predis/Commands/{$options['class']}.php";
                    
97
                    
103        if (!isset($options['output'])) {
                    
104            $options['output'] = sprintf("%s/%s", $options['tests'], str_replace('.php', 'Test.php', $options['path']));
                    
105        }
                    
154        $fqn = get_class($instance);
                    
155        $class = array_pop(explode('\\', $fqn)) . "Test";
                    
156        $realm = $this->getTestRealm();
                    
                
ViewController.php https://code.google.com/p/ecartcommerce/ | PHP | 149 lines
                    
1<?php
                    
2/**
                    
125        
                    
126        array_pop($categories);
                    
127        foreach ($categories as $category) {
                    
                
tinyspec.php git://github.com/StanAngeloff/php-tinyspec.git | PHP | 335 lines
                    
1<?php
                    
2
                    
162        } else if (self::QUEUE_POP === $block) {
                    
163            return array_pop($queue);
                    
164        }
                    
                
Browser.php http://rhaco.googlecode.com/svn/rhaco_1_x/trunk/ | PHP | 317 lines
                    
1<?php
                    
2Rhaco::import("lang.ArrayUtil");
                    
156		if(count($this->bodys) > $this->history){
                    
157			array_pop($this->bodys);
                    
158			array_pop($this->headers);
                    
158			array_pop($this->headers);
                    
159			array_pop($this->urls);
                    
160		}
                    
                
AutoParagraph.php git://github.com/anantgarg/Qwench.git | PHP | 340 lines
                    
1<?php
                    
2
                    
274        // at the cost of a lookbehind later.
                    
275        array_pop($result);
                    
276
                    
279        if (!$needs_end) {
                    
280            array_pop($result); // removes \n\n
                    
281            array_pop($result); // removes </p>
                    
                
Text.php git://github.com/silverstripe/sapphire.git | PHP | 354 lines
                    
1<?php
                    
2/**
                    
36 	/**
                    
37 	 * (non-PHPdoc)
                    
38 	 * @see DBField::requireField()
                    
61		} else {
                    
62			array_pop($ret);
                    
63			$ret = implode(' ', $ret) . $add;
                    
330	/**
                    
331	 * (non-PHPdoc)
                    
332	 * @see DBField::scaffoldFormField()
                    
344	/**
                    
345	 * (non-PHPdoc)
                    
346	 * @see DBField::scaffoldSearchField()
                    
                
bootstrap.php git://github.com/psynaptic/php-drupal.tmbundle.git | PHP | 259 lines
                    
1<?php
                    
2
                    
57
                    
58    array_pop($path);
                    
59  }
                    
125  $files = array(
                    
126    $_SERVER['TM_BUNDLE_SUPPORT'] . '/commands/overrides/' . $folder . $version . '/' . $name . '.' . $version . '.php',
                    
127    $_SERVER['TM_BUNDLE_SUPPORT'] . '/commands/generated/' . $folder . $version . '/' . $name . '.' . $version . '.php',
                    
127    $_SERVER['TM_BUNDLE_SUPPORT'] . '/commands/generated/' . $folder . $version . '/' . $name . '.' . $version . '.php',
                    
128    $_SERVER['TM_BUNDLE_SUPPORT'] . '/commands/overrides/' . $folder . '/' . $name . '.php',
                    
129    $_SERVER['TM_BUNDLE_SUPPORT'] . '/commands/generated/' . $folder . '/' . $name . '.php',
                    
129    $_SERVER['TM_BUNDLE_SUPPORT'] . '/commands/generated/' . $folder . '/' . $name . '.php',
                    
130    $_SERVER['TM_BUNDLE_SUPPORT'] . '/does_not_exist.php',
                    
131  );
                    
173      $keys = preg_split('/\]?\[/', rtrim($key, ']'));
                    
174      $last = array_pop($keys);
                    
175      $parent = &$info;
                    
                
table.php git://github.com/klevo/wildflower.git | PHP | 188 lines
                    
1<?php
                    
2/**
                    
86                while (!empty($rightNodes) && ($rightNodes[count($rightNodes) - 1] < $node[$settings['model']][$settings['right']])) {
                    
87                   array_pop($rightNodes);
                    
88                }
                    
                
html.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 428 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: html.php 3917 2009-01-21 03:06:22Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
36			// Do not encode existing HTML entities
                    
37			// From PHP 5.2.3 this functionality is built-in, otherwise use a regex
                    
38			if (version_compare(PHP_VERSION, '5.2.3', '>='))
                    
217		$array = array();
                    
218		while ($segment = array_pop($segments))
                    
219		{
                    
                
LoggerLoggingEvent.php http://teleinfosticksystem.googlecode.com/svn/trunk/ | PHP | 361 lines
                    
1<?php
                    
2/**
                    
23 * @version $Revision: 800094 $
                    
24 * @package log4php
                    
25 */
                    
86	/** 
                    
87	 * The application supplied message rendered through the log4php
                    
88	 * objet rendering mechanism. At present renderedMessage == message.
                    
94	 * The name of thread in which this logging event was generated.
                    
95	 * log4php saves here the process id via {@link PHP_MANUAL#getmypid getmypid()} 
                    
96	 * @var mixed
                    
149	 *
                    
150	 * <p>This method uses {@link PHP_MANUAL#debug_backtrace debug_backtrace()} function (if exists)
                    
151	 * to collect informations about caller.</p>
                    
163				// make a downsearch to identify the caller
                    
164				$hop = array_pop($trace);
                    
165				while($hop !== null) {
                    
                
module.php http://enaj.googlecode.com/svn/trunk/ | PHP | 349 lines
                    
1<?php
                    
2
                    
145            $this->_controllers_name = array();
                    
146            $files = Helper_FileSys::recursionGlob($dir, '*_controller.php');
                    
147            sort($files, SORT_STRING);
                    
158                $namespace = isset($names[1]) ? "{$names[0]}::" : '';
                    
159                $controller_name = array_pop($names);
                    
160                $this->_controllers_name[] = "{$namespace}{$controller_name}";
                    
233            $dir = rtrim($this->_module_dir, '/\\') . DS . 'model';
                    
234            $files = Helper_FileSys::recursionGlob($dir, '*.php');
                    
235            $this->_models_name = array();
                    
                
common.php http://endcms.googlecode.com/svn/trunk/ | PHP | 274 lines
                    
1<?php
                    
2
                    
203	
                    
204	$ftype = array_pop(explode('.',$path));
                    
205	$etag = basename($path).$method.$mw.'x'.$mh;
                    
                
VMLPath.php git://github.com/sorccu/cufon.git | PHP | 415 lines
                    
1<?php
                    
2
                    
283
                    
284		$toY = array_pop($coords);
                    
285		$toX = array_pop($coords);
                    
374	{
                    
375		array_pop($this->parts);
                    
376
                    
                
productdetails_params.php https://code.google.com/p/goodrelations-for-joomla/ | PHP | 205 lines
                    
1<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
                    
2mm_showMyFileName(__FILE__);
                    
61	$time = $time+$days_offset*86400;
                    
62	if ((int) PHP_VERSION >= 5)
                    
63		return date('c', $time);
                    
71if(sizeof(getAllParametersFromElement('uom_weight'))>0)
                    
72$uom_weight = array_pop(getAllParametersFromElement('uom_weight'));
                    
73if(sizeof(getAllParametersFromElement('uom_lwh'))>0)
                    
73if(sizeof(getAllParametersFromElement('uom_lwh'))>0)
                    
74$uom_lwh = array_pop(getAllParametersFromElement('uom_lwh'));
                    
75
                    
                
breadcrumb_helper.php https://bitbucket.org/ardinotow/autocrumb/ | PHP | 377 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
6 * Features:
                    
7 * - Easy integration. Just put <?php echo set_breadcrumb(); ?> in view files.
                    
8 * - Can use any delimiter.
                    
17 * Installation:
                    
18 * 1. Put breadcrumb_helper.php to application/helpers.
                    
19 * 2. Put breadcrumb.php to application/config.
                    
22 *     In autoload  : $autoload['helper'] = array('breadcrumb')
                    
23 * 4. Add these line to your view file: <?php echo set_breadcrumb(); ?>. I suggest that you put it on master template
                    
24 *     so that it can save time as you don't need to add text in every view page.
                    
53/**
                    
54 * Patch for PHP 5 - 5.2
                    
55 * @author	Kromack
                    
101        {
                    
102        	array_pop($uri_array_original);
                    
103        }
                    
                
smarty_internal_compilebase.php git://github.com/modxcms/revolution.git | PHP | 203 lines
                    
1<?php
                    
2/**
                    
183            // get stacked info
                    
184            list($_openTag, $_data) = array_pop($compiler->_tag_stack);
                    
185            // open tag must match with the expected ones
                    
                
Table.php http://nothing-at-all.googlecode.com/svn/trunk/ | PHP | 247 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2004 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 3.0 of the PHP license,       |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available through the world-wide-web at the following url:           |
                    
11// | http://www.php.net/license/3_0.txt.                                  |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
Common.php git://github.com/twilio/OpenVBX.git | PHP | 577 lines
                    
28*/
                    
29function is_php($version = '5.0.0')
                    
30{
                    
35	{
                    
36		$_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE;
                    
37	}
                    
201 * Returns a new class object by reference, used by load_class() and the DB class.
                    
202 * Required to retain PHP 4 compatibility and also not make PHP 5.3 cry.
                    
203 *
                    
244    if(count($folders) > 1){
                    
245          $class = array_pop($folders);
                    
246          $folders = join('/', $folders).'/';
                    
560	{
                    
561		$error->show_php_error($severity, $message, $filepath, $line);
                    
562	}
                    
                
Tables.php https://code.google.com/p/enanocms/ | PHP | 199 lines
                    
1<?php
                    
2
                    
15 *
                    
16 * We're using the MW parser because the Text_Wiki version simply refused to work under PHP 5.2.0. Porting this was
                    
17 * _not_ easy. <leaves to get cup of coffee>
                    
86			$z = "</table>" . ( $styled_table ? '</div>' : '' ) . substr ( $line , 2);
                    
87			$l = array_pop ( $ltd ) ;
                    
88			if ( !array_pop ( $has_opened_tr ) ) $z = "<tr><td></td></tr>" . $z ;
                    
88			if ( !array_pop ( $has_opened_tr ) ) $z = "<tr><td></td></tr>" . $z ;
                    
89			if ( array_pop ( $tr ) ) $z = '</tr>' . $z ;
                    
90			if ( array_pop ( $td ) ) $z = '</'.$l.'>' . $z ;
                    
90			if ( array_pop ( $td ) ) $z = '</'.$l.'>' . $z ;
                    
91			array_pop ( $ltr ) ;
                    
92			$t[$k] = $z . str_repeat( '</dd></dl>', $indent_level );
                    
98			$z = '' ;
                    
99			$l = array_pop ( $ltd ) ;
                    
100			array_pop ( $has_opened_tr );
                    
                
StudentAD.php http://umple.googlecode.com/svn/trunk/ | PHP | 283 lines
                    
1<?php
                    
2/*PLEASE DO NOT EDIT THIS CODE*/
                    
149      {
                    
150        array_pop($this->mentors);
                    
151      }
                    
                
ContainerTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
23// Call Zend_View_Helper_Placeholder_Container_AbstractTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_View_Helper_Placeholder_ContainerTest::main");
                    
28/** Zend_View_Helper_Placeholder_Container */
                    
29require_once 'Zend/View/Helper/Placeholder/Container.php';
                    
30
                    
41 */
                    
42class Zend_View_Helper_Placeholder_ContainerTest extends PHPUnit_Framework_TestCase
                    
43{
                    
56
                    
57        $suite  = new PHPUnit_Framework_TestSuite("Zend_View_Helper_Placeholder_ContainerTest");
                    
58        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
396        $value = $this->container->toString();
                    
397        $expectedValue = '    <ul><li>foo</li>' . PHP_EOL . '    <li>bar</li>' . PHP_EOL . '    <li>baz</li></ul>';
                    
398        $this->assertEquals($expectedValue, $value);
                    
                
Module.php git://github.com/eryx/php-framework-benchmark.git | PHP | 169 lines
                    
1<?php
                    
2/**
                    
105                    // if we went out more than 1 parent, get to the correct parent
                    
106                    $currentResource = array_pop($parentResources);
                    
107                } while ($i-- > 0);
                    
                
file.php git://github.com/eryx/php-framework-benchmark.git | PHP | 333 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
219		{
                    
220			array_pop($subdirs);
                    
221			$test_path = static::$path.implode(DS, $subdirs);
                    
                
MemcachedStore.php git://github.com/concrete5/concrete5.git | PHP | 208 lines
                    
1<?php
                    
2
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
20 */
                    
21require_once 'Auth/OpenID/Interface.php';
                    
22
                    
114        sort($keys);
                    
115        $lastKey = $serverAssociations[array_pop($keys)];
                    
116        
                    
                
taker.class.php https://bitbucket.org/chamilo/chamilo-app-survey-dev/ | PHP | 239 lines
                    
1<?php
                    
2namespace application\survey;
                    
165                $context_count = count($context_ids);
                    
166                $context_id = array_pop($context_ids);
                    
167                $context_template = $this->survey->get_context_template_for_level($context_count);
                    
                
xajaxArgumentManager.inc.php http://ccds.googlecode.com/svn/trunk/ | PHP | 451 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-2006 by Jared White & J. Max Wilson


                    
29	will be processed.  During a xajax request, any arguments found in the


                    
30	GET or POST will be converted to a PHP array.


                    
31*/


                    
178							$mValue = $aArg;								


                    
179							$sKey = array_pop($aStack);


                    
180							$aArg = array_pop($aStack);


                    
                
history.php git://github.com/ezsystems/ezpublish.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
69    }
                    
70    $newestVersion = array_pop( $selectableVersions );
                    
71    $previousVersion = array_pop( $selectableVersions );
                    
                
XmlToAppData.php git://github.com/propelorm/Propel.git | PHP | 424 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/../../model/AppData.php';
                    
12require_once dirname(__FILE__) . '/../../exception/SchemaException.php';
                    
15 * A class that is used to parse an input xml schema file and creates an AppData
                    
16 * PHP object.
                    
17 *
                    
61     * @param PropelPlatformInterface $defaultPlatform The default database platform for the application.
                    
62     * @param string                  $defaultPackage  the default PHP package used for the om
                    
63     * @param string                  $encoding        The database encoding.
                    
132
                    
133        array_pop($this->schemasTagsStack);
                    
134
                    
387        $keys = array_keys($this->schemasTagsStack);
                    
388        array_pop($this->schemasTagsStack[end($keys)]);
                    
389    }
                    
                
RcptCommand.php https://code.google.com/p/celebrio/ | PHP | 284 lines
                    
1<?php
                    
2
                    
124
                    
125            $recipient = array_pop($this->recipients);
                    
126
                    
                
CategoryModel.class.php http://nblog-thinkphp.googlecode.com/svn/trunk/ | PHP | 366 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
12// +----------------------------------------------------------------------
                    
13// | $Id: CategoryModel.class.php 26 2011-02-15 05:48:40Z nicholasinlove1986@gmail.com $
                    
14// +----------------------------------------------------------------------
                    
108			$options = $cat_id_array = $level_array = array();
                    
109			/*if (file_exists($path.'cat_option_static.php')) {
                    
110				   $data = require_once ($path.'cat_option_static.php');
                    
160					if ($count > 1) {
                    
161						$last_cat_id = array_pop($cat_id_array);
                    
162					} 
                    
229	
                    
230		if (file_exists($path.'cat_option_static.php')) {
                    
231		   $cat_option = f_static_cache('cat_option_static','',$path);	   
                    
232		} else {
                    
233			if (file_exists($path.'category_static.php')) {
                    
234				$data = f_static_cache('category_static','',$path);			
                    
                
user_guide.php git://github.com/daylightstudio/FUEL-CMS.git | PHP | 149 lines
                    
1<?php
                    
2require_once(FUEL_PATH.'/libraries/Fuel_base_controller.php');
                    
119		if (count($page_arr) == 1) return '';
                    
120		array_pop($page_arr);
                    
121		$prev_page = implode('/', $page_arr);
                    
147
                    
148/* End of file user_guide.php */
                    
149/* Location: ./fuel/modules/user_guide/controllers/user_guide.php */
                    
                
Table.php git://github.com/gallery/gallery3-contrib.git | PHP | 142 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
134
                    
135        array_pop($tokens_of_children); // remove phantom token
                    
136
                    
                
Abstract.php http://oxybase.googlecode.com/svn/trunk/ | PHP | 402 lines
                    
1<?php
                    
2require_once 'Oxy/Compiler/Text/Filter/Manager.php';
                    
171
                    
172        $this->str_base_compile_dir = array_pop($arr_path_parts);
                    
173
                    
188        $str_filename = strtolower($str_filename);
                    
189        $str_filename = $str_filename . '.compiled.php';
                    
190        $this->setCompiledFilename($str_filename);
                    
                
shBrushPhp.js git://github.com/daylightstudio/FUEL-CMS.git | JavaScript | 92 lines
                    
29 */
                    
30SyntaxHighlighter.brushes.Php = function()
                    
31{
                    
36					'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
                    
37					'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
                    
38					'array_push array_rand array_reduce array_reverse array_search array_shift '+
                    
86
                    
87	this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
                    
88};
                    
90SyntaxHighlighter.brushes.Php.prototype	= new SyntaxHighlighter.Highlighter();
                    
91SyntaxHighlighter.brushes.Php.aliases	= ['php'];
                    
92
                    
                
plugin.php http://ooe.googlecode.com/svn/trunk/ | PHP | 92 lines
                    
1<?php
                    
2
                    
76                    if (($_POST['title'] <> '') && ($member->title != $_POST['title']))
                    
77                        array_pop($members);
                    
78                    else if (($_POST['system'] > 0) && ($sys->solarsystemid != $_POST['system']))
                    
78                    else if (($_POST['system'] > 0) && ($sys->solarsystemid != $_POST['system']))
                    
79                        array_pop($members);
                    
80                    else if (($_POST['active'] < 4) && ($member->activeTimeSlot != $_POST['active']))
                    
80                    else if (($_POST['active'] < 4) && ($member->activeTimeSlot != $_POST['active']))
                    
81                        array_pop($members);
                    
82                }
                    
                
containable.php git://github.com/Datawalke/Coordino.git | PHP | 443 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       cake
                    
18 * @subpackage    cake.cake.console.libs
                    
19 * @since         CakePHP(tm) v 1.2.0.5669
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
28 * @subpackage    cake.cake.console.libs
                    
29 * @link http://book.cakephp.org/view/1323/Containable
                    
30 */
                    
                
PEARSax3.php git://github.com/gallery/gallery3-contrib.git | PHP | 139 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
89        $this->tokens[] = new HTMLPurifier_Token_End($name);
                    
90        if (!empty($this->stack)) array_pop($this->stack);
                    
91        return true;
                    
                
I18nBehaviorTest.php git://github.com/propelorm/Propel.git | PHP | 428 lines
                    
1<?php
                    
2
                    
3/*
                    
4 *	$Id: VersionableBehaviorTest.php 1460 2010-01-17 22:36:48Z francois $
                    
5 * This file is part of the Propel package.
                    
11
                    
12require_once dirname(__FILE__) . '/../../../../../generator/lib/util/PropelQuickBuilder.php';
                    
13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/i18n/I18nBehavior.php';
                    
13require_once dirname(__FILE__) . '/../../../../../generator/lib/behavior/i18n/I18nBehavior.php';
                    
14require_once dirname(__FILE__) . '/../../../../../runtime/lib/Propel.php';
                    
15
                    
22 */
                    
23class I18nBehaviorTest extends PHPUnit_Framework_TestCase
                    
24{
                    
382        $this->assertEquals(count($fkList), 1);
                    
383        $fk = array_pop($fkList);
                    
384        $this->assertEquals($fk->getForeignTableName(), 'i18n_behavior_test_0');
                    
                
UriPath.class.php http://floe.googlecode.com/svn/trunk/ | PHP | 233 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * This file is part of Floe, a graceful PHP framework.
                    
4 * Copyright (C) 2005-2010 Mark Rickerby <http://maetl.net>
                    
8 *
                    
9 * $Id: UriPath.class.php 349 2010-02-12 02:16:09Z coretxt $
                    
10 * @package server
                    
45			$path = $this->explodeSegmentPath($this->_parsed['path']);
                    
46			$this->addResource(array_pop($path));
                    
47			while ($segment = array_pop($path)) {
                    
                
attachment.php https://bitbucket.org/wez/mtrack/ | PHP | 275 lines
                    
1<?php # vim:ts=2:sw=2:et:
                    
2/* For licensing and copyright terms, see the file named LICENSE */
                    
33      $vars = explode('/', $name);
                    
34      $filename = array_pop($vars);
                    
35      $cid = array_pop($vars);
                    
150    foreach ($atts as $row) {
                    
151      $url = "{$ABSWEB}attachment.php/$object/$row[cid]/$row[filename]";
                    
152      $html .= <<<HTML
                    
183      global $ABSWEB;
                    
184      $A->url = $ABSWEB . 'attachment.php/' . $A->id;
                    
185      return $A;
                    
228    foreach ($atts as $row) {
                    
229      $url = "{$ABSWEB}attachment.php/$object/$row[cid]/$row[filename]";
                    
230      $html .= "<li><a class='attachment'" .
                    
                
get.php http://kfm.googlecode.com/svn/trunk/ | PHP | 120 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * get.php - retrieves a specified file
                    
6 * can also resize an image on demand
                    
14 */
                    
15require_once 'initialise.php';
                    
16if (isset($_SERVER['REDIRECT_QUERY_STRING'])&&$_SERVER['REDIRECT_QUERY_STRING']) {
                    
24$uri   = $_SERVER['REQUEST_URI'];
                    
25if (strpos($uri,'?')===false) $uri=str_replace('/get.php/','/get.php?',$uri);
                    
26$uri2  = explode('?', $uri);
                    
39	$bits=explode('/',$_GET['uri']);
                    
40	$fname=array_pop($bits);
                    
41	$dir=0;
                    
117}
                    
118if(file_exists('api/log_retrieved_file.php'))require 'api/log_retrieved_file.php';
                    
119return((connection_status()==0) and !connection_aborted());
                    
                
OpenLdap.php git://github.com/zendframework/zf2.git | PHP | 494 lines
                    
1<?php
                    
2/**
                    
487        if ($tokens[count($tokens) - 1] == ')') {
                    
488            array_pop($tokens);
                    
489        }
                    
                
Response.php http://mvh-source.googlecode.com/svn/trunk/ | PHP | 121 lines
                    
1<?php
                    
2/**
                    
67    public function popContent( $content ){
                    
68        array_pop( $this->_content[] );
                    
69        return $content;
                    
                
textyle.mobile.php http://xe-textyle.googlecode.com/svn/trunk/ | PHP | 261 lines
                    
1<?php
                    
2	require_once(_XE_PATH_ . 'modules/textyle/textyle.view.php');
                    
111                $output = $oDocumentModel->getDocumentList($args, false, false);
                    
112                if($output->data && count($output->data)) $oDocument = array_pop($output->data);
                    
113			}
                    
                
LoggerNDC.php http://sabre-zarafa.googlecode.com/svn/trunk/ | PHP | 204 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * @package log4php
                    
19 */
                    
76 *	
                    
77 * {@example ../../examples/php/ndc.php 19}<br>
                    
78 *
                    
85 * <pre>
                    
86 * 2009-09-13 19:04:27 DEBUG root conn=1234: just received a new connection in src/examples/php/ndc.php at 23
                    
87 * 2009-09-13 19:04:27 DEBUG root conn=1234 client=ab23: some more messages that can in src/examples/php/ndc.php at 25
                    
87 * 2009-09-13 19:04:27 DEBUG root conn=1234 client=ab23: some more messages that can in src/examples/php/ndc.php at 25
                    
88 * 2009-09-13 19:04:27 DEBUG root conn=1234 client=ab23: now related to a client in src/examples/php/ndc.php at 26
                    
89 * 2009-09-13 19:04:27 DEBUG root : back and waiting for new connections in src/examples/php/ndc.php at 29
                    
92 * @version $Revision: 31 $
                    
93 * @package log4php 
                    
94 * @since 0.3
                    
                
save_answer.class.php https://bitbucket.org/chamilo/chamilo-app-survey-dev/ | PHP | 183 lines
                    
1<?php
                    
2namespace application\survey;
                    
28
                    
29    /* (non-PHPdoc)
                    
30     * @see common\libraries.AjaxManager::required_parameters()
                    
36
                    
37    /* (non-PHPdoc)
                    
38     * @see common\libraries.AjaxManager::run()
                    
46        $ids = explode('_', $context_path);
                    
47        $complex_question_id = array_pop($ids);
                    
48        $answers = $this->get_parameter(self :: PARAM_ANSWER);
                    
120                    $context_count = count($context_ids);
                    
121                    $context_id = array_pop($context_ids);
                    
122                    $context_template = $survey->get_context_template_for_level($context_count);
                    
                
UniqueEntityValidator.php git://github.com/eryx/php-framework-benchmark.git | PHP | 104 lines
                    
1<?php
                    
2
                    
81                }
                    
82                $criteria[$fieldName] = array_pop($relatedId);
                    
83            }
                    
                
Table.php git://github.com/anantgarg/Qwench.git | PHP | 142 lines
                    
1<?php
                    
2
                    
134
                    
135        array_pop($tokens_of_children); // remove phantom token
                    
136
                    
                
com_k2.php http://getk2.googlecode.com/svn/trunk/ | PHP | 328 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: com_k2.php 1530 2012-03-20 10:13:38Z lefteris.kavadas $
                    
4 * @package		K2
                    
166					$fullPath = getCategoryPath($row->catid, true);
                    
167					$title[] = array_pop($fullPath);
                    
168					break;
                    
                
 

Source

Language