PageRenderTime 212ms queryFilters 0ms Sphinxql 26ms app.CodeModel.GetByIds 70ms findMatchingLines 61ms GetByIds 131ms meta 0ms repositoryFilters 6ms languageFilters 0ms sourceFilters 2ms

60,014 results for 'php is_null repo:younggive/WordPress' (212 ms)

Source

Language

Repository

Table.php https://github.com/kleky/MeetingPlace.git | PHP | 960 lines
1<?php
2/**
38 */
39require_once 'Microsoft/WindowsAzure/Credentials/CredentialsAbstract.php';
40
43 */
44require_once 'Microsoft/WindowsAzure/Credentials/SharedKey.php';
45
48 */
49require_once 'Microsoft/WindowsAzure/Credentials/SharedKeyLite.php';
50
581		// Add continuation querystring parameters?
582		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
583		    if ($queryString !== '') {
662			// More entities?
663		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
664		        if (strpos($queryString, '$top') === false) {
utility.php https://github.com/DigitalPaulScholtenProject/DPSP-Platform.git | PHP | 1,583 lines
1<?php
2
9// Released under the GPL license
10// http://www.opensource.org/licenses/gpl-license.php
11//
27	if (!empty($str)) {
28		if (file_exists(CFCT_PATH.'error/exit.php')) {
29			include(CFCT_PATH.'error/exit.php');
45	if (!empty($str)) {
46		if (file_exists(CFCT_PATH.'misc/banner.php')) {
47			include(CFCT_PATH.'misc/banner.php');
117function cfct_default_file($dir) {
118	$fancy = $dir.'-default.php';
119	file_exists(CFCT_PATH.$dir.'/'.$fancy) ? $default = $fancy : $default = 'default.php';
249	// child theme path
250	$path = get_stylesheet_directory().'/'.$dir.'/'.$file.'.php';
251	// check for child theme first
book.php https://github.com/giovanisp/cops.git | PHP | 579 lines
1<?php
2/**
9require_once('base.php');
10require_once('serie.php');
11require_once('author.php');
11require_once('author.php');
12require_once('rating.php');
13require_once('publisher.php');
13require_once('publisher.php');
14require_once('tag.php');
15require_once('language.php');
17require_once('data.php');
18require_once('resources/php-epub-meta/epub.php');
19
358    public function getThumbnail ($width, $height, $outputfile = NULL) {
359        if (is_null ($width) && is_null ($height)) {
360            return false;
Slim.php https://bitbucket.org/spo6/chronoview | PHP | 1,169 lines
1<?php
2/**
2/**
3 * Slim - a micro PHP 5 framework
4 *
32
33//Ensure PHP session IDs only use the characters [a-z0-9]
34ini_set('session.hash_bits_per_character', 4);
46
47//This determines which errors are reported by PHP. By default, all
48//errors (including E_STRICT) are reported.
50
51//This tells PHP to auto-load classes using Slim's autoloader; this will
52//only auto-load a class file located in the same directory as Slim.php
53//whose file name (excluding the final dot and extension) is the same
54//as its class name (case-sensitive). For example, "View.php" will be
55//loaded when Slim uses the "View" class for the first time.
RatingsDb.php https://github.com/neymanna/fusionforge.git | PHP | 778 lines
1<?php // -*-php-*-
2rcs_id('$Id: RatingsDb.php,v 1.13 2005/10/10 19:51:41 rurban Exp $');
30    //define('RATING_STORAGE','WIKIPAGE');   // not fully supported yet
31// leave undefined for internal, slow php engine.
32//if (!defined('RATING_EXTERNAL'))
32//if (!defined('RATING_EXTERNAL'))
33//    define('RATING_EXTERNAL',PHPWIKI_DIR . 'suggest.exe');
34
277    // TODO:
278    // Use wikilens/RatingsUser.php for the php methods.
279    //
289        if (is_null($userid))    $userid   = $this->userid; 
290        if (is_null($pagename))  $pagename = $this->pagename;
291
318     *       Only the SUGGEST_EstimateAlpha part
319     * Take wikilens/RatingsUser.php for the php methods.
320     */
limonade.php https://github.com/sanemat/ktsukishima.git | PHP | 2,238 lines
1<?php
2                                                                  
13 *  @copyright Copyright (c) 2009 Fabrice Luraine
14 *  @license http://opensource.org/licenses/mit-license.php The MIT License
15 *  @package limonade
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))
997  	  
998      if($request_uri."index.php" == $base_path) $request_uri .= "index.php";
999  	  $uri = str_replace($base_path, '', $request_uri);
QDateTime.class.php https://github.com/tronics/qcodo.git | PHP | 801 lines
11	 * provides a nice wrapper around the PHP DateTime class, which is included with
12	 * all versions of PHP >= 5.2.0.
13	 * 
13	 * 
14	 * For legacy PHP users (PHP < 5.2.0), please refer to QDateTime.legacy
15	 */
349			// If HOUR or MINUTE is NULL...
350			if (is_null($intHour) || is_null($intMinute)) {
351				parent::setTime($intHour, $intMinute, $intSecond);
625					case 'Month':
626						if ($this->blnDateNull && (!is_null($mixValue)))
627							throw new QDateTimeNullException('Cannot set the Month property on a null date.  Use SetDate().');
716/*
717	This is a reference to the documentation for hte PHP DateTime classes (as of PHP 5.2)
718
Application.php https://github.com/chrismcband/PHPFrame.git | PHP | 1,014 lines
2/**
3 * PHPFrame/Application/Application.php
4 *
11 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
12 * @link      http://github.com/PHPFrame/PHPFrame
13 */
28 * @license  http://www.opensource.org/licenses/bsd-license.php New BSD License
29 * @link     http://github.com/PHPFrame/PHPFrame
30 * @since    1.0
31 */
32class PHPFrame_Application extends PHPFrame_Observer
33{
538     *
539     * @param PHPFrame_Database $db [Optional] Instance of PHPFrame_Database.
540     *
Article.php https://github.com/joechrysler/Campsite.git | PHP | 2,950 lines
1<?php
2/**
8 */
9require_once($GLOBALS['g_campsiteDir'].'/db_connect.php');
10require_once($GLOBALS['g_campsiteDir'].'/classes/DatabaseObject.php');
10require_once($GLOBALS['g_campsiteDir'].'/classes/DatabaseObject.php');
11require_once($GLOBALS['g_campsiteDir'].'/classes/DbObjectArray.php');
12require_once($GLOBALS['g_campsiteDir'].'/classes/ArticleData.php');
12require_once($GLOBALS['g_campsiteDir'].'/classes/ArticleData.php');
13require_once($GLOBALS['g_campsiteDir'].'/classes/Log.php');
14require_once($GLOBALS['g_campsiteDir'].'/classes/Language.php');
14require_once($GLOBALS['g_campsiteDir'].'/classes/Language.php');
15require_once($GLOBALS['g_campsiteDir'].'/classes/CampCacheList.php');
16
188		$values = array();
189		if (!is_null($p_name)) {
190			$values['Name'] = $p_name;
jot.class.inc.php https://github.com/modxcms/evolution.git | PHP | 910 lines
1<?php
2/*####
78		// TODO Add docid/tagid from all
79		$this->config["docid"] = !is_null($this->Get("docid")) ? intval($this->Get("docid")):$modx->documentIdentifier;
80		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
80		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
81		$this->config["pagination"] = !is_null($this->Get("pagination")) ? $this->Get("pagination") : 10; // Set pagination (0 = disabled, # = comments per page)
82		$this->config["captcha"] = !is_null($this->Get("captcha")) ? intval($this->Get("captcha")) : 0; // Set captcha (0 = disabled, 1 = enabled, 2 = enabled for not logged in users)
675							$message = $tpl->Render();
676							mail($user["email"], $this->config["subject"]["subscribe"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
677						}
701				$message = $tpl->Render();
702				mail($user["email"], $this->config["subject"]["moderate"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
703			}
734			
735			mail($user["email"], $this->config["subject"]["author"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
736			
pagelib.php https://github.com/mijiacang/moodle.git | PHP | 1,900 lines
1<?php
2
198     * Sets the page to refresh after a given delay (in seconds) using meta refresh
199     * in {@link standard_head_html()} in outputlib.php
200     * If set to null(default) the page is not refreshed
262        global $SITE;
263        if (is_null($this->_course)) {
264            return $SITE;
286    protected function magic_get_activityrecord() {
287        if (is_null($this->_module) && !is_null($this->_cm)) {
288            $this->load_activity_record();
298    protected function magic_get_activityname() {
299        if (is_null($this->_cm)) {
300            return null;
335    protected function magic_get_context() {
336        if (is_null($this->_context)) {
337            if (CLI_SCRIPT or NO_MOODLE_COOKIES) {
securimage.php https://bitbucket.org/jsuto/piler.git | PHP | 2,212 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
52 3.5.1
53 - Fix XSS vulnerability in example_form.php (discovered by Gjoko Krstic - <gjoko@zeroscience.mk>)
54
168    // They can be passed as an array to the Securimage constructor, set below,
169    // or set from securimage_show.php and securimage_play.php
170
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 6,907 lines
4115												  break;
4116			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
4117												  break;
4175			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
4176			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
4177
4226			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
4227				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
4228			} else {
4906												  break;
4907			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
4908												  break;
4944												  break;
4945			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
4946												  break;
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 6,527 lines
4077												  break;
4078			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
4079												  break;
4137			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
4138			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
4139
4188			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
4189				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
4190			} else {
4190			} else {
4191				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
4192			}
4198													  break;
4199				case self::RETURNDATE_PHP_OBJECT	: return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']);
4200													  break;
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 7,143 lines
4197			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
4198			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
4199
4248			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
4249				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
4250			} else {
4250			} else {
4251				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
4252			}
4940												  break;
4941			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
4942												  break;
4978												  break;
4979			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
4980												  break;
utility.php http://carrington.googlecode.com/svn/ | PHP | 1,585 lines
1<?php
2
9// Released under the GPL license
10// http://www.opensource.org/licenses/gpl-license.php
11//
27	if (!empty($str)) {
28		if (file_exists(CFCT_PATH.'error/exit.php')) {
29			include(CFCT_PATH.'error/exit.php');
45	if (!empty($str)) {
46		if (file_exists(CFCT_PATH.'misc/banner.php')) {
47			include(CFCT_PATH.'misc/banner.php');
120function cfct_default_file($dir) {
121	$fancy = $dir.'-default.php';
122	file_exists(CFCT_PATH.$dir.'/'.$fancy) ? $default = $fancy : $default = 'default.php';
252	// child theme path
253	$path = STYLESHEETPATH.'/'.$dir.'/'.$file.'.php';
254	// check for child theme first
weblcms_manager.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms/ | PHP | 1,794 lines
1<?php
2namespace application\weblcms;
30 */
31require_once dirname(__FILE__) . '/weblcms_search_form.class.php';
32require_once dirname(__FILE__) . '/../category_manager/content_object_publication_category.class.php';
32require_once dirname(__FILE__) . '/../category_manager/content_object_publication_category.class.php';
33require_once dirname(__FILE__) . '/../tool/tool.class.php';
34require_once dirname(__FILE__) . '/../tool/tool_component.class.php';
34require_once dirname(__FILE__) . '/../tool/tool_component.class.php';
35require_once dirname(__FILE__) . '/../tool_list_renderer.class.php';
36require_once dirname(__FILE__) . '/../course/course.class.php';
36require_once dirname(__FILE__) . '/../course/course.class.php';
37require_once dirname(__FILE__) . '/../course/course_request.class.php';
38require_once dirname(__FILE__) . '/../course/course_create_request.class.php';
778        {
779            $path = $directory . $tool . '/php/' . $tool . '_tool.class.php';
780
box.container.php http://simpleinvoices.googlecode.com/svn/trunk/ | text | 0 lines
1<?php
2// $Header: /cvsroot/html2ps/box.container.php,v 1.68 2007/05/06 18:49:29 Konstantin Exp $
5require_once(HTML2PS_DIR.'strategy.width.min.nowrap.php');
6require_once(HTML2PS_DIR.'strategy.width.max.php');
7require_once(HTML2PS_DIR.'strategy.width.max.natural.php');
127        if ($driver->contains($child)) {
128          if (is_null($child->show($driver))) {
129            return null;
291
292    // We use this construct to avoid notice messages in PHP 4.4 and PHP 5
293    $dummy = null;
316
317    // We use this construct to avoid notice messages in PHP 4.4 and PHP 5
318    $dummy = null;
335
336    // We use this construct to avoid notice messages in PHP 4.4 and PHP 5
337    $dummy = null;
Table.php https://bitbucket.org/chamilo/chamilo/ | PHP | 1,080 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
13 * - Handles col and rowspans.
14 * - PHP code is shorter, easier to read and to maintain.
15 * - Tables options can be reused.
17 * For auto filling of data and such then check out
18 * http://pear.php.net/package/HTML_Table_Matrix
19 *
19 *
20 * PHP versions 4 and 5
21 *
25 *                          Bertrand Mansion <bmansion@mamasam.com>,
26 *                          Mark Wiesemann <wiesemann@php.net>
27 * All rights reserved.
57 * @author     Bertrand Mansion <bmansion@mamasam.com>
58 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
59 * @version    CVS: $Id: Table.php 137 2009-11-09 13:24:37Z vanpouckesven $
OrderByParserTest.php https://hg01.codeplex.com/odataphpproducer | PHP | 717 lines
7use ODataProducer\UriProcessor\QueryProcessor\OrderByParser\OrderByParser;
8require_once 'PHPUnit\Framework\Assert.php';
9require_once 'PHPUnit\Framework\Test.php';
11require_once 'PHPUnit\Framework\TestCase.php';
12require_once 'PHPUnit\Framework\TestSuite.php';
13require_once 'ODataProducer\Common\ClassAutoLoader.php';
256            /**
257             	$flag1 = is_null($CustomersA) || is_null($CustomersA->Address) || is_null($CustomersA->Address->HouseNumber); 
258				$flag2 = is_null($CustomersB) || is_null($CustomersB->Address) || is_null($CustomersB->Address->HouseNumber); 
555             $flag1 = is_null($Order_DetailsA) || is_null($Order_DetailsA->Order) || is_null($Order_DetailsA->Order->Price); 
556			 $flag2 = is_null($Order_DetailsB) || is_null($Order_DetailsB->Order) || is_null($Order_DetailsB->Order->Price); 
557			 if($flag1 && $flag2) { 
616            
617			$flag1 = is_null($Order_DetailsA) || is_null($Order_DetailsA->Product) || is_null($Order_DetailsA->Product->ProductName); 
618			$flag2 = is_null($Order_DetailsB) || is_null($Order_DetailsB->Product) || is_null($Order_DetailsB->Product->ProductName); 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21