100+ results results for 'php is_null repo:trujka/Codegrounds' (282 ms)
12 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 13 * @copyright 2003-2021 phpMyFAQ Team 14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 15 * @link https://www.phpmyfaq.de 16 * @since 2003-02-23 28use phpMyFAQ\Instance\Elasticsearch; 29use phpMyFAQ\Link; 30use phpMyFAQ\Logging; 30use phpMyFAQ\Logging; 31use phpMyFAQ\Notification; 32use phpMyFAQ\Question; 114 115 if (!is_null($question) && !is_null($categories['rubrik'])) { 116 // new entryCacheBase.php git://github.com/moodle/moodle.git | PHP | 369 lines
3/** 4 * PHPExcel_CachedObjectStorage_CacheBase 5 * 21 * 22 * @category PHPExcel 23 * @package PHPExcel_CachedObjectStorage 23 * @package PHPExcel_CachedObjectStorage 24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 81 * 82 * @return PHPExcel_Worksheet 83 */ 311 * 312 * @param PHPExcel_Worksheet $parent The new worksheet 313 * @return voidfooLoader.php http://kosimpin.googlecode.com/svn/trunk/ | PHP | 387 lines
1<?php 2 6* Released under the MIT license, see: 7* http://www.opensource.org/licenses/mit-license.php 8*/ 191 $class = strtolower($class); 192 if (is_null($object_name)) 193 { 291 * 292 * The config/autoload.php file contains an array that permits sub-systems, 293 * libraries, plugins, and helpers to be loaded automatically. 369 * Can load a view file from an absolute path and 370 * relative to the CodeIgniter index.php file 371 * Handy if you have views outside the usual CI views dirTranscoding.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 379 lines
1<?php 2/** 231 $movie = new ffmpeg_movie($file->getFile()); 232 if (!is_null($movie)){ 233 $file->setResolutionVer($movie->getFrameHeight()); 309 310 if((strlen($this->getPathIni()) == 0)||is_null($this->getMmId())||is_null($this->getPerfilId())){ 311 throw new sfException("Error en autoEnd"); 344 $linea_comandos = $this->getPerfil()->getBat();; 345 $linea_comandos = str_replace('%1', (is_null($file_in)?$this->getPathIni():$file_in), $linea_comandos); 346 $linea_comandos = str_replace('%2', $this->getPathEnd(), $linea_comandos);Excel2007.php https://PHPExcel.svn.codeplex.com/svn | PHP | 398 lines
61/** PHPExcel_Writer_Excel2007_Theme */ 62require_once 'PHPExcel/Writer/Excel2007/Theme.php'; 63 81 * @package PHPExcel_Writer 82 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 83 */ 165 // Set property PHPExcel 166 $this->setPHPExcel($pPHPExcel); 167 } else { 314 * 315 * @param PHPExcel $pPHPExcel PHPExcel object 316 * @throws Exception 318 public function setPHPExcel($pPHPExcel = null) { 319 if ($pPHPExcel instanceof PHPExcel) { 320 $this->_spreadSheet = $pPHPExcel;Common.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 519 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * LICENSE: This source file is subject to version 3.01 of the PHP license 10 * that is available through the world-wide-web at the following URI: 10 * that is available through the world-wide-web at the following URI: 11 * http://www.php.net/license/3_01.txt If you did not receive a copy of 12 * the PHP License and are unable to obtain it through the web, please 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 14 * 18 * @copyright 2001-2009 The PHP Group 19 * @license http://www.php.net/license/3_01.txt PHP License 3.01 20 * @version CVS: $Id: Common.php 137 2009-11-09 13:24:37Z vanpouckesven $class.baseobject.php https://code.google.com/p/movabletype/ | PHP | 388 lines
1<?php 2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd. 5# 6# $Id: class.baseobject.php 5325 2010-02-23 10:44:56Z takayama $ 7 10 */ 11require_once('adodb.inc.php'); 12require_once('adodb-active-record.inc.php'); 12require_once('adodb-active-record.inc.php'); 13require_once('adodb-exceptions.inc.php'); 14 79 public function __get( $name ) { 80 if (is_null($this->_prefix)) 81 return; 90 public function __set($name, $value) { 91 if (is_null($this->_prefix)) 92 return;dbDiff.class.php https://bitbucket.org/idler/mmp/ | PHP | 388 lines
1<?php 2 178 if ($column['Null'] === 'NO') $sql .= " NOT NULL "; 179 if (!is_null($column['Default'])) $sql .= " DEFAULT \\'{$column['Default']}\\' "; 180 }Linux_DHCPPool_Resource.c git://pkgs.fedoraproject.org/sblim-cmpi-dhcp | C | 283 lines
8/// You can obtain a current copy of the Eclipse Public License from 9/// http://www.opensource.org/licenses/eclipse-1.0.php 10/// 100 { 101 setRaStatus( &ra_status, RA_RC_FAILED, OBJECT_PATH_IS_NULL, _("Object Path is NULL") ); 102 return ra_status; 114 if(cmpi_name == NULL) { 115 setRaStatus( &ra_status, RA_RC_FAILED, CMPI_INSTANCE_NAME_IS_NULL, _("Cmpi instance name is NULL") ); 116 return ra_status; 218 if(CMIsNullObject(instance)) { 219 setRaStatus( &ra_status, RA_RC_FAILED, INSTANCE_ID_IS_NULL, _("Instance is NULL") ); 220 return ra_status;Language.php git://github.com/thorsten/phpMyFAQ.git | PHP | 377 lines
1<?php 2/** 4 * 5 * PHP Version 5.3 6 * 10 * 11 * @category phpMyFAQ 12 * @package Language 12 * @package Language 13 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 14 * @author Matteo scaramuccia <matteo@phpmyfaq.de> 15 * @author Aurimas FiĀeras <aurimas@gmail.com> 16 * @copyright 2009-2012 phpMyFAQ Team 17 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 17 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 18 * @link http://www.phpmyfaq.de 19 * @since 2009-05-14NumberFormat.php https://PHPExcel.svn.codeplex.com/svn | PHP | 422 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{ 130 * 131 * Returns the PHPExcel_Style_NumberFormat that is actual bound to PHPExcel_Style 132 * 147 * 148 * If no PHPExcel_Style_NumberFormat has been bound to PHPExcel_Style then bind this one. Return the actual bound one. 149 *Validator.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 206 lines
1<?php 2 39 $this->aliases = array(); 40 // PHP is a bit lax with integer <=> string conversions in 41 // arrays, so we don't use the identical !== comparison 91 92 if (!is_null($d->allowed) || !empty($d->valueAliases)) { 93 // allowed and valueAliases require that we be dealing with 112 public function validateDirectiveAllowed($d) { 113 if (is_null($d->allowed)) return; 114 $this->with($d, 'allowed') 131 public function validateDirectiveValueAliases($d) { 132 if (is_null($d->valueAliases)) return; 133 $this->with($d, 'valueAliases') 142 } 143 if (!is_null($d->allowed)) { 144 foreach ($d->valueAliases as $alias => $real) {service.zep.c git://github.com/phalcon/cphalcon.git | C | 454 lines
5 6#include <php.h> 7#include "../../php_ext.h" 35 * 36 *```php 37 * $service = new \Phalcon\Di\Service( 71 */ 72PHP_METHOD(Phalcon_Di_Service, __construct) 73{ 80 ZVAL_BOOL(&__$false, 0); 81#if PHP_VERSION_ID >= 80000 82 bool is_null_true = 1; 109 */ 110PHP_METHOD(Phalcon_Di_Service, getDefinition) 111{faq.php git://github.com/thorsten/phpMyFAQ.git | PHP | 400 lines
1<?php 2 9 * 10 * @package phpMyFAQ 11 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 12 * @author Lars Tiedemann <larstiedemann@yahoo.de> 13 * @copyright 2002-2021 phpMyFAQ Team 14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 15 * @link https://www.phpmyfaq.de 16 * @since 2002-08-27 18 19use phpMyFAQ\Attachment\AttachmentException; 20use phpMyFAQ\Attachment\AttachmentFactory; 20use phpMyFAQ\Attachment\AttachmentFactory; 21use phpMyFAQ\Captcha; 22use phpMyFAQ\Comments;phmagick.php http://bedita.googlecode.com/svn/trunk/ | PHP | 341 lines
1<?php 2/* 50 51 if(is_null($this->escapeChars) ){ 52 $this->escapeChars = !( strtolower ( substr( php_uname('s'), 0, 3)) == "win" ) ; 144 if(key_exists($name, $this->loadedPlugins)) { 145 if(! is_null($version)) { 146 if( property_exists($this->loadedPlugins[$name], 'version') ){ 163 $base = dirname(__FILE__) . '/plugins'; 164 $plugins = glob($base . '/*.php'); 165 foreach($plugins as $plugin){ 166 include_once $plugin ; 167 $name = basename($plugin, '.php'); 168 $className = 'phMagick_'.$name ;User_agent.php git://github.com/imagecms/ImageCMS.git | PHP | 550 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 * 66 67 if ( ! is_null($this->agent)) 68 { 87 { 88 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php')) 89 { 89 { 90 include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'); 91 } 91 } 92 elseif (is_file(APPPATH.'config/user_agents.php')) 93 {VariableCommentSniff.php git://github.com/squizlabs/PHP_CodeSniffer.git | PHP | 347 lines
42 * @version Release: @package_version@ 43 * @link http://pear.php.net/package/PHP_CodeSniffer 44 */ 314 * 315 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found. 316 * @param int $stackPtr The position where the double quoted 320 */ 321 protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 322 { 332 * 333 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found. 334 * @param int $stackPtr The position where the double quoted 338 */ 339 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 340 {downloadalbum.php git://github.com/gallery/gallery3-contrib.git | PHP | 301 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 40 $container = ORM::factory("tag", $id); 41 if (is_null($container->name)) { 42 throw new Kohana_Exception('container is not a tag: '.$id); 214 /** 215 * See system/helpers/download.php 216 */ 224 /** 225 * See system/helpers/download.php 226 */ 227 private function sendHeaders($filename, $filesize = null) { 228 if (!is_null($filesize)) { 229 header('Content-Length: '.$filesize); 287 /** 288 * See http://bugs.php.net/bug.php?id=45028 289 */NumberFormat.php https://PHPExcel.svn.codeplex.com/svn | PHP | 498 lines
29/** PHPExcel_IComparable */ 30require_once 'PHPExcel/IComparable.php'; 31 32/** PHPExcel_Shared_Date */ 33require_once 'PHPExcel/Shared/Date.php'; 34 40 * @package PHPExcel_Style 41 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 42 */ 42 */ 43class PHPExcel_Style_NumberFormat implements PHPExcel_IComparable 44{ 448 if (is_float($value)) { 449 return date($format, PHPExcel_Shared_Date::ExceltoPHP($value)); 450 }session.inc http://arronwork.googlecode.com/svn/trunk/ | PHP | 426 lines
1<?php 2class session 102 {/*{{{*/ 103 if(is_null($this->sid)) 104 { 137 {/*{{{*/ 138 if(is_null($this->sid)) 139 { 173 {/*{{{*/ 174 if(is_null($this->sid)) 175 { 212 {/*{{{*/ 213 if(is_null($this->sid)) 214 { 271 {/*{{{*/ 272 if(is_null($this->sid)) 273 {SfObjectBuilder.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 393 lines
2 3require_once 'propel/engine/builder/om/php5/PHP5ObjectBuilder.php'; 4 31 // remove all inline includes: object classes include the peers 32 $objectCode = preg_replace("/include_once\s*.*Base.*Peer\.php.*\s*/", "", $objectCode); 33 } 167 { 168 $culture = $col->getPhpName(); 169 $culture_peername = PeerBuilder::getColumnName($col, $className); 177 $script .= ' 178 public function get'.$col->getPhpName().'($culture = null) 179 { 371 { 372 $behavior_file_name = 'Base'.$this->getTable()->getPhpName().'Behaviors'; 373 $behavior_file_path = ClassTools::getFilePath($this->getStubObjectBuilder()->getPackage().'.om', $behavior_file_name);slideshare_external_repository_manager_connector.class.php https://bitbucket.org/chamilo/chamilo-ext-repo-slideshare-dev/ | PHP | 304 lines
1<?php 2namespace common\extensions\external_repository_manager\implementation\slideshare; 21 22require_once dirname(__FILE__) . '/slideshare_external_repository_object.class.php'; 23require_once dirname(__FILE__) . '/webservices/slideshare_rest_client.class.php'; 57 { 58 if (is_null($condition)) 59 { 107 { 108 if (is_null($condition)) 109 { 182 183 /* (non-PHPdoc) 184 * @see application/common/external_repository_manager/ExternalRepositoryManagerConnector#retrieve_external_repository_object()Wincache.php git://github.com/Dolibarr/dolibarr.git | PHP | 231 lines
2/** 3 * PHPExcel 4 * 20 * 21 * @category PHPExcel 22 * @package PHPExcel_CachedObjectStorage 22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_CachedObjectStorage 34 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_Wincache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37vars.php http://goodgirl.googlecode.com/svn/ | PHP | 302 lines
1<?php /* `, 2 ,\, # 112 113 if (is_null($name)){ 114 $key = ($this->parallel ? (max(array_keys($this->parallel)) + 1) : 0);user.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 417 lines
1<?php 2/** 386 // Check for User ID 387 if (is_null($userId)) 388 {admin_request_browser.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms/ | PHP | 191 lines
1<?php 2namespace application\weblcms; 22/** 23 * $Id: admin_course_type_browser.class.php 218 2010-03-11 14:21:26Z Yannick & Tristan $ 24 * @package application.lib.weblcms.weblcms_manager.component 25 */ 26require_once dirname(__FILE__) . '/admin_request_browser/admin_request_browser_table.class.php'; 27require_once dirname(__FILE__) . '/../../course/requests_tree_renderer.class.php'; 51 52 if (is_null($this->request_type)) 53 $this->request_type = CommonRequest :: CREATION_REQUEST; 53 $this->request_type = CommonRequest :: CREATION_REQUEST; 54 if (is_null($this->request_view)) 55 $this->request_view = self :: PENDING_REQUEST_VIEW;nodes.inc.php git://pkgs.fedoraproject.org/zabbix | PHP | 350 lines
1<?php 2/* 122 123 if (!is_null($perm)) { 124 return get_accessible_nodes_by_user(CWebUser::$data, $perm, PERM_RES_IDS_ARRAY, $ZBX_AVAILABLE_NODES); 125 } 126 elseif (is_null($force_all_nodes)) { 127 if ($ZBX_VIEWED_NODES['selected'] == 0) { 193 194 if ($force_with_all_nodes === false || (is_null($force_with_all_nodes) && $ZBX_VIEWED_NODES['selected'] != 0)) { 195 return null;SubscriptionInfo.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 403 lines
1<?php 2 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 */ 39 * @package WindowsAzure\ServiceBus\Models 40 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 41 * @copyright 2012 Microsoft Corporation 43 * @version Release: @package_version@ 44 * @link https://github.com/WindowsAzure/azure-sdk-for-php 45 */QType.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 423 lines
1<?php 2 /** 17 * 18 * PHP does not support strongly named types. The QCubed type library 19 * and QCubed typing in general attempts to bring some structure to types 23 * The Type library attempts to allow as much flexibility as possible to 24 * set and cast variables to other types, similar to how PHP does it natively, 25 * but simply adds a big more structure to it. 41 * For values, specifically int to string conversion, one different between 42 * QType::Cast and PHP (in order to add structure) is that if an integer contains 43 * alpha characters, PHP would normally allow that through w/o complaint, simply 48 * In theory, the type library should maintain the same level of flexibility 49 * PHP developers are accostomed to, while providing a mechanism to limit 50 * careless coding errors and tough to figure out mistakes due to PHP's sometimes 114 return $mixItem; 115 if (is_null($mixItem)) 116 return false;FolderHandler.php git://github.com/forkcms/forkcms.git | PHP | 272 lines
1<?php 2/* 23 */ 24require_once CKFINDER_CONNECTOR_LIB_DIR . "/Utils/FileSystem.php"; 25 134 135 if (is_null($this->_resourceTypeConfig)) { 136 $connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector"); 173 { 174 if (is_null($this->_url)) { 175 $this->_resourceTypeConfig = $this->getResourceTypeConfig(); 175 $this->_resourceTypeConfig = $this->getResourceTypeConfig(); 176 if (is_null($this->_resourceTypeConfig)) { 177 $connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector"); 197 { 198 if (is_null($this->_serverPath)) { 199 $this->_resourceTypeConfig = $this->getResourceTypeConfig();PHPExcel.php https://PHPExcel.svn.codeplex.com/svn | PHP | 383 lines
32/** PHPExcel_DocumentProperties */ 33require_once 'PHPExcel/DocumentProperties.php'; 34 38/** PHPExcel_Worksheet */ 39require_once 'PHPExcel/Worksheet.php'; 40 41/** PHPExcel_Shared_ZipStreamWrapper */ 42require_once 'PHPExcel/Shared/ZipStreamWrapper.php'; 43 44/** PHPExcel_NamedRange */ 45require_once 'PHPExcel/NamedRange.php'; 46 52 * @package PHPExcel 53 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 54 */fpdi_pdf_parser.php git://github.com/moodle/moodle.git | PHP | 347 lines
1<?php 2/** 11if (!class_exists('pdf_parser')) { 12 require_once('pdf_parser.php'); 13} 209 210 if (!is_null($box) && $box[0] == pdf_parser::TYPE_OBJREF) { 211 $tmp_box = $this->resolveObject($box); 214 215 if (!is_null($box) && $box[0] == pdf_parser::TYPE_ARRAY) { 216 $b = $box[1];view_render_php.php http://enaj.googlecode.com/svn/trunk/ | PHP | 479 lines
1<?php 2// $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $ 3 9 * @license New BSD License {@link http://qeephp.com/license/} 10 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $ 11 * @package mvc 17 * @author YuLei Liao <liaoyulei@qeeyuan.com> 18 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $ 19 * @package mvc 67 * 68 * @var QView_Render_PHP_Parser 69 */ 234 * @author YuLei Liao <liaoyulei@qeeyuan.com> 235 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $ 236 * @package mvcheader.php http://massey-se-c-team2.googlecode.com/svn/trunk/ | PHP | 418 lines
1<?php 2require 'openid/openid.php'; 31 32 header('Location: connect_through_openid.php?gender=M&img=images/profile/d0.gif&userid=' . $arr['contact/email'] . '&email=' . $arr['contact/email'] . '&name=' . $arr['namePerson/first'] . ' ' . $arr['namePerson/last']); 33 35 //setcookie("email", $arr['contact/email'], time()+3600); 36 //header('Location: index.php'); 37 51 function nz($v,$r=''){ 52 if(isset($v) && !is_null($v)){ 53 return $v; 243 244 $.get('connect_through_facebook.php?gender='+response[0].sex+'&img=https://graph.facebook.com/' + user.id + '/picture&userid='+user.id+'&name='+response[0].name+'&email='+response[0].email, 245 function(result){ 287 <div id="l1201" class="mainLinks"> 288 <a href="index.php">Home</a> | 289 <a href="about.php">About</a> |html.php git://github.com/ericbarnes/Status-Board.git | PHP | 344 lines
1<?php namespace Laravel; 2 47 48 return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL; 49 } 75 76 return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL; 77 } 196 197 if (is_null($title)) $title = $email; 198 300 301 if ( ! is_null($value)) 302 {PackageScaffolderAbstract.php https://code.google.com/p/celebrio/ | PHP | 325 lines
1<?php 2/** 30 * @copyright Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com) 31 * @license http://phpazure.codeplex.com/license 32 * @version $Id: SharedKeyCredentials.php 14561 2009-05-07 08:05:12Z unknown $ 37 */ 38//require_once dirname(__FILE__) . '/../../../AutoLoader.php'; 39 43 * @copyright Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com) 44 * @license http://phpazure.codeplex.com/license 45 */ 122 } 123 file_put_contents('php://stderr', $message . ($newLine ? "\r\n" : '')); 124 } 135 $phar->extractTo($path); 136 @unlink($path . '/index.php'); 137 @unlink($path . '/build.bat');PageManager.php git://github.com/atk4/atk4.git | PHP | 242 lines
1<?php 2/** 132 $url = $this->app->getConfig('atk/base_url', null); 133 if (is_null($url)) { 134 // Detect it 221 $request_uri = $_SERVER['REQUEST_URI']; 222 } elseif (isset($_SERVER['ORIG_PATH_INFO'])) { // IIS 5.0, PHP as CGI 223 $request_uri = $_SERVER['ORIG_PATH_INFO'];NpgsqlSchema.cs git://github.com/mono/mono.git | C# | 287 lines
7// npgsql-general@gborg.postgresql.org 8// http://gborg.postgresql.org/project/npgsql/projdisplay.php 9// 204 new DataColumn("column_default"), 205 new DataColumn("is_nullable"), 206 new DataColumn("data_type"), 219 220 getColumns.Append("SELECT table_catalog, table_schema, table_name, column_name, ordinal_position, column_default, is_nullable, udt_name AS data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_precision_radix, numeric_scale, datetime_precision, character_set_catalog, character_set_schema, character_set_name, collation_catalog FROM information_schema.columns"); 221str.php git://github.com/eryx/php-framework-benchmark.git | PHP | 416 lines
1<?php 2/** 9 * @copyright 2010 - 2013 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 17 * 18 * PHP needs to be compiled with --enable-mbstring 19 * or a fallback without encoding support is used 129 // substr functions don't parse null correctly 130 $length = is_null($length) ? (function_exists('mb_substr') ? mb_strlen($str, $encoding) : strlen($str)) - $start : $length; 131class.set.php http://candydolldb.googlecode.com/svn/trunk/ | PHP | 648 lines
1<?php 2 486 if( 487 (is_null($ModelID) || $Set->getModel()->getID() == $ModelID) && 488 (is_null($SetID) || $Set->getID() == $SetID) && 488 (is_null($SetID) || $Set->getID() == $SetID) && 489 (is_null($Prefix) || strlen($Prefix) == 0 || $Set->getPrefix() == $Prefix) && 490 ( 490 ( 491 is_null($Name) || 492 strlen($Name) == 0 ||api_b2b_1_0_productline.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 207 lines
1<?php 2include_once(CORE_DIR.'/api/shop_api_object.php'); 163 164 if(!isset($goods['cat_id']) || (!isset($goods['brand_id']) && !is_null($goods['brand_id'])) ){ 165 $goods = $objGoods->getFieldById($goods['goods_id']);paginator.php git://github.com/ericbarnes/Status-Board.git | PHP | 424 lines
1<?php namespace Laravel; 2 292 293 if (is_null($text)) 294 { 389 // implementation of sorting or other things the developer may need. 390 if ( ! is_null($this->appendage)) return $this->appendage; 391ExportMediawiki.class.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 355 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * @package PhpMyAdmin-Export 7 * @subpackage MediaWiki 8 */ 9if (! defined('PHPMYADMIN')) { 10 exit; 13/* Get the export interface */ 14require_once "libraries/plugins/ExportPlugin.class.php"; 15 18 * 19 * @package PhpMyAdmin-Export 20 */ 175 * deprecated but the parameter is left here 176 * because export.php calls exportStructure() 177 * also for other export types which use thisfuncs-misc.php http://umspx.googlecode.com/svn/trunk/ | PHP | 198 lines
1<?php 2 include_once($_SERVER["DOCUMENT_ROOT"].'/umsp/funcs-config.php'); 8 $pluginFile = _getPluginFile($tmpArr[1]); 9 if (is_null($pluginFile)) { 10 return NULL; 24 $tmpPluginPath = Array( 25 dirname(__FILE__).'/user-plugins/'. $pluginName . '.php', 26 dirname(__FILE__).'/plugins/'. $pluginName . '.php', 26 dirname(__FILE__).'/plugins/'. $pluginName . '.php', 27 dirname(__FILE__).'/plugins/'. $pluginName . '/' . $tmpArr[2] . '.php', 28 dirname(__FILE__).'/plugins/'. $pluginName . '/' . $pluginName . '.php'plugin.php http://tpblog.googlecode.com/svn/ | PHP | 357 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2008 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 45 */ 46function get_plugins($path=PLUGIN_PATH,$app=APP_NAME,$ext='.php') 47{ 85 if($subfile == "." || $subfile == "..") continue; 86 if (preg_match('/\.php$/', $subfile)) 87 $plugin_files[] = "$file/$subfile"; 260 foreach ($_filter as $priority => $functions) { 261 if ( !is_null($functions) ) { 262 foreach($functions as $function) {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 */ 68 { 69 if (is_null($this->dom)) 70 { 205 { 206 if (is_null($value)) 207 { 301 $cookie['value'], 302 is_null($cookie['expire']) ? '' : sprintf('expires=%s; ', date('D d-M-Y H:i:s T', $cookie['expire'])), 303 $cookie['path'],SassParser.class.php git://github.com/m3nt0r/chaml---cakephp-haml-sass-integration.git | PHP | 379 lines
1<?php 2/** 5 * @link http://haml.hamptoncatlin.com/ Original Sass parser (for Ruby) 6 * @link http://phphaml.sourceforge.net/ Online documentation 7 * @link http://sourceforge.net/projects/phphaml/ SourceForge project page 7 * @link http://sourceforge.net/projects/phphaml/ SourceForge project page 8 * @license http://www.opensource.org/licenses/mit-license.php MIT (X11) License 9 * @author Amadeusz Jasak <amadeusz.jasak@gmail.com> 9 * @author Amadeusz Jasak <amadeusz.jasak@gmail.com> 10 * @package phpHaml 11 * @subpackage Sass 13 14require_once dirname(__FILE__) . '/../common/CommonCache.class.php'; 15require_once dirname(__FILE__) . '/../common/CommonParser.class.php'; 15require_once dirname(__FILE__) . '/../common/CommonParser.class.php'; 16require_once dirname(__FILE__) . '/SassException.class.php'; 17require_once dirname(__FILE__) . '/SassCalculator.interface.php';password_compat.php git://github.com/q2a/question2answer.git | PHP | 317 lines
1<?php 2/** 2/** 3 * A Compatibility library with PHP 5.5's simplified password hashing API. 4 * 4 * 5 * @author Anthony Ferrara <ircmaxell@php.net> 6 * @license http://www.opensource.org/licenses/mit-license.html MIT License 13 /** 14 * PHPUnit Process isolation caches constants, but not function declarations. 15 * So we need to check if the constants are defined separately from 39 } 40 if (is_null($password) || is_int($password)) { 41 $password = (string) $password; 296 /** 297 * Check if current PHP version is compatible with the library 298 *HashTable.php https://PHPExcel.svn.codeplex.com/svn | PHP | 221 lines
22 * @package PHPExcel 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 38 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 39 */ 39 */ 40class PHPExcel_HashTable 41{ 58 * 59 * @param PHPExcel_IComparable[] $pSource Optional source array to create HashTable from 60 * @throws ExceptionPHPReportCol.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 507 lines
11 */ 12 class PHPReportCol extends PHPReportXMLElement { 13 var $_aParms; // column parameters 59 $this->_sOnMouseOut = ""; 60 $this->_oError = new PHPReportsErrorTr(); 61 $this->makeTranslationArray(); 82 Add a parameter 83 @param PHPReportColParm - parameter object 84 */ 187 Gets the column value 188 This function will be always called from a PHPReportRow, that 189 must provide the row number for checking if we must use an odd or even 376 $oRpt=$oGroup_->getReport(); 377 if(!is_null($oRpt)) { 378 $this->_sDecSep=$oRpt->getDecSep();class-wp-hook.php git://github.com/wordpress/wordpress.git | PHP | 510 lines
392 * 393 * @link https://www.php.net/manual/en/arrayaccess.offsetexists.php 394 * 406 * 407 * @link https://www.php.net/manual/en/arrayaccess.offsetget.php 408 * 420 * 421 * @link https://www.php.net/manual/en/arrayaccess.offsetset.php 422 * 438 * 439 * @link https://www.php.net/manual/en/arrayaccess.offsetunset.php 440 * 451 * 452 * @link https://www.php.net/manual/en/iterator.current.php 453 *index.php http://showslow.googlecode.com/svn/trunk/ | PHP | 435 lines
175 <td valign="top" align="center" class="<?php echo $provider_name ?>"> 176 <img src="http://chart.apis.google.com/chart?chs=225x108&cht=gom&chd=t:<?php echo urlencode($score)?>&chl=<?php echo urlencode($pretty_score.' ('.$score.')') ?>" alt="<?php echo $pretty_score ?> (<?php echo htmlentities($score)?>)" title="Current <?php echo $provider['title'] ?> <?php echo $provider['score_name'] ?>: <?php echo $pretty_score ?> (<?php echo htmlentities($score)?>)"/> 177 <div>Current <a target="_blank" href="<?php echo $provider['url'] ?>"><?php echo $provider['title'] ?></a> <?php echo $provider['score_name'] ?>: <b><?php echo $pretty_score ?> (<i><?php echo htmlentities($score)?></i>)</b></div> 277 { 278 ?><span title="<?php echo htmlentities($metric['description'])?>" style="color: <?php echo array_key_exists('color', $metric) ? $metric['color'] : 'black' ?>"><?php echo htmlentities($metric['title'])?></span> (<a href="data_metric.php?metric=<?php echo urlencode($name);?>&url=<?php echo urlencode($url);?>">csv</a>); 279<?php 335 <td><span id="details_<?php echo $provider_name.'_'.$metric[1] ?>" class="details"></span></td> 336 <td><div class="gbox" title="Current <?php echo $provider['score_name']?>: <?php echo $pretty_score?> (<?php echo $value?>%)"><div class="bar c<?php echo scoreColorStep($value)?>" style="width: <?php echo $value+1?>px"/></div></td> 337 <?php 415 416 <p>You can see latest HAR data in the viewer here: <a href="<?php echo htmlentities($HARViewerBase)?>?inputUrl=<?php echo urlencode($har_url) ?>" target="_blank">HAR for <?php echo htmlentities($url)?></a>.</p> 417 425?> 426 <tr><td><?php echo htmlentities($harentry['t'])?></td><td><a href="<?php echo htmlentities($HARViewerBase)?>?inputUrl=<?php echo urlencode($har_url) ?>" target="_blank">view in HAR viewer</a></td></tr> 427<?phpmanymany.php git://github.com/ronan-gloo/plex-over.git | PHP | 349 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP5 framework. 4 * 9 * @copyright 2010 - 2012 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 211 212 if ( ! is_array($models_to) and ($models_to = is_null($models_to) ? array() : $models_to) !== array()) 213 { 299 300 $cascade = is_null($cascade) ? $this->cascade_save : (bool) $cascade; 301 if ($cascade and ! empty($models_to)) 326 327 $cascade = is_null($cascade) ? $this->cascade_delete : (bool) $cascade; 328 if ($cascade and ! empty($model_to))Excel2007.php https://PHPExcel.svn.codeplex.com/svn | PHP | 458 lines
56/** PHPExcel_Writer_Excel2007_ContentTypes */ 57require_once 'PHPExcel/Writer/Excel2007/ContentTypes.php'; 58 59/** PHPExcel_Writer_Excel2007_DocProps */ 60require_once 'PHPExcel/Writer/Excel2007/DocProps.php'; 61 77/** PHPExcel_Writer_Excel2007_Drawing */ 78require_once 'PHPExcel/Writer/Excel2007/Drawing.php'; 79 342 * 343 * @param PHPExcel $pPHPExcel PHPExcel object 344 * @throws Exception 345 */ 346 public function setPHPExcel(PHPExcel $pPHPExcel = null) { 347 $this->_spreadSheet = $pPHPExcel;KeyDescriptorTest.php https://hg01.codeplex.com/odataphpproducer | PHP | 267 lines
1<?php 2use ODataProducer\UriProcessor\ResourcePathProcessor\SegmentParser\KeyDescriptor; 4use ODataProducer\Common\ODataException; 5require_once 'PHPUnit\Framework\Assert.php'; 6require_once 'PHPUnit\Framework\Test.php'; 6require_once 'PHPUnit\Framework\Test.php'; 7require_once 'PHPUnit\Framework\SelfDescribing.php'; 8require_once 'PHPUnit\Framework\TestCase.php'; 8require_once 'PHPUnit\Framework\TestCase.php'; 9require_once 'PHPUnit\Framework\TestSuite.php'; 10require_once 'ODataProducer\Common\ClassAutoLoader.php'; 10require_once 'ODataProducer\Common\ClassAutoLoader.php'; 11require_once (dirname(__FILE__) . "\..\..\..\Resources\NorthWindMetadata.php"); 12ODataProducer\Common\ClassAutoLoader::register(); 12ODataProducer\Common\ClassAutoLoader::register(); 13class TestKeyDescriptor extends PHPUnit_Framework_TestCase 14{yaf_config.c https://gitlab.com/lcp0578/yaf.git | C | 405 lines
10 | obtain it through the world-wide-web, please send a note to | 11 | license@php.net so we can mail you a copy immediately. | 12 +----------------------------------------------------------------------+ 12 +----------------------------------------------------------------------+ 13 | Author: Xinchen Hui <laruence@php.net> | 14 +----------------------------------------------------------------------+ 23#include "php_ini.h" 24#include "standard/php_filestat.h" /* for php_stat */ 25 25 26#include "php_yaf.h" 27#include "yaf_namespace.h" 48 zval n_ctime; 49 php_stat(Z_STRVAL_P(file), Z_STRLEN_P(file), 7 /* FS_CTIME */ , &n_ctime TSRMLS_CC); 50 if (Z_TYPE(n_ctime) != IS_BOOL && ctime != Z_LVAL(n_ctime)) {actions.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 220 lines
1<?php 2 2 3require_once dirname(__FILE__).'/../lib/driverGeneratorConfiguration.class.php'; 4require_once dirname(__FILE__).'/../lib/driverGeneratorHelper.class.php'; 11 * @author Your name here 12 * @version SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $ 13 */ 114 { 115 if (is_null($this->filters)) 116 { 166 }else{ 167 // camelize lower case to be able to compare with BasePeer::TYPE_PHPNAME translate field name 168 $column = DriverPeer::translateFieldName(sfInflector::camelize(strtolower($sort[0])), BasePeer::TYPE_PHPNAME, BasePeer::TYPE_COLNAME);class.FlxMapPlugin.php https://gitlab.com/lobsterhands/OctaveHigherEast.git | PHP | 490 lines
1<?php 2/** 17 18 if (is_null($instance)) { 19 $instance = new self(); 35 // kick off the admin handling 36 require FLXMAP_PLUGIN_ROOT . 'class.FlxMapAdmin.php'; 37 new FlxMapAdmin($this);transport.php https://bitbucket.org/effectal/ondi.git | PHP | 282 lines
1<?php 2 188 189 if(is_null($socket_wrapper)) { 190 $socket_wrapper = new CF7CM_CS_REST_SocketWrapper();Database.php git://github.com/gabordemooij/redbean.git | PHP | 509 lines
1<?php 2 5use RedUNIT\Base as Base; 6use RedBeanPHP\Facade as R; 7use RedBeanPHP\QueryWriter\SQLiteT as SQLiteT; 7use RedBeanPHP\QueryWriter\SQLiteT as SQLiteT; 8use RedBeanPHP\OODB as OODB; 9use RedBeanPHP\OODBBean as OODBBean; 9use RedBeanPHP\OODBBean as OODBBean; 10use RedBeanPHP\ToolBox as ToolBox; 11use RedBeanPHP\AssociationManager as AssociationManager; 11use RedBeanPHP\AssociationManager as AssociationManager; 12use RedBeanPHP\RedException as RedException; 13use RedBeanPHP\RedException\SQL as SQL; 13use RedBeanPHP\RedException\SQL as SQL; 14use RedBeanPHP\QueryWriter\MySQL as MySQL; 15use RedBeanPHP\QueryWriter\PostgreSQL as PostgreSQL;TCPDFAdapter.php https://bitbucket.org/1blankz7/bibioteka.git | PHP | 499 lines
1<?php 2/** 2/** 3 * DOMPDF - PHP5 HTML to PDF renderer 4 * 25 * Alternatively, you may distribute this software under the terms of the 26 * PHP License, version 3.0 or later. A copy of this license should have 27 * been distributed with this file in the file LICENSE.PHP . If this is not 27 * been distributed with this file in the file LICENSE.PHP . If this is not 28 * the case, you can obtain a copy at http://www.php.net/license/3_0.txt. 29 * 39 40/* $Id: tcpdf_adapter.cls.php 311 2010-09-05 20:02:01Z fabien.menager $ */ 41 41 42require_once(DOMPDF_LIB_DIR . '/tcpdf/tcpdf.php'); 43WebModeClientOracle.php http://gwtphp-derpc.googlecode.com/svn/trunk/ | PHP | 317 lines
1<?php 2/* 20 21require_once PHPRPC_ROOT . 'classes.php'; 22require_once PHPRPC_ROOT . 'derpc/ClientOracle.php'; 22require_once PHPRPC_ROOT . 'derpc/ClientOracle.php'; 23require_once PHPRPC_ROOT . 'derpc/rpcphptools.php'; 24 24 25require_once PHPRPC_ROOT . 'stream.php'; 26 26 27require_once PHPRPC_ROOT . 'derpc/WebModePayloadSink.php'; 28 208 $toReturn = $this->operableFieldMap->get($clazz); 209 if (!is_null($toReturn)) { 210 return $toReturn;PackageScaffolderAbstract.php https://PHPAzure.svn.codeplex.com/svn | PHP | 325 lines
1<?php 2/** 30 * @copyright Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com) 31 * @license http://phpazure.codeplex.com/license 32 * @version $Id: SharedKeyCredentials.php 14561 2009-05-07 08:05:12Z unknown $ 37 */ 38require_once dirname(__FILE__) . '/../../../AutoLoader.php'; 39 43 * @copyright Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com) 44 * @license http://phpazure.codeplex.com/license 45 */ 122 } 123 file_put_contents('php://stderr', $message . ($newLine ? "\r\n" : '')); 124 } 135 $phar->extractTo($path); 136 @unlink($path . '/index.php'); 137 @unlink($path . '/build.bat');Message.php git://github.com/spotweb/spotweb.git | PHP | 323 lines
1<?php 2/** 47 */ 48 private $sApplication = 'ProwlPHP'; 49 312 public function validate() { 313 if (is_null($this->sEvent)) { 314 throw new \InvalidArgumentException('Validation Error: Event is missing');ResourceTypeConfig.php git://github.com/forkcms/forkcms.git | PHP | 368 lines
1<?php 2/* 233 234 if (is_null($this->_config)) { 235 $this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config"); 240 241 // First, check the last extension (ex. in file.php.jpg, the "jpg"). 242 if ( !$this->checkSingleExtension( $pieces[sizeof($pieces)-1] ) ) { 259 else { 260 // Check only the last extension (ex. in file.php.jpg, only "jpg"). 261 return $this->checkSingleExtension( substr($fileName, strrpos($fileName,'.')+1) ); 276 { 277 if (is_null($this->_config)) { 278 $this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config"); 298 { 299 if (is_null($this->_config)) { 300 $this->_config =& CKFinder_Connector_Core_Factory::getInstance("Core_Config");CleanerHelper.php git://github.com/CakeDC/comments.git | PHP | 444 lines
1<?php 2/** 8 * @copyright Copyright 2009 - 2013, Cake Development Corporation (http://cakedc.com) 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 84 public function configure($options) { 85 if (is_null($options)) { 86 return;assessment_results_table_overview_data_provider.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms-assessment-dev/ | PHP | 218 lines
1<?php 2namespace application\weblcms\tool\assessment; 26/** 27 * $Id: assessment_results_table_overview_data_provider.class.php 216 2009-11-13 14:08:06Z kariboe $ 28 * @package application.lib.weblcms.tool.assessment.component.assessment_results_table_admin 210 $c = Utilities :: query_to_condition($this->query); 211 if (! is_null($c)) 212 {Sql.php git://github.com/noah-goodrich/gacela.git | PHP | 790 lines
1<?php 2/** 516 // If its not an insert or an update, it might also be a delete 517 if(!is_null($this->_delete)) { 518 $sql = "DELETE FROM {$this->_delete}\n"; 692 { 693 if(is_null($type)) { 694 $type = 'inner';URI.php git://github.com/ezyang/htmlpurifier.git | PHP | 316 lines
59 { 60 $this->scheme = is_null($scheme) || ctype_lower($scheme) ? $scheme : strtolower($scheme); 61 $this->userinfo = $userinfo; 129 // and it is our default scheme. 130 if (!is_null($this->scheme) && is_null($this->host) || $this->host === '') { 131 // support for relative paths is pretty abysmal when the 139 // validate username 140 if (!is_null($this->userinfo)) { 141 $encoder = new HTMLPurifier_PercentEncoder($chars_sub_delims . ':'); 177 } 178 } elseif (!is_null($this->scheme)) { 179 // path-rootless (hier) 204 205 if (!is_null($this->query)) { 206 $this->query = $qf_encoder->encode($this->query);runner.php git://github.com/noonat/pecs.git | PHP | 182 lines
1<?php 2 145 function run($formatter=null) { 146 if (!is_null($formatter)) 147 $this->formatter = $formatter;Stopwords.php git://github.com/thorsten/phpMyFAQ.git | PHP | 297 lines
1<?php 2/** 4 * 5 * PHP Version 5.3 6 * 10 * 11 * @category phpMyFAQ 12 * @package PMF_Stopwords 13 * @author Anatoliy Belsky 14 * @author Matteo Scaramuccia <matteo@phpmyfaq.de> 15 * @copyright 2009-2012 phpMyFAQ Team 16 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 17 * @link http://www.phpmyfaq.de 18 * @since 2009-04-01 20 21if (!defined('IS_VALID_PHPMYFAQ')) { 22 exit();Client.php git://github.com/njh/easyrdf.git | PHP | 417 lines
1<?php 2namespace EasyRdf\Sparql; 35 * @copyright Copyright (c) Nicholas J Humfrey 36 * @license https://www.opensource.org/licenses/bsd-license.php 37 */ 49 * @copyright Copyright (c) Nicholas J Humfrey 50 * @license https://www.opensource.org/licenses/bsd-license.php 51 */ 73 74 if (strlen(parse_url($queryUri, PHP_URL_QUERY)) > 0) { 75 $this->queryUri_has_params = true; 164 $query = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?s ?p ?o}}"; 165 if (!is_null($limit)) { 166 $query .= " LIMIT ".(int)$limit;box.img.php http://simpleinvoices.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2// $Header: /cvsroot/html2ps/box.img.php,v 1.50 2007/05/06 18:49:29 Konstantin Exp $ 24 25 function is_null() { 26 return false; 123 $ascender = $driver->font_ascender($font_name, 'iso-8859-1'); 124 if (is_null($ascender)) { 125 error_log("ImgBox::reflow_text: cannot get font ascender"); 129 $descender = $driver->font_descender($font_name, 'iso-8859-1'); 130 if (is_null($descender)) { 131 error_log("ImgBox::reflow_text: cannot get font descender"); 203 $status = $driver->setfont("Times-Roman", "iso-8859-1", $size); 204 if (is_null($status)) { 205 return null; 248 249 if (is_null($src_img)) { 250 // image could not be opened, use ALT attributesqlite_statement.c git://github.com/vpj/PHP-Extension-API.git | C | 366 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2009 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+Comment.php git://github.com/croogo/croogo.git | PHP | 242 lines
1<?php 2 12 * @author Fahad Ibnay Heylaal <contact@fahad19.com> 13 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 14 * @link http://www.croogo.org 120 $foreignKey = (int)$foreignKey; 121 $parentId = is_null($options['parentId']) ? null : (int)$options['parentId']; 122 $userData = $options['userData']; 132 133 if (!is_null($parentId)) { 134 if (class.applicationmanager.php git://github.com/vanillaforums/Garden.git | PHP | 351 lines
1<?php 2/** 134 $applicationInfo = val($applicationName, $this->availableApplications(), null); 135 if (is_null($applicationInfo)) { 136 return false; 138 139 if (!is_null($key)) { 140 return getValueR($key, $applicationInfo, false); 250 public function testApplication($applicationName) { 251 // Add the application to the $EnabledApplications array in conf/applications.php 252 $ApplicationInfo = arrayValueI($applicationName, $this->availableApplications(), []); 264 if (!class_exists($hooks)) { 265 $hooksPath = PATH_APPLICATIONS.DS.$ApplicationFolder.'/settings/class.hooks.php'; 266 if (file_exists($hooksPath)) {IsType.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 177 lines
36 * 37 * @package PHPUnit 38 * @subpackage Framework_Constraint 38 * @subpackage Framework_Constraint 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2002-2011 Sebastian Bergmann <sebastian@phpunit.de> 51 * 52 * @package PHPUnit 53 * @subpackage Framework_Constraint 53 * @subpackage Framework_Constraint 54 * @author Sebastian Bergmann <sebastian@phpunit.de> 55 * @copyright 2002-2011 Sebastian Bergmann <sebastian@phpunit.de> 60 */ 61class PHPUnit_Framework_Constraint_IsType extends PHPUnit_Framework_Constraint 62{LimeLexer.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 402 lines
1<?php 2 13/** 14 * Analyzes PHP scripts syntactically. 15 * 16 * You can extend this class if you want to write your own lexer that parses 17 * a PHP file for specific information. 18 * 26 * 27 * A lexer is stateless. This means that you can analyze any number of PHP 28 * scripts with the same lexer instance. 32 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 33 * @version SVN: $Id: LimeLexer.php 25934 2009-12-27 20:44:07Z bschussek $ 34 */ 47 /** 48 * Analyzes the given file or PHP code. 49 *FilterQuery.php git://github.com/basdenooijer/solarium.git | PHP | 221 lines
1<?php 2/** 121 { 122 if (!is_null($bind)) { 123 $helper = new Helper;ApiQueryFilearchive.php https://gitlab.com/qiusct/mediawiki-i.git | PHP | 400 lines
1<?php 2/** 8 * Copyright Ā© 2008 Vasiliev Victor vasilvv@gmail.com, 9 * based on ApiQueryAllPages.php 10 * 81 82 if ( !is_null( $params['continue'] ) ) { 83 $cont = explode( '|', $params['continue'] ); 92 $from = ( $params['from'] === null ? null : $this->titlePartToKey( $params['from'], NS_FILE ) ); 93 if ( !is_null( $params['continue'] ) ) { 94 $from = $params['continue']; 204 } 205 if ( $fld_archivename && !is_null( $row->fa_archive_name ) ) { 206 $file['archivename'] = $row->fa_archive_name; 389 return array( 390 'api.php?action=query&list=filearchive' => array( 391 'Simple Use',UrlHandler_Simple_Test.php git://github.com/ethna/ethna.git | PHP | 269 lines
1<?php 2/** 2/** 3 * UrlHandler_Simple_Test.php 4 */ 5 6require_once 'Ethna/class/UrlHandler/Simple.php'; 7 204 $ret = $this->url_handler->actionToRequest($action, $param); 205 $this->assertFalse(is_null($ret)); 206 list($path, $path_key) = $ret; 222 $ret = $this->url_handler->actionToRequest($action, $param); 223 $this->assertTrue(is_null($ret)); 224 }mysqli_stmt_affected_rows.php git://github.com/facebook/hiphop-php.git | PHP | 231 lines
1<?php 2 require_once("connect.inc"); 220 221 if (!is_null($tmp = mysqli_stmt_affected_rows($stmt))) 222 printf("[047] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 227?> 228<?php error_reporting(0); ?> 229<?phpLoggerOptionConverter.php http://sabre-zarafa.googlecode.com/svn/trunk/ | PHP | 446 lines
1<?php 2/** 17 * 18 * @package log4php 19 */ 24 * @version $Revision: 31 $ 25 * @package log4php 26 * @subpackage helpers 79 public static function toBoolean($value, $default=true) { 80 if (is_null($value)) { 81 return $default; 166 * where <i>full_file_classname</i> means the class filename with path 167 * but without php extension, then the specified class' <i>toLevel()</i> method 168 * is called to process the specified level string; if no '#'Form.php git://github.com/jeromeschneider/Baikal.git | PHP | 368 lines
1<?php 2################################################################# 210 if($this->submitted()) { 211 if(is_null($this->bPersisted)) { 212 throw new \Exception("\Formal\Form->persisted(): information is not available yet. This method may only be called after execute()");Settings_lib.php git://github.com/ci-bonfire/Bonfire.git | PHP | 440 lines
1<?php defined('BASEPATH') || exit('No direct script access allowed'); 2 119 { 120 if (is_null($index) 121 || ! isset(self::$errors[$index]) 162 // Setting doesn't exist, maybe it's a config option. 163 if (is_null($value)) { 164 $value = config_item($name);ComparisonFailure.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 207 lines
36 * 37 * @package PHPUnit 38 * @subpackage Framework 54 * @version Release: 3.5.9 55 * @link http://www.phpunit.de/ 56 * @since Class available since Release 2.0.0 57 */ 58abstract class PHPUnit_Framework_ComparisonFailure extends PHPUnit_Framework_AssertionFailedError 59{ 134 * in the difference output. 135 * @return PHPUnit_Framework_ComparisonFailure 136 */ 140 { 141 return new PHPUnit_Framework_ComparisonFailure_Type($expected, $actual, TRUE, $message); 142 }CakePlugin.php git://github.com/cakephp/cakephp.git | PHP | 228 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.Core 15 * @package Cake.Core 16 * @since CakePHP(tm) v 2.0.0 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 41 * `CakePlugin::load('DebugKit')` will load the DebugKit plugin and will not load any bootstrap nor route files 42 * `CakePlugin::load('DebugKit', array('bootstrap' => true, 'routes' => true))` will load the bootstrap.php and routes.php files 43 * `CakePlugin::load('DebugKit', array('bootstrap' => false, 'routes' => true))` will load routes.php file but not bootstrap.php 43 * `CakePlugin::load('DebugKit', array('bootstrap' => false, 'routes' => true))` will load routes.php file but not bootstrap.php 44 * `CakePlugin::load('DebugKit', array('bootstrap' => array('config1', 'config2')))` will load config1.php and config2.php files 45 * `CakePlugin::load('DebugKit', array('bootstrap' => 'aCallableMethod'))` will run the aCallableMethod function to initialize itObserver.php https://github.com/OpenMage/magento-mirror.git | PHP | 307 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 104 $productIds = array_keys($collection->getItems()); 105 if (!is_null($limit) && $limit <= count($productIds)) { 106 return $this; 128 129 if (!is_null($limit)) { 130 $bundleCollection->setPageSize($limit);IsType.php git://pkgs.fedoraproject.org/php-phpunit-PHPUnit | PHP | 192 lines
36 * 37 * @package PHPUnit 38 * @subpackage Framework_Constraint 38 * @subpackage Framework_Constraint 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @author Bernhard Schussek <bschussek@2bepublished.at> 52 * 53 * @package PHPUnit 54 * @subpackage Framework_Constraint 54 * @subpackage Framework_Constraint 55 * @author Sebastian Bergmann <sebastian@phpunit.de> 56 * @author Bernhard Schussek <bschussek@2bepublished.at> 62 */ 63class PHPUnit_Framework_Constraint_IsType extends PHPUnit_Framework_Constraint 64{Store.php https://github.com/OpenMage/magento-mirror.git | PHP | 510 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 449 { 450 if (is_null($type)) { 451 $this->_loadWebsiteCollection();CDFDataColumn.php https://cdf.svn.codeplex.com/svn | PHP | 440 lines
1<?php 2 7 8require_once 'CDFIDataConnection.php'; 9require_once dirname(__FILE__) . '/../core/CDFDataHelper.php'; 9require_once dirname(__FILE__) . '/../core/CDFDataHelper.php'; 10require_once dirname(__FILE__) . '/../core/CDFExceptions.php'; 11 128 { 129 if(is_null($opts) || !is_array($opts)) 130 return; 223 { 224 if(!is_null($value) && !is_string($value)) 225 throw new CDFColumnDataException($this->getName(), 'Value is not string');CaptchaHelper.php git://github.com/thorsten/phpMyFAQ.git | PHP | 88 lines
1<?php 2 3/** 4 * Helper class for the default phpMyFAQ captcha. 5 * 9 * 10 * @package phpMyFAQ 11 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 11 * @author Thorsten Rinne <thorsten@phpmyfaq.de> 12 * @copyright 2010-2021 phpMyFAQ Team 13 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 13 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 14 * @link https://www.phpmyfaq.de 15 * @since 2010-01-11 17 18namespace phpMyFAQ\Helper; 19DateHeader.php git://github.com/snytkine/LampCMS.git | PHP | 119 lines
1<?php 2 32 * <code> 33 * <?php 34 * $header = new Swift_Mime_Headers_DateHeader('Date', time()); 91 { 92 if (!is_null($timestamp)) 93 {RepeaterPageArray.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 108 lines
1<?php 2 73 74 if(is_null($page)) { 75 // no ready item available, get a new oneclass_registry.php http://skygames.googlecode.com/svn/trunk/ | PHP | 347 lines
1<?php 2/* SVN FILE: $Id: class_registry.php 7805 2008-10-30 17:30:26Z AD7six $ */ 7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 18 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 19 * @package cake 20 * @subpackage cake.cake.libs 21 * @since CakePHP(tm) v 0.9.2 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 */StorageServiceSettings.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 483 lines
1<?php 2 14 * 15 * PHP version 5 16 * 18 * 19 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 20 * @copyright 2012 Microsoft Corporation 22 * 23 * @link https://github.com/windowsazure/azure-sdk-for-php 24 */ 34 * 35 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 36 * @copyright 2012 Microsoft Corporation 40 * 41 * @link https://github.com/windowsazure/azure-sdk-for-php 42 */ElementDef.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 195 lines
1<?php 2 171 } 172 if(!is_null($def->child)) $this->child = $def->child; 173 if(!is_null($def->formatting)) $this->formatting = $def->formatting;SpecialRevisiondelete.php https://code.google.com/p/alfresco-php-sdk/ | PHP | 269 lines
1<?php 2 19 20 if( is_null( $page ) ) { 21 $wgOut->showErrorPage( 'notargettitle', 'notargettext' ); 24 25 if( is_null( $oldid ) ) { 26 $wgOut->showErrorPage( 'revdelete-nooldid-title', 'revdelete-nooldid-text' );sfContext.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 504 lines
1<?php 2 20 * @author Sean Kerr <sean@code-box.org> 21 * @version SVN: $Id: sfContext.class.php 11286 2008-09-02 10:27:36Z fabien $ 22 */ 44 { 45 if (is_null($name)) 46 { 102 { 103 if (is_null($name)) 104 { 125 { 126 if (is_null($name)) 127 { 262 { 263 if (!is_null($this->factories['databaseManager'])) 264 {class.phpwsdl.nusoap.php http://php-wsdl-creator.googlecode.com/svn/trunk/ | PHP | 385 lines
42// Comment out this line to get rid of the NuSOAP information in the HTML output 43PhpWsdl::RegisterHook('CreateHtmlGeneralHook','nusoap','PhpWsdlNuSOAP::CreateHtmlGeneral'); 44 275 * @param nusoap_server $nusoap NuSOAP server object 276 * @param PhpWsdl $phpwsdl PhpWsdl object or NULL to create a new one (default: NULL) 277 * @return PhpWsdl PhpWsdl object 313 if($nt['phpType']!='struct') 314 PhpWsdl::Debug('WARNING: Not a PHP struct'); 315 if($nt['compositor']!='sequence') 326 } 327 $phpwsdl->Types[]=new PhpWsdlComplex($name,$el); 328 }else if($nt['typeClass']=='simpleType'){ 333 }else{ 334 PhpWsdl::Debug('WARNING: PHP type "'.$nt['phpType'].'" is not supported!'); 335 }create.class.php git://github.com/modxcms/revolution.git | PHP | 306 lines
1<?php 2/* 10 11require_once dirname(__FILE__).'/resource.class.php'; 12/** 94 /* set template */ 95 if (!is_null($this->resource->get('template')) && $this->resource->get('template') !== 0) { 96 $this->scriptProperties['template'] = $this->resource->get('template');MY_Form_validation.php git://github.com/pyrocms/pyrocms.git | PHP | 278 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed.'); 2 76 $callback = FALSE; 77 if ( ! in_array('required', $rules) AND is_null($postdata)) 78 { 93 // Isset Test. Typically this rule will only apply to checkboxes. 94 if (is_null($postdata) AND $callback == FALSE) 95 { 203 { 204 // If our own wrapper function doesn't exist we see if a native PHP function does. 205 // Users can use any native PHP function call that has one param. 277 278/* End of file MY_Form_validation.php */Logical.php https://PHPExcel.svn.codeplex.com/svn | PHP | 291 lines
22 * @package PHPExcel_Calculation 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 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 262 public static function STATEMENT_IF($condition = true, $returnIfTrue = 0, $returnIfFalse = False) { 263 $condition = (is_null($condition)) ? True : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition); 264 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 264 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 265 $returnIfFalse = (is_null($returnIfFalse)) ? False : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse); 266 284 $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue); 285 $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart); 286QCryptography.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 196 lines
1<?php 2 // Requires libmcrypt v2.4.x or higher 34 * - MCRYPT_DEV_URANDOM = /dev/urandom (only on *nix systems) 35 * - MCRYPT_RAND = the internal PHP srand() mechanism 36 * (on Windows, you *must* use MCRYPT_RAND, b/c /dev/random and /dev/urandom doesn't exist) 38 * TODO: there appears to be some /dev/random locking issues on the QCubed development 39 * environment (using Fedora Core 3 with PHP 5.0.4 and LibMcrypt 2.5.7). Because of this, 40 * we are using MCRYPT_RAND be default. Feel free to change to to /dev/*random at your own risk. 43 if (!function_exists('mcrypt_module_open')) { 44 throw new QCryptographyException("PHP cryptography components (libmcrypt module) are not installed"); 45 } 47 // Get the Key 48 if (is_null($strKey)) { 49 $strKey = self::$Key; 53 try { 54 if (is_null($blnBase64)) { 55 $this->blnBase64 = QType::Cast(self::$Base64, QType::Boolean);sfNumberFormat.class.php http://selfpublish.googlecode.com/svn/trunk/ | PHP | 325 lines
1<?php 2 15 * @author Wei Zhuo <weizhuo[at]gmail[dot]com> 16 * @version $Id: sfNumberFormat.class.php 11958 2008-10-05 16:51:39Z fabien $ 17 * @package symfony 82 { 83 if (is_null($formatInfo)) 84 { 149 $symbol = @$this->formatInfo->getCurrencySymbol($currency); 150 if (is_null($symbol)) 151 {DynamicTableEntity.php https://PHPAzure.svn.codeplex.com/svn | PHP | 214 lines
1<?php 2/** 31 * @copyright Copyright (c) 2009, RealDolmen (http://www.realdolmen.com) 32 * @license http://phpazure.codeplex.com/license 33 * @version $Id: BlobInstance.php 14561 2009-05-07 08:05:12Z unknown $ 39 */ 40require_once 'Microsoft/WindowsAzure/Exception.php'; 41 44 */ 45require_once 'Microsoft/WindowsAzure/Storage/TableEntity.php'; 46 52 * @copyright Copyright (c) 2009, RealDolmen (http://www.realdolmen.com) 53 * @license http://phpazure.codeplex.com/license 54 */ 101 // Determine type? 102 if (is_null($type)) { 103 $type = 'Edm.String';class.wsdlcache.php https://bitbucket.org/chamilo/chamilo/ | PHP | 210 lines
1<?php 2/* 14* @author Ingo Fischer <ingo@apollon.de> 15* @version $Id: class.wsdlcache.php 137 2009-11-09 13:24:37Z vanpouckesven $ 16* @access public 108 $this->releaseMutex($filename); 109 return (!is_null($s)) ? unserialize($s) : null; 110 } else {Logical.php git://github.com/Dolibarr/dolibarr.git | PHP | 291 lines
22 * @package PHPExcel_Calculation 23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 262 public static function STATEMENT_IF($condition = true, $returnIfTrue = 0, $returnIfFalse = False) { 263 $condition = (is_null($condition)) ? True : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition); 264 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 264 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 265 $returnIfFalse = (is_null($returnIfFalse)) ? False : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse); 266 284 $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue); 285 $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart); 286func.inc.php https://github.com/rennhak/zabbix.git | PHP | 636 lines
1<?php 2/* 20?> 21<?php 22/************* DYNAMIC REFRESH *************/ 88function inarr_isset($keys, $array=null){ 89 if(is_null($array)) $array =& $_REQUEST; 90 173 * Called from: 174 * a) in 'include/page_header.php' 175 * b) from 'redirect()' 380 switch($last){ 381 // The 'G' modifier is available since PHP 5.1.0 382 case 'g': 528function zbx_empty($value){ 529 if(is_null($value)) return true; 530 if(is_array($value) && empty($value)) return true;exceptions.php git://pkgs.fedoraproject.org/RackTables | PHP | 283 lines
1<?php 2 79 $message = "Argument '${name}' of value '".var_export($value,true)."' is invalid."; 80 if (!is_null($reason)) 81 $message .= ' ('.$reason.')'; 92 $message = "Argument '${name}' of value " . var_export ($value, TRUE) . " is invalid"; 93 if (!is_null($reason)) 94 $message .= ' ('.$reason.')'; 103 104// this wraps certain known PDO errors and is caught in process.php 105// as a "soft" error 137 // redirect user to a page with config errors highlighted 138 header ("Location: index.php?page=object&tab=lvsconfig&object_id=" . urlencode ($this->balancer_id)); 139 die; 175 echo "<tr><th width='50%' class=tdright>Requested tab:</th><td class=tdleft>${tabno}</td></tr>\n"; 176 echo "<tr><td colspan=2 align=center>Click <a href='index.php?logout'>here</a> to logout.</td></tr>\n"; 177 echo "</table>\n";PHPExcel.php https://PHPExcel.svn.codeplex.com/svn | PHP | 648 lines
32/** PHPExcel_DocumentProperties */ 33require_once 'PHPExcel/DocumentProperties.php'; 34 41/** PHPExcel_Shared_ZipStreamWrapper */ 42require_once 'PHPExcel/Shared/ZipStreamWrapper.php'; 43 44/** PHPExcel_NamedRange */ 45require_once 'PHPExcel/NamedRange.php'; 46 47/** PHPExcel_WorksheetIterator */ 48require_once 'PHPExcel/WorksheetIterator.php'; 49 55 * @package PHPExcel 56 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 57 */sfMemcacheCache.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 260 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfMemcacheCache.class.php 9802 2008-06-23 15:16:57Z fabien $ 18 */ 110 { 111 $lifetime = is_null($lifetime) ? $this->getOption('lifetime') : $lifetime; 112syntax.php https://github.com/dokufreaks/plugin-cloud.git | PHP | 284 lines
1<?php 2/** 55 if (!is_numeric($num)) $num = 50; 56 if(!is_null($ns)) $namespaces = explode('|', $ns); 57 else $namespaces = null; 81 // calculate min/max values 82 $min = PHP_INT_MAX; 83 $max = 0; 219 if (@file_exists($conf['indexdir'].'/page.idx')) { // new word-length based index 220 require_once(DOKU_INC.'inc/indexer.php'); 221SoftDeleteBehavior.php git://github.com/CakeDC/utils.git | PHP | 369 lines
1<?php 2/** 8 * @copyright Copyright 2009 - 2013, Cake Development Corporation (http://cakedc.com) 9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 10 */ 222 public function softDelete($model, $active) { 223 if (is_null($active)) { 224 return isset($this->runtime[$model->alias]) ? @$this->runtime[$model->alias] : null;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 */ 148 149 if (!is_null($allVars)) 150 { 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, 242 243 if (!is_null($value)) 244 {index.php http://showslow.googlecode.com/svn/trunk/ | PHP | 228 lines
1<?php 2require_once(dirname(dirname(dirname(__FILE__))).'/global.php'); 35 36$post_data = file_get_contents("php://input"); 37$post = json_decode($post_data, true); 38 39if (!is_null($post) && array_key_exists('u', $post) && array_key_exists('g', $post) 40 && array_key_exists('i', $post) && in_array($post['i'], $YSlow2AllowedProfiles) 209<h1>Configure your YSlow</h1> 210<p><b style="color: red">WARNING! Only use this beacon If you're OK with all your YSlow data to be recorded by this instance of ShowSlow and displayed at <a href="<?php echo $showslow_base?>"><?php echo $showslow_base?></a><br/>You can also <a href="http://www.showslow.org/Installation_and_configuration">install ShowSlow on your own server</a> to limit the risk.</b></p> 211 216<ul> 217<li>extensions.yslow.beaconUrl = <b style="color: blue"><?php echo $showslow_base?>beacon/yslow/</b></li> 218<li>extensions.yslow.beaconInfo = <b style="color: blue">grade</b></li> 222</body></html> 223<?php 224 exit;