PageRenderTime 260ms queryFilters 1ms Sphinxql 41ms app.CodeModel.GetByIds 71ms findMatchingLines 116ms GetByIds 187ms meta 0ms repositoryFilters 7ms languageFilters 1ms sourceFilters 2ms

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

Source

Language

Repository

jpgraph.php https://bitbucket.org/y_widyatama/ijepa2 | PHP | 856 lines
21 *
22 * @category	PHPExcel
23 * @package		PHPExcel_Chart_Renderer
23 * @package		PHPExcel_Chart_Renderer
24 * @copyright	Copyright (c) 2006 - 2014 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 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
39 */
237		$yAxisLabel = $this->_chart->getYAxisLabel();
238		if (!is_null($yAxisLabel)) {
239			$title = $this->_getCaption($yAxisLabel);
jpgraph.php https://bitbucket.org/synergylearning/campusconnect.git | PHP | 840 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 */
239		$yAxisLabel = $this->_chart->getYAxisLabel();
240		if (!is_null($yAxisLabel)) {
241			$title = $this->_getCaption($yAxisLabel);
AIT.php https://github.com/touv/ait.git | PHP | 2,472 lines
1<?php
2// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 encoding=utf-8 fdm=marker :
39require_once 'AIT/Item.php';
40require_once 'AIT/TagType.php';
41require_once 'AIT/Tag.php';
50 * @copyright 2009 Nicolas Thouvenin
51 * @license   http://opensource.org/licenses/lgpl-license.php LGPL
52 * @link      http://ait.touv.fr/
1054        try {
1055            if (is_null($t) and !is_null($i)) {
1056                $field = 'item_id';
1058            }
1059            elseif (!is_null($t) and is_null($i)) {
1060                $field = 'tag_id';
1737            }
1738            if (!is_null($offset) && !is_null($lines)) {
1739                $sql .= sprintf(' LIMIT %d,%d', (int)$offset, (int)$lines);
ItemType.php https://github.com/touv/ait.git | PHP | 894 lines
1<?php
2// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 encoding=utf-8 fdm=marker :
29 * @copyright 2009 Nicolas Thouvenin
30 * @license   http://opensource.org/licenses/lgpl-license.php LGPL
31 * @version   SVN: $Id$
37 */
38require_once 'AIT.php';
39require_once 'AIT/Item.php';
39require_once 'AIT/Item.php';
40require_once 'AIT/TagType.php';
41
49 * @copyright 2009 Nicolas Thouvenin
50 * @license   http://opensource.org/licenses/lgpl-license.php LGPL
51 * @link      http://ait.touv.fr/
68
69        if (!is_string($l) and !is_null($l) and $id !== false)
70            trigger_error('Argument 1 passed to '.__METHOD__.' must be a string, '.gettype($l).' given', E_USER_ERROR);
functions.inc.php https://github.com/tylerhall/Shine.git | PHP | 809 lines
340    {
341        if(is_null($url)) $url = $_SERVER['PHP_SELF'];
342        header("Location: $url");
463            $ch = curl_init();
464            if(!is_null($username) && !is_null($password))
465                curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic ' .  base64_encode("$username:$password")));
474        {
475            if(!is_null($username) && !is_null($password))
476                $url = str_replace("://", "://$username:$password@", $url);
481        {
482            // Cannot open url. Either install curl-php or set allow_url_fopen = true in php.ini
483            return false;
592    {
593        if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_USER'] == $un && $_SERVER['PHP_AUTH_PW'] == $pw))
594        {
functions.inc.php https://github.com/cauld/simple-php-framework.git | PHP | 752 lines
287    {
288        if(is_null($url)) $url = $_SERVER['PHP_SELF'];
289        header("Location: $url");
405            $ch = curl_init();
406            if(!is_null($username) && !is_null($password))
407                curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic ' .  base64_encode("$username:$password")));
416        {
417            if(!is_null($username) && !is_null($password))
418                $url = str_replace("://", "://$username:$password@", $url);
423        {
424            // Cannot open url. Either install curl-php or set allow_url_fopen = true in php.ini
425            return false;
534    {
535        if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_USER'] == $un && $_SERVER['PHP_AUTH_PW'] == $pw))
536        {
login.php https://github.com/mysociety/hearfromyourmp.git | PHP | 421 lines
1<?php
2/*
38 *
39 * $Id: login.php,v 1.16 2007-11-01 15:05:22 matthew Exp $
40 * 
42
43require_once '../phplib/ycml.php';
44require_once '../phplib/fns.php';
44require_once '../phplib/fns.php';
45require_once '../phplib/constituent.php';
46require_once '../commonlib/phplib/auth.php';
47require_once '../commonlib/phplib/person.php';
48require_once '../commonlib/phplib/stash.php';
49require_once '../commonlib/phplib/importparams.php';
340            );
341        if (is_null($q_pw1) || is_null($q_pw2))
342            $error = _("Please type your new password twice");
functions.inc.php https://github.com/nterbogt/Shine.git | PHP | 772 lines
302    {
303        if(is_null($url)) $url = $_SERVER['PHP_SELF'];
304        header("Location: $url");
425            $ch = curl_init();
426            if(!is_null($username) && !is_null($password))
427                curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic ' .  base64_encode("$username:$password")));
436        {
437            if(!is_null($username) && !is_null($password))
438                $url = str_replace("://", "://$username:$password@", $url);
443        {
444            // Cannot open url. Either install curl-php or set allow_url_fopen = true in php.ini
445            return false;
554    {
555        if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_USER'] == $un && $_SERVER['PHP_AUTH_PW'] == $pw))
556        {
detail_preview.php https://github.com/tlezotte/ePOS.git | PHP | 818 lines
218                            </tr>
219                            <?php if (!is_null($PO['sup2'])) { ?>
220                            <tr>
534                                    <td nowrap><?= $language['label']['app2']; ?>:</td>
535                                    <td align="center" nowrap><?php if (is_null($AUTH['app2Date']) AND !is_null($AUTH['app1Date']) AND $AUTH['app2'] != '0') {
536                                                    	echo showMailIcon('app2', $AUTH['app2'], ucwords(strtolower($EMPLOYEES[$AUTH['app2']])), $PO['id']);
551                                    <td nowrap><?= $language['label']['app3']; ?>:</td>
552                                    <td align="center" nowrap><?php if (is_null($AUTH['app3Date']) AND !is_null($AUTH['app2Date']) AND $AUTH['app3'] != '0') {
553                                                    	echo showMailIcon('app3', $AUTH['app3'], ucwords(strtolower($EMPLOYEES[$AUTH['app3']])), $PO['id']);
568                                    <td nowrap><?= $language['label']['app4']; ?>:</td>
569                                    <td align="center" nowrap><?php if (is_null($AUTH['app4Date']) AND !is_null($AUTH['app2Date']) AND $AUTH['app4'] != '0') {
570                                                    	echo showMailIcon('app4', $AUTH['app4'], ucwords(strtolower($EMPLOYEES[$AUTH['app4']])), $PO['id']);
683                                        </tr>
684                                        <?php if (!is_null($PO['sup2'])) { ?>
685                                        <tr>
Savant.php https://github.com/clayhinson/sgl2.git | PHP | 757 lines
1<?php
2
59    * 
60    * @version $Id: Savant.php,v 1.7 2005/05/14 03:39:11 alan_k Exp $
61    * 
91        
92        if (! is_null($set_unchecked)) {
93            // this sets the unchecked value of the checkbox.
120    * 
121    * @version $Id: Savant.php,v 1.7 2005/05/14 03:39:11 alan_k Exp $
122    * 
171                
172                if (! is_null($set_unchecked)) {
173                    // this sets the unchecked value of the checkbox.
388        // get the width and height of the image
389        if (is_null($width) && is_null($height)) {
390        
settings.php https://github.com/ketzaldev/VCD-Db.git | PHP | 2,018 lines
1<?php
2/**
17?>
18<?php
19
19
20require_once(dirname(__FILE__).'/settingsObj.php');
21require_once(dirname(__FILE__).'/sourceSiteObj.php');
21require_once(dirname(__FILE__).'/sourceSiteObj.php');
22require_once(dirname(__FILE__).'/mediaTypeObj.php');
23require_once(dirname(__FILE__).'/movieCategoryObj.php');
23require_once(dirname(__FILE__).'/movieCategoryObj.php');
24require_once(dirname(__FILE__).'/borrowerObj.php');
25require_once(dirname(__FILE__).'/loanObj.php');
25require_once(dirname(__FILE__).'/loanObj.php');
26require_once(dirname(__FILE__).'/commentObj.php');
27require_once(dirname(__FILE__).'/statisticsObj.php');
Section.php https://github.com/joechrysler/Campsite.git | PHP | 657 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/SQLSelectClause.php');
12require_once($GLOBALS['g_campsiteDir'].'/classes/SQLSelectClause.php');
13require_once($GLOBALS['g_campsiteDir'].'/classes/Log.php');
14require_once($GLOBALS['g_campsiteDir'].'/classes/CampCacheList.php');
14require_once($GLOBALS['g_campsiteDir'].'/classes/CampCacheList.php');
15require_once($GLOBALS['g_campsiteDir'].'/template_engine/classes/CampTemplate.php');
16
111	{
112		if (is_null($p_destIssueLanguageId)) {
113			$p_destIssueLanguageId = $this->m_data['IdLanguage'];
CampURIShortNames.php https://github.com/joechrysler/Campsite.git | PHP | 440 lines
1<?php
2/**
16require_once($GLOBALS['g_campsiteDir'].'/classes/Language.php');
17require_once($GLOBALS['g_campsiteDir'].'/classes/Publication.php');
18require_once($GLOBALS['g_campsiteDir'].'/classes/Issue.php');
18require_once($GLOBALS['g_campsiteDir'].'/classes/Issue.php');
19require_once($GLOBALS['g_campsiteDir'].'/classes/Section.php');
20require_once($GLOBALS['g_campsiteDir'].'/classes/Article.php');
20require_once($GLOBALS['g_campsiteDir'].'/classes/Article.php');
21require_once($GLOBALS['g_campsiteDir'].'/classes/Alias.php');
22require_once($GLOBALS['g_campsiteDir'].'/template_engine/classes/CampRequest.php');
22require_once($GLOBALS['g_campsiteDir'].'/template_engine/classes/CampRequest.php');
23require_once($GLOBALS['g_campsiteDir'].'/template_engine/classes/CampURI.php');
24require_once($GLOBALS['g_campsiteDir'].'/template_engine/classes/CampTemplate.php');
417
418        if (!is_null($this->m_language) && $this->m_language->defined() && is_null($this->m_buildPath)) {
419            $this->m_buildPath = $this->m_config->getSetting('SUBDIR') . '/' . $this->m_language->code . '/';
functions.inc.php https://github.com/gotow/Shine.git | PHP | 774 lines
304    {
305        if(is_null($url)) $url = $_SERVER['PHP_SELF'];
306        header("Location: $url");
427            $ch = curl_init();
428            if(!is_null($username) && !is_null($password))
429                curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic ' .  base64_encode("$username:$password")));
438        {
439            if(!is_null($username) && !is_null($password))
440                $url = str_replace("://", "://$username:$password@", $url);
445        {
446            // Cannot open url. Either install curl-php or set allow_url_fopen = true in php.ini
447            return false;
556    {
557        if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_USER'] == $un && $_SERVER['PHP_AUTH_PW'] == $pw))
558        {
gradelib.php https://github.com/dongsheng/moodle.git | PHP | 1,477 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');
71
72    if (is_null($courseid) or is_null($itemtype)) {
73        debugging('Missing courseid or itemtype');
238
239        if (is_null($grade_grade)) {
240            if (count($grades) == 0) {
994            //dont include default empty grades created when activities are created
995            if (!is_null($oldgrade->finalgrade) || !is_null($oldgrade->feedback)) {
996                $recoveredgrades = true;
pagelib.php https://github.com/dongsheng/moodle.git | PHP | 1,982 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
312     * @var int Sets the page to refresh after a given delay (in seconds) using
313     * meta refresh in {@link standard_head_html()} in outputlib.php
314     * If set to null(default) the page is not refreshed
372        global $SITE;
373        if (is_null($this->_course)) {
374            return $SITE;
396    protected function magic_get_activityrecord() {
397        if (is_null($this->_module) && !is_null($this->_cm)) {
398            $this->load_activity_record();
408    protected function magic_get_activityname() {
409        if (is_null($this->_cm)) {
410            return null;
445    protected function magic_get_context() {
446        if (is_null($this->_context)) {
447            if (CLI_SCRIPT or NO_MOODLE_COOKIES) {
sm.php https://github.com/xurenlu/supermini.git | PHP | 1,056 lines
1<?php
2/**   
2/**   
3 *@file sm.php 主框架内容;
4 * vim: set fdm=marker:
10 \b Homepage: http://www.162cm.com/ 
11 \b Slide: http://codeany.com/slides.10.play.miniphpkuangjiasuperminijianjie.shtml
12 </pre>
18*/
19/**  smPhpEvent 	一些跟事件触发相关的全局函数. */
20global $SM_PE_EVENTS,$SM_PE_FILTERS,$sm_config,$sm_temp,$sm_data;
147 * echo sm_pagenav_default(18332,20);
148 * echo sm_pagenav_default(18244,25,"index.php?page={page}",array("key"=>1),"page",3,3);
149 * echo sm_pagenav_default(18244,25,null,array("key"=>1),"page",3,3);
154        $url_pattern=$sm_temp["url_pattern"];
155        if(is_null($pagestr)){
156            $arr=array();
Java.inc https://github.com/aaronyc/HadoopSaaS.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)); }
1231if (!file_exists($java))
1232throw 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.");
1233$java_cmd="java -Dphp.java.bridge.daemon=true -jar \"${java}\" INET_LOCAL:$channelName 0";
1660function java_require($arg) {
1661trigger_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);
1662}
phprpc_client.php https://gitlab.com/yoage/thinkphp.git | PHP | 583 lines
5|                                                          |
6| phprpc_client.php                                        |
7|                                                          |
66    function keep_phprpc_cookie_in_session() {
67        global $_PHPRPC_COOKIES, $_PHPRPC_COOKIE;
68        $_SESSION['phprpc_cookies'] = $_PHPRPC_COOKIES;
281        }
282        $this->_warning = new PHPRPC_Error($phprpc_errno, $phprpc_errstr);
283        if (array_key_exists('phprpc_output', $result)) {
513        if (!is_null($this->_key) || ($this->_encryptMode == 0)) return true;
514        $request = "phprpc_encrypt=true&phprpc_keylen={$this->_keylen}";
515        $result = $this->_post($request);
576else {
577    class PHPRPC_Client extends _PHPRPC_Client {
578        function __call($function, $arguments) {
YahooOAuthApplication.class.php https://bitbucket.org/excellencetechnologies/sociallogin | PHP | 482 lines
1<?php
2
3/**
4 * Yahoo! PHP5 SDK
5 *
10 *
11 * Hosted on GitHub: http://github.com/yahoo/yos-social-php5/tree/master
12 *
12 *
13 * @package    yos-social-php5
14 * @subpackage yahoo
39
40require_once 'YahooCurl.class.php';
41require_once 'YahooYQLQuery.class.php';
41require_once 'YahooYQLQuery.class.php';
42require_once 'YahooOAuthApplicationException.class.php';
43require_once 'YahooOAuthAccessToken.class.php';
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21