PageRenderTime 413ms queryFilters 1ms Sphinxql 38ms app.CodeModel.GetByIds 273ms findMatchingLines 65ms GetByIds 338ms meta 0ms repositoryFilters 8ms languageFilters 1ms sourceFilters 3ms

60,014 results for 'php is_null repo:fuel/oil' (413 ms)

Source

Language

Repository

pagelib.php https://github.com/glovenone/moodle.git | PHP | 1,912 lines
1<?php
2
197     * Sets the page to refresh after a given delay (in seconds) using meta refresh
198     * in {@link standard_head_html()} in outputlib.php
199     * If set to null(default) the page is not refreshed
261        global $SITE;
262        if (is_null($this->_course)) {
263            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) {
MetaBox.php https://github.com/volpeo/wpalchemy.git | PHP | 2,298 lines
1<?php
2
608		<style type="text/css">
609			<?php if ($this->hide_editor): ?> #postdiv, #postdivrich { display:none; } <?php endif; ?>
610		</style>
661
662				<?php if (WPALCHEMY_LOCK_TOP == $this->lock): ?>
663				<?php if ('side' == $this->context): ?>
668				}
669				<?php else: ?>
670				var id = 'wpalchemy-content-top';
1023
1024		if ($uri AND in_array($file, array('post.php', 'post-new.php')))
1025		{
1037			{
1038				// because of the 'post.php' and 'post-new.php' checks above, we can default to 'post'
1039				return 'post';
delegate.php https://bitbucket.org/PokatilovArt/diagramo-art | PHP | 771 lines
64        $this->id = is_null($row['id']) ? null : $row['id'];
65        $this->title = is_null($row['title']) ? null : $row['title'];
66        $this->description = is_null($row['description']) ? null : $row['description'];
66        $this->description = is_null($row['description']) ? null : $row['description'];
67        $this->public = is_null($row['public']) ? null : $row['public'];
68        $this->createdDate = is_null($row['createdDate']) ? null : $row['createdDate'];
93        $this->lastLoginIP = is_null($row['lastLoginIP']) ? null : $row['lastLoginIP'];
94        $this->lastBrowserType = is_null($row['lastBrowserType']) ? null : $row['lastBrowserType'];
95        $this->admin = is_null($row['admin']) ? null : $row['admin'];
379        /* EXECUTE
380         * @see http://www.php.net/manual/en/sqlite3.query.php
381         */
745
746if(false && PHP_SAPI == 'cli'){ //see http://php.net/manual/en/features.commandline.php
747    print("\nOn the console");
User.php https://github.com/whale2/users.git | PHP | 2,142 lines
1<?php
2/*
5require_once(dirname(__FILE__).'/config.php');
6require_once(dirname(__FILE__).'/Account.php');
7require_once(dirname(__FILE__).'/CookieStorage.php');
7require_once(dirname(__FILE__).'/CookieStorage.php');
8require_once(dirname(__FILE__).'/CampaignTracker.php');
9
18
19		if (!is_null($user))
20		{
46
47			if (is_null($user)) {
48				return null;
1518			// (don't reset the flag if was was set for some other reasons)
1519			if (!is_null($user) && !$user->isDisabled() && !is_null($temppass) && $user->requiresPasswordReset())
1520			{
Java.inc https://github.com/structureddynamics/Scones.git | PHP | 2,085 lines
1<?php
2# Java.inc -- The PHP/Java Bridge PHP library. Compiled from JavaBridge.inc.
3# Copyright (C) 2003-2009 Jost Boekemeier.
68function java_autoload($libs=null) {
69trigger_error('Please use <a href="http://php-java-bridge.sourceforge.net/pjb/webapp.php>tomcat or jee hot deployment</a> instead',E_USER_WARNING);
70}
92function java_isnull($value) { return is_null (java_values ($value)); }
93function java_is_null($value) { return is_null (java_values ($value)); }
94function java_istrue($value) { return (boolean)(java_values ($value)); }
1226if (!file_exists($java))
1227throw new java_IOException("Could not find $java in ".getcwd().". Download it from http://sf.net/projects/php-java-bridge/files/Binary%20package/php-java-bridge_".JAVA_PEAR_VERSION."/exploded/JavaBridge.jar/download and try again.");
1228$java_cmd="java -Dphp.java.bridge.daemon=true -jar \"${java}\" INET_LOCAL:$channelName 0";
1655function java_require($arg) {
1656trigger_error('java_require() not supported anymore. Please use <a href="http://php-java-bridge.sourceforge.net/pjb/webapp.php>tomcat or jee hot deployment</a> instead',E_USER_WARNING);
1657}
xy.php https://github.com/xmarcosx/enroll.git | PHP | 446 lines
145  <body>
146    <?php include_once("admin/analyticstracking.php") ?>
147    <div class="navbar navbar-inverse navbar-fixed-top">
162              <?php if(!is_null($ghostuser)){ ?>
163                <li><a href="javascript:void(0)" onclick='ghost_user("<?php echo $master_username; ?>","admin");'><?php echo $master_username; ?></a></li>
164              <?php
277    <?php
278      if((is_null($chosen_xy_name) && is_null($chosen_x_name) && is_null($chosen_y_name)) ||
279         (is_null($chosen_xy_name) && is_null($chosen_y_name)) ||
322              ?>
323                    <li class="<?php if(strcmp($block, 'xy')==0){echo 'x y';}else{echo $block;} ?> card" value="<?php echo $xyassnid; ?>"  >
324                      <form action='enroll.php' method='post' >
344                      <p class="desc" id='<?php echo $xyassnid; ?>'>
345                        <?php echo substr($description, 0, 200); ?><span id="ellipses<?php echo $xyassnid; ?>">...</span><span id="description<?php echo $xyassnid; ?>" style="display: none;"><?php echo substr($description, 200); ?></span>
346                      </p>
client.class.php https://github.com/ueffort/fn-php.git | PHP | 588 lines
5|                                                          |
6| phprpc_client.php                                        |
7|                                                          |
67        global $_PHPRPC_COOKIES, $_PHPRPC_COOKIE;
68        $_SESSION['phprpc_cookies'] = $_PHPRPC_COOKIES;
69        $_SESSION['phprpc_cookie'] = $_PHPRPC_COOKIE;
281        }
282        $this->_warning = new PHPRPC_Error($phprpc_errno, $phprpc_errstr);
283        if (array_key_exists('phprpc_output', $result)) {
566    eval('
567    class PHPRPC_Client extends _PHPRPC_Client {
568        function __call($function, $arguments, &$return) {
576else {
577    class PHPRPC_Client extends _PHPRPC_Client {
578        function __call($function, $arguments) {
Bcms.class.php https://github.com/xiaozhujun/houseRent.git | PHP | 1,526 lines
1<?php
2/**
2/**
3 * 百度云消息服务 PHP SDK
4 * 
4 * 
5 * 本文件提供百度云消息服务的PHP版本SDK
6 * 
15}
16//require_once ( API_ROOT_PATH . '/lib/RequestCore.class.php' );
17//require_once ( API_ROOT_PATH . '/lib/BcmsException.class.php' );
17//require_once ( API_ROOT_PATH . '/lib/BcmsException.class.php' );
18//require_once ( API_ROOT_PATH . '/lib/BaeBase.class.php' );
19
27 * 
28 * Bcms类提供百度云消息服务的PHP版本SDK,用户首先实例化这个类,设置自己的accessKey、secretKey,即可使用百度云消息服务
29 * 
Oauth2.php https://github.com/A-Shevchenko/oauth-2---facebook---zend-framework-components.git | PHP | 362 lines
1<?php
2
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Oauth.php 21071 2010-02-16 14:35:00Z padraic $
21 */
25 */
26require_once 'Zend/Oauth2/Config.php';
27
30 */
31require_once 'Zend/Rest/Client.php';
32
35 */
36require_once 'Zend/Json.php';
37
64        $this->_config = new Zend_Oauth2_Config;
65        if (!is_null($options)) {
66            if ($options instanceof Zend_Config) {
jot.class.inc.php https://github.com/good-web-master/modx.evo.custom.git | PHP | 914 lines
1<?php
2class CJot {
18		if (!class_exists('CChunkie'))
19			include_once($path . '/includes/chunkie.class.inc.php');
20		$this->name = $this->config["snippet"]["name"] = "Jot";
71		// General settings
72		$this->config["docid"] = !is_null($this->Get("docid")) ? intval($this->Get("docid")):$modx->documentIdentifier;
73		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
73		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
74		$this->config["docids"] = !is_null($this->Get("docids")) ? $this->processDocs($this->Get("docids")) : $this->config["docid"];
75		$this->config["tagids"] = !is_null($this->Get("tagids")) ? $this->processTags($this->Get("tagids")) : $this->config["tagid"];
75		$this->config["tagids"] = !is_null($this->Get("tagids")) ? $this->processTags($this->Get("tagids")) : $this->config["tagid"];
76		$this->config["userids"] = !is_null($this->Get("userids")) ? $this->processUsers($this->Get("userids")) : '*';
77		$this->config["pagination"] = !is_null($this->Get("pagination")) ? $this->Get("pagination") : 10; // Set pagination (0 = disabled, # = comments per page)
611
612		include_once MODX_BASE_PATH . "manager/includes/controls/class.phpmailer.php";
613		
jpgraph.php https://github.com/iGroup/PHPExcel.git | PHP | 838 lines
21 *
22 * @category	PHPExcel
23 * @package		PHPExcel_Chart
23 * @package		PHPExcel_Chart
24 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
25 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
29
30require_once(PHPExcel_Settings::getChartRendererPath().'/jpgraph.php');
31
37 * @package		PHPExcel_Chart_Renderer
38 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
39 */
237		$yAxisLabel = $this->_chart->getYAxisLabel();
238		if (!is_null($yAxisLabel)) {
239			$title = $this->_getCaption($yAxisLabel);
underscore.php https://github.com/craigjbass/Underscore.php.git | PHP | 1,136 lines
1<?php
2
3/**
4 * Underscore.php v1.3.1
5 * Copyright (c) 2011 Brian Haveri
5 * Copyright (c) 2011 Brian Haveri
6 * Underscore.php is licensed under the MIT license
7 * Underscore.php was inspired by and borrowed from Underscore.js
7 * Underscore.php was inspired by and borrowed from Underscore.js
8 * For docs, license, tests, and downloads, see: http://brianhaveri.github.com/Underscore.php
9 */
56    
57    if(is_null($collection)) return self::_wrap(null);
58    
74    
75    if(is_null($collection)) return self::_wrap(array());
76    
BaseRow.php https://github.com/daybreaker/chitin.git | PHP | 1,189 lines
1<?php
2/**
9
10include_once 'DBSingleton.php';
11
18 *
19 * @link https://wiki.mudbugmedia.com/index.php/BaseRow
20 * @package Chitin
122		// Instance variables
123		$this->row = (is_null($row) ? array() : $row);
124		if (!is_array($this->row)) throw new BaseRowException("Unexpected input provided to BaseRow::__construct.  Expected: array or null, received: " . gettype($this->row));
152			ChitinLogger::log(get_class($this) . ": " . $query);
153			if (!is_null($params) && count($params) > 0)
154				ChitinLogger::log('Params: ' . var_export($params, true));
211		//
212		// @see http://pear.php.net/bugs/bug.php?id=8336
213		//   [2006-08-01 13:06 UTC] lsmith (Lukas Smith)
div.php https://github.com/pragres/cubay.git | PHP | 7,863 lines
45
46define('DIV_PHP_ALLOWED_FUNCTIONS', 'isset,empty,is_null,is_numeric,is_bool,is_integer,is_double,' . 'sizeof,is_finite,is_float,is_infinite,is_int,is_long,is_nan,' . 'is_real,is_scalar,is_string,mt_rand,mt_srand,mt_getrandmax,' . 'rand,urlencode,urldecode,uniqid,date,time,intval,htmlspecialchars,' . 'htmlspecialchars_decode,strtr,strpos,str_replace,str_ireplace,' . 'substr,sprintf,abs,acos,acosh,asin,atan2,atanh,base_convert,' . 'bindec,ceil,cos,cosh,decbin,dechex,decoct,deg2rad,exp,expm1,' . 'floor,fmod,getrandmax,hexdec,hypot,lcg_value,log10,log1p,log,' . 'max,min,octdec,pi,pow,rad2deg,rand,round,sin,sinh,sqrt,srand,' . 'tan,tanh,cal_days_in_month,cal_from_jd,cal_info,cal_to_jd,' . 'easter_date,easter_days,frenchtojd,gregoriantojd,jddayofweek,' . 'jdmonthname,jdtofrench,jdtogregorian,jdtojewish,jdtojulian,' . 'jdtounix,jewishtojd,jewishtojd,unixtojd,checkdate,' . 'date_default_timezone_get,strtotime,date_sunset,gmdate,gmmktime,' . 'gmstrftime,idate,microtime,mktime,strftime,strptime,strtotime,' . 'timezone_name_from_abbr,timezone_version_get,bcadd,bccomp,' . 'bcdiv,bcmod,bcmul,bcpow,bcpowmod,bcscale,bcsqrt,bcsub,addcslashes,' . 'addslashes,bin2hex,chop,chr,chunk_split,convert_cyr_string,' . 'convert_uudecode,convert_uuencode,count,count_chars,crc32,crypt,' . 'hebrev,hebrevc,hex2bin,html_entity_decode,htmlentities,' . 'htmlspecialchars_decode,htmlspecialchars,lcfirst,levenshtein,' . 'ltrim,md5,metaphone,money_format,nl_langinfo,nl2br,number_format,' . 'ord,quoted_printable_decode,quoted_printable_encode,quotemeta,' . 'rtrim,sha1,similar_text,soundex,sprintf,str_pad,str_repeat,' . 'str_rot13,str_shuffle,strcasecmp,strchr,strcmp,strcoll,strcspn,' . 'strip_tags,stripcslashes,stripos,stripslashes,stristr,strlen,' . 'strnatcasecmp,strnatcmp,strncasecmp,strncmp,strpbrk,strrchr,' . 'strrev,strripos,strrpos,strspn,strtolower,strtoupper,strtr,' . 'substr_compare,substr_count,substr_replace,trim,ucfirst,ucwords,' . 'wordwrap,floatval,strval,implode,explode');
47
614		
615		if (is_null($items) && ! is_null($this->__items))
616			$items = $this->__items;
7649		
7650		if (is_null(self::$__allowed_php_functions)) {
7651			$keys = explode(",", DIV_PHP_ALLOWED_FUNCTIONS);
7721	final static function isValidExpression($code){
7722		return self::isValidPHPCode($code, false, DIV_PHP_VALID_TOKENS_FOR_EXPRESSIONS);
7723	}
7731	final static function isValidMacro($code){
7732		return self::isValidPHPCode($code, true, DIV_PHP_VALID_TOKENS_FOR_EXPRESSIONS . ',' . DIV_PHP_VALID_TOKENS_FOR_MACROS);
7733	}
yotpo.php https://github.com/DaveBenNoah/PrestaShop-modules.git | PHP | 802 lines
1<?php
2
15
16	private $_required_files = array('/YotpoHttpClient.php', '/YotpoSnippetCache.php'); 
17	
43		if(file_exists($this->_yotpo_module_path . '/YotpoSnippetCache.php')) {
44			include_once($this->_yotpo_module_path.'/YotpoSnippetCache.php');	
45		}	
47		if (version_compare(_PS_VERSION_, '1.5') < 0) {
48    		require(_PS_MODULE_DIR_.$this->name.'/backward_compatibility/backward.php');
49    	}				
60		
61		if(!is_null($selected_statuses) && !empty($selected_statuses)) {
62			return $selected_statuses;
630		$customer = new Customer((int)$order->id_customer);
631		$id_lang = !is_null($params['cookie']) && !is_null($params['cookie']->id_lang) ? (int)$params['cookie']->id_lang : (int)Configuration::get('PS_LANG_DEFAULT');
632		if (Validate::isLoadedObject($order) && Validate::isLoadedObject($customer))
adodb-session.php https://github.com/yfg2014/ddim.git | PHP | 842 lines
1<?php
2
28if (!defined('_ADODB_LAYER')) {
29	require_once realpath(dirname(__FILE__) . '/../adodb.inc.php');
30}
37/* 
38	Unserialize session data manually. See http://phplens.com/lens/lensforum/msgs.php?id=9821 
39	
69
70		if (!is_null($driver)) {
71			$_driver = trim($driver);
88
89		if (!is_null($host)) {
90			$_host = trim($host);
107
108		if (!is_null($user)) {
109			$_user = trim($user);
preview.php https://github.com/JasonEades/core.git | PHP | 769 lines
1<?php
2/**
17
18require_once 'preview/image.php';
19require_once 'preview/movies.php';
19require_once 'preview/movies.php';
20require_once 'preview/mp3.php';
21require_once 'preview/pdf.php';
21require_once 'preview/pdf.php';
22require_once 'preview/svg.php';
23require_once 'preview/txt.php';
23require_once 'preview/txt.php';
24require_once 'preview/unknown.php';
25require_once 'preview/office.php';
226		$configMaxX = $this->getConfigMaxX();
227		if (!is_null($configMaxX)) {
228			if ($maxX > $configMaxX) {
DataTable.php https://github.com/CodeYellowBV/piwik.git | PHP | 1,637 lines
1<?php
2/**
25 */
26require_once PIWIK_INCLUDE_PATH . '/core/Common.php';
27
87 * 
88 * _Note: For convenience, [anonymous functions](http://www.php.net/manual/en/functions.anonymous.php)
89 * can be used as DataTable filters._
530        if ($label === self::LABEL_SUMMARY_ROW
531            && !is_null($this->summaryRow)
532        ) {
582            if ($id == self::ID_SUMMARY_ROW
583                && !is_null($this->summaryRow)
584            ) {
715    {
716        if (is_null($this->summaryRow)) {
717            return $this->rows;
functions.php https://github.com/wujingke/thinkphp.git | PHP | 1,458 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
4// +----------------------------------------------------------------------
5// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
6// +----------------------------------------------------------------------
32            $name = strtoupper($name);
33            if (is_null($value))
34                return isset($_config[$name]) ? $_config[$name] : $default;
40        $name[0]   =  strtoupper($name[0]);
41        if (is_null($value))
42            return isset($_config[$name[0]][$name[1]]) ? $_config[$name[0]][$name[1]] : $default;
62    switch($ext){
63        case 'php':
64            return include $file;
functions.php https://github.com/wujingke/thinkphp.git | PHP | 1,066 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
4// +----------------------------------------------------------------------
5// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
6// +----------------------------------------------------------------------
32            $name = strtolower($name);
33            if (is_null($value))
34                return isset($_config[$name]) ? $_config[$name] : $default;
40        $name[0]   =  strtolower($name[0]);
41        if (is_null($value))
42            return isset($_config[$name[0]][$name[1]]) ? $_config[$name[0]][$name[1]] : $default;
62    switch($ext){
63        case 'php':
64            return include $file;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21