PageRenderTime 199ms queryFilters 1ms Sphinxql 35ms app.CodeModel.GetByIds 23ms findMatchingLines 75ms GetByIds 98ms meta 0ms repositoryFilters 10ms languageFilters 0ms sourceFilters 4ms

60,014 results for 'php is_null repo:sebs/mosolar' (199 ms)

Source

Language

Repository

LinqToZendDb.php https://PHPLinq.svn.codeplex.com/svn | PHP | 1,202 lines
53/** Register ILinqProvider */
54PHPLinq_Initiator::registerProvider('PHPLinq_LinqToZendDb');
55
757	public function where($expression) {
758		$this->_where = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
759		return $this;
790	public function takeWhile($expression) {
791		$this->_takeWhile = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
792		return $this;
801	public function skipWhile($expression) {
802		$this->_skipWhile = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
803		return $this;
860	public function distinct($expression) {
861		$this->_distinct = !is_null($expression) ? new PHPLinq_Expression($expression, $this->_from) : null;
862		return $this;
class.phpwsdlclient.php http://php-wsdl-creator.googlecode.com/svn/trunk/ | PHP | 693 lines
25
26require_once(dirname(__FILE__).'/class.phpwsdl.php');
27
284				$uri=$this->WsdlUri;
285			PhpWsdl::Debug('Create a PHP SoapClient object in PhpWsdlClient from '.$uri);
286			if(!is_null(PhpWsdl::$CacheFolder)){
446	public function ParseWsdl(){
447		if(!is_null($this->ServiceName)&&!is_null($this->EndPoint)&&!is_null($this->NameSpace))
448			return;
500	public function CreatePhpSoapClient($filename=null,$options=Array()){
501		$php=$this->CreateServerFromWsdl()->OutputPhp(false,false,$options);
502		if(!is_null($filename))
527			'wsdluri'		=>	$wsdluri,
528			'filename'		=>	(is_null(PhpWsdl::$CacheFolder))?null:PhpWsdl::$CacheFolder.'/client-'.sha1((is_null($wsdluri))?$this->WsdlUri:$wsdluri).'.wsdl'
529		);
Functions.php git://github.com/indowebit/Ext-PHP.git | PHP | 12,038 lines
5810												  break;
5811			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour-1, $minute, $second));	// -2147468400; //	-2147472000 + 3600
5812												  break;
5901			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
5902			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
5903
5954			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
5955				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
5956			} else {
6754												  break;
6755			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6756												  break;
6793												  break;
6794			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6795												  break;
setup.php git://github.com/thorsten/phpMyFAQ.git | PHP | 935 lines
26
27define('COPYRIGHT', '&copy; 2001-2012 <a href="http://www.phpmyfaq.de/">phpMyFAQ Team</a> | Follow us on <a href="http://twitter.com/phpMyFAQ">Twitter</a> | All rights reserved.');
28define('PMF_ROOT_DIR', dirname(__DIR__));
79
80    <title>phpMyFAQ <?php print PMF_System::getVersion(); ?> Setup</title>
81
465            <input class="btn-primary btn-large" type="submit"
466                   value="Click to install phpMyFAQ <?php print PMF_System::getVersion(); ?>" />
467        </div>
794        <iframe onload="iframeUpdated();" name="questionaireResult" style="display:none"></iframe>
795        <form action="http://www.phpmyfaq.de/stats/getstatdata.php" method="post" target="questionaireResult"
796              id="questionnaireForm" class="form-horizontal">
803                If you don't want to participate in the survey, you can directly visit
804                <a href="../index.php">your version of phpMyFAQ</a> or login into your
805                <a href="../admin/index.php">admin section</a>.
limonade.php git://github.com/sofadesign/limonade-blog-example.git | PHP | 2,289 lines
1<?php
2                                                                  
62define('E_LIM_HTTP',            32768);
63define('E_LIM_PHP',             65536);
64define('E_LIM_DEPRECATED',      35000);
71
72# for PHP 5.3.0 <
73if(!defined('E_DEPRECATED'))      define('E_DEPRECATED', 8192);
197  $name = array_shift($args);
198  if(is_null($name)) return $options;
199  if(!empty($args))
995
996      if($request_uri."index.php" == $base_path) $request_uri .= "index.php";
997  	  $uri = str_replace($base_path, '', $request_uri);
1649  static $_name = null;
1650  if(is_null($name) && !is_null($_name))
1651  {
Yahoo.inc git://github.com/yahoo/yos-social-php.git | Pascal | 2,008 lines
1<?php
2
5 *
6 *  @package     yos-social-php
7 *  @author      Yahoo! Developer Network
7 *  @author      Yahoo! Developer Network
8 *  @example     http://developer.yahoo.com/social/sdk/php/
9 *
10 *  @copyright   Copyright (c) 2009 Yahoo! Inc. All rights reserved.
11 *  @license     BSD License (http://www.opensource.org/licenses/bsd-license.php)
12 *
46 *
47 *  Documentation: http://developer.yahoo.com/social/sdk/php/
48 */
1837        $sdkVersion = "1.2";
1838        $agent = sprintf("YosPhpSdk/%s php/%s", $sdkVersion, phpversion());
1839        curl_setopt($ch, CURLOPT_USERAGENT, $agent);
underscore.phpt git://github.com/runekaagaard/snowscript.git | Unknown | 1,151 lines
3--FILE--
4<?php
5require dirname(__FILE__) . '/../bootstrap_tests.php';
6
7snowscript_to_php(<<<'SNOW'
8# Underscore.php v1.3.1
10  Copyright (c) 2011 Brian Haveri
11  Underscore.php is licensed under the MIT license
12  Underscore.php was inspired by and borrowed from Underscore.js
12  Underscore.php was inspired by and borrowed from Underscore.js
13  For docs, license, tests, and downloads, see: http://brianhaveri.github.com/Underscore.php
14
29--EXPECT--
30<?php
31echo 'Hello, Snowscript World!';
TwitterApiClient.class.php git://github.com/n1k0/phptwitterbot.git | PHP | 815 lines
1<?php
2require_once dirname(__FILE__).'/TwitterApiServer.class.php';
2require_once dirname(__FILE__).'/TwitterApiServer.class.php';
3require_once dirname(__FILE__).'/Tweet.class.php';
4require_once dirname(__FILE__).'/TweetCollection.class.php';
4require_once dirname(__FILE__).'/TweetCollection.class.php';
5require_once dirname(__FILE__).'/TwitterDirectMessage.class.php';
6require_once dirname(__FILE__).'/TwitterDirectMessageCollection.class.php';
6require_once dirname(__FILE__).'/TwitterDirectMessageCollection.class.php';
7require_once dirname(__FILE__).'/TwitterUser.class.php';
8require_once dirname(__FILE__).'/TwitterUserCollection.class.php';
13 * Credits:
14 *  - Some parts of the code are based on the work of Tijs Verkoyen on the PHPTwitter project (BSD licensed)
15 *
23    $server    = null,
24    $userAgent = 'PHPTwitterBot (http://code.google.com/p/phptwitterbot/)';
25
securimage.php git://github.com/dapphp/securimage.git | PHP | 3,770 lines
1<?php
2
35 *
36 * @link https://www.phpcaptcha.org Securimage Homepage
37 * @link https://www.phpcaptcha.org/latest.zip Download Latest Version
37 * @link https://www.phpcaptcha.org/latest.zip Download Latest Version
38 * @link https://github.com/dapphp/securimage GitHub page
39 * @link https://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
69 3.6.4
70 - Fix XSS vulnerability in example_form.ajax.php (Discovered by RedTeam. advisory rt-sa-2016-002)
71 - Update example_form.ajax.php to use Securimage::getCaptchaHtml()
232    // They can be passed as an array to the Securimage constructor, set below,
233    // or set from securimage_show.php and securimage_play.php
234
696     * @var string The character encoding (e.g. UTF-8, UTF-7, EUC-JP, GB2312)
697     * @see http://php.net/manual/en/mbstring.supported-encodings.php
698     * @since 3.6.3
popup.php git://pkgs.fedoraproject.org/zabbix | PHP | 2,045 lines
1<?php
2/*
21
22require_once dirname(__FILE__).'/include/config.inc.php';
23require_once dirname(__FILE__).'/include/hosts.inc.php';
23require_once dirname(__FILE__).'/include/hosts.inc.php';
24require_once dirname(__FILE__).'/include/triggers.inc.php';
25require_once dirname(__FILE__).'/include/items.inc.php';
25require_once dirname(__FILE__).'/include/items.inc.php';
26require_once dirname(__FILE__).'/include/users.inc.php';
27require_once dirname(__FILE__).'/include/nodes.inc.php';
27require_once dirname(__FILE__).'/include/nodes.inc.php';
28require_once dirname(__FILE__).'/include/js.inc.php';
29require_once dirname(__FILE__).'/include/discovery.inc.php';
142}
143$page['file'] = 'popup.php';
144$page['scripts'] = array();
Functions.php https://bitbucket.org/tschope/codeigniter_basic.git | PHP | 12,055 lines
5901			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
5902			$excelDateValue = floor(Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
5903
5954			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
5955				$excelDateValue = Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
5956			} else {
5964													  break;
5965				case self::RETURNDATE_PHP_OBJECT	: return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']);
5966													  break;
6754												  break;
6755			case self::RETURNDATE_PHP_NUMERIC	: return (integer) Shared_Date::ExcelToPHP(Shared_Date::PHPToExcel($PHPDateObject));
6756												  break;
6793												  break;
6794			case self::RETURNDATE_PHP_NUMERIC	: return (integer) Shared_Date::ExcelToPHP(Shared_Date::PHPToExcel($PHPDateObject));
6795												  break;
limonade.php https://bitbucket.org/ashwanthkumar/blueignis-ui.git | PHP | 2,667 lines
1218 *   a function, an object method, a static method or a closure.
1219 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1220 *   to learn more about callbacks.
1864 *   or an object and the name of a method within the object
1865 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1866 *   to learn more about callbacks.
2569   * For PHP 5 < 5.3.0 (backward compatibility)
2570   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2571   * 
2604 * This implementation no longer requires 
2605 * {@link http://www.php.net/manual/en/book.filter.php the filter extenstion}, 
2606 * so it will improve compatibility with older PHP versions.
2620 * For PHP 5 < 5.1.0 (backward compatibility)
2621 * (from {@link http://www.php.net/manual/en/function.htmlspecialchars-decode.php#82133})
2622 * 
pluginlib.php https://bitbucket.org/bmbrands/swets.git | PHP | 1,497 lines
399     * Passing the parameter $typeclass allows us to reach the same effect as with the
400     * late binding in PHP 5.3. Once PHP 5.3 is required, we can refactor this to use
401     * {@example $plugin = new static();} instead of {@example $plugin = new $typeclass()}
662
663        if (is_null($this->versiondb) and is_null($this->versiondisk)) {
664            return plugin_manager::PLUGIN_STATUS_NODB;
665
666        } else if (is_null($this->versiondb) and !is_null($this->versiondisk)) {
667            return plugin_manager::PLUGIN_STATUS_NEW;
668
669        } else if (!is_null($this->versiondb) and is_null($this->versiondisk)) {
670            return plugin_manager::PLUGIN_STATUS_MISSING;
1203
1204        if (!empty($this->rootdir) and (file_exists($this->rootdir . '/settings.php') or file_exists($this->rootdir . '/settingstree.php'))) {
1205            return new moodle_url('/admin/settings.php', array('section' => 'modsetting' . $this->name));
Functions.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 12,038 lines
5810												  break;
5811			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour-1, $minute, $second));	// -2147468400; //	-2147472000 + 3600
5812												  break;
5901			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
5902			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
5903
5954			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
5955				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
5956			} else {
6754												  break;
6755			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6756												  break;
6793												  break;
6794			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6795												  break;
Blob.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 2,142 lines
1<?php
2/**
25 */
26#require_once 'Zend/Service/WindowsAzure/Storage.php';
27
30 */
31#require_once 'Zend/Service/WindowsAzure/Storage/BlobInstance.php';
32
35 */
36#require_once 'Zend/Service/WindowsAzure/Storage/BlobContainer.php';
37
40 */
41#require_once 'Zend/Service/WindowsAzure/Storage/PageRegionInstance.php';
42
45 */
46#require_once 'Zend/Service/WindowsAzure/Storage/LeaseInstance.php';
47
Blob.php https://bitbucket.org/jfrubiom/zendframework-1.x.git | PHP | 2,139 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Blob.php 24593 2012-01-05 20:35:02Z matthew $
21 */
25 */
26require_once 'Zend/Service/WindowsAzure/Storage.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Storage/BlobInstance.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/Storage/BlobContainer.php';
37
40 */
41require_once 'Zend/Service/WindowsAzure/Storage/PageRegionInstance.php';
42
gdgraph.php https://github.com/Ixxy/Open-Affiliates.git | PHP | 1,103 lines
179	function line_graph($data, $color=Array(), $x_ls=Array(), $x_t="", $y_t="", $inc_dot=true, $l_t=Array(), $g_per=0, $x_rl=NULL,  $x_ru=NULL, $y_rl=NULL,  $y_ru=NULL){
180		if((((!is_null($x_rl)) && (!is_null($x_ru))) && ($x_rl >= $x_ru)) || (((!is_null($y_rl)) && (!is_null($y_ru))) && ($y_rl >= $y_ru)))
181			die("Lower ranges of either X or Y can't be greater or equal to their upper ranges.");
194		//Now we do that with the data array
195		if ((!is_null($x_rl)) && (!is_null($x_ru))){
196			foreach($data as $prod => $sub_data)
327		//Obtaining max Y value
328		if (!($all_down) && !($all_up) && (is_null($y_rl)) && (is_null($y_ru)))
329			//Thanks to chris (chrego3-1 at yahoo dot fr) for this next line of code
362			if((($all_up) && ($line_count == ($x_axis_count-1))) || (!($all_up) && ($line_count == $x_axis_count))){
363				if ($all_up || ((!$all_down) && (is_null($y_rl)) && (is_null($y_ru))))
364					$current_y_value = 0;		//to avoid PHP putting something like "1628E-90" instead of 0
401				$x_axis_y = $current_y_pos;
402				if ($all_up || ((!$all_down) && (is_null($y_rl)) && (is_null($y_ru))))
403					$current_y_value = 0;		//to avoid PHP putting something like "1628E-90" instead of 0
gradelib.php https://github.com/lsuits/moodle.git | PHP | 1,501 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
30require_once($CFG->libdir . '/grade/grade_category.php');
31require_once($CFG->libdir . '/grade/grade_item.php');
32require_once($CFG->libdir . '/grade/grade_grade.php');
32require_once($CFG->libdir . '/grade/grade_grade.php');
33require_once($CFG->libdir . '/grade/grade_scale.php');
34require_once($CFG->libdir . '/grade/grade_outcome.php');
34require_once($CFG->libdir . '/grade/grade_outcome.php');
35require_once($CFG->libdir . '/grade/grade_anonymous.php');
36
72
73    if (is_null($courseid) or is_null($itemtype)) {
74        debugging('Missing courseid or itemtype');
1006            //dont include default empty grades created when activities are created
1007            if (!is_null($oldgrade->finalgrade) || !is_null($oldgrade->feedback)) {
1008                $recoveredgrades = true;
Underscore.php https://github.com/michanismus/phalcon-boilerplate.git | PHP | 931 lines
1<?php
2
3/**
4 * Underscore.php v1.0
5 * Copyright (c) 2013 Jonathan Aquino
6 *
7 * This is a fork of Brian Haveri's Underscore.php. I have removed the
8 * object-oriented way of calling the functions, and changed all functions to
8 * object-oriented way of calling the functions, and changed all functions to
9 * static. This eliminates the E_STRICT warnings under PHP >=5.4.
10 *
10 *
11 * Underscore.php is licensed under the MIT license
12 * Underscore.php was inspired by and borrowed from Underscore.js
12 * Underscore.php was inspired by and borrowed from Underscore.js
13 * For docs, license, tests, and downloads, see: https://github.com/JonathanAquino/Underscore.php
14 */
securimage.php https://github.com/iisafriyanti/pkm.git | PHP | 2,210 lines
1<?php
2
6 * Project:     Securimage: A PHP class for creating and managing form CAPTCHA images<br />
7 * File:        securimage.php<br />
8 *
38 *
39 * @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
40 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
40 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
41 * @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
42 * @copyright 2013 Drew Phillips
64 3.2RC3
65 - Fix canSendHeaders() check which was breaking if a PHP startup error was issued
66
165    // They can be passed as an array to the Securimage constructor, set below,
166    // or set from securimage_show.php and securimage_play.php
167
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21