100+ results results for 'php array_key_exists repo:cbrunet/sitellite' (271 ms)
1<?php 2 4 * BP-MEDIA MEMORY CACHE - APC DRIVER 5 * Stores keys to PHP's built-in APC caching system @link http://php.net/manual/en/book.apc.php 6 * providing *server level* persistent caching that *survives a reboot*. 20 21 // VERY IMPORTANT: The following must be set in your php.ini file: 22 // ====================================================================== 23 // [PECL] 24 // extension=php_apc.dll (on XAMPP installations remove the ";" in front of it) 25 // [APC] 25 // [APC] 26 // apc.slam_defense = 0 (workaround for "cache slam error" defect in PHP's APC lib) 27 // apc.write_lock = 1 331 // NOTE: apc_store() has a different error reporting format when 332 // passed an array @see http://php.net/manual/en/function.apc-store.php 333HeadScript.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
22/** Zend_View_Helper_Placeholder_Container_Standalone */ 23require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php'; 24 89 * 90 * Set separator to PHP_EOL. 91 * 96 parent::__construct(); 97 $this->setSeparator(PHP_EOL); 98 } 203 if (1 > count($args)) { 204 require_once 'Zend/View/Exception.php'; 205 throw new Zend_View_Exception(sprintf('Method "%s" requires at least one argument', $method)); 413 if (!empty($item->source)) { 414 $html .= PHP_EOL . $indent . $escapeStart . PHP_EOL . $indent . $indent . $item->source . PHP_EOL . $indent . $escapeEnd . PHP_EOL . $indent; 415 }function.mtsetvar.php https://code.google.com/p/movabletype/ | PHP | 151 lines
1<?php 2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd. 5# 6# $Id: function.mtsetvar.php 5225 2010-01-27 07:14:14Z takayama $ 7 20 # replaces page layout for current page 21 require_once("MTUtil.php"); 22 $columns = get_page_column($value); 30 } else { 31 if (array_key_exists('function', $args)) 32 $func = $args['function']; 46 } else { 47 if (array_key_exists('index', $args)) 48 $index = $args['index']; 48 $index = $args['index']; 49 else if (array_key_exists('key', $args)) 50 $key = $args['key'];FormFactory.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 401 lines
1<?php 2 214 215 if (!array_key_exists('data', $options)) { 216 $options['data'] = $data;helpers.php git://github.com/eryx/php-framework-benchmark.git | PHP | 598 lines
1<?php 2 68 { 69 if ( ! is_array($array) or ! array_key_exists($segment, $array)) 70 { 504/** 505 * Determine if the current version of PHP is at least the supplied version. 506 * 509 */ 510function has_php($version) 511{ 511{ 512 return version_compare(PHP_VERSION, $version) >= 0; 513}tgsfMemory.php http://tgsf.googlecode.com/svn/trunk/ | PHP | 349 lines
1<?php defined( 'BASEPATH' ) or die( 'Restricted' ); 2/* 30 31 if ( array_key_exists( $name, self::$instances2) ) 32 { 56 57 if ( array_key_exists( $className, self::$instances) ) 58 { 70 71 if ( array_key_exists( $className, self::$instances) ) 72 { 339 { 340 if ( array_key_exists( $class, self::$instances) === false ) 341 { 341 { 342 echo $class . " never instantiated" . PHP_EOL; 343 }AdminModulesPositions.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 316 lines
1<?php 2 3/** 4 * Modules positions tab for admin panel, AdminModulesPositions.php 5 * @category admin 8 * @copyright PrestaShop 9 * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0 10 * @version 1.3 13 14include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php'); 15 141 { 142 if (array_key_exists('addToHook', $_GET) OR array_key_exists('editGraft', $_GET) OR (Tools::isSubmit('submitAddToHook') AND $this->_errors)) 143 $this->displayForm(); 291 <div class="margin-form"> 292 <input type="text" name="exceptions" size="40" '.(!empty($excepts) ? 'value="'.$excepts.'"' : '').'><br />Ex: identity.php, history.php, order.php, product.php<br /><br /> 293 '.$this->l('Please specify those files in which you do not want the module to be displayed').'.<br />SMW_SparqlResultParser.php git://pkgs.fedoraproject.org/mediawiki-semantic | PHP | 153 lines
1<?php 2/** 100 if ( ( $tagName == 'binding' ) && ( $prevTag == 'result' ) ) { 101 if ( ( array_key_exists( 'name', $attributes ) ) && 102 ( array_key_exists( $attributes['name'], $this->m_header ) ) ) { 111 } elseif ( ( $tagName == 'literal' ) && ( $prevTag == 'binding' ) ) { 112 if ( array_key_exists( 'datatype', $attributes ) ) { 113 $this->m_xml_datatype = $attributes['datatype']; 118 } elseif ( ( $tagName == 'variable' ) && ( $prevTag == 'head' ) ) { 119 if ( array_key_exists( 'name', $attributes ) ) { 120 $this->m_header[$attributes['name']] = count( $this->m_header );Wsdl_1_1.php git://github.com/moyarada/XSD-to-PHP.git | PHP | 362 lines
1<?php 2namespace com\mikebevz\xsd2php\wsdl; 3 4require_once 'AbstractWsdl.php'; 5require_once 'IWsdl.php'; 101 if (count($data['params']) == 1) { 102 $type = $this->common->phpTypeToSoap($data['params'][0]['type']); 103 $els = array(); 116 foreach ($data['params'] as $input) { 117 $type = $this->common->phpTypeToSoap($input['type']); 118 if ($type === false) { 129 130 if (array_key_exists('return', $data)) { 131 $type = $this->common->phpTypeToSoap($data['return']['type']);Form.php git://github.com/jeromeschneider/Baikal.git | PHP | 368 lines
1<?php 2################################################################# 51 public function option($sName) { 52 if(array_key_exists($sName, $this->aOptions)) { 53 return $this->aOptions[$sName];sfYamlParser.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 537 lines
1<?php 2 10 11require_once(dirname(__FILE__).'/sfYamlInline.class.php'); 12 18 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 19 * @version SVN: $Id: sfYamlParser.class.php 10832 2008-08-13 07:46:08Z fabien $ 20 */ 41 /** 42 * Parses a YAML string to a PHP value. 43 * 45 * 46 * @return mixed A PHP value 47 */ 106 $isInPlace = substr($values['value'], 1); 107 if (!array_key_exists($isInPlace, $this->refs)) 108 {Profiler.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 308 */ 309 require_once 'Zend/Db/Profiler/Exception.php'; 310 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 319 */ 320 require_once 'Zend/Db/Profiler/Exception.php'; 321 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended."); 357 { 358 if (!array_key_exists($queryId, $this->_queryProfiles)) { 359 /**import.php http://gigcalendar3.googlecode.com/svn/trunk/ | PHP | 334 lines
1<?php 2// No direct access to this file 7 8require JPATH_ADMINISTRATOR.'/components/com_gigcal/entity_decode.php'; 9 125 $bandtable->reset(); 126 if (array_key_exists((string)$band->bandname, $this->bandlist)) 127 { 175 $venuetable->reset(); 176 if (array_key_exists((string)$venue->venuename, $this->venuelist)) 177 { 234 $name = $band_id.'|'.$venue_id.'|'.(int)$gig->gigdate; 235 if (array_key_exists($name, $this->giglist)) 236 {IniAcl.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 173 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 9 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @link http://cakephp.org CakePHP(tm) Project 11 * @package Cake.Controller.Component 11 * @package Cake.Controller.Component 12 * @since CakePHP(tm) v 0.10.0.1076 13 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 18 * IniAcl implements an access control system using an INI file. An example 19 * of the ini file used can be found in /config/acl.ini.php. 20 * 84 * Main ACL check function. Checks to see if the ARO (access request object) has access to the 85 * ACO (access control object).Looks at the acl.ini.php file for permissions 86 * (see instructions in /config/acl.ini.php).Feed.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 361 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Feed.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 74 if (!ctype_alpha($value) && strlen($value) > 0) { 75 require_once 'Zend/Feed/Exception.php'; 76 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 79 if (iconv_strlen($value, $this->getEncoding()) > 255) { 80 require_once 'Zend/Feed/Exception.php'; 81 throw new Zend_Feed_Exception('invalid parameter: "block" may only' 110 if (iconv_strlen($value, $this->getEncoding()) > 255) { 111 require_once 'Zend/Feed/Exception.php'; 112 throw new Zend_Feed_Exception('invalid parameter: any "author" may only' 135 if (iconv_strlen($value, $this->getEncoding()) > 255) { 136 require_once 'Zend/Feed/Exception.php'; 137 throw new Zend_Feed_Exception('invalid parameter: any "category" may only'cfcm.php git://github.com/imagecms/ImageCMS.git | PHP | 391 lines
1<?php 2 57 foreach (array_keys($fields) as $name) { 58 if (!array_key_exists($name, $data)) { 59 $this->db->where('item_id', $item_id);class.CachedThumbnail.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 237 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 20*/ 21require_once 'class.Thumbnail.inc.php'; 22require_once 'class.PictureCache.inc.php'; 29* 30* Tested with Apache 1.3.27 and PHP 4.3.3 31* Last change: 2003-09-25 37* @package Thumbnail 38* @example sample_thumb.php Sample script 39* @version 1.001 146 $ct = array(1 => 'gif', 2 => 'jpeg', 3 => 'png', 15 => 'vnd.wap.wbmp'); 147 if (array_key_exists($this->thumbnail_type, $ct)) { 148 header('Content-type: image/' . $ct[$this->thumbnail_type]);Borders.php https://PHPExcel.svn.codeplex.com/svn | PHP | 547 lines
29/** PHPExcel_Style_Border */ 30require_once 'PHPExcel/Style/Border.php'; 31 32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 40 * @package PHPExcel_Style 41 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 42 */ 42 */ 43class PHPExcel_Style_Borders implements PHPExcel_IComparable 44{ 170 * 171 * Returns the PHPExcel_Style_Borders that is actual bound to PHPExcel_Style 172 *Borders.php https://PHPExcel.svn.codeplex.com/svn | PHP | 494 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 29/** PHPExcel_Style_Border */ 30require_once 'PHPExcel/Style/Border.php'; 31 32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 40 * @package PHPExcel_Style 41 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 42 */ 42 */ 43class PHPExcel_Style_Borders implements PHPExcel_IComparable 44{regsetup.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 189 lines
2 3 require_once('core/kregistry.class.php'); 4 8//+ NOTE: expects 'pass' value in GET, matching recovery password, will also accept 'reload' value 9//+ to reload setup.inc.php, and 'set' to set values. 10//+ 22 23 if ((true == array_key_exists('action', $_POST)) && ('logout' == $_POST['action'])) { 24 $_SESSION['regsetup_pass'] = ''; 26 27 if ((true == array_key_exists('action', $_POST)) && ('login' == $_POST['action'])) { 28 if (true == array_key_exists('pass', $_POST)) { $userPass = $_POST['pass']; } 31 32 if (true == array_key_exists('regsetup_pass', $_SESSION)) { 33 $userPass = $_SESSION['regsetup_pass'];course_section.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms-dev/ | PHP | 254 lines
1<?php 2namespace application\weblcms; 87 { 88 if(!array_key_exists($type, self :: $type_name_mapping)) 89 {PopulateDatabases.php http://xerxes-portal.googlecode.com/svn/trunk/ | PHP | 408 lines
1<?php 2 9 * @license http://www.gnu.org/licenses/ 10 * @version $Id: PopulateDatabases.php 1515 2010-11-25 13:55:26Z helix84@centrum.sk $ 11 * @package Xerxes 250 251 if ( array_key_exists($objData->metalib_id, $arrDatabases) ) 252 { 382 383 /* We need to register a straight function for the XSL to call with php:function. Sorry. */ 384getmessages.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 90 lines
2 3 require_once($kapenta->installPath . 'modules/live/models/mailbox.mod.php'); 4 47 48 if (true == array_key_exists('chatsince', $_POST)) { 49 //------------------------------------------------------------------------------------------statisticsGraphicsController.php http://qnet-ua2011.googlecode.com/svn/trunk/ | PHP | 297 lines
1<?php 2 3namespace Qnet\Controller; 4require_once dirname(__FILE__) . '\..\util.php'; 5require_dao('queryDAO'); 234 private function hasX() { // or has U and V. 235 return array_key_exists('x', $this->varAxisMap); 236 } 238 public function hasZ() { // or not. 239 return array_key_exists('z', $this->varAxisMap); 240 }SilvercartGroupViewHandler.php https://bitbucket.org/silvercart/silvercart/ | PHP | 355 lines
1<?php 2/** 51 * a list of removed group view types. It is implemented to provide the 52 * configuration example in _config.php of silvercart. 53 * 59 * a list of removed group view types. It is implemented to provide the 60 * configuration example in _config.php of silvercart. 61 * 237 public static function setGroupView($groupView) { 238 if (array_key_exists($groupView, self::$groupViews)) { 239 Session::set('SilvercartGroupView', $groupView); 255 public static function setGroupHolderView($groupHolderView) { 256 if (array_key_exists($groupHolderView, self::$groupHolderViews)) { 257 Session::set('SilvercartGroupHolderView', $groupHolderView); 287 public static function getGroupView($code) { 288 if (array_key_exists($code, self::$groupViews)) { 289 return self::$groupViews[$code];Fill.php https://PHPExcel.svn.codeplex.com/svn | PHP | 417 lines
37/** PHPExcel_Style_Color */ 38require_once PHPEXCEL_ROOT . 'PHPExcel/Style/Color.php'; 39 40/** PHPExcel_IComparable */ 41require_once PHPEXCEL_ROOT . 'PHPExcel/IComparable.php'; 42 48 * @package PHPExcel_Style 49 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 50 */ 50 */ 51class PHPExcel_Style_Fill implements PHPExcel_IComparable 52{ 136 $this->_startColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE, $isSupervisor); 137 $this->_endColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 138MenuManagerComponent.php git://github.com/yandod/candycane.git | PHP | 162 lines
1<?php 2class MenuManagerComponent extends Component 60 $actions = $this->controller->params['action']; 61 if (array_key_exists('only', $options)) { 62 $actions = $options['only']; 97 } 98 if (array_key_exists('params', $val)) { 99 $params = $val['params']; 103 foreach ($params as $param) { 104 if (array_key_exists($param, $this->controller->request->params)) { 105 $val[$param] = $this->controller->request->params[$param];sfNamespacedParameterHolder.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 400 lines
1<?php 2 22 * @author Sean Kerr <sean@code-box.org> 23 * @version SVN: $Id: sfNamespacedParameterHolder.class.php 9051 2008-05-19 11:43:00Z FabianLange $ 24 */ 34 * <code> 35 * <?php 36 * $mySpecialPH = new sfNamespacedParameterHolder('symfony/special'); 236 237 if (isset($this->parameters[$ns]) && array_key_exists($name, $this->parameters[$ns])) 238 {all.php http://showslow.googlecode.com/svn/trunk/ | PHP | 247 lines
46 } else { 47 ?><li><a href="<?php echo $showslow_base.'all.php?'.(is_null($searchstring) ? '' : 'search='.urlencode(trim($_GET['search'])).'&').'group='.$id; ?>"><?php echo $group['title']?></a></li><?php 48 } 204 <td class="score" title="Current YSlow grade: <?php echo prettyScore($row['o'])?> (<?php echo $row['o']?>)"><?php echo prettyScore($row['o'])?> (<?php echo $row['o']?>)</td> 205 <td title="Current YSlow grade: <?php echo prettyScore($row['o'])?> (<?php echo $row['o']?>)"><div class="gbox"><div style="width: <?php echo $row['o']+1?>px" class="bar c<?php echo scoreColorStep($row['o'])?>"/></div></td> 206 <?php }?> 213 <td class="score" title="Current Page Speed score: <?php echo prettyScore($row['ps_o'])?> (<?php echo $row['ps_o']?>)"><?php echo prettyScore($row['ps_o'])?> (<?php echo $row['ps_o']?>)</td> 214 <td title="Current Page Speed score: <?php echo prettyScore($row['ps_o'])?> (<?php echo $row['ps_o']?>)"><div class="gbox"><div style="width: <?php echo $row['ps_o']+1?>px" class="bar c<?php echo scoreColorStep($row['ps_o'])?>"/></div></td> 215 <?php }?> 222 <td class="score" title="Current dynaTrace score: <?php echo prettyScore($row['dt_o'])?> (<?php echo $row['dt_o']?>)"><?php echo prettyScore($row['dt_o'])?> (<?php echo $row['dt_o']?>)</td> 223 <td title="Current dynaTrace score: <?php echo prettyScore($row['dt_o'])?> (<?php echo $row['dt_o']?>)"><div class="gbox"><div style="width: <?php echo $row['dt_o']+1?>px" class="bar c<?php echo scoreColorStep($row['dt_o'])?>"/></div></td> 224 <?php }?> 225 226 <td class="url"><a href="details/?url=<?php echo urlencode($row['url'])?>"><?php echo htmlentities(substr($row['url'], 0, 100))?><?php if (strlen($row['url']) > 100) { ?>...<?php } ?></a></td> 227 </tr><?phpcommandLine.inc https://code.google.com/p/alfresco-php-sdk/ | PHP | 246 lines
1<?php 2/** 11# Abort if called from a web server 12if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { 13 print "This script must be run from the command line\n"; 16 17if( version_compare( PHP_VERSION, '5.0.0' ) < 0 ) { 18 print "Sorry! This version of MediaWiki requires PHP 5; you are running " . 18 print "Sorry! This version of MediaWiki requires PHP 5; you are running " . 19 PHP_VERSION . ".\n\n" . 20 "If you are sure you already have PHP 5 installed, it may be " . 21 "installed\n" . 22 "in a different path from PHP 4. Check with your system administrator.\n"; 23 die( -1 ); 36} 37$optionsWithArgs[] = 'conf'; # For specifying the location of LocalSettings.php 38MultipleAttr.php http://simplesamlphp-labs.googlecode.com/svn/trunk/ | PHP | 203 lines
1<?php 2 55 if ($certArray === NULL) throw new Exception('No certificates found. [1]'); 56 if (!array_key_exists('PEM', $certArray)) throw new Exception('No certificates found. [2]'); 57 146 if ($certArray === NULL) throw new Exception('No certificates found. [1]'); 147 if (!array_key_exists('PEM', $certArray)) throw new Exception('No certificates found. [2]'); 148arr.php git://github.com/gallery/gallery3-contrib.git | PHP | 275 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: arr.php 4680 2009-11-10 01:57:00Z isaiah $ 6 * 9 * @copyright (c) 2007-2009 Kohana Team 10 * @license http://kohanaphp.com/license 11 */ 77 { 78 if ( ! array_key_exists($key, $array)) 79 return NULL; 124 /** 125 * Because PHP does not have this function. 126 * 141 /** 142 * Because PHP does not have this function, and array_walk_recursive creates 143 * references in arrays and is not truly recursive.listtempfiles.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 147 lines
19 20 if ((true == array_key_exists('action', $_POST)) && ('deleteAll' == $_POST['action'])) { 21 $raw = ''; 21 $raw = ''; 22 if (true == array_key_exists('junkList', $_POST)) { $raw = $_POST['junkList']; } 23 $raw = str_replace("\r", "\n", $raw); 141 //---------------------------------------------------------------------------------------------- 142 $page->load('modules/admin/actions/listtempfiles.page.php'); 143 $page->blockArgs['fileList'] = $fileList;daemon.php https://code.google.com/p/overwatch/ | PHP | 130 lines
1<?php abstract class Daemon implements iExtensionsRequired, iReconfigurable, iSignalHandler { 2 protected static $Detached = FALSE; 52 public static function Reconfigure (array $Config) { 53 if (array_key_exists ('sleep', $Config)) { 54 Out::I (Msg::ConfigGot, 'sleep', $Sleep = $Config ['sleep']); 59 // try to change user and group 60 if (array_key_exists ('user', $Config) and strlen ($UID = $Config ['user'])) { 61 Out::I (Msg::ConfigGot, 'user', $UID); 63 $UID = ($UID !== (string) (int) $UID) ? posix_getpwnam ($UID) : posix_getpwuid ((int) $UID); 64 if (array_key_exists ('group', $Config) and strlen ($GID = $Config ['group'])) { 65 Out::I (Msg::ConfigGot, 'group', $GID); 100 Out::I (Msg::SigCaught, $Sig); 101 if (array_key_exists ($Sig, self::$SigMap)) { 102 foreach (self::$SigMap [$Sig] as $Class) {Bootstrap.php git://github.com/johmue/mysql-workbench-schema-exporter.git | PHP | 300 lines
1<?php 2 124 $formatters = $this->getFormatters(); 125 if (!array_key_exists($name, $formatters)) { 126 list($module, $exporter) = explode('-', $name, 2); 236 $name = strtolower(is_array($name) ? implode('-', $name) : $name); 237 if (array_key_exists($name, static::$formatters)) { 238 throw new \RuntimeException(sprintf('Formatter %s already registered.', $class)); 248 * Try to guess if schema formatter (or exporter) is present in the specified directory 249 * which is named according to convention: MwbExporter\Formatter\*\*\Formatter.php. 250 * 263 if (is_dir($dir)) { 264 $parts = array('*', '*', 'Formatter.php'); 265 if (null == $namespace) {Manager.php git://github.com/openid/php-openid.git | PHP | 572 lines
1<?php 2 11 * The base session class used by the Auth_Yadis_Manager. This 12 * class wraps the default PHP session machinery and should be 13 * subclassed if your application doesn't use PHP sessioning. 16 */ 17class Auth_Yadis_PHPSession { 18 /** 39 { 40 if (isset($_SESSION) && array_key_exists($name, $_SESSION)) { 41 return $_SESSION[$name]; 111 foreach ($required as $k) { 112 if (!array_key_exists($k, $data)) { 113 return null; 334 335 // Stale flag for cleanup if PHP lib has trouble. 336 $this->stale = false;videozer_com.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 252 lines
1<?php 2 13 14 $page = $this->GetPage(str_replace('videozer.com/video/', 'videozer.com/player_control/settings.php?v=', $link)); 15 is_notpresent ($page, "you still have quota left", "Error: Still have quota left?"); 29 $qs = trim($_REQUEST['vzr_qs']); 30 if (array_key_exists($qs, $stream)) { 31 $dllink = $stream[$qs][1]; 42 } else { 43 global $PHP_SELF; 44 45 echo "\n<br /><br /><h3 style='text-align: center;'>This video have more than 1 stream, please select one for download.</h4>"; 46 echo "\n<br /><center><form name='dl' action='$PHP_SELF' method='post'>\n"; 47 echo "<select name='vzr_qs' id='vzr_qs'>\n"; 79 private function Get_Reply($page) { 80 if (!function_exists('json_decode')) html_error("Error: Please enable JSON in php."); 81 $json = substr($page, strpos($page,"\r\n\r\n") + 4);server.php http://arronwork.googlecode.com/svn/trunk/ | PHP | 441 lines
1#!/usr/bin/env php 2<?php 5$SOAR_DIR="../../../../.."; 6include "$SOAR_DIR/common/php/soar/soar.inc"; 7 186 $response=$ins->call($request['paras']); 187 if(array_key_exists($svc, stat::$svc)) 188 ++stat::$svc[$svc]; 267 { 268 if(array_key_exists($active['addr'], stat::$client)) 269 unset(stat::$client[$active['addr']]);Font.php https://PHPExcel.svn.codeplex.com/svn | PHP | 525 lines
32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 42 */ 43class PHPExcel_Style_Font implements PHPExcel_IComparable 44{ 136 $this->_strikethrough = false; 137 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK); 138 } 158 * 159 * Returns the PHPExcel_Style_Font that is actual bound to PHPExcel_Style 160 * 175 * 176 * If no PHPExcel_Style_Font has been bound to PHPExcel_Style then bind this one. Return the actual bound one. 177 *view.php http://webpagetest.googlecode.com/svn/trunk/ | PHP | 262 lines
1<?php 2chdir('..'); 3include 'common.inc'; 4include './benchmarks/data.inc.php'; 5$page_keywords = array('Benchmarks','Webpagetest','Website Speed Test','Page Speed'); 7$aggregate = 'median'; 8if (array_key_exists('aggregate', $_REQUEST)) 9 $aggregate = $_REQUEST['aggregate']; 10$benchmark = ''; 11if (array_key_exists('benchmark', $_REQUEST)) { 12 $benchmark = $_REQUEST['benchmark']; 14} 15if (array_key_exists('f', $_REQUEST)) { 16 $out_data = array(); 26 <meta name="author" content="Patrick Meenan"> 27 <?php $gaTemplate = 'About'; include ('head.inc'); ?> 28 <script type="text/javascript" src="/js/dygraph-combined.js"></script>ms_storage_raw_info_pop.php http://prohits.googlecode.com/svn/trunk/ | PHP | 363 lines
25 26include("./ms_permission.inc.php"); 27/*echo "<pre>"; 47 foreach($BACKUP_SOURCE_FOLDERS as $baseTable => $var_arr){ 48 if(array_key_exists($baseTable, $table_arr)) continue; 49 $bar_color = array_pop($colorArr); 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--> 227 <td width="100"> 228 <img src="./bar_status_gif.php?tital=<?=$tital?>&imageWidth=<?=$imageWidth?>&border=<?=$border?>&orientation=<?=$orientation?>&size_unit=<?=$size_unit?>&tableName=<?=$tableName?>&file_type=<?=$file_type?>&date_time=<?=$time_val?>&bigest_size=<?=$bigest_size?>&bigest_num_file=<?=$bigest_num_file?>&show_single=<?=$show_single?>&content=<?=$content?>"> 229 <!--a href="./bar_status_gif.php?tital=<?=$tital?>&imageWidth=<?=$imageWidth?>&border=<?=$border?>&orientation=<?=$orientation?>&size_unit=<?=$size_unit?>&tableName=<?=$tableName?>&file_type=<?=$file_type?>&date_time=<?=$time_val?>&bigest_size=<?=$bigest_size?>&bigest_num_file=<?=$bigest_num_file?>&show_single=<?=$show_single?>&content=<?=$content?>" class=button>[test]</a-->edit.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 204 lines
46 47 <head><title> <?php echo url::organizationName() ; ?> </title> 48 48 49 <?php 50 include($location->GLOO_META_TAGS); 91 92 <?php 93 $sticky = $glooWeb->getStickyMap('page_edit_section'); 109 110 <div id="tabs-1"> <?php include('inc/rename.php'); ?> </div> 111 <div id="tabs-2"> <?php include('inc/lock.php'); ?></div> 111 <div id="tabs-2"> <?php include('inc/lock.php'); ?></div> 112 <div id="tabs-3"> <?php include('inc/seo.php'); ?> </div> 113PHPReportInputCrosstab.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 93 lines
1<?php 2 require_once("PHPReportInputObject.php"); 3 3 4 class PHPReportInputCrosstab extends PHPReportInputObject { 5 function run(){ 12 // first step - find what columns we have, let's make a query that returns nothing but the columns 13 $stmt = PHPReportsDBI::db_query($this->_con,"select * from (".$this->_sql.") crosstab_table where 1=2"); 14 $cols = Array(); 14 $cols = Array(); 15 for($i=1; $i<=PHPReportsDBI::db_colnum($stmt); $i++) 16 array_push($cols,PHPReportsDBI::db_columnName($stmt,$i)); 16 array_push($cols,PHPReportsDBI::db_columnName($stmt,$i)); 17 PHPReportsDBI::db_free($stmt); 18Syslog.php git://github.com/silverstripe/sapphire.git | PHP | 267 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Syslog.php 23953 2011-05-03 05:47:39Z ralph $ 21 */ 23/** Zend_Log */ 24require_once 'Zend/Log.php'; 25 26/** Zend_Log_Writer_Abstract */ 27require_once 'Zend/Log/Writer/Abstract.php'; 28 40 /** 41 * Maps Zend_Log priorities to PHP's syslog priorities 42 * 197 if (!in_array($facility, $this->_validFacilities)) { 198 require_once 'Zend/Log/Exception.php'; 199 throw new Zend_Log_Exception('Invalid log facility provided; please see http://php.net/openlog for a list of valid facility values');Profiler.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 471 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 280 */ 281 require_once 'Zend/Db/Profiler/Query.php'; 282 $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType); 308 */ 309 require_once 'Zend/Db/Profiler/Exception.php'; 310 throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'."); 319 */ 320 require_once 'Zend/Db/Profiler/Exception.php'; 321 throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended."); 357 { 358 if (!array_key_exists($queryId, $this->_queryProfiles)) { 359 /**Config.php git://github.com/eryx/php-framework-benchmark.git | PHP | 537 lines
1<?php 2/** 132 $result = $default; 133 if (array_key_exists($name, $this->_data)) { 134 $result = $this->_data[$name]; 211 /** 212 * Support isset() overloading on PHP 5.1 213 * 222 /** 223 * Support unset() overloading on PHP 5.1 224 * 389 foreach($merge as $key => $item) { 390 if(array_key_exists($key, $this->_data)) { 391 if($item instanceof Config && $this->$key instanceof Config) { 472 $extendedSectionCurrent = $extendedSection; 473 while (array_key_exists($extendedSectionCurrent, $this->_extends)) { 474 if ($this->_extends[$extendedSectionCurrent] == $extendingSection) {Atom.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 421 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Atom.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Feed/Reader/FeedAbstract.php'; 26 29 */ 30require_once 'Zend/Feed/Reader/Extension/Atom/Feed.php'; 31 82 { 83 if (array_key_exists('authors', $this->_data)) { 84 return $this->_data['authors']; 100 { 101 if (array_key_exists('copyright', $this->_data)) { 102 return $this->_data['copyright'];sfFilesystem.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 401 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfFilesystem.class.php 14523 2009-01-07 10:33:54Z FabianLange $ 18 */ 51 { 52 if (!array_key_exists('override', $options)) 53 {SubscriptionDescription.php https://hg.codeplex.com/bukuphpjs | PHP | 414 lines
14 * 15 * PHP version 5 16 * 18 * @package WindowsAzure\ServiceBus\Models 19 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 20 * @copyright 2012 Microsoft Corporation 21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 22 * @link https://github.com/WindowsAzure/azure-sdk-for-php 23 */ 33 * @package WindowsAzure\ServiceBus\Models 34 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 35 * @copyright 2012 Microsoft Corporation 134 135 if (array_key_exists('RequiresSession', $subscriptionDescriptionArray)) { 136 $subscriptionDescription->setRequiresSession(Dispatcher.php https://code.google.com/p/ontowiki/ | PHP | 160 lines
1<?php 2/** 5 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW} 6 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 7 */ 17 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW} 18 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 19 * @author Norman Heino <norman.heino@gmail.com> 36 { 37 if (array_key_exists('url_base', $params)) { 38 $urlBase = (string)$params['url_base']; 96 } else { 97 require_once 'Zend/Controller/Exception.php'; 98 throw new Zend_Controller_Exception('No default module defined for this application');submit_track.php http://airscore.googlecode.com/svn/trunk/ | PHP | 332 lines
1<?php 2require 'authorisation.php'; 2require 'authorisation.php'; 3require 'format.php'; 4require 'hc.php'; 36 37if (array_key_exists('foo', $_REQUEST)) 38{ 47 $id = accept_track($comUnixTo, $comContact); 48 redirect("tracklog_map.php?trackid=$id&comPk=$comPk&ok=1"); 49 exit(0); 69<br><br> 70<?php 71function upload_track($file,$pilPk,$contact) 242 243echo "<form enctype=\"multipart/form-data\" action=\"submit_track.php?comPk=$comPk\" method=\"post\">"; 244echo 'class.dc.namespace.php https://bitbucket.org/dotclear/dotclear/ | PHP | 433 lines
1<?php 2# -- BEGIN LICENSE BLOCK --------------------------------------- 316 317 if (!array_key_exists($oldId,$this->settings) || array_key_exists($newId,$this->settings)) { 318 return false;Items.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 249 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Items.php 22804 2010-08-08 05:08:05Z renanbr $ 21 */ 25 */ 26require_once 'Zend/Service/Ebay/Finding/Response/Histograms.php'; 27 87 */ 88 require_once 'Zend/Service/Ebay/Finding/Search/Result.php'; 89 $this->searchResult = new Zend_Service_Ebay_Finding_Search_Result($node); 96 */ 97 require_once 'Zend/Service/Ebay/Finding/PaginationOutput.php'; 98 $this->paginationOutput = new Zend_Service_Ebay_Finding_PaginationOutput($node); 114 */ 115 require_once 'Zend/Service/Ebay/Finding/Exception.php'; 116 throw new Zend_Service_Ebay_Finding_Exception(settings.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 214 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2 5 * 6 * PHP version 5 7 * LICENSE: This source file is subject to LGPL license 33 { 34 return array_key_exists('key', ORM::factory('settings')->reload_columns($force)->table_columns); 35 } 158 // non-existent setting, skip current iteration 159 if (in_array($key, $skip) OR empty($key) OR ! array_key_exists($key, $all_settings)) 160 continue;PdoSessionStorage.php git://github.com/fabpot/symfony.git | PHP | 257 lines
1<?php 2 37 { 38 if (!array_key_exists('db_table', $dbOptions)) { 39 throw new \InvalidArgumentException('You must provide the "db_table" option for a PdoSessionStorage.');Container.php git://pkgs.fedoraproject.org/php-deepend-Mockery | PHP | 344 lines
1<?php 2/** 12 * obtain it through the world-wide-web, please send an email 13 * to padraic@php.net so we can send you a copy immediately. 14 * 125 } elseif (is_array($arg)) { 126 if(array_key_exists(self::BLOCKS, $arg)) $blocks = $arg[self::BLOCKS]; unset($arg[self::BLOCKS]); 127 $quickdefs = array_shift($args);Creating.php http://magento-w2p.googlecode.com/svn/trunk/ | PHP | 339 lines
1<?php 2 108 if ($has_products) 109 if (array_key_exists($template->getGuid(), $used_templates)) { 110 $this->debug("{$line}. Product {$template->getGuid()} already exists");rangeable.php git://github.com/webtechnick/CakePHP-WebTechNick-Plugin.git | PHP | 262 lines
1<?php 2/** 2/** 3 * A CakePHP behavior to facilitate a simple reteival of results via a range search on a lon/lat fields 4 * 13 * @author Alan Blount <Alan@zeroasterisk.com> 14 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 15 * @link https://github.com/zeroasterisk/cakephp-behavior-rangeable 70 foreach ( array($this->settings[$Model->alias]['field_lat'], "{$Model->alias}.{$this->settings[$Model->alias]['field_lat']}") as $key ) { 71 if (array_key_exists($key, $query['conditions'])) { 72 $lat = $query['conditions'][$key]; 77 foreach ( array($this->settings[$Model->alias]['field_lon'], "{$Model->alias}.{$this->settings[$Model->alias]['field_lon']}") as $key ) { 78 if (array_key_exists($key, $query['conditions'])) { 79 $lon = $query['conditions'][$key]; 85 foreach ( array($this->settings[$Model->alias]['field_zip'], "{$Model->alias}.{$this->settings[$Model->alias]['field_zip']}") as $key ) { 86 if (array_key_exists($key, $query['conditions'])) { 87 $zip = $query['conditions'][$key];date_views_filter_handler.inc git://pkgs.fedoraproject.org/drupal7-date | Pascal | 177 lines
1<?php 2/** 137 foreach ($this->options['date_fields'] as $field) { 138 if (array_key_exists($field, $fields['name'])) { 139 $output[] = $fields['name'][$field]['label']; 167 foreach ((array) $this->options['date_fields'] as $delta => $name) { 168 if (array_key_exists($name, $fields) && $field = $fields[$name]) { 169 $date_handler = new date_sql_handler($field['sql_type'], date_default_timezone());Tests.php https://code.google.com/p/molinos-cms/ | PHP | 520 lines
1<?php 2 316 foreach (array('edit', 'delete', 'publish') as $action) 317 $this->assertTrue(array_key_exists($action, $links)); 318 }serendipity_smarty_class.inc.php git://github.com/s9y/Serendipity.git | PHP | 292 lines
1<?php 2// serendipity_smarty_class.inc.php lm 2014-12-10 Ian 15 public $php_functions = array('isset', 'empty', 'count', 'sizeof', 'in_array', 'is_array', 'time', 'nl2br', 'class_exists', ); 16 // to disable all PHP functions 17 #public $php_functions = null; 19 // remove PHP tags 20 public $php_handling = Smarty::PHP_REMOVE; // = 2 21 22 // set allowed modifiers only. (default = array( 'escape', 'count' );) 23 public $php_modifiers = array('escape', 'sprintf', 'sizeof', 'count', 'rand', 'print_r', 'str_repeat', 'nl2br', 'array_key_exists'); 24 36 37 // to test this - overwrites Serendipity_Smarty::default_modifiers and Serendipity_Smarty_Security_Policy::php_modifiers - modifier 'escape' not allowed by security setting 38 #public $allowed_modifiers = array('escape:"htmlall"'); 226 serendipity_event_communityrating.php, serendipity_event_customarchive.php, serendipity_event_microformats.php, 227 serendipity_event_multilingual.php, serendipity_event_smartymarkup.php, serendipity_event_staticpage.php 228 */Encryption.php git://github.com/spadefoot/kohana-orm-leap.git | PHP | 101 lines
1<?php defined('SYSPATH') OR die('No direct script access.'); 2 70 default: 71 if (array_key_exists($key, $this->metadata)) { return $this->metadata[$key]; } 72 break;test_system.cache.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 461 lines
1<?php 2 141 142 // PHP does not support arrays with numeric string keys. It silently converts them 143 // to int keys. For example: $test_array["1234"] = "foo"; $test_array["bar"] = "baz"; 147 // BPM_sUtil::random_string() can (and does) produce values like (string)7. To avoid 148 // debugging problems, prepend all the key names with "k" to ensure PHP treats them as strings. 149 169 // 170 // But, PHP *doesn't catch* this defect when the variable name is created dynamically 171 // [ $name = "7"; $test_object->{$name} = "foo" ]. Instead, it converts the key's type 249 250 // Load the database and check array with test data. Note that PHPUnit resets ALL the 251 // class variables between tests, so we have to reload the table and reset the cache 266 267 // Load the database and check array with test data. Note that PHPUnit resets ALL the 268 // class variables between tests, so we have to reload the table and reset the cacheupdate.php http://timoseven.googlecode.com/svn/trunk/ | PHP | 268 lines
1<?php 2/** 43 foreach($updates as $update) { 44 if ( array_key_exists( $update->current.'|'.$update->locale, $dismissed ) ) { 45 if ( $options['dismissed'] ) { 102 case 'development' : 103 return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), $GLOBALS['wp_version'], 'update-core.php'); 104 break; 106 case 'upgrade' : 107 return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', 'update-core.php', $cur->current); 108 break; 123 124 if ( 'update-core.php' == $pagenow ) 125 return; 132 if ( current_user_can('update_core') ) 133 $msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! <a href="%2$s">Please update now</a>.'), $cur->current, 'update-core.php' ); 134 elseFormOptionsHelper.php git://github.com/phpwax/phpwax.git | PHP | 273 lines
1<?php 2/** 3 * 4 * @package PHP-Wax 5 * @author Ross Riley 10 */ 11if(!array_key_exists('COUNTRIES',$GLOBALS)) { 12 $GLOBALS['COUNTRIES'] =Registry.php https://code.google.com/p/ontowiki/ | PHP | 327 lines
1<?php 2 6 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW} 7 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 8 */ 17 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW} 18 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 19 * @author Norman Heino <norman.heino@gmail.com> 28 const MODULE_CLASS_POSTFIX = 'Module'; 29 const MODULE_FILE_POSTFIX = 'Module.php'; 30 139 // create module context if necessary 140 if (!array_key_exists($context, $this->_moduleOrder)) { 141 $this->_moduleOrder[$context] = array(); 147 148 if (!array_key_exists($moduleName, $this->_modules)) { 149 // merge defaultspnuserapi.php git://pkgs.fedoraproject.org/zikula | PHP | 228 lines
1<?php 2/** 5 * @link http://www.zikula.org 6 * @version $Id: pnuserapi.php 27832 2009-12-09 11:50:03Z drak $ 7 * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html 22 $lockName = $args['lockName']; 23 $returnUrl = (array_key_exists('returnUrl', $args) ? $args['returnUrl'] : null); 24 $ignoreEmptyLock = (array_key_exists('ignoreEmptyLock', $args) ? $args['ignoreEmptyLock'] : false); 86 $lockName = $args['lockName']; 87 $sessionId = (array_key_exists('sessionId', $args) ? $args['sessionId'] : session_id()); 88 $lockedByTitle = $args['lockedByTitle']; 151 $lockName = $args['lockName']; 152 $sessionId = (array_key_exists('sessionId', $args) ? $args['sessionId'] : session_id()); 153 175 $lockName = $args['lockName']; 176 $sessionId = (array_key_exists('sessionId', $args) ? $args['sessionId'] : session_id()); 177forms.php git://github.com/andyhd/minim.git | PHP | 434 lines
1<?php 2class Minim_Forms implements Minim_Plugin // {{{ 48 $manager = minim('orm')->{$model}; 49 $have_data = array_key_exists('instance', $params); 50 foreach ($manager->_fields as $name => $field) 155 { 156 if (array_key_exists($name, $this->_fields)) 157 { 202 { 203 if (array_key_exists($name, $this->_fields)) 204 { 214 { 215 if (array_key_exists($name, $this->_fields)) 216 { 224 { 225 if (array_key_exists($name, $data)) 226 {firstrun.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 202 lines
2 3 require_once($kapenta->installPath . 'core/dbdriver/mysqladmin.dbd.php'); 4 51 //--------------------------------------------------------------------------------------------- 52 if (true == array_key_exists('action', $_POST)) { 53 //----------------------------------------------------------------------------------------- 173 $msg = "<b>Installing module: $moduleName </b><br/>"; 174 $installScript = 'modules/' . $moduleName . '/inc/install.inc.php'; 175 if (true == $kapenta->fileExists($installScript)) {smarty_internal_compilebase.php git://github.com/benkeen/generatedata.git | PHP | 176 lines
1<?php 2/** 103 foreach ($this->required_attributes as $attr) { 104 if (!array_key_exists($attr, $_indexed_attr)) { 105 $compiler->trigger_template_error("missing \"" . $attr . "\" attribute", $compiler->lex->taglineno);krevisions.class.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 222 lines
2 3 require_once($kapenta->installPath . 'modules/revisions/models/deleted.mod.php'); 4 require_once($kapenta->installPath . 'modules/revisions/models/revision.mod.php'); 51 52 if ((true == array_key_exists('archive', $dbSchema)) && ('no' == $dbSchema['archive'])) 53 { return false; } 86 //------------------------------------------------------------------------------------------ 87 if ((true == array_key_exists('archive', $dbSchema)) && ('no' == $dbSchema['archive'])) { 88 $session->msgAdmin('Objects of this type are not archived or revisioned.');CakeRoute.php git://github.com/cakephp/cakephp.git | PHP | 514 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 9 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @link http://cakephp.org CakePHP(tm) Project 11 * @since CakePHP(tm) v 1.3 11 * @since CakePHP(tm) v 1.3 12 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 */ 139 $option = null; 140 if ($name !== 'plugin' && array_key_exists($name, $this->defaults)) { 141 $option = '?'; 356 foreach ($this->options['persist'] as $persistKey) { 357 if (array_key_exists($persistKey, $params) && !isset($url[$persistKey])) { 358 $url[$persistKey] = $params[$persistKey];GridFieldPresenter.php git://github.com/silverstripe/sapphire.git | PHP | 0 lines
1<?php 2/** 266 267 if(array_key_exists($name, $this->sorting)) { 268 $data['IsSorted'] = true; 383 // casting 384 if(array_key_exists($fieldName, $this->parent->fieldCasting)) { 385 $value = $this->parent->getCastedValue($value, $this->parent->fieldCasting[$fieldName]); 391 $item = $this->item; 392 if(array_key_exists($fieldName, $this->parent->fieldFormatting)) { 393 $format = str_replace('$value', "__VAL__", $this->parent->fieldFormatting[$fieldName]);Ibm.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: Ibm.php 9577 2008-05-31 01:50:27Z peptolab $ 21 */ 24/** @see Zend_Db_Adapter_Pdo_Abstract */ 25require_once 'Zend/Db/Adapter/Pdo/Abstract.php'; 26 27/** @see Zend_Db_Abstract_Pdo_Ibm_Db2 */ 28require_once 'Zend/Db/Adapter/Pdo/Ibm/Db2.php'; 29 30/** @see Zend_Db_Abstract_Pdo_Ibm_Ids */ 31require_once 'Zend/Db/Adapter/Pdo/Ibm/Ids.php'; 32 33/** @see Zend_Db_Statement_Pdo_Ibm */ 34require_once 'Zend/Db/Statement/Pdo/Ibm.php'; 35BasePartition.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 543 lines
1<?php 2 353 354 public function getByName($name, $type = BasePeer::TYPE_PHPNAME) 355 { 393 394 public function toArray($keyType = BasePeer::TYPE_PHPNAME) 395 { 410 411 public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME) 412 { 447 448 public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME) 449 { 451 452 if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]); 453 if (array_key_exists($keys[1], $arr)) $this->setSize($arr[$keys[1]]);Border.php https://PHPExcel.svn.codeplex.com/svn | PHP | 332 lines
32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 42 */ 43class PHPExcel_Style_Border implements PHPExcel_IComparable 44{ 95 $this->_borderStyle = PHPExcel_Style_Border::BORDER_NONE; 96 $this->_borderColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK); 97 } 117 * 118 * Returns the PHPExcel_Style_Border that is actual bound to PHPExcel_Style_Borders 119 * 158 * 159 * If no PHPExcel_Style_Border has been bound to PHPExcel_Style_Borders then bind this one. Return the actual bound one. 160 *Abstract.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 309 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Abstract.php 22824 2010-08-09 18:59:54Z renanbr $ 21 */ 93 { 94 return array_key_exists($name, $this->_options); 95 } 124 */ 125 require_once 'Zend/Service/Ebay/Exception.php'; 126 throw new Zend_Service_Ebay_Exception('Invalid options provided.'); 205 // when there is a root tag, attributes receive flags 206 $hasAttribute = array_key_exists('', $value); 207 foreach ($value as $subName => $subValue) { 244 /** 245 * Translate native PHP values format to ebay format for request. 246 *sfI18N.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 402 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfI18N.class.php 11700 2008-09-21 10:53:44Z fabien $ 18 */ 241 242 return (array_key_exists($iso, $countries)) ? $countries[$iso] : ''; 243 }twitter_status.php git://github.com/neilcrookes/CakePHP-Twitter-API-Plugin.git | PHP | 295 lines
1<?php 2/** 8 * @copyright (c) 2010 Neil Crookes 9 * @license MIT License - http://www.opensource.org/licenses/mit-license.php 10 */ 125 * 126 * Twitter's API uses a count parameter where in CakePHP we'd normally use 127 * limit, so we also copy the limit value to count so we can use our familiar 138 if ((empty($options['page']) || empty($options['count'])) 139 && array_key_exists($type, $this->allowedFindOptions) 140 && in_array('page', $this->allowedFindOptions[$type]) 154 $this->request['uri']['path'] = '1/statuses/' . Inflector::underscore($type); 155 if (array_key_exists($type, $this->allowedFindOptions)) { 156 $this->request['uri']['query'] = array_intersect_key($options, array_flip($this->allowedFindOptions[$type]));HeadScript.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
22/** Zend_View_Helper_Placeholder_Container_Standalone */ 23require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php'; 24 89 * 90 * Set separator to PHP_EOL. 91 * 96 parent::__construct(); 97 $this->setSeparator(PHP_EOL); 98 } 203 if (1 > count($args)) { 204 require_once 'Zend/View/Exception.php'; 205 throw new Zend_View_Exception(sprintf('Method "%s" requires at least one argument', $method)); 413 if (!empty($item->source)) { 414 $html .= PHP_EOL . $indent . ' ' . $escapeStart . PHP_EOL . $item->source . $indent . ' ' . $escapeEnd . PHP_EOL . $indent; 415 }Config.php git://github.com/machuga/php-activerecord-spark.git | PHP | 304 lines
1<?php 2/** 153 { 154 if (array_key_exists($name, $this->connections)) 155 return $this->connections[$name]; 166 { 167 return array_key_exists($this->default_connection,$this->connections) ? 168 $this->connections[$this->default_connection] : null;addpackage.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 199 lines
2 3 require_once($kapenta->installPath . 'modules/packages/inc/kupdatemanager.class.php'); 4 require_once($kapenta->installPath . 'modules/packages/inc/kpackage.class.php'); 4 require_once($kapenta->installPath . 'modules/packages/inc/kpackage.class.php'); 5 require_once($kapenta->installPath . 'modules/packages/inc/ksource.class.php'); 6 25 26 if (false == array_key_exists('action', $_POST)) { $page->do404('Action not given.', true); } 27 if ('addPackage' != $_POST['action']) { $page->do404('Action not recognized.'); } 28 29 if (true == array_key_exists('source', $_POST)) { $source = $_POST['source']; } 30 if (true == array_key_exists('UID', $_POST)) { $UID = $_POST['UID']; } 30 if (true == array_key_exists('UID', $_POST)) { $UID = $_POST['UID']; } 31 if (true == array_key_exists('username', $_POST)) { $username = $_POST['username']; } 32 if (true == array_key_exists('password', $_POST)) { $username = $_POST['password']; }startwork.php http://stuffpack.googlecode.com/svn/ | PHP | 307 lines
1#!/usr/bin/env php 2<?php 15 16 // All of these are set in config.php (and thats it) 17 // $config['user password domain'] 17 // $config['user password domain'] 18 require_once 'config.php'; 19 // set the email right here. 20 $config['email']= $config['user'].'@'.$config['domain']; 21 require_once 'Zend/Loader.php'; 22 Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); 116 // long opts 117 $debug = (array_key_exists('debug',$cli)) ? true : false; 118 $verbose = (array_key_exists('verbose',$cli)) ? true : false; 118 $verbose = (array_key_exists('verbose',$cli)) ? true : false; 119 $check_config = (array_key_exists('check-config',$cli)) ? true : false; 120sfValidatorSchema.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 366 lines
1<?php 2 18 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 19 * @version SVN: $Id: sfValidatorSchema.class.php 10836 2008-08-13 12:06:35Z fabien $ 20 */ 128 // field exists in our schema? 129 if (!array_key_exists($name, $this->fields)) 130 {Color.php git://github.com/jyr/MNPP.git | PHP | 409 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Color implements PHPExcel_IComparable 37{ 126 * 127 * @return PHPExcel_Style_Color 128 */ 206 * <code> 207 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') ); 208 * </code>Data.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 563 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Data.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 116 if ($this->hasItem($item['id'])) { 117 require_once 'Zend/Dojo/Exception.php'; 118 throw new Zend_Dojo_Exception('Overwriting items using addItem() is not allowed'); 134 if (!is_array($items) && (!is_object($items) || !($items instanceof Traversable))) { 135 require_once 'Zend/Dojo/Exception.php'; 136 throw new Zend_Dojo_Exception('Only arrays and Traversable objects may be added to ' . __CLASS__); 165 { 166 return array_key_exists($id, $this->_items); 167 } 227 } else { 228 require_once 'Zend/Dojo/Exception.php'; 229 throw new Zend_Dojo_Exception('Invalid identifier; please use a string or integer');TextBoxTest.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: TextBoxTest.php 11973 2008-10-15 16:00:56Z matthew $ 21 */ 23// Call Zend_Dojo_Form_Element_TextBoxTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Dojo_Form_Element_TextBoxTest::main"); 27 28require_once dirname(__FILE__) . '/../../../../TestHelper.php'; 29 30/** Zend_Dojo_Form_Element_TextBox */ 31require_once 'Zend/Dojo/Form/Element/TextBox.php'; 32 33/** Zend_View */ 34require_once 'Zend/View.php'; 35Definition.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 267 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Definition.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 78 if (is_array($method)) { 79 require_once 'Zend/Server/Method/Definition.php'; 80 $method = new Zend_Server_Method_Definition($method); 81 } elseif (!$method instanceof Zend_Server_Method_Definition) { 82 require_once 'Zend/Server/Exception.php'; 83 throw new Zend_Server_Exception('Invalid method provided'); 94 if (null === $name) { 95 require_once 'Zend/Server/Exception.php'; 96 throw new Zend_Server_Exception('No method name provided'); 98 99 if (!$this->_overwriteExistingMethods && array_key_exists($name, $this->_methods)) { 100 require_once 'Zend/Server/Exception.php';SioceditController.php https://code.google.com/p/ontowiki/ | PHP | 276 lines
1<?php 2 6 * @copyright Copyright (c) 2009, {@link http://aksw.org AKSW} 7 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 8 * @version $Id:$ 10 11require_once 'OntoWiki/Controller/Component.php'; 12 16 * @copyright Copyright (c) 2009, {@link http://aksw.org AKSW} 17 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 18 * @category OntoWiki 83 $graphBase = $this->_model->getBaseUri(); 84 if (!array_key_exists($graphBase, $namespaces)) { 85 $namespaces = array_merge($namespaces, array($graphBase => OntoWiki_Utils::DEFAULT_BASE)); 107 $property = $row['p']['value']; 108 if (array_key_exists($property, $data) ) { 109Route.php git://github.com/fabpot/symfony.git | PHP | 568 lines
1<?php 2 323 { 324 return \array_key_exists($name, $this->options); 325 } 392 { 393 return \array_key_exists($name, $this->defaults); 394 } 480 { 481 return \array_key_exists($key, $this->requirements); 482 }Borders.php https://PHPExcel.svn.codeplex.com/svn | PHP | 347 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/lgpl.txt LGPL 29/** PHPExcel_Style_Border */ 30require_once 'PHPExcel/Style/Border.php'; 31 32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 40 * @package PHPExcel_Style 41 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 42 */ 42 */ 43class PHPExcel_Style_Borders implements PHPExcel_IComparable 44{IsCompressed.php https://bitbucket.org/jfrubiom/zendframework-1.x.git | PHP | 149 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: IsCompressed.php 24593 2012-01-05 20:35:02Z matthew $ 20 */ 24 */ 25require_once 'Zend/Validate/File/MimeType.php'; 26 102 $temp = $mimetype; 103 if (array_key_exists('magicfile', $temp)) { 104 unset($temp['magicfile']); 106 107 if (array_key_exists('headerCheck', $temp)) { 108 unset($temp['headerCheck']); 124 * Throws an error of the given type 125 * Duplicates parent method due to OOP Problem with late static binding in PHP 5.2 126 *build_data.php http://drawshield.googlecode.com/svn/trunk/ | PHP | 148 lines
1<?php /* Copyright 2010 Karl R. Wilcox 2 54 // Add this to the either list, for disambiguation? 55 if ( array_key_exists ( 'either', $charge ) ) { 56 foreach ( $charge['patterns'] as $pattern ) 62 } 63 if ( array_key_exists( 'modifiers' , $charge ) ) 64 $modifiers['c:' . $subtype] = $charge['modifiers']; 64 $modifiers['c:' . $subtype] = $charge['modifiers']; 65 if ( array_key_exists( 'flags' , $charge ) ) 66 $flags['c:' . $subtype] = $charge['flags']; 84 // Add this to the either list, for disambiguation? 85 if ( array_key_exists ( 'either', $ordinary ) ) { 86 foreach ( $ordinary['patterns'] as $pattern ) { 104 } 105 if ( array_key_exists( 'modifiers' , $ordinary ) ) 106 $modifiers['o:' . $subtype] = $ordinary['modifiers'];charge.inc http://drawshield.googlecode.com/svn/trunk/ | PHP | 184 lines
78 $chg_ref = get_mod($node, 'chg_data'); 79 if ( !array_key_exists($chg_ref, $chg_data_cache) ) 80 $chg_data = read_chg_file($node); 112 $col_type = $charge_col->firstChild; 113 if ( $col_type->nodeName == 'default' and array_key_exists('default', $chg_data) ) { 114 $col_type->setAttribute('spec', $chg_data['default']); 125 foreach ( array_reverse($chg_data['features']) as $key => $data ) { 126 if ( !array_key_exists('body', $data) ) $data['body'] = '<g />'; 127 // Find if there is a proper colour 127 // Find if there is a proper colour 128 if ( array_key_exists('proper', $data) ) 129 $proper_spec = $data['proper']; 137 } else { // colour not given in blazon 138 if ( array_key_exists('notpresent', $data) and !array_key_exists($key,$feat_cols) ) { 139 $feature= $data['notpresent']; // Use the notpresent dataNode.php git://github.com/jyr/MNPP.git | PHP | 343 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */ 34/** */ 35require_once 'PEAR.php'; 36/** */ 36/** */ 37require_once 'Structures/Graph.php'; 38/* }}} */ 151 function metadataKeyExists($key) { 152 return array_key_exists($key, $this->_metadata); 153 } 171 function &getMetadata($key, $nullIfNonexistent = false) { 172 if (array_key_exists($key, $this->_metadata)) { 173 return $this->_metadata[$key]; 198 function unsetMetadata($key) { 199 if (array_key_exists($key, $this->_metadata)) unset($this->_metadata[$key]); 200 }reportlib.php git://pkgs.fedoraproject.org/moodle | PHP | 397 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28 29require_once($CFG->dirroot . '/mod/quiz/lib.php'); 30require_once($CFG->libdir . '/filelib.php'); 121 foreach (explode(',', $questionids) as $key => $id) { 122 if (!array_key_exists($id, $questions)) { 123 continue; 287 $formatoptions->noclean = true; 288 $feedbacktext = file_rewrite_pluginfile_urls($feedbacktext, 'pluginfile.php', 289 $context->id, 'mod_quiz', 'feedback', $feedbackid); 332 foreach ($reports as $key => $report) { 333 if (array_key_exists($report->name, $reportdirs)) { 334 $reportcaps[$report->name] = $report->capability; 390 if (has_capability('mod/quiz:manage', $context)) { 391 $output .= $OUTPUT->single_button(new moodle_url('/mod/quiz/edit.php', 392 array('cmid' => $cm->id)), get_string('editquiz', 'quiz'), 'get');Style.php https://PHPExcel.svn.codeplex.com/svn | PHP | 415 lines
38/** PHPExcel_Style_Borders */ 39require_once 'PHPExcel/Style/Borders.php'; 40 50/** PHPExcel_Style_Protection */ 51require_once 'PHPExcel/Style/Protection.php'; 52 53/** PHPExcel_IComparable */ 54require_once 'PHPExcel/IComparable.php'; 55 60 * @package PHPExcel_Cell 61 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 62 */ 62 */ 63class PHPExcel_Style implements PHPExcel_IComparable 64{admin.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 247 lines
1<?php 2 5 * 6 * PHP version 5 7 * 18defined('_JEXEC') or die('Restricted access'); 19require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_jfusion' . DS . 'models' . DS . 'model.abstractuser.php'; 20if (!class_exists('JFusionEfrontHelper')) { 20if (!class_exists('JFusionEfrontHelper')) { 21 require_once 'efronthelper.php'; 22} 25 * JFusion Admin Class for eFront 3.5+ 26 * For detailed descriptions on these functions please check the model.abstractadmin.php 27 * 94 $tableFields = $db->getTableFields('users',false); 95 if (!array_key_exists('id',$tableFields['users'])) 96 {Deserializer.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 22/** Zend_Amf_Parse_Deserializer */ 23require_once 'Zend/Amf/Parse/Deserializer.php'; 24 25/** 26 * Read an AMF0 input stream and convert it into PHP data types 27 * 64 * @param integer $typeMarker 65 * @return mixed whatever the data type is of the marker in php 66 * @return mixed 136 default: 137 require_once 'Zend/Amf/Exception.php'; 138 throw new Zend_Amf_Exception('Unsupported marker type: ' . $typeMarker); 142 /** 143 * Read AMF objects and convert to PHP objects 144 *sfValidatorBase.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 456 lines
1<?php 2 18 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 19 * @version SVN: $Id: sfValidatorBase.class.php 10893 2008-08-14 12:30:27Z hartym $ 20 */ 425 { 426 if (array_key_exists($key, $messages) && $messages[$key] === $value) 427 { 446 { 447 if (array_key_exists($key, $options) && $options[$key] === $value) 448 {package.php git://github.com/fuel/core.git | PHP | 159 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. 4 * 9 * @copyright 2010 - 2019 Fuel Development Team 10 * @link https://fuelphp.com 11 */ 94 \Finder::instance()->add_path($path, 1); 95 \Fuel::load($path.'bootstrap.php'); 96 static::$packages[$package] = $path; 126 127 return array_key_exists($package, static::$packages); 128 } 137 { 138 if (array_key_exists($package, static::$packages)) 139 {admin_dashboard.php git://github.com/gallery/gallery3.git | PHP | 97 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 61 62 if (array_key_exists($id, $blocks_sidebar)) { 63 $deleted = $blocks_sidebar[$id]; 64 block_manager::remove("dashboard_sidebar", $id); 65 } else if (array_key_exists($id, $blocks_center)) { 66 $deleted = $blocks_center[$id];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, 290{ 291 return array_key_exists($name, sfContext::getInstance()->getResponse()->getSlots()); 292}HeaderBag.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 269 lines
1<?php 2 86 87 if (!array_key_exists($key, $this->headers)) { 88 return $first ? null : array(); 128 { 129 return array_key_exists(strtr(strtolower($key), '_', '-'), $this->headers); 130 } 183 { 184 // from PHP source code 185 if (preg_match("/[=,; \t\r\n\013\014]/", $name)) {Label.class.php git://pkgs.fedoraproject.org/pgfouine | PHP | 616 lines
1<?php 2/* 10 11/* <php4> */ 12 19 20/* </php4> */ 21 194 function get($key) { 195 return array_key_exists($key, $this->texts) ? $this->texts[$key] : NULL; 196 } 440 441 if(is_array($this->texts) and array_key_exists($key, $this->texts)) { 442 519 // Key is hidden 520 if(array_key_exists($key, $this->hideKey)) { 521 return;setup.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 233 lines
31 } 32 $admin_file = ( file_exists( NV_ROOTDIR . "/modules/" . $module_file . "/admin.functions.php" ) and file_exists( NV_ROOTDIR . "/modules/" . $module_file . "/admin/main.php" ) ) ? 1 : 0; 33 $custom_title = preg_replace( '/(\W+)/i', ' ', $setmodule ); 42 nv_insert_logs( NV_LANG_DATA, $module_name, $lang_module['modules'] . ' ' . $setmodule . '"', '', $admin_info['userid'] ); 43 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=edit&mod=" . $setmodule ); 44 die(); 47 } 48 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 49 die(); 124{ 125 $check_file_main = NV_ROOTDIR . "/modules/" . $module_name_i . "/funcs/main.php"; 126 $check_file_functions = NV_ROOTDIR . "/modules/" . $module_name_i . "/functions.php"; 127 128 $check_admin_main = NV_ROOTDIR . "/modules/" . $module_name_i . "/admin/main.php"; 129 $check_admin_functions = NV_ROOTDIR . "/modules/" . $module_name_i . "/admin.functions.php";ServiceSettings.php https://hg.codeplex.com/bukuphpjs | PHP | 285 lines
1<?php 2 14 * 15 * PHP version 5 16 * 18 * @package WindowsAzure\Common\Internal 19 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 20 * @copyright 2012 Microsoft Corporation 21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 22 * @link https://github.com/windowsazure/azure-sdk-for-php 23 */ 41 * @package WindowsAzure\Common\Internal 42 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 43 * @copyright 2012 Microsoft Corporation 45 * @version Release: @package_version@ 46 * @link https://github.com/windowsazure/azure-sdk-for-php 47 */search.inc git://pkgs.fedoraproject.org/roundcubemail | Pascal | 334 lines
1<?php 2 157 foreach ($fields as $f) { 158 if (array_key_exists($f, $cols)) { 159 $supported ++;NumberFormat.php https://PHPExcel.svn.codeplex.com/svn | PHP | 273 lines
29/** PHPExcel_IComparable */ 30require_once 'PHPExcel/IComparable.php'; 31 37 * @package PHPExcel_Style 38 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 39 */ 39 */ 40class PHPExcel_Style_NumberFormat implements PHPExcel_IComparable 41{ 123 * 124 * Returns the PHPExcel_Style_NumberFormat that is actual bound to PHPExcel_Style 125 * 140 * 141 * If no PHPExcel_Style_NumberFormat has been bound to PHPExcel_Style then bind this one. Return the actual bound one. 142 *Rss.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 374 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Rss.php 20519 2010-01-22 14:06:24Z padraic $ 20 */ 22/** @see Zend_Feed_Writer_Feed */ 23require_once 'Zend/Feed/Writer/Feed.php'; 24 25/** @see Zend_Version */ 26require_once 'Zend/Version.php'; 27 28/** @see Zend_Feed_Writer_Renderer_RendererInterface */ 29require_once 'Zend/Feed/Writer/Renderer/RendererInterface.php'; 30 31/** @see Zend_Feed_Writer_Renderer_Entry_Rss */ 32require_once 'Zend/Feed/Writer/Renderer/Entry/Rss.php'; 33quotes_to_db.php http://stratlab.googlecode.com/svn/trunk/ | PHP | 196 lines
1<?php 2require_once 'mysql.class.php'; 12$args= parseArgs($argv); 13if (array_key_exists("exchange", $args)) { 14 $exchange=$args['exchange']; 15} else { 16 echo "Usage: ".$_SERVER['PHP_SELF']." --exchange=<EXCHANGENAME>\n"; 17 die;set_view.php http://candydolldb.googlecode.com/svn/trunk/ | PHP | 297 lines
195<h2><?php echo sprintf( 196 '<a href="index.php">%5$s</a> - <a href="model_view.php?model_id=%1$d">%3$s</a> - <a href="set.php?model_id=%1$d">%6$s</a> - %7$s %4$s', 197 $ModelID, 222<label><?php echo $lang->g('LabelContains')?>: </label> 223<input type="radio" id="radImages" name="radContains" value="<?php echo SET_CONTENT_IMAGE?>"<?php echo ($Set->getContainsWhat() & SET_CONTENT_IMAGE) > 0 ? ' checked="checked"' : NULL?><?php echo HTMLstuff::DisabledStr($DisableControls)?> /> 224<label for="radImages" class="Radio"><?php echo $lang->g('NavigationImages')?></label> 224<label for="radImages" class="Radio"><?php echo $lang->g('NavigationImages')?></label> 225<input type="radio" id="radVideos" name="radContains" value="<?php echo SET_CONTENT_VIDEO?>"<?php echo ($Set->getContainsWhat() & SET_CONTENT_VIDEO) > 0 ? ' checked="checked"' : NULL?><?php echo HTMLstuff::DisabledStr($DisableControls)?> /> 226<label for="radVideos" class="Radio"><?php echo $lang->g('NavigationVideos')?></label> 226<label for="radVideos" class="Radio"><?php echo $lang->g('NavigationVideos')?></label> 227<input type="radio" id="radBoth" name="radContains" value="<?php echo (SET_CONTENT_IMAGE + SET_CONTENT_VIDEO)?>"<?php echo (($Set->getContainsWhat() & SET_CONTENT_IMAGE) > 0 && ($Set->getContainsWhat() & SET_CONTENT_VIDEO) > 0) ? ' checked="checked"' : NULL?><?php echo HTMLstuff::DisabledStr($DisableControls)?> /> 228<label for="radBoth" class="Radio"><?php echo $lang->g('LabelBoth')?></label> 275<input type="button" class="FormButton" value="<?php echo $lang->g('ButtonCancel')?>" onclick="window.location='<?php echo $ReturnURL?>';" /> 276<input type="button" class="FormButton" value="<?php echo $lang->g('ButtonClearCacheImage')?>" onclick="window.location='cacheimage_delete.php?set_id=<?php echo $SetID ?>';"<?php echo HTMLstuff::DisabledStr($DisableCacheDeleteButton)?> /> 277</div>fill.php http://marcoratto.googlecode.com/svn/trunk/ | PHP | 337 lines
110 array_shift($argv); 111 Log4GPHP::print_r(Log4GPHP::$TRACE, $argv); 112 141 142Log4GPHP::setLoggingLevel(Log4GPHP::$TRACE); 143Log4GPHP::info("argc=$argc"); 174 175Log4GPHP::info("gb=" . array_key_exists('gb', $params)); 176Log4GPHP::info("mb=" . array_key_exists('mb', $params)); 176Log4GPHP::info("mb=" . array_key_exists('mb', $params)); 177Log4GPHP::info("kb=" . array_key_exists('kb', $params)); 178 221 222// Log4GPHP::print_r(Log4GPHP::$INFO, $listOfFiles); 223Login.php git://github.com/daylightstudio/FUEL-CMS.git | PHP | 373 lines
1<?php 2class Login extends CI_Controller { 100 $parsed_url = parse_url($forward_uri); 101 $host = array_key_exists('host', $parsed_url) ? $parsed_url['host'] : null; 102helper_functions.php http://wowroster-addons.googlecode.com/svn/trunk/ | PHP | 154 lines
1<?php 2//////////////////////////////////////////////////////////////////////////////// 7//////////////////////////////////////////////////////////////////////////////// 8if (!isset($gc_database)) include_once("database_info.php"); 9if (!isset($gc_lang)) include_once("language.php"); 35 global $gc_lang; 36 if (array_key_exists($type,$gc_lang['gcType'])) return $gc_lang['gcType'][$type]; 37 else if ($type != "") return $gc_lang['gcType']['OTHER'] . " ($type)";EsmtpTransport.php git://github.com/tcm-project/tangocms.git | PHP | 361 lines
1<?php 2 10 11//@require 'Swift/Transport/AbstractSmtpTransport.php'; 12//@require 'Swift/Transport/EsmtpHandler.php'; 12//@require 'Swift/Transport/EsmtpHandler.php'; 13//@require 'Swift/Transport/IoBuffer.php'; 14//@require 'Swift/Transport/SmtpAgent.php'; 14//@require 'Swift/Transport/SmtpAgent.php'; 15//@require 'Swift/TransportException.php'; 16//@require 'Swift/Mime/Message.php'; 16//@require 'Swift/Mime/Message.php'; 17//@require 'Swift/Events/EventDispatcher.php'; 18 333 { 334 if (array_key_exists($keyword, $this->_capabilities)) 335 {access.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 377 lines
1<?php 2/** 125 // Make sure groupId is valid 126 if (!array_key_exists($groupId, $groups)) 127 {maildaemon.php git://pkgs.fedoraproject.org/php-laconica | PHP | 207 lines
1#!/usr/bin/env php 2<?php 21# Abort if called from a web server 22if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) { 23 print "This script must be run from the command line\n"; 29 30require_once(INSTALLDIR . '/lib/common.php'); 31require_once(INSTALLDIR . '/lib/mail.php'); 31require_once(INSTALLDIR . '/lib/mail.php'); 32require_once('Mail/mimeDecode.php'); 33 41 42 function handle_message($fname='php://stdin') { 43 list($from, $to, $msg) = $this->parse_message($fname); 70 function error($from, $msg) { 71 file_put_contents("php://stderr", $msg . "\n"); 72 exit(1);bwbbcode.class.php http://firmkernel.googlecode.com/svn/trunk/ | PHP | 287 lines
1<?php 2/* 3+-----------------------------------------------------------------------------+ 4| $Id: bwbbcode.class.php 2009-08-18 08:02:23Z Bleakwind $ 5| Parse BBCODE 65 } 66 if(array_key_exists($pattern['bw_bb_name'], $this->bw_tag)) { 67 $this->halt("bw_bb_name[".$pattern['bw_bb_name']."] is already in use..."); 90 { 91 if(!array_key_exists($aliasof, $this->bw_tag) || array_key_exists($name, $this->bw_tag)) { 92 return false; 100 { 101 if(!array_key_exists($name, $this->bw_tag)){ 102 return ""; 146 foreach($this->bw_tag as $tag_name => $tag_data){ 147 if (array_key_exists('alias', $tag_data)) { 148 $tag_data = $this->get_data($tag_data['alias'], $tag_name);sfTesterResponse.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 316 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfTesterResponse.class.php 12517 2008-11-01 07:10:55Z fabien $ 18 */ 216 { 217 if (!array_key_exists($attributeName, $cookie)) 218 {Item.php https://bitbucket.org/zurmo/zurmo/ | PHP | 350 lines
1<?php 2 /********************************************************************************* 71 $this->getScenario() == 'importModel' && 72 array_key_exists('modifiedDateTime', $this->originalAttributeValues)) && 73 $this->getScenario() != 'doNotSetModifiedDateTimeOrUser') 80 $this->getScenario() == 'importModel' && 81 array_key_exists('modifiedByUser', $this->originalAttributeValues)) && 82 $this->getScenario() != 'doNotSetModifiedDateTimeOrUser') 288 * attributes. 289 * (non-PHPdoc) 290 * @see RedBeanModel::isAllowedToSetReadOnlyAttribute()txtedit.act.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 148 lines
15 16 if ((true == array_key_exists('action', $_POST)) && ('saveFile' == $_POST['action'])) { 17 $fileName = stripslashes($_POST['fileName']); 28 $browsePath = ''; 29 if (true == array_key_exists('path', $req->args)) { 30 $browsePath = 'path_' . $req->args['path']; 35 //--------------------------------------------------------------------------------------------- 36 if ((true == array_key_exists('action', $_POST)) && ('confirmDeleteFile' == $_POST['action'])) { 37 if (true == array_key_exists('delfile', $_POST)) { 64 //--------------------------------------------------------------------------------------------- 65 if ((true == array_key_exists('action', $_POST)) && ('deleteFile' == $_POST['action'])) { 66 if (true == array_key_exists('delfile', $_POST)) { 86 $editFile = ''; 87 if (true == array_key_exists('file', $req->args)) { 88 $editFile = base64_decode($req->args['file']);charge.inc http://drawshield.googlecode.com/svn/trunk/ | PHP | 243 lines
1<?php /* Copyright 2010 Karl R. Wilcox 2 92 include ( 'charges/' . $type . '/' . $subtype . '.inc' ); 93 if ( array_key_exists('modifiers', $charge) ) 94 $features = $charge['modifiers']; 94 $features = $charge['modifiers']; 95 if ( array_key_exists('flags', $charge) ) 96 $flags = $charge['flags']; 147 // Sometimes we want to just get the next word as a string 148 if ( array_key_exists('get_item', $flags)) 149 $node->appendChild( make_mod('item',get_tokens($flags['get_item']))); 160 if ( ($tinc = get_child($node, 'tincture')) == null ) { 161 if ( array_key_exists('always_proper', $flags) ) { 162 $tinc = $dom->createElement('tincture'); 166 $tinc->appendChild($proper); 167 } elseif ( array_key_exists('default_colour', $flags)) { 168 $tinc = make_colour($flags['default_colour']);Handle.php git://github.com/ethna/ethna.git | PHP | 211 lines
1<?php 2// vim: foldmethod=marker 3/** 4 * Handle.php 5 * 5 * 6 * @author Masaki Fujimoto <fujimoto@php.net> 7 * @license http://www.opensource.org/licenses/bsd-license.php The BSD License 15 * 16 * @author Masaki Fujimoto <fujimoto@php.net> 17 * @access public 190 return $setting; 191 } else if (array_key_exists($section, $setting)) { 192 return $setting[$section];AbstractNode.php git://github.com/eryx/php-framework-benchmark.git | PHP | 487 lines
1<?php 2/** 85 { 86 if (array_key_exists('dn', $data)) { 87 unset($data['dn']);Count.php git://github.com/zendframework/zf2.git | PHP | 252 lines
1<?php 2/** 204 { 205 if (($file !== null) && !array_key_exists('destination', $file)) { 206 $file['destination'] = dirname($value); 208 209 if (($file !== null) && array_key_exists('tmp_name', $file)) { 210 $value = $file['destination'] . DIRECTORY_SEPARATOR . $file['name']; 239 if (is_array($file)) { 240 if (array_key_exists('name', $file)) { 241 $this->value = $file['name'];view.php git://github.com/ericbarnes/Status-Board.git | PHP | 390 lines
1<?php namespace Laravel; use Closure, ArrayAccess; 2 95 96 // Views may have the normal PHP extension or the Blade PHP extension, so 97 // we need to check if either of them exist in the base views directory 328 { 329 return array_key_exists($offset, $this->data); 330 }SilvercartInboundShoppingCartTransferPage.php https://bitbucket.org/silvercart/silvercart/ | PHP | 374 lines
1<?php 2/** 135 136 if (!array_key_exists($inboundShoppingCartTransfer->keyValueProductIdentifier, $requestVars)) { 137 return $this->keyValueProductIdentifierNotFound(); 138 } 139 if (!array_key_exists($inboundShoppingCartTransfer->keyValueQuantityIdentifier, $requestVars)) { 140 return $this->keyValueQuantityIdentifierNotFound(); 145 for ($identifierIdx = 0; $identifierIdx < $identifierCount; $identifierIdx++) { 146 if (array_key_exists($identifierIdx, $requestVars[$inboundShoppingCartTransfer->keyValueQuantityIdentifier])) { 147 $productQuantity = $requestVars[$inboundShoppingCartTransfer->keyValueQuantityIdentifier][$identifierIdx]; 185 186 if (!array_key_exists($inboundShoppingCartTransfer->combinedStringKey, $requestVars)) { 187 $action = $this->urlParams['ID']; 283 284 if (array_key_exists($inboundShoppingCartTransfer->sharedSecretIdentifier, $requestVars) && 285 sha1($inboundShoppingCartTransfer->sharedSecret) === urldecode($requestVars[$inboundShoppingCartTransfer->sharedSecretIdentifier])) {Font.php https://PHPExcel.svn.codeplex.com/svn | PHP | 474 lines
32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 42 */ 43class PHPExcel_Style_Font implements PHPExcel_IComparable 44{ 136 $this->_striketrough = false; 137 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK); 138 } 158 * 159 * Returns the PHPExcel_Style_Font that is actual bound to PHPExcel_Style 160 * 175 * 176 * If no PHPExcel_Style_Font has been bound to PHPExcel_Style then bind this one. Return the actual bound one. 177 *Protection.php https://PHPExcel.svn.codeplex.com/svn | PHP | 294 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 29/** PHPExcel_IComparable */ 30require_once 'PHPExcel/IComparable.php'; 31 37 * @package PHPExcel_Style 38 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 39 */ 39 */ 40class PHPExcel_Style_Protection implements PHPExcel_IComparable 41{ 77 * 78 * @var PHPExcel_Style 79 */stats.php http://webpagetest.googlecode.com/svn/trunk/ | PHP | 257 lines
1<?php 2include './settings.inc'; 21 $location = $loc[$result['location']]; 22 if( !array_key_exists($url, $data) ) { 23 $data[$url] = array(); 28 if( $result['result'] == 0 || $result['result'] == 99999 ) { 29 if (!array_key_exists($location, $stats)) { 30 $stats[$location] = array(); 57 fwrite($file, "$url,"); 58 $compare = "\"http://www.webpagetest.org/video/compare.php?thumbSize=200&ival=100&end=doc&tests="; 59 $first = true; 62 $value = ''; 63 if (array_key_exists($label, $urlData) && array_key_exists($metric, $urlData[$label])) 64 $value = $urlData[$label][$metric]; 75 $metricData[$label][] = $value; 76 if (array_key_exists($label, $urlData) && array_key_exists('id', $urlData[$label])) 77 $compare .= $urlData[$label]['id'] . '-l:' . urlencode($label) . ',';unrest_rest.php git://github.com/gallery/gallery3-contrib.git | PHP | 308 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2 159 { 160 if (array_key_exists($data['entity']['id'], $childBlock)) 161 { 294 /* Do we need to fetch children? */ 295 if (array_key_exists('children_of', $filler)) 296 {Abstract.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 437 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Abstract.php 18688 2009-10-25 16:08:24Z thomas $ 20 */ 24 */ 25// require_once 'Zend/Validate/Interface.php'; 26 151 if (!isset($this->_messageTemplates[$messageKey])) { 152 // require_once 'Zend/Validate/Exception.php'; 153 throw new Zend_Validate_Exception("No message template exists for key '$messageKey'"); 187 } 188 if (array_key_exists($property, $this->_messageVariables)) { 189 return $this->{$this->_messageVariables[$property]}; 193 */ 194 // require_once 'Zend/Validate/Exception.php'; 195 throw new Zend_Validate_Exception("No property exists by the name '$property'");sfValidatorPropelUnique.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 178 lines
1<?php 2 20 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 21 * @version SVN: $Id: sfValidatorPropelUnique.class.php 13249 2008-11-22 16:10:11Z fabien $ 22 */ 90 $name = isset($fields[$i]) ? $fields[$i] : $column; 91 if (!array_key_exists($name, $values)) 92 { 134 { 135 $columnPhpName = call_user_func(array(constant($this->getOption('model').'::PEER'), 'translateFieldName'), $column, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_PHPNAME); 136 $method = 'get'.$columnPhpName; 163 164 $primaryKeys[] = call_user_func(array(constant($this->getOption('model').'::PEER'), 'translateFieldName'), $column->getPhpName(), BasePeer::TYPE_PHPNAME, BasePeer::TYPE_FIELDNAME); 165 }protocolbuffers.inc.php git://github.com/splitfeed/android-market-api-php.git | PHP | 316 lines
1<?php 2 7 return null; 8 if (array_key_exists($value, self::$_values)) 9 return self::$_values[$value]; 15 16 function __construct($fp = NULL, &$limit = PHP_INT_MAX) { 17 if($fp !== NULL) { 20 $str = $fp; 21 $fp = fopen('php://memory', 'r+b'); 22 fwrite($fp, $str);class.bp.abstraction.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 475 lines
1<?php 2 167 // NOTE: A badly designed plugin could also inject itself into BP's router 168 // using the 'bp_core_get_directory_pages' filter in bp-core-filters.php 169 // line 168. However, by the time the data reaches this filter, the page_id's 221 222 if( array_key_exists($component_slug, $bp_active_components) ){ 223 263 264 if( array_key_exists($component_slug, $bp_active_components) ){ 265 337 338 // BuddyPress lists all their slug constants in /bp-members/bp-members-signup.php. We 339 // have to build the array using BP's slug constants in case the site uses a define() 390 // ==================================== 391 if( array_key_exists($slug, $bp_components) ){ 392ResourceIterator.php git://github.com/guzzle/guzzle.git | PHP | 322 lines
1<?php 2 100 $this->data = $data; 101 $this->limit = array_key_exists('limit', $data) ? $data['limit'] : 0; 102 $this->pageSize = array_key_exists('page_size', $data) ? $data['page_size'] : false; 146 { 147 return array_key_exists($key, $this->data) ? $this->data[$key] : null; 148 }Openssl.php git://github.com/zendframework/zf2.git | PHP | 470 lines
1<?php 2/** 84 85 if (array_key_exists('passphrase', $options)) { 86 $this->setPassphrase($options['passphrase']); 89 90 if (array_key_exists('compression', $options)) { 91 $this->setCompression($options['compression']); 94 95 if (array_key_exists('package', $options)) { 96 $this->setPackage($options['package']);charge.inc http://drawshield.googlecode.com/svn/trunk/ | PHP | 234 lines
1<?php /* Copyright 2010 Karl R. Wilcox 2 132 // Get the set of features and flags, (if any) 133 if ( array_key_exists($a_key, $modifier_list )) 134 $specific_features = $modifier_list[$a_key]; 134 $specific_features = $modifier_list[$a_key]; 135 if ( array_key_exists($a_key, $flag_list )) 136 $flags = $flag_list[$a_key]; 138 // Sometimes we want to just get the next word as a string 139 if ( array_key_exists('get_item', $flags)) 140 $node->appendChild( make_mod('item',get_tokens($flags['get_item']))); 151 if ( ($tinc = get_child($node, 'tincture')) == null ) { 152 if ( array_key_exists('always_proper', $flags) ) { 153 $tinc = $dom->createElement('tincture'); 157 $tinc->appendChild($proper); 158 } elseif ( array_key_exists('default_colour', $flags)) { 159 $tinc = make_colour($flags['default_colour']);ConnectionManager.php git://github.com/yandod/candycane.git | PHP | 270 lines
1<?php 2/** 4 * 5 * Provides an interface for loading and enumerating connections defined in app/Config/database.php 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package Cake.Model 16 * @package Cake.Model 17 * @since CakePHP(tm) v 0.10.x.1402 18 * @license http://www.opensource.org/licenses/mit-license.php MIT License 26 * Provides an interface for loading and enumerating connections defined in 27 * app/Config/database.php 28 *CompilerDefinition.php git://github.com/zendframework/zf2.git | PHP | 398 lines
1<?php 2/** 310 { 311 return (array_key_exists($class, $this->classes)); 312 } 318 { 319 if (!array_key_exists($class, $this->classes)) { 320 $this->processClass($class); 330 { 331 if (!array_key_exists($class, $this->classes)) { 332 $this->processClass($class); 342 { 343 if (!array_key_exists($class, $this->classes)) { 344 $this->processClass($class); 354 { 355 if (!array_key_exists($class, $this->classes)) { 356 $this->processClass($class);Config.php http://digitalus-site-manager.googlecode.com/svn/trunk/ | PHP | 390 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Config.php 11181 2008-09-01 09:41:44Z alexander $ 20 */ 123 $result = $default; 124 if (array_key_exists($name, $this->_data)) { 125 $result = $this->_data[$name]; 160 /** @see Zend_Config_Exception */ 161 require_once 'Zend/Config/Exception.php'; 162 throw new Zend_Config_Exception('Zend_Config is read only'); 203 /** 204 * Support isset() overloading on PHP 5.1 205 * 214 /** 215 * Support unset() overloading on PHP 5.1 216 *BuildLayer.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 536 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: BuildLayer.php 23953 2011-05-03 05:47:39Z ralph $ 20 */ 102 } elseif (!is_array($options)) { 103 require_once 'Zend/Dojo/Exception.php'; 104 throw new Zend_Dojo_Exception('Invalid options provided to constructor'); 175 if (null === ($view = $this->getView())) { 176 require_once 'Zend/Dojo/Exception.php'; 177 throw new Zend_Dojo_Exception('View object not registered; cannot retrieve dojo helper'); 193 if (!preg_match('/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$/i', $name)) { 194 require_once 'Zend/Dojo/Exception.php'; 195 throw new Zend_Dojo_Exception('Invalid layer name provided; must be of form[a-z][a-z0-9_](\.[a-z][a-z0-9_])+'); 326 { 327 return array_key_exists((string) $key, $this->_profileOptions); 328 }bpm-profiler.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 0 lines
1<?php 2 196 foreach (array_keys($b) as $key) 197 if (array_key_exists($key, $out)) 198 $out[$key] += $b[$key]; 207 foreach (array_keys($b) as $key) 208 if (array_key_exists($key, $b)) 209 $out[$key] -= $b[$key];Theme_Manager.class.php git://github.com/jyr/MNPP.git | PHP | 382 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * @version $Id$ 6 * @package phpMyAdmin 7 */ 11 */ 12require_once './libraries/Theme.class.php'; 13 15 * 16 * @package phpMyAdmin 17 */ 206 // force a change of a dummy session variable to avoid problems 207 // with the caching of phpmyadmin.css.php 208 $_SESSION['PMA_Config']->set('theme-update', $this->theme->id); 239 while (false !== ($PMA_Theme = readdir($handleThemes))) { 240 if (array_key_exists($PMA_Theme, $this->themes)) { 241 // this does nothing!TagCloud.php git://pkgs.fedoraproject.org/horde | PHP | 327 lines
1<?php 2/** 6 * 7 * $Horde: framework/UI/UI/TagCloud.php,v 1.9.2.2 2008/01/20 21:20:43 mrubinsk Exp $ 8 * 188 189 $limit = array_key_exists('limit', $param) ? $param['limit'] : 0; 190 $this->_sortTags($limit);_options.php https://bitbucket.org/andydahl/5star.git | PHP | 215 lines
42 <div id="slidedeck-section-lenses" class="options-list clearfix"> 43 <?php include( SLIDEDECK2_DIRNAME . '/views/elements/_options-lenses.php' ); ?> 44 </div> 62 <label<?php if( $inc++ == ( count( $sizes ) - 1 ) ) echo ' class="last-fixed-size"'; ?>> 63 <input type="radio" name="options[size]" value="<?php echo $value; ?>" class="fancy"<?php if( $slidedeck['options']['size'] == $value ) echo ' checked="checked"'; ?> /> 64 <?php echo $size['label']; ?> 64 <?php echo $size['label']; ?> 65 <?php if( $value != "custom" ): ?><em><?php echo "{$size['width']}x{$size['height']}"; ?></em><?php endif; ?> 66 </label> 77 <li id="slidedeck-covers"> 78 <span class="label"><?php _e( "Covers", $namespace ); ?> <span class="tooltip" title="<?php _e( "Covers let you add a title slide to your SlideDeck, and add a call-to-action to the last slide.", $namespace ); ?>"></span></span> 79 <span class="cover-option"> 97 <span class="cover-option cover-option-edit"> 98 <a href="<?php echo admin_url( wp_nonce_url( 'admin-ajax.php?action=slidedeck_covers_modal&slidedeck=' . $slidedeck['id'], 'slidedeck-cover-modal' ) ); ?>" id="slidedeck-covers-modal-link" class="button"><?php _e( "Edit", $namespace ); ?></a> 99 </span>BasePcgroupPeer.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 432 lines
1<?php 2 34 private static $fieldNames = array ( 35 BasePeer::TYPE_PHPNAME => array ('Id', 'Name', ), 36 BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'name', ), 43 private static $fieldKeys = array ( 44 BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Name' => 1, ), 45 BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'name' => 1, ), 71 72 static public function getFieldNames($type = BasePeer::TYPE_PHPNAME) 73 { 74 if (!array_key_exists($type, self::$fieldNames)) { 75 throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.'); 76 } 370 if ($tableMap->containsColumn($colName)) { 371 $get = 'get' . $tableMap->getColumn($colName)->getPhpName(); 372 $columns[$colName] = $obj->$get();Borders.php http://myopensources.googlecode.com/svn/trunk/ | PHP | 347 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 29/** PHPExcel_Style_Border */ 30require_once 'PHPExcel/Style/Border.php'; 31 32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 40 * @package PHPExcel_Style 41 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 42 */ 42 */ 43class PHPExcel_Style_Borders implements PHPExcel_IComparable 44{_testrestclient.php http://flaxcode.googlecode.com/svn/trunk/ | PHP | 227 lines
1<?php 2 25 26require_once('../flaxerrors.php'); 27 127 if ($method == 'GET') { 128 if (array_key_exists($dbname, $this->dbs)) { 129 return array(200, $this->dbs[$dbname]->as_array()); 146 if ($method == 'GET') { 147 if (array_key_exists($dbname, $this->dbs)) { 148 return array(200, array_keys($this->dbs[$dbname]->fields)); 156 $fieldname = $pathparams[2]; 157 if (array_key_exists($dbname, $this->dbs)) { 158 $db = $this->dbs[$dbname]; 159 if ($method == 'GET') { 160 if (array_key_exists($fieldname, $db->fields)) { 161 return array(200, $db->fields[$fieldname]);Client.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 26 */ 27require_once 'Zend/Http/Client.php'; 28 32 */ 33require_once 'Zend/XmlRpc/Client/ServerProxy.php'; 34 38 */ 39require_once 'Zend/XmlRpc/Client/ServerIntrospection.php'; 40 45 */ 46require_once 'Zend/XmlRpc/Value.php'; 47 51 */ 52require_once 'Zend/XmlRpc/Request.php'; 53antlion.php https://code.google.com/p/overwatch/ | PHP | 222 lines
1#!/usr/bin/env php 2<?php declare (ticks = 1); 111 // (re)create sockets 112 if (array_key_exists ('Sockets', $JSON)) { 113 if (! is_array ($JSON ['Sockets'])) { 147/* 148 if (! array_key_exists ('PDO', $JSON) or ! array_key_exists ('DSN', $JSON ['PDO'])) { 149 Daemon::Warn (M__APP_CONF_ERR_PDO_NDEF, $this->Config); 152 try { 153 if (array_key_exists ('Options', $JSON ['PDO']) and array_key_exists ('User', $JSON ['PDO']) and array_key_exists ('Password', $JSON ['PDO'])) { 154 $this->PDO = new PDO ($JSON ['PDO']['DSN'], $JSON ['PDO']['User'], $JSON ['PDO']['Password'], $JSON ['PDO']['Options']); 154 $this->PDO = new PDO ($JSON ['PDO']['DSN'], $JSON ['PDO']['User'], $JSON ['PDO']['Password'], $JSON ['PDO']['Options']); 155 } elseif (array_key_exists ('User', $JSON ['PDO']) and array_key_exists ('Password', $JSON ['PDO'])) { 156 $this->PDO = new PDO ($JSON ['PDO']['DSN'], $JSON ['PDO']['User'], $JSON ['PDO']['Password']); 208 function __autoload ($Class) { 209 include_once (DIR_CLASSES."/$Class.php"); 210 }l10n_scanner.php git://pkgs.fedoraproject.org/gallery3 | PHP | 179 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 40 $key = Gallery_I18n::get_message_key($message); 41 if (array_key_exists($key, $cache)) { 42 return $cache[$key]; 53 54 static function scan_php_file($file, &$cache) { 55 $code = file_get_contents($file);LinkinghereModule.php https://code.google.com/p/ontowiki/ | PHP | 135 lines
1<?php 2 11 * @copyright Copyright (c) 2008, {@link http://aksw.org AKSW} 12 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 13 * @version $Id: linkinghere.php 4092 2009-08-19 22:20:53Z christian.wuerker $ 101 102 if (array_key_exists($predicateUri, $instances)) { 103 if (!array_key_exists($subjectUri, $instances[$predicateUri])) {cake_test_case.test.php http://skygames.googlecode.com/svn/trunk/ | PHP | 375 lines
1<?php 2/* SVN FILE: $Id: cake_test_case.test.php 7805 2008-10-30 17:30:26Z AD7six $ */ 7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * CakePHP : Rapid Development Framework (http://www.cakephp.org) 11 * Copyright 2006-2008, Cake Software Foundation, Inc. 17 * @copyright Copyright 2006-2008, Cake Software Foundation, Inc. 18 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project 19 * @package cake 20 * @subpackage cake.cake.libs. 21 * @since CakePHP v 1.2.0.4487 22 * @version $Revision: 7805 $ 24 * @lastmodified $Date: 2008-10-30 12:30:26 -0500 (Thu, 30 Oct 2008) $ 25 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 26 */native.php http://spf-php.googlecode.com/svn/trunk/ | PHP | 215 lines
1<?php 2/** 6 * @copyright Copyright (c) 2007, Simon Downes 7 * @license http://www.opensource.org/licenses/mit-license.php 8 */ 19 * @copyright Copyright (c) 2007, Simon Downes 20 * @license http://www.opensource.org/licenses/mit-license.php 21 */ 101 102 return array_key_exists($var_name, $this->items); 103Util.php git://github.com/bce/php-openid.git | PHP | 319 lines
1<?php 2 5 * 6 * PHP versions 4 and 5 7 * 15 16require_once 'Auth/OpenID.php'; 17 17 18class Tests_Auth_OpenID_Util extends PHPUnit_Framework_TestCase { 19 function test_base64() 20 { 21 // This is not good for international use, but PHP doesn't 22 // appear to provide access to the local alphabet. 36 for ($i = 0; $i < strlen($str); $i++) { 37 $obj->assertTrue(array_key_exists($str[$i], 38 $allowed_array));AbstractSearch.php git://github.com/egeniq/adapto.git | PHP | 280 lines
1<?php 2 208 { 209 $name = array_key_exists('load_criteria', $this->m_postvars) ? $this->m_postvars['load_criteria'] : ''; 210 if (!empty($this->m_postvars['forget_criteria'])) {Collection.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 239 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Collection.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 140 } 141 if (!array_key_exists($this->_current, $this->_cache)) { 142 $current = $this->_iterator->current();Property.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 179 lines
25 */ 26require_once 'Zend/CodeGenerator/Php/Member/Abstract.php'; 27 30 */ 31require_once 'Zend/CodeGenerator/Php/Property/DefaultValue.php'; 32 38 */ 39class Zend_CodeGenerator_Php_Property extends Zend_CodeGenerator_Php_Member_Abstract 40{ 92 * @param bool $const 93 * @return Zend_CodeGenerator_Php_Property 94 */ 162 if ($defaultValue != null && !$defaultValue->isValidConstantType()) { 163 require_once 'Zend/CodeGenerator/Php/Exception.php'; 164 throw new Zend_CodeGenerator_Php_Exception('The property ' . $this->_name . ' is said to be 'Action.php https://bitbucket.org/rmarefaty/joogle.git | PHP | 138 lines
1<?php 2class Nid_Grid_Column_Decorator_Action extends Nid_Grid_Column_Decorator_Abstract 105 106 if (!array_key_exists("action", $curUrl)) 107 throw new Nid_Exception(540, __("You must specify an action for custom link actions in your grid column"));menu.php git://github.com/tcm-project/tangocms.git | PHP | 358 lines
1<?php 2 49 public function categoryExists( $category, $aclCheck=true ) { 50 return array_key_exists( $category, $this->getAllCategories($aclCheck) ); 51 }DbFinderAdapterUtils.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 117 lines
1<?php 2 45 $baseClassName = is_string($baseClass) ? $baseClass : get_class($baseClass); 46 if(!array_key_exists($baseClassName, self::$adaptersParamsFor)) 47 {validation.php git://github.com/fuel/orm.git | PHP | 244 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. 4 * 9 * @copyright 2010 - 2019 Fuel Development Team 10 * @link https://fuelphp.com 11 */ 87 { 88 ! array_key_exists($class, $_generated) and $_generated[$class] = array(); 89 if (in_array($fieldset, $_generated[$class], true))swsql.php http://mcmis.googlecode.com/svn/trunk/ | PHP | 677 lines
1<?php 2/* 2/* 3 Reportico - PHP Reporting Tool 4 Copyright (C) 2010-2011 Peter Deed 19 20 * File: reportico.php 21 * 29 * @package Reportico 30 * @version $Id: swsql.php,v 1.4 2011-09-22 21:57:30 peter Exp $ 31 */ 82 83 if ( array_key_exists($qn, $delete_columns ) ) 84 {payment_utility.php git://github.com/calvinfroedge/PHP-Payments.git | PHP | 253 lines
1<?php 2 28 29 if(file_exists($base_dir.$class.'.php')) 30 { 30 { 31 include_once($base_dir.$class.'.php'); 32 return; 33 } 34 else if(file_exists($base_dir.'payment_drivers/'.$class.'.php')) 35 { 35 { 36 include_once($base_dir.'payment_drivers/'.$class.'.php'); 37 return; 38 } 39 else if(file_exists($base_dir.'payment_methods/'.$class.'.php')) 40 {State.php http://simplesamlphp.googlecode.com/svn/trunk/ | PHP | 349 lines
1<?php 2 27 * @author Olav Morken, UNINETT AS. 28 * @package simpleSAMLphp 29 * @version $Id$ 107 108 if (!array_key_exists(self::ID, $state)) { 109 $state[self::ID] = SimpleSAML_Utilities::generateID(); 113 114 if ($rawId || !array_key_exists(self::RESTART, $state)) { 115 /* Either raw ID or no restart URL. In any case, return the raw ID. */ 182 183 if (array_key_exists(self::ID, $state)) { 184 $clonedState[self::CLONE_ORIGINAL_ID] = $state[self::ID]; 239 assert('is_array($state)'); 240 assert('array_key_exists(self::ID, $state)'); 241 assert('array_key_exists(self::STAGE, $state)');Request.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 372 lines
1<?php 2/** 4 * 5 * Adapted from Andy Smith's OAuth library for PHP 6 * 8 * @link http://oauth.googlecode.com/svn/spec/ext/consumer_request/1.0/drafts/1/spec.html 9 * @link http://oauth.googlecode.com/svn/code/php/ 10 * @link http://term.ie/oauth/example/ 15 * @copyright Copyright (c) 2008, Photobucket, Inc. 16 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 17 */ 21 */ 22require_once ('OAuth/Utils.php'); 23/** 25 */ 26require_once ('OAuth/Signature.php'); 27/**Entry.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 637 lines
14 * 15 * PHP version 5 16 * 18 * @package WindowsAzure\Common\Internal\Atom 19 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 20 * @copyright 2012 Microsoft Corporation 34 * @package WindowsAzure\Common\Internal\Atom 35 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 36 * @copyright 2012 Microsoft Corporation 164 165 if (array_key_exists('content', $entryArray)) { 166 $content = new Content(); 170 171 if (array_key_exists(Resources::CONTRIBUTOR, $entryArray)) { 172 $this->contributor = $this->processContributorNode($entryArray);translate_i.php http://twpug.googlecode.com/svn/trunk/ | PHP | 130 lines
1<?php 2// Configuration area start 25 <head> 26 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $encode; ?>" /> 27 <style type="text/css"> 43 <form method="post"> 44<?php 45$string = ''; 46if($_POST['go']){ 47 copy('install/language/'.$lang.'.lang.php', 'install/language/'.$lang.'.lang.php.bk'); 48 $fd = fopen('install/language/'.$lang.'.lang.php', 'w'); 48 $fd = fopen('install/language/'.$lang.'.lang.php', 'w'); 49 fwrite($fd, '<?php'.$bk); 50 fwrite($fd, 'if(!defined(\'sugarEntry\') || !sugarEntry) die(\'Not A Valid Entry Point\');'.$bk); 71 72//@copy('../vtiger423/install/language/zh_tw.lang.php', 'install/language/'.$lang.'.lang.php'); 73include 'install/language/'.$lang.'.lang.php';CompositeDBField.php git://github.com/silverstripe/sapphire.git | PHP | 182 lines
1<?php 2/** 55* } else if (is_array($value)) { 56* if (array_key_exists('Name', $value)) { 57* $this->setStreetName($value['Name'], $markChanged); 58* } 59* if (array_key_exists('Number', $value)) { 60* $this->setStreetNumber($value['Number'], $markChanged);Regex.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 18 * @version $Id: Regex.php 12525 2008-11-10 20:18:32Z ralph $ 19 * @license http://framework.zend.com/license/new-bsd New BSD License 22/** Zend_Controller_Router_Route_Abstract */ 23require_once 'Zend/Controller/Router/Route/Abstract.php'; 24 79 80 // array_filter_key()? Why isn't this in a standard PHP function set yet? :) 81 foreach ($values as $i => $value) { 120 if (is_int($key) && !$reversed) { 121 if (array_key_exists($key, $this->_map)) { 122 $index = $this->_map[$key]; 148 if ($this->_reverse === null) { 149 require_once 'Zend/Controller/Router/Exception.php'; 150 throw new Zend_Controller_Router_Exception('Cannot assemble. Reversed route is not specified.');Dijit.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 344 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Dijit.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 23/** Zend_View_Helper_HtmlElement */ 24require_once 'Zend/View/Helper/HtmlElement.php'; 25 175 { 176 if (!array_key_exists('id', $attribs)) { 177 $attribs['id'] = $id; 212 foreach (array('checked', 'disabled', 'readonly') as $attrib) { 213 if (array_key_exists($attrib, $attribs)) { 214 if ($attribs[$attrib]) { 228 foreach ($stripParams as $param) { 229 if (array_key_exists($param, $params)) { 230 unset($params[$param]);class.dbobject.php git://github.com/tylerhall/simple-php-framework.git | PHP | 232 lines
1<?PHP 2 class DBObject 30 { 31 if(array_key_exists($key, $this->columns)) { 32 return $this->columns[$key]; 34 35 if((substr($key, 0, 2) == '__') && array_key_exists(substr($key, 2), $this->columns)) { 36 return htmlspecialchars($this->columns[substr($key, 2)]); 45 { 46 if(array_key_exists($key, $this->columns)) { 47 $this->columns[$key] = $value; 59 { 60 return array_key_exists($key, $this->columns); 61 } 182 $this->id = $v; 183 elseif(array_key_exists($k, $this->columns)) 184 $this->columns[$k] = $v;site.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 173 lines
28<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 29<html><head><title> <?php echo $glooConfig->getFarmBuilderName(); ?> </title> 30 30 31 <?php 32 include($location->GLOO_META_TAGS); 63 <div id="header"> 64 <a href="<?php echo $glooConfig->getFarmURI(); ?>"><img src="<?php echo $glooConfig->getFarmLogoPath(); ?>" alt="logo" /> </a> 65 <div id="description"> 65 <div id="description"> 66 <a href="<?php echo $glooConfig->getFarmURI(); ?>"> Back to <?php echo $glooConfig->getFarmName(); ?></a> 67 > 143 Need help? Please contact 144 <a HREF="mailto:<?php echo $glooConfig->getFarmAdminEmail(); ?>"> <?php echo $glooConfig->getFarmAdminEmail(); ?> </a> 145 </p>ClassInfo.php git://github.com/silverstripe/sapphire.git | PHP | 292 lines
1<?php 2 157 /** 158 * Convert a class name in any case and return it as it was defined in PHP 159 * 204 * @return array A self-keyed array of class names. Note that this is only available with Silverstripe 205 * classes and not built-in PHP classes. 206 */ 224 * 225 * @param string $filePath Path to a PHP file (absolute or relative to webroot) 226 * @return array 268 269 if (!array_key_exists($lMethod, self::$method_from_cache[$lClass])) { 270 self::$method_from_cache[$lClass][$lMethod] = false;gantrytemplatedetails.class.php http://sewebar-cms.googlecode.com/svn/trunk/ | PHP | 197 lines
1<?php 2/** 34 35 if (array_key_exists('gantry_profile', $_GET)){ 36 $profile = JProfiler::getInstance('GantryTemplateDetails->init()'); 39 $this->xml = new JSimpleXML; 40 if (array_key_exists('gantry_profile', $_GET)){ 41 $profile->mark('LoadFile Start'); 43 $this->xml->loadFile($gantry->templatePath . '/templateDetails.xml'); 44 if (array_key_exists('gantry_profile', $_GET)){ 45 $profile->mark('LoadFile Stop'); 48 $this->params = $this->_getParams($gantry); 49 if (array_key_exists('gantry_profile', $_GET)){ 50 $profile->mark('Stop'); 56 57 if (array_key_exists('gantry_profile', $_GET)){ 58 $profile = JProfiler::getInstance('GantryTemplateDetails->_getPositions()');QRadioButton.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 281 lines
1<?php 2 /** 40 if (QApplication::$RequestMode == QRequestMode::Ajax) { 41 if ((array_key_exists($this->strControlId, $_POST)) && ($_POST[$this->strControlId])) 42 $this->blnChecked = true; 50 51 if (array_key_exists($strName, $_POST)) { 52 if ($_POST[$strName] == $this->strControlId)class_session.php http://malleo-cms.googlecode.com/svn/trunk/ | PHP | 344 lines
1<?php 2/* 66 // Reconnaissance par l'ip 67 if (array_key_exists($this->ip,$this->liste_ip) && $this->liste_ip[$this->ip]['user_id'] < 2 ){ 68 $this->id_session = $this->liste_ip[$this->ip]['id_session']; 69 }else{ 70 // On charge la session PHP 71 session_start(); 165 setcookie($this->cf['cookie_name'], null, ($this->time-3600)); // cookie malleo 166 setcookie(get_cfg_var('session.name'), null, ($this->time-3600)); // eventuelle session type PHPSESSID 167 $this->id_session = null; 290 if (!is_array($droits->liste_bannis)) return true; 291 if (array_key_exists(2,$droits->liste_bannis)){ 292 foreach ($droits->liste_bannis[2] as $pattern=>$val){class.dbconnection.php http://pork-dbobject.googlecode.com/svn/trunk/ | PHP | 669 lines
1<?php 2 50 static $instances = array(); 51 if (!array_key_exists($instanceName, $instances)) 52 {Grid.php https://code.google.com/p/zfcore/ | PHP | 285 lines
1<?php 2/** 2/** 3 * Copyright (c) 2012 by PHP Team of NIX Solutions Ltd 4 * 102 103 if (!array_key_exists($index, $item)) { 104 throw new Core_Exception('Index "' . $index . '" does not exist in data source');Reply.php http://manialive.googlecode.com/svn/trunk/ | PHP | 335 lines
1<?php 2 4 * @file 5 * TeamSpeak 3 PHP Framework 6 * 6 * 7 * $Id: Reply.php 9/26/2011 7:06:29 scp@orilla $ 8 * 98 /** 99 * Returns the reply as a standard PHP array where each element represents one item. 100 * 117 /** 118 * Returns the reply as a standard PHP array where each element represents one item in table format. 119 * 184 { 185 if(array_key_exists($ident, $node)) 186 {server.php http://arronwork.googlecode.com/svn/trunk/ | PHP | 429 lines
1#!/usr/bin/env php 2<?php 5$SOAR_DIR="../../../../.."; 6include "$SOAR_DIR/common/php/soar/soar.inc"; 7 188 $respond=$func($request); 189 if(array_key_exists($svc, stat::$svc)) 190 ++stat::$svc[$svc]; 269 { 270 if(array_key_exists($active['addr'], stat::$client)) 271 unset(stat::$client[$active['addr']]);PdoSessionStorage.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 222 lines
1<?php 2 34 35 if (!array_key_exists('db_table', $options)) { 36 throw new \InvalidArgumentException('You must provide the "db_table" option for a PdoSessionStorage.');base.php git://github.com/recurly/recurly-client-php.git | PHP | 328 lines
1<?php 2 109 /** 110 * Mapping of XML node to PHP object name 111 */ 295 296 if (!array_key_exists($nodeName, Recurly_Resource::$class_map)) { 297 return null; // Unknown elementStyle.php https://PHPExcel.svn.codeplex.com/svn | PHP | 301 lines
38/** PHPExcel_Style_Borders */ 39require_once 'PHPExcel/Style/Borders.php'; 40 50/** PHPExcel_Style_Protection */ 51require_once 'PHPExcel/Style/Protection.php'; 52 53/** PHPExcel_IComparable */ 54require_once 'PHPExcel/IComparable.php'; 55 60 * @package PHPExcel_Cell 61 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 62 */ 62 */ 63class PHPExcel_Style implements PHPExcel_IComparable 64{Font.php https://PHPExcel.svn.codeplex.com/svn | PHP | 601 lines
29/** PHPExcel_Style_Color */ 30require_once 'PHPExcel/Style/Color.php'; 31 32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 40 * @package PHPExcel_Style 41 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 42 */ 42 */ 43class PHPExcel_Style_Font implements PHPExcel_IComparable 44{ 145 $this->_striketrough = false; 146 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 147Source.php https://hg.codeplex.com/bukuphpjs | PHP | 630 lines
14 * 15 * PHP version 5 16 * 18 * @package WindowsAzure\Common\Internal\Atom 19 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 20 * @copyright 2012 Microsoft Corporation 33 * @package WindowsAzure\Common\Internal\Atom 34 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 35 * @copyright 2012 Microsoft Corporation 165 166 if (array_key_exists(Resources::CONTRIBUTOR, $sourceArray)) { 167 $this->contributor = $this->processContributorNode($sourceArray); 169 170 if (array_key_exists('generator', $sourceArray)) { 171 $generator = new Generator();ArrayRepository.php git://github.com/composer/composer.git | PHP | 292 lines
1<?php 2 59 foreach ($packages as $package) { 60 if (array_key_exists($package->getName(), $packageMap)) { 61 if (Font.php git://github.com/jyr/MNPP.git | PHP | 620 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Font implements PHPExcel_IComparable 37{ 138 $this->_strikethrough = false; 139 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 140 251 } 252 if (array_key_exists('bold', $pStyles)) { 253 $this->setBold($pStyles['bold']);postgre_forge.php git://github.com/imagecms/ImageCMS.git | PHP | 300 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 84 // Numeric field names aren't allowed in databases, so if the key is 85 // numeric, we know it was assigned by PHP and the developer manually 86 // entered the field information, so we'll simply add it to the list 96 97 $is_unsigned = (array_key_exists('UNSIGNED', $attributes) && $attributes['UNSIGNED'] === TRUE); 98 131 // If this is an auto-incrementing primary key, use the serial data type instead 132 if (in_array($field, $primary_keys) && array_key_exists('AUTO_INCREMENT', $attributes) 133 && $attributes['AUTO_INCREMENT'] === TRUE) 142 // Modified to prevent constraints with integer data types 143 if (array_key_exists('CONSTRAINT', $attributes) && strpos($attributes['TYPE'], 'INT') === false) 144 {Border.php git://github.com/jyr/MNPP.git | PHP | 383 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Border implements PHPExcel_IComparable 37{ 98 $this->_borderStyle = PHPExcel_Style_Border::BORDER_NONE; 99 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 100 109 * 110 * @param PHPExcel_Style_Borders $parent 111 * @param string $parentPropertyNameStatic.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Static.php 13281 2008-12-15 20:53:30Z mikaelkael $ 22 */ 25/** 26 * PHPUnit_Util_Filter 27 */ 27 */ 28require_once 'PHPUnit/Util/Filter.php'; 29 30 31PHPUnit_Util_Filter::addFileToFilter(__FILE__); 32 36 */ 37require_once 'Zend/Db/Adapter/Abstract.php'; 38