100+ results results for 'php is_null repo:eviweb/moodle-mod_turnitintool' (2232 ms)
1<?php 2/** 317 * 318 * PHP system touch doesn't work correctly with the compress.zlib file. 319 * 366 { 367 if ( !is_null( $this->fp ) ) 368 {HelperForm.php https://gitlab.com/staging06/myproject | PHP | 337 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 22* @copyright 2007-2015 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 70 $this->tpl = $this->createTemplate($this->base_tpl); 71 if (is_null($this->submit_action)) { 72 $this->submit_action = 'submitAdd'.$this->table; 253 'required_fields' => $this->getFieldsRequired(), 254 'vat_number' => Module::isInstalled('vatnumber') && file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php'), 255 'module_dir' => _MODULE_DIR_,PostgresGrammar.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 568 lines
1<?php 2 549 { 550 if (! is_null($column->default)) { 551 return ' default '.$this->getDefaultValue($column->default);class.gdn.php https://github.com/dkobia/Garden.git | PHP | 397 lines
1<?php if (!defined('APPLICATION')) exit(); 2/* 196 $Config = self::Config($Config); 197 if(is_null($Alias)) 198 $Alias = $Config['Alias']; 225 $Config = self::Config($Config); 226 if(is_null($Alias)) 227 $Alias = $Config['Alias']; 245 246 if(!is_null($Value)) { 247 self::$_FactoryOverwrite = $Value; 275 public static function Locale() { 276 if(is_null(self::$_Locale)) 277 self::$_Locale = self::Factory(self::AliasLocale); 306 $Request = self::$_Request; //self::Factory(self::AliasRequest); 307 if (!is_null($NewRequest)) { 308 if(is_string($NewRequest))ArrayTest.php https://github.com/Exercise/zf2.git | PHP | 348 lines
1<?php 2/** 32 33if (!defined('PHPUnit_MAIN_METHOD')) { 34 define('PHPUnit_MAIN_METHOD', 'Zend_Translate_Adapter_ArrayTest::main'); 49 */ 50class ArrayTest extends \PHPUnit_Framework_TestCase 51{ 89 try { 90 $adapter = new Adapter\ArrayAdapter(__DIR__ . '/_files/failed.php', 'en'); 91 $this->fail('Exception expected'); 104 { 105 $adapter = new Adapter\ArrayAdapter(__DIR__ . '/_files/translation_en.php', 'en'); 106 $this->assertEquals('Message 1 (en)', $adapter->translate('Message 1')); 114 { 115 $adapter = new Adapter\ArrayAdapter(__DIR__ . '/_files/translation_en.php', 'en'); 116 $this->assertTrue($adapter->isTranslated('Message 1'));Storage.php https://github.com/skoop/Gesichtbuch.git | PHP | 507 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Storage.php 6352 2010-08-16 15:02:45Z tpater $ 21 */ 25 */ 26// require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php'; 27 30 */ 31// require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php'; 32 35 */ 36// require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php'; 37 40 */ 41// require_once 'Zend/Service/WindowsAzure/Exception.php'; 42class-wp-hook.php https://gitlab.com/VTTE/sitios-vtte | 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 *HelperForm.php https://gitlab.com/brunorafael/enosis | PHP | 337 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 22* @copyright 2007-2016 PrestaShop SA 23* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 70 $this->tpl = $this->createTemplate($this->base_tpl); 71 if (is_null($this->submit_action)) { 72 $this->submit_action = 'submitAdd'.$this->table; 253 'required_fields' => $this->getFieldsRequired(), 254 'vat_number' => Module::isInstalled('vatnumber') && file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php'), 255 'module_dir' => _MODULE_DIR_,VariableCommentSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 345 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 { 331 * 332 * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found. 333 * @param int $stackPtr The position where the double quoted 337 */ 338 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 339 {Grammar.php https://gitlab.com/nzqadri/bejeep | PHP | 459 lines
1<?php 2 102 // the affected columns, which will get something like "cascade", etc. 103 if (! is_null($command->onDelete)) { 104 $sql .= " on delete {$command->onDelete}"; 106 107 if (! is_null($command->onUpdate)) { 108 $sql .= " on update {$command->onUpdate}"; 335 foreach ($fluent->getAttributes() as $key => $value) { 336 if (! is_null($option = $this->mapFluentOptionToDoctrine($key))) { 337 if (method_exists($column, $method = 'set'.ucfirst($option))) {Store.php https://gitlab.com/FSalazarH/WaitlessWeb | PHP | 707 lines
1<?php 2 315 foreach ($keys as $value) { 316 if (is_null($this->get($value))) { 317 return false; 353 354 return is_null($key) ? count($old) > 0 : ! is_null($old); 355 }class-wp-hook.php https://gitlab.com/WPonEB/WPonEB | PHP | 510 lines
392 * 393 * @link https://secure.php.net/manual/en/arrayaccess.offsetexists.php 394 * 406 * 407 * @link https://secure.php.net/manual/en/arrayaccess.offsetget.php 408 * 420 * 421 * @link https://secure.php.net/manual/en/arrayaccess.offsetset.php 422 * 438 * 439 * @link https://secure.php.net/manual/en/arrayaccess.offsetunset.php 440 * 451 * 452 * @link https://secure.php.net/manual/en/iterator.current.php 453 *Currency.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 357 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-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 183 { 184 if (is_null($toCurrency)) { 185 return $price;class-yoast-notification-center.php https://gitlab.com/iamgraeme/royalmile | PHP | 568 lines
1<?php 2/** 93 94 $user_id = ( ! is_null( $user_id ) ? $user_id : get_current_user_id() ); 95 $dismissal_key = $notification->get_dismissal_key(); 195 $present_notification = $this->get_notification_by_id( $notification_id ); 196 if ( ! is_null( $present_notification ) ) { 197 $this->remove_notification( $present_notification, false ); 199 200 if ( is_null( $present_notification ) ) { 201 $this->new[] = $notification_id;Store.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 508 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-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 447 { 448 if (is_null($type)) { 449 $this->_loadWebsiteCollection();exec.inc.php https://github.com/viglesiasce/testlink.git | PHP | 298 lines
1<?php 2/** 11 * @copyright 2005-2009, TestLink community 12 * @version CVS: $Id: exec.inc.php,v 1.60 2010/06/24 17:25:53 asimon83 Exp $ 13 * @link http://www.teamst.org/index.php 34/** 35 * @uses common.php required basic environment (configuration and core libraries) 36 **/ 36 **/ 37require_once('common.php'); 38 91 $cf_map = $cfield_mgr->get_linked_cfields_at_execution($exec_signature->tproject_id,$ENABLED,'testcase'); 92 $has_custom_fields = is_null($cf_map) ? 0 : 1; 93 213 // BUGID 3440 - added is_object() check 214 if( !is_null($map) && is_object($bug_interface)) 215 {Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
1<?php 2/** 334 // If we passed max decimals 335 if ( ! is_null( $max_decimals ) ) { 336 $max = max( $max_decimals, $max );PluginInfo.php https://gitlab.com/fabiorf/chat | PHP | 383 lines
1<?php 2/* 74 { 75 if (is_null($this->pluginState)) { 76 $state = State::loadByName($this->pluginName); 98 { 99 if (!is_null($this->pluginState)) { 100 if ($this->pluginState->id) { 114 { 115 if (is_null($this->pluginClass)) { 116 $this->pluginClass = Utils::getPluginClassName($this->pluginName);AttributeController.php https://bitbucket.org/kdms/sh-magento.git | PHP | 374 lines
1<?php 2/** 51 { 52 if (is_null($this->_entityType)) { 53 $this->_entityType = Mage::getSingleton('eav/config')->getEntityType('customer_address');Product.php https://github.com/Emmes/Magento.dev.git | PHP | 441 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 145 { 146 if(is_null($this->_statuses)) { 147 $this->_statuses = array();//Mage::getModel('catalog/product_status')->getResourceCollection()->load(); 181 { 182 if (is_null($storeId)) { 183 $storeId = Mage::app()->getStore()->getId(); 224 225 if (is_null($inputType)) { 226 return $inputTypes;SQLite3.php https://gitlab.com/dmsapiens/physicians | PHP | 322 lines
2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2012 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 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37 115 if ($cellResult === FALSE) { 116 throw new PHPExcel_Exception($this->_DBHandle->lastErrorMsg()); 117 }str.php https://bitbucket.org/codeyash/bootstrap.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; 131Store.php https://github.com/gryzz/crystal_magento.git | PHP | 508 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 447 { 448 if (is_null($type)) { 449 $this->_loadWebsiteCollection();str.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 416 lines
1<?php 2/** 9 * @copyright 2010 - 2012 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; 131AbstractPaginator.php https://gitlab.com/vincetang/mtweb | PHP | 487 lines
1<?php 2 154 { 155 if (is_null($fragment)) { 156 return $this->fragment;admin.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 503 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 135 // No parent around? Do what you like 136 if (is_null($parent_id)) 137 {ImagesController.php https://gitlab.com/jensdwul1/nmdad3.local | PHP | 362 lines
1<?php 2 335 if ($form->isValid()) { 336 $statusCode = is_null($image->getId()) ? Response::HTTP_CREATED : Response::HTTP_NO_CONTENT; 337field.taglist.php https://github.com/nils-werner/symphony-2.git | PHP | 468 lines
1<?php 2 /** 5 6 require_once FACE . '/interface.exportablefield.php'; 7 require_once FACE . '/interface.importablefield.php'; 153 154 $fields['pre_populate_source'] = (is_null($this->get('pre_populate_source')) ? NULL : implode(',', $this->get('pre_populate_source'))); 155 $fields['validator'] = ($fields['validator'] == 'custom' ? NULL : $this->get('validator'));postgresql.php https://gitlab.com/ricardosanchez/prueba | PHP | 641 lines
1<?php 2/** 326 327 if (is_null($this->forUpdate)) 328 { 353 354 if (is_null($this->forShare)) 355 { 479 480 if (is_null($this->noWait)) 481 { 498 { 499 if (is_null($this->limit)) 500 { 517 { 518 if (is_null($this->offset)) 519 {queues.php https://gitlab.com/xivo.solutions/xivo-web-interface | PHP | 412 lines
1<?php 2 137 { 138 if(!is_null($result['queue']['joinempty'])) 139 $result['queue']['joinempty'] = explode(',', $result['queue']['joinempty']); 140 141 if(!is_null($result['queue']['leavewhenempty'])) 142 $result['queue']['leavewhenempty'] = explode(',', $result['queue']['leavewhenempty']); 279 280 if(!is_null($return['queue']['joinempty'])) 281 $return['queue']['joinempty'] = explode(',', $return['queue']['joinempty']); 282 283 if(!is_null($return['queue']['leavewhenempty'])) 284 $return['queue']['leavewhenempty'] = explode(',', $return['queue']['leavewhenempty']);SqliteMetadata.php https://gitlab.com/jalon/doadoronline | PHP | 392 lines
1<?php 2/** 92 'column_default' => $row['dflt_value'], 93 'is_nullable' => !((bool) $row['notnull']), 94 'data_type' => $row['type'],fortissimo.php https://github.com/zorkian/fortissimo.git | PHP | 329 lines
1<?php 2 3 # include needful things 4 require_once("config.php"); # better be in the same path as us...! 5 6 # bring in object classes 7 require_once("EVEObject.php"); 8 require_once("EVERegion.php"); 8 require_once("EVERegion.php"); 9 require_once("EVEConstellation.php"); 10 require_once("EVESystem.php"); 12 # extra things we need to run 13 require_once("db.php"); 14 require_once("user.php"); 14 require_once("user.php"); 15 require_once("eveheader.php"); 16 require_once("session.php");Collection.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 347 lines
1<?php 2/** 14 * Sales Rules resource collection model. 15 * @SuppressWarnings(PHPMD.CouplingBetweenObjects) 16 */ 126 * @use $this->addWebsiteGroupDateFilter() 127 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 128 * @return $this 216 if (!$this->getFlag('website_group_date_filter')) { 217 if (is_null($now)) { 218 $now = $this->_date->date()->format('Y-m-d');class.FixtureBuilder.php https://github.com/dagda/ThinkUp.git | PHP | 346 lines
1<?php 2/** 77 $this->config = Config::getInstance(); 78 if(is_null(self::$pdo)) { 79 self::$pdo = $this->connect(); 156 foreach( $columns as $column) { 157 $field_value = (! is_null($args)) && isset( $args[ $column['Field'] ]) ? $args[ $column['Field'] ] : null; 158 if( isset($column['Key']) && $column['Key'] == 'UNI' && ! $field_value) {submissionsoap.class.php https://github.com/danmarsden/moodle-plagiarism_turnitin.git | PHP | 236 lines
1<?php 2/* @ignore 6 7require_once( 'soap.class.php' ); 8require_once( 'tiisubmission.class.php' ); 8require_once( 'tiisubmission.class.php' ); 9require_once( 'response.class.php' ); 10require_once( 'sdkexception.class.php' ); 217 $value = ( gettype( $value ) == 'boolean' ) ? (integer)$value : $value; 218 if (!is_null($value)) { 219 $request['resultRecord']['result']['extension']['extensionField'][$i]['fieldName'] = $name;file_info_context_module.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 347 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 141 142 $filepath = is_null($filepath) ? '/' : $filepath; 143 $filename = is_null($filename) ? '.' : $filename; 152 153 $urlbase = $CFG->wwwroot.'/pluginfile.php'; 154 return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, get_string('moduleintro'), false, true, true, false); 173 174 $filepath = is_null($filepath) ? '/' : $filepath; 175 $filename = is_null($filename) ? '.' : $filename; 187 188 $urlbase = $CFG->wwwroot.'/pluginfile.php'; 189 return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, get_string('activitybackup', 'repository'), false, $downloadable, $uploadable, false);class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
1<?php 2/** 316 317 if ( is_null( $s ) || 'null' === $s ) { 318 return "{$field_name} IS NULL"; 331 332 if ( is_null( $d ) || 'null' === $d ) { 333 return "{$field_name} IS NULL";Socket.php https://bitbucket.org/acidel/buykoala.git | PHP | 537 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 249 * 250 * @param string $uri ex. http://google.com/index.php?a=b 251 * @return string ex. /index.php?a=b 328 list($key, $val) = explode("=", $values[0]); 329 if(is_null($val)) { 330 continue; 355 list($key, $val) = explode("=", $values[0]); 356 if(is_null($val)) { 357 continue;list.php https://gitlab.com/ricardosanchez/prueba | PHP | 382 lines
1<?php 2/** 174 175 if (is_null($ret)) 176 {downloadalbum.php https://github.com/zcopley/gallery3-contrib.git | PHP | 300 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 */error_report.lib.php https://gitlab.com/luyxtran264/myproject | PHP | 364 lines
16 */ 17if (is_readable('js/line_counts.php')) { 18 include_once 'js/line_counts.php'; 60 "configuration_storage" => 61 is_null($relParams['db']) ? "disabled" : 62 "enabled", 62 "enabled", 63 "php_version" => phpversion() 64 ); 83 } 84 } elseif ($exception_type == 'php') { 85 $errors = array(); 85 $errors = array(); 86 // create php error report 87 $i = 0;tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * usally called as form action from tbl_change.php to insert or update table rows 7 * 7 * 8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $ 9 * 54 */ 55require_once './libraries/common.inc.php'; 56 69 $GLOBALS['js_include'][] = 'tbl_change.js'; 70 require_once './libraries/header.inc.php'; 71 require './tbl_change.php'; 77 $url_params['after_insert'] = $_REQUEST['after_insert']; 78 //$GLOBALS['goto'] = 'tbl_change.php'; 79 $goto_include = 'tbl_change.php';tcpdf_adapter.cls.php https://gitlab.com/devdoblea/factutextil.local | PHP | 498 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'); 43editar_factura_prov.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 434 lines
1<?php 2 2 3require_model('asiento.php'); 4require_model('asiento_factura.php'); 4require_model('asiento_factura.php'); 5require_model('divisa.php'); 6require_model('fabricante.php'); 6require_model('fabricante.php'); 7require_model('forma_pago.php'); 8require_model('proveedor.php'); 8require_model('proveedor.php'); 9require_model('recibo_proveedor.php'); 10 104 /// paso 1, eliminamos los asientos asociados 105 if( !is_null($this->factura->idasiento) ) 106 {class-vc-edit-form-fields.php https://gitlab.com/rubengrb/ws.vidrialum | PHP | 328 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 111 protected function parseShortcodeAttributeValue( $param_settings, $value ) { 112 if ( is_null( $value ) ) { // If value doesn't exists 113 if ( isset( $param_settings['std'] ) ) { 206 $deprecated = $this->setting( 'deprecated' ); 207 require_once vc_path_dir( 'AUTOLOAD_DIR', 'class-vc-settings-presets.php' ); 208 $list_vendor_presets = Vc_Settings_Preset::listVendorSettingsPresets( $this->tag ); 227 $name = isset( $param['param_name'] ) ? $param['param_name'] : null; 228 if ( ! is_null( $name ) ) { 229 $value = isset( $this->atts[ $name ] ) ? $this->atts[ $name ] : null; 310 * List of params stored in global variable $vc_params_list. 311 * Please check include/params/load.php for default params list. 312 * @since 4.4Client.php https://github.com/Exercise/zf2.git | PHP | 331 lines
1<?php 2/** 217 { 218 if (!is_null($method)) { 219 $this->setMethod($method);SfObjectBuilder.php https://github.com/Kazuhiro-Murota/OpenPNE3.git | PHP | 392 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);linea_albaran_cliente.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 509 lines
1<?php 2/* 6 7require_model('articulo.php'); 8require_model('albaran_cliente.php'); 233 { 234 return 'index.php?page=ventas_albaran&id='.$this->idalbaran; 235 } 238 { 239 if( is_null($this->referencia) OR $this->referencia == '') 240 { 240 { 241 return "index.php?page=ventas_articulos"; 242 } 243 else 244 return "index.php?page=ventas_articulo&ref=".urlencode($this->referencia); 245 }User.php https://github.com/gryzz/crystal_magento.git | PHP | 420 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 86 87 if ( !is_null($this->getIsActive()) ) { 88 $data['is_active'] = intval($this->getIsActive());Engine.php https://github.com/xoops-pi/engine.git | PHP | 287 lines
1<?php 2/** 13 * @license http://www.fsf.org/copyleft/gpl.html GNU public license 14 * @author Taiwen Jiang <phppp@users.sourceforge.net> 15 * @since 3.0 30 */ 31require SMARTY_DIR . 'Smarty.class.php'; 32 39 if (substr($_class, 0, 16) === 'smarty_internal_' || $_class == 'smarty_security') { 40 return SMARTY_SYSPLUGINS_DIR . $_class . '.php'; 41 } 106 $segs = array(); 107 $segs[] = is_null($module_dirname) 108 ? XOOPS::config('identifier') 109 : $module_dirname; 110 $segs[] = is_null($theme_set) 111 ? XOOPS::config('theme_set')interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
27 <a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&hmbkp_download_backup=' . $encoded_file . '&hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-download_backup' ); ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> | 28 <a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&hmbkp_delete_backup=' . $encoded_file . '&hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-delete_backup' ); ?>" class="delete-action"><?php _e( 'Delete', 'hmbkp' ); ?></a> 29 71 function hmbkp_safe_mode_warning() { 72 echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is running in %2$s, please contact your host and ask them to disable it. BackUpWordPress may not work correctly whilst %3$s is on.', 'hmbkp' ), '<code>PHP</code>', sprintf( '<a href="%1$s">%2$s</a>', __( 'http://php.net/manual/en/features.safe-mode.php', 'hmbkp' ), __( 'Safe Mode', 'hmbkp' ) ), '<code>' . __( 'Safe Mode', 'hmbkp' ) . '</code>' ) . '</p></div>'; 73 } 119 if ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) ) 120 $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\'ll find me under <strong>Tools → Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools → Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] ); 121 251 <?php if ( $schedule->get_type() !== 'database' ) { ?> 252 <a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_excludes_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Excludes', 'hmbkp' ); ?></a> | 253 <?php } ?> 254 255 <a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a> | 256Dispatcher.php https://gitlab.com/kimting254/wbms | PHP | 486 lines
1<?php namespace Illuminate\Events; 2 222 // listeners. Otherwise we will add the response on the response list. 223 if ( ! is_null($response) && $halt) 224 {User_agent.php https://gitlab.com/RikaPM/manik | 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 {Data.php https://bitbucket.org/acidel/buykoala.git | PHP | 363 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 118 { 119 if (is_null($this->_queryText)) { 120 $this->_queryText = $this->_getRequest()->getParam($this->getQueryParamName());CacheBase.php https://gitlab.com/ilyales/vigma | PHP | 368 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 voidURI.php https://gitlab.com/unofficial-mirrors/moodle | 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);Settings.php https://gitlab.com/team_fsn/fsn-php | PHP | 387 lines
1<?php 2/** 2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_Settings 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../'); 34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 35} 118 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management 119 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 120 * @return boolean Success or failure 138 * for Zip file management 139 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 140 */class.jetpack-xmlrpc-server.php https://gitlab.com/relacilia/cakra | PHP | 429 lines
1<?php 2 153 function error( $error = null ) { 154 if ( !is_null( $error ) ) { 155 $this->error = $error; 340 $url = (string) $json_api_args[1]; 341 $post_body = is_null( $json_api_args[2] ) ? null : (string) $json_api_args[2]; 342 $user_details = (array) $json_api_args[4]; 404 // needed? 405 require_once ABSPATH . 'wp-admin/includes/admin.php'; 406 406 407 require_once JETPACK__PLUGIN_DIR . 'class.json-api.php'; 408 $api = WPCOM_JSON_API::init( $method, $url, $post_body ); 409 $api->token_details['user'] = $user_details; 410 require_once JETPACK__PLUGIN_DIR . 'class.json-api-endpoints.php'; 411lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 305 lines
1<?php 2 79 global $CFG; 80 require_once("$CFG->libdir/resourcelib.php"); 81 88 // fix invalid null popup and options data 89 if (!array_key_exists('popup', $data) or is_null($data['popup'])) { 90 $data['popup'] = ''; 91 } 92 if (!array_key_exists ('options', $data) or is_null($data['options'])) { 93 $data['options'] = ''; 113 // use the version of the successor instead of the current mod/resource 114 // beware - the version.php declares info via $module object, do not use 115 // a variable of such name here 116 $module = new stdClass(); 117 include $CFG->dirroot.'/mod/'.$successor->get_modname().'/version.php'; 118 $cminfo['version'] = $module->version;EditView.php https://github.com/AlixBarbosa/SCRMCE.git | PHP | 349 lines
1<?php 2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 45 46require_once('modules/Campaigns/utils.php'); 47 74//needed when creating a new case with default values passed in 75if(isset($_REQUEST['contact_name']) && is_null($focus->contact_name)) { 76 $focus->contact_name = $_REQUEST['contact_name']; 77} 78if(isset($_REQUEST['contact_id']) && is_null($focus->contact_id)) { 79 $focus->contact_id = $_REQUEST['contact_id']; 80} 81if(isset($_REQUEST['parent_name']) && is_null($focus->parent_name)) { 82 $focus->parent_name = $_REQUEST['parent_name']; 83} 84if(isset($_REQUEST['parent_id']) && is_null($focus->parent_id)) { 85 $focus->parent_id = $_REQUEST['parent_id'];Cache.php https://gitlab.com/jslee1/PrestaShop | PHP | 400 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 22 * @copyright 2007-2015 PrestaShop SA 23 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24 * International Registered Trademark & Property of PrestaShop SA 258 259 if (is_null($this->sql_tables_cached)) { 260 $this->sql_tables_cached = $this->get(Tools::encryptIV(self::SQL_TABLES_NAME)); 323 { 324 if (is_null($this->sql_tables_cached)) { 325 $this->sql_tables_cached = $this->get(Tools::encryptIV(self::SQL_TABLES_NAME)); 362 { 363 // PHP is not efficient at storing array 364 // Better delete the whole cache if there areclass-wc-shortcode-my-account.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
1<?php 2/** 32 // Check cart class is loaded or abort 33 if ( is_null( WC()->cart ) ) { 34 return; 50 51 wc_get_template( 'myaccount/form-login.php' ); 52 90 91 wc_get_template( 'myaccount/my-account.php', array( 92 'current_user' => get_user_by( 'id', get_current_user_id() ), 266 if ( empty( $wp_hasher ) ) { 267 require_once ABSPATH . 'wp-includes/class-phpass.php'; 268 $wp_hasher = new PasswordHash( 8, true ); 310 if ( empty( $wp_hasher ) ) { 311 require_once ABSPATH . 'wp-includes/class-phpass.php'; 312 $wp_hasher = new PasswordHash( 8, true );DatabaseHandle.php https://gitlab.com/tomgidden/php-DatabaseObject | PHP | 375 lines
1<?php 2 /* DatabaseHandle 6 7require_once('DatabaseObject/common/vars.php'); 8 19 * 20 * The prepared query caching may not be necessary, as I think DB.php 21 * does this itself. 50 // If there is no DSN, and there's a global one defined, use it. 51 if(is_null($dsn)) 52 if(defined('DSN')) 171 // Remove the stupid SQL dump at the start of the message 172 if(!is_null($msg)) 173 if(preg_match('/^.*?\[nativecode=([^\]]+)\]$/', $msg, $parts)) 181 // If $msg is still null, then everything's fine 182 if(is_null($msg)) { 183 $this->sqllog[] = array(true, $end-$start, $sql, $params, null);install.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 259 lines
20 <h2>Error: PHP is not running</h2> 21 <p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p> 22</body> 66<body class="wp-core-ui<?php if ( is_rtl() ) echo ' rtl'; ?>"> 67<h1 id="logo"><a href="<?php echo esc_url( __( 'http://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></h1> 68 152$mysql_version = $wpdb->db_version(); 153$php_compat = version_compare( $php_version, $required_php_version, '>=' ); 154$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); 156if ( !$mysql_compat && !$php_compat ) 157 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); 158elseif ( !$php_compat ) 158elseif ( !$php_compat ) 159 $compat = sprintf( __( 'You cannot install because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ); 160elseif ( !$mysql_compat )Lexer.php https://bitbucket.org/jhunsinfotech/blue-blues.git | PHP | 298 lines
1<?php 2 87 88 if (is_null($lexer)) { do { 89 // auto-detection algorithm 129 130 // once PHP DOM implements native line numbers, or we 131 // hack out something using XSLT, remove this stipulationMethodProphecySpec.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 342 lines
1<?php 2 4 5use PhpSpec\ObjectBehavior; 6use Prophecy\Argument\ArgumentsWildcard; 57 58 function its_constructor_does_not_touch_third_argument_if_it_is_null($objectProphecy) 59 {ProblemsetIdentityRequest.php https://github.com/omegaup/omegaup.git | PHP | 374 lines
1<?php 2/** ************************************************************************ * 73 ( 74 !is_null($Problemset_Identity_Request->accepted) ? 75 intval($Problemset_Identity_Request->accepted) : 114 ( 115 is_null($Problemset_Identity_Request->accepted) ? 116 null : 120 ( 121 is_null($Problemset_Identity_Request->identity_id) ? 122 null : 125 ( 126 is_null($Problemset_Identity_Request->problemset_id) ? 127 null : 280 '; 281 if (!is_null($orden)) { 282 $sql .= (translations.php https://gitlab.com/Gashler/dp | PHP | 275 lines
1<?php 2/** 4 * 5 * @version $Id: translations.php 718 2012-10-31 00:32:02Z nbachiyski $ 6 * @package pomo 9 10require_once dirname(__FILE__) . '/entry.php'; 11 143 function gettext_select_plural_form($count) { 144 if (!isset($this->_gettext_select_plural_form) || is_null($this->_gettext_select_plural_form)) { 145 list( $nplurals, $expression ) = $this->nplurals_and_expression_from_header($this->get_header('Plural-Forms')); 175 * Adds parantheses to the inner parts of ternary operators in 176 * plural expressions, because PHP evaluates ternary oerators from left to right 177 *class.utils.php https://gitlab.com/sokeara/Tribal_Education | PHP | 351 lines
1<?php 2// Exit if accessed directly 49 $row = mysqli_fetch_row($res); 50 return is_null($row) ? 0 : $row[0]; 51 } 95 /** 96 * PHP_SAPI for fcgi requires a data flush of at least 256 97 * bytes every 40 seconds or else it forces a script hault 327 //FALL BACK: Windows XP has bug with glob, 328 //add secondary check for PHP lameness 329 if ($dh = opendir('.'))SpecialExport.php https://github.com/abma/spring-website.git | PHP | 414 lines
1<?php 2# Copyright (C) 2003-2008 Brion Vibber <brion@pobox.com> 101 } 102 if ( !is_null( $offset ) ) { 103 $history['offset'] = $offset; 266 $title = Title::newFromText( $page ); 267 if( is_null( $title ) ) continue; #TODO: perhaps output an <error> tag or something. 268 if( !$title->userCanRead() ) continue; #TODO: perhaps output an <error> tag or something.Debug.php https://github.com/hinablue/TextCube.git | PHP | 479 lines
1<?php 2/// Copyright (c) 2004-2016, Needlworks / Tatter Network Foundation 94 global $__tcSqlLog, $__tcSqlQueryBeginTime, $__tcSqlLogCount, $__tcPageStartTime, $__tcPageEndTime; 95 if (is_null($description)) { 96 $description = 'Point';Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 480 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 189 { 190 if (!is_null($store)) { 191 $this->getSelect()->where('relation.store_id IN (?)', $store); 268 269 if (!is_null($storeId)) { 270 $condition[] = $this->getConnection()->quoteInto('prelation.store_id = ?', $storeId); 349 350 if (!is_null($storeId)) { 351 $tagsCollection->addStoreFilter($storeId);lib.php https://gitlab.com/MotoSport/morgue | PHP | 307 lines
1<?php 2 26 ); 27 if (is_null($conn)) { 28 return array("status" => self::ERROR, 48 $assoc_column = 'ticket'; 49 if (is_null($conn)) { 50 return array("status" => self::ERROR, 67 $conn = $conn ?: Persistence::get_database_object(); 68 if (is_null($conn)) { 69 return array("status" => self::ERROR, 87 $table_name = 'jira'; 88 if (is_null($conn)) { 89 return array("status" => self::ERROR, 105 $conn = $conn ?: Persistence::get_database_object(); 106 if (is_null($conn)) { 107 return array("status" => self::ERROR,mysqli_stmt_affected_rows.php https://gitlab.com/iranjith4/hhvm | 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<?phpMoveFiles.php https://gitlab.com/shinvdu/ad | PHP | 278 lines
1<?php 2/* 23 */ 24require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php"; 25 110 // check #2 (resource type) 111 if (is_null($_resourceTypeConfig[$type])) { 112 $this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);ElementDef.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 216 lines
1<?php 2 185 } 186 if (!is_null($def->child)) { 187 $this->child = $def->child; 188 } 189 if (!is_null($def->formatting)) { 190 $this->formatting = $def->formatting;Download.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 317 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-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 93 94 if (is_null($this->_handle)) { 95 if ($this->_linkType == self::LINK_TYPE_URL) {compras_recibo.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 370 lines
1<?php 2 7 8require_model('asiento.php'); 9require_model('cuenta_banco.php'); 9require_model('cuenta_banco.php'); 10require_model('cuenta_banco_proveedor.php'); 11require_model('ejercicio.php'); 11require_model('ejercicio.php'); 12require_model('factura_proveedor.php'); 13require_model('forma_pago.php'); 13require_model('forma_pago.php'); 14require_model('pago_recibo_proveedor.php'); 15require_model('partida.php'); 15require_model('partida.php'); 16require_model('proveedor.php'); 17require_model('recibo_factura.php');index.php https://bitbucket.org/gopchu/gopchu.org.git | PHP | 421 lines
12 13 //require_once('markdown.php'); 14 23 if (!isset($BASE_URL)) { $BASE_URL = "/wigit"; } 24 if (!isset($SCRIPT_URL)) { $SCRIPT_URL = "$BASE_URL/index.php?r="; } 25 if (!isset($TITLE)) { $TITLE = "WiGit"; } 79 function getHTTPUser() { 80 // This code is copied from phpMyID. Thanks to the phpMyID dev(s). 81 if (function_exists('apache_request_headers') && ini_get('safe_mode') == false) { 87 $hdr = $_SERVER['HTTP_AUTHORIZATION']; 88 } elseif (isset($_ENV['PHP_AUTH_DIGEST'])) { 89 $hdr = $_ENV['PHP_AUTH_DIGEST']; 97 : $hdr; 98 if (!is_null($digest)) { 99 $hdr = array();Indexer.php https://bitbucket.org/acidel/buykoala.git | PHP | 309 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 82 { 83 if (is_null($store)) { 84 $this->_getResource()->prepareFlatTables(); 105 { 106 if (is_null($store)) { 107 foreach (Mage::app()->getStores() as $store) { 129 { 130 if (is_null($store)) { 131 foreach (Mage::app()->getStores() as $store) {GetCharactersCharacterIdPlanetsPlanetIdOkRoutes.php https://gitlab.com/mglinski/php-esi-lib | PHP | 398 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 366 { 367 if (is_null($offset)) { 368 $this->container[] = $value;ConfigFile.class.php https://bitbucket.org/graaaf/garant.git | PHP | 503 lines
12 * 13 * @package phpMyAdmin 14 */ 17 /** 18 * Stores default PMA config from config.default.php 19 * @var array 79 $cfg = &$this->cfg; 80 include './libraries/config.default.php'; 81 $cfg['fontsize'] = '82%'; 87 $cfg_db = &$this->cfgDb; 88 include './libraries/config.values.php'; 89 294 * Returns default config value or $default it it's not set ie. it doesn't 295 * exist in config.default.php ($cfg) and config.values.php 296 * ($_cfg_db['_overrides'])Logical.php https://gitlab.com/team_fsn/fsn-php | PHP | 288 lines
22 * @package PHPExcel_Calculation 23 * @copyright Copyright (c) 2006 - 2014 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} 260 public static function STATEMENT_IF($condition = TRUE, $returnIfTrue = 0, $returnIfFalse = FALSE) { 261 $condition = (is_null($condition)) ? TRUE : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition); 262 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 262 $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); 263 $returnIfFalse = (is_null($returnIfFalse)) ? FALSE : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse); 264 282 $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue); 283 $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart); 284SqlServerGrammar.php https://gitlab.com/vincetang/mtweb | PHP | 551 lines
1<?php 2 532 { 533 if (!is_null($column->default)) { 534 return ' default '.$this->getDefaultValue($column->default);DateTime.php https://gitlab.com/rsilveira1987/Expresso | PHP | 258 lines
1<?php 2/** 59 /** 60 * Generate a datetime object from a string (much like PHP's strtotime function) 61 * @param string A date/time string to convert into a qCal_DateTime object 74 } 75 if (is_null($timezone) || !($timezone instanceof qCal_Timezone)) { 76 // @todo Make sure this doesn't cause any issues 177 * @param string $format The format that is to be used when this object is 178 * converted to a string. Use the same metacharacters that are used in PHP's date function 179 * @return $this 189 /** 190 * Format the date/time using PHP's date() function's meta-characters 191 * @param string $format Use the PHP date() function's meta-characters to convert this object to a stringwriter.php https://github.com/apache/zetacomponents.git | PHP | 332 lines
1<?php 2/** 259 260 if ( !is_null( $fieldDefinition->default ) && !$fieldDefinition->autoIncrement ) 261 {php.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();theme.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 323 lines
1<?php 2class CommentListTheme extends Themelet { 10 private function get_anon_colour($ip) { 11 if(is_null($this->ct)) { 12 $this->ct = hsl_rainbow(); 30 31 // aaaaaaargh php 32 assert(is_array($images));profile.php https://github.com/Br3nda/statusnet-debian.git | PHP | 345 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 26 27require_once 'invalidparameterexception.php'; 28require_once 'Validate.php'; 28require_once 'Validate.php'; 29require_once 'helper.php'; 30 95 96 if ($force_all || !is_null($this->profile_url)) { 97 $this->param_array['_profile'] = $this->profile_url; 99 100 if ($force_all || !is_null($this->homepage)) { 101 $this->param_array['_homepage'] = $this->homepage;BaseDrawing.php https://github.com/konscript/roskilde-el-old.git | PHP | 502 lines
37/** PHPExcel_IComparable */ 38require_once PHPEXCEL_ROOT . 'PHPExcel/IComparable.php'; 39 40/** PHPExcel_Worksheet */ 41require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet.php'; 42 43/** PHPExcel_Worksheet_Drawing_Shadow */ 44require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet/Drawing/Shadow.php'; 45 52 */ 53class PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable 54{ 256 } else { 257 throw new Exception("A PHPExcel_Worksheet has already been assigned. Drawings can only exist on one PHPExcel_Worksheet."); 258 }pdo_mysql_prepare_native.php https://gitlab.com/iranjith4/hhvm | PHP | 332 lines
1<?php 2 require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc'); 36 37 if (is_null($input_params)) 38 $input_params = array(); 327?> 328<?php 329require dirname(__FILE__) . '/mysql_pdo_test.inc';Localization.class.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 488 lines
1<?php 2include_once 'persian.php'; 13 * 14 * This class will set up PHP environment to mach locale settings (using 15 * setlocale() function) and import apropriate set of words from language 102 function lang($name, $default = null) { 103 if (is_null($default)) { 104 $default = "{$this->locale}($name)"; 152 // Get settings file path and include it 153 $settings_file = $locale_dir.'/'.$locale.'.php'; 154 if (!is_file($settings_file)) { 195 */ 196 private function loadLanguageFiles($dir, $ext = 'php') { 197 trace(__FILE__,"loadLanguageFiles($dir, $ext):begin"); 217 * @access public 218 * @param $fmt (see date() in php.net) 219 * @param $timestampgravityforms-update-post.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 461 lines
1<?php 2/* 94 <label for="field_unique_custom_meta_value" class="inline"> 95 <?php _e('Unique Custom Field?'); ?> 96 <?php gform_tooltip('form_field_unique_custom_meta_value') ?> 100 101<?php 102 endif; 124 </script> 125<?php 126 } 385 { 386 if (!is_user_logged_in() || is_null($this->post['object']) || !in_array($type, array_keys($this->options['capabilities']))) 387 { 427 428 if (is_null($this->post['type_object'])) 429 {Repository.php https://gitlab.com/rmoshiur81/Larave-Grading | PHP | 521 lines
1<?php 2 112 { 113 return ! is_null($this->get($key)); 114 } 130 131 if (is_null($value)) { 132 $this->fireCacheEvent('missed', [$key]); 160 foreach ($values as $key => &$value) { 161 if (is_null($value)) { 162 $this->fireCacheEvent('missed', [$key]); 204 205 if (! is_null($minutes)) { 206 $this->store->put($this->itemKey($key), $value, $minutes); 222 223 if (! is_null($minutes)) { 224 $this->store->putMany($values, $minutes);Collection.php https://bitbucket.org/kdms/sh-magento.git | PHP | 371 lines
1<?php 2/** 227 $dtFormat = Varien_Date::DATE_INTERNAL_FORMAT; 228 $periodFrom = (!is_null($this->_from) ? new Zend_Date($this->_from, $dtFormat) : null); 229 $periodTo = (!is_null($this->_to) ? new Zend_Date($this->_to, $dtFormat) : null);controller.php https://bitbucket.org/DenizYldrm/openemr.git | PHP | 301 lines
1<?php 2 // Copyright (C) 2010-2011 Aron Racho <aron@mi-squred.com> 13 $rule = $this->getRuleManager()->getRule( $ruleId ); 14 if (is_null($rule)) { 15 $rule = $this->getRuleManager()->newRule(); 18 $this->viewBean->rule = $rule; 19 $this->set_view( "summary.php" ); 20 } 25 $title = _post('fld_title'); 26 if ( is_null($rule_id)) { 27 // its a new rule submit 30 // redirect to the intervals page 31 $this->redirect("index.php?action=edit!intervals&id=$ruleId"); 32 } else { 32 } else { 33 $this->redirect("index.php?action=detail!view&id=$ruleId"); 34 }Translator.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 416 lines
1<?php 2 115 116 if (! is_null($line)) { 117 break; 311 312 if (is_null($segments[0])) { 313 $segments[0] = '*';FileTest.php https://gitlab.com/link233/bootmw | PHP | 386 lines
1<?php 2 184 185 if ( !is_null( $data['tmpBucketedThumbCache'] ) ) { 186 $reflection_property = $reflection->getProperty( 'tmpBucketedThumbCache' );sftp.php https://gitlab.com/wuhang2003/core | PHP | 467 lines
1<?php 2/** 35use Icewind\Streams\RetryWrapper; 36use phpseclib\Net\SFTP\Stream; 37 38/** 39* Uses phpseclib's Net\SFTP class and the Net\SFTP\Stream stream wrapper to 40* provide access to SFTP servers. 115 * 116 * @return \phpseclib\Net\SFTP connected client instance 117 * @throws \Exception when the connection failed 119 public function getConnection() { 120 if (!is_null($this->client)) { 121 return $this->client; 280 // workaround: stray stat cache entry when deleting empty folders 281 // see https://github.com/phpseclib/phpseclib/issues/706 282 $this->getConnection()->clearStatCache();Validator.php https://bitbucket.org/ngmares/moodle.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) {Grammar.php https://github.com/sergiosgc/Structures_Grammar.git | PHP | 407 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */ 37 { 38 if (is_null($this->startSymbol) && $this->isContextFree() && count($this->rules) > 0) { 39 $this->startSymbol = $this->rules[0]->getLeftSymbol(0); 80 { 81 if (is_null($this->nonTerminals)) $this->computeTerminals(); 82 if (!$value instanceof Structures_Grammar_Symbol) $value = Structures_Grammar_Symbol::create($value); 130 { 131 if (is_null($this->terminals)) $this->computeTerminals(); 132 if (!$value instanceof Structures_Grammar_Symbol) $value = Structures_Grammar_Symbol::create($value); 143 { 144 if (is_null($this->terminals)) $this->computeTerminals(); 145 return $this->terminals; 328 { 329 if (is_null($this->nullableSymbolSet)) $this->computeNullableSymbolSet(); 330 return $this->nullableSymbolSet->symbolExists($symbol);frame_reflower.cls.php https://gitlab.com/techniconline/kmc | PHP | 454 lines
1<?php 2/** 139 { 140 if (!is_null($this->_min_max_cache)) { 141 return $this->_min_max_cache;user.class.php https://github.com/goldfrapper/DMS.git | PHP | 403 lines
1<?php 2/** 123 $pdo = new DMS_DB_PDO(); 124 if(is_null($code)) { 125 $this->code = md5(uniqid('dms_'));cookie.php https://github.com/adivik2000/nigraha.git | PHP | 505 lines
1<?php 2/* SVN FILE: $Id: cookie.php 5318 2007-06-20 09:01:21Z phpnut $ */ 3/** 7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> 11 * Copyright 2005-2007, Cake Software Foundation, Inc. 19 * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. 20 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 21 * @package cake 22 * @subpackage cake.cake.libs.controller.components 23 * @since CakePHP(tm) v 1.2.0.4213 24 * @version $Revision: 5318 $