PageRenderTime 244ms queryFilters 21ms Sphinxql 52ms app.CodeModel.GetByIds 104ms findMatchingLines 53ms GetByIds 157ms meta 0ms repositoryFilters 8ms languageFilters 1ms sourceFilters 3ms

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

Source

Language

Repository

Yahoo.inc https://github.com/mdawaffe/yos-social-php.git | Pascal | 1,943 lines
1<?php
2
7 *  @author      Yahoo! Developer Network
8 *  @example     http://developer.yahoo.com/social/sdk/php/
9 *
46 *
47 *  Documentation: http://developer.yahoo.com/social/sdk/php/
48 */
49
50// Use OAuthConsumer as a test to see if any other instances of OAuth.php may
51// have been included. require_once() won't catch situations where multiple
1774        $sdkVersion = "1.2";
1775        $agent = sprintf("YosPhpSdk/%s php/%s", $sdkVersion, phpversion());
1776        curl_setopt($ch, CURLOPT_USERAGENT, $agent);
1923// version of PHP. Include fake versions of json_encode/json_decode that
1924// are backed by the native PHP php-json library, which is available in PEAR.
1925if(!function_exists("json_decode")) {
setup.php https://github.com/max-koehler/phpMyFAQ.git | PHP | 1,024 lines
94/**
95 * Removes the data.php and the dataldap.php if an installation failed
96 *
253
254<p class="center">Your PHP version: <strong>PHP <?php print PHP_VERSION; ?></strong></p>
255
615            print "\n<div class=\"error\">\n";
616            print "<p><strong>Error:</strong> Please install your version of phpMyFAQ once again or send us a <a href=\"http://bugs.phpmyfaq.de\" target=\"_blank\">bug report</a>.</p>";
617            print "<p><strong>DB error:</strong> ".$db->error()."</p>\n";
929<iframe onload="iframeUpdated();" name="questionaireResult" style="display:none"></iframe>
930<form action="http://www.phpmyfaq.de/stats/getstatdata.php" method="post" target="questionaireResult" id="questionnaireForm">
931
932    <p class="center">For further development we would like to get some feedback from our users.<br />Therefore we'd ask you to take a few minutes of your time to answer a few questions.</p>
933    <p class="center">If you don't want to participate in the survey, you can directly visit <a href="../index.php">your version of phpMyFAQ</a> or login into your <a href="../admin/index.php">admin section</a>.</p>
934
pipeline.class.php https://bitbucket.org/ducnv66/bbb-admin | PHP | 1,228 lines
1<?php
2
2
3require_once(HTML2PS_DIR.'utils_array.php');
4require_once(HTML2PS_DIR.'utils_graphic.php');
4require_once(HTML2PS_DIR.'utils_graphic.php');
5require_once(HTML2PS_DIR.'utils_url.php');
6require_once(HTML2PS_DIR.'utils_text.php');
6require_once(HTML2PS_DIR.'utils_text.php');
7require_once(HTML2PS_DIR.'utils_units.php');
8require_once(HTML2PS_DIR.'utils_number.php');
9
10require_once(HTML2PS_DIR.'value.color.php');
11
11
12require_once(HTML2PS_DIR.'config.parse.php');
13
XVWeb.class.php http://xvweb.googlecode.com/svn/trunk/ | PHP | 934 lines
1<?php
2/***************************************************************************
20include_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'libraries'.DIRECTORY_SEPARATOR.'Session.XVWeb.class.php');
21include_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'libraries'.DIRECTORY_SEPARATOR.'operation.XVWeb.class.php');
22include_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'libraries'.DIRECTORY_SEPARATOR.'db.XVWeb.class.php');
22include_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'libraries'.DIRECTORY_SEPARATOR.'db.XVWeb.class.php');
23include_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'libraries'.DIRECTORY_SEPARATOR.'phpQuery'.DIRECTORY_SEPARATOR.'phpQuery.php');
24
91	function __construct($ConfigDir = null) {
92		if(!is_null($ConfigDir) ){
93			$this->Date['ConfigDir'] = $ConfigDir;
101		$this->Session = new SessionClass($this);
102		if(is_null($this->Session->Session('user_permissions'))){
103			$this->Session->Session('Logged_ID', 2);
396		}
397		if(is_null($this->ReadArticleOut) or is_null($this->ReadArticleIndexOut))
398		return false; else
pipeline.class.php http://simpleinvoices.googlecode.com/svn/trunk/ | text | 0 lines
1<?php
2
2
3require_once(HTML2PS_DIR.'utils_array.php');
4require_once(HTML2PS_DIR.'utils_graphic.php');
4require_once(HTML2PS_DIR.'utils_graphic.php');
5require_once(HTML2PS_DIR.'utils_url.php');
6require_once(HTML2PS_DIR.'utils_text.php');
6require_once(HTML2PS_DIR.'utils_text.php');
7require_once(HTML2PS_DIR.'utils_units.php');
8require_once(HTML2PS_DIR.'utils_number.php');
9
10require_once(HTML2PS_DIR.'value.color.php');
11
11
12require_once(HTML2PS_DIR.'config.parse.php');
13
UriProcessorTest.php https://hg01.codeplex.com/odataphpproducer | PHP | 2,461 lines
23use ODataProducer\Common\ODataException;
24require_once 'PHPUnit\Framework\Assert.php';
25require_once 'PHPUnit\Framework\Test.php';
25require_once 'PHPUnit\Framework\Test.php';
26require_once 'PHPUnit\Framework\SelfDescribing.php';
27require_once 'PHPUnit\Framework\TestCase.php';
27require_once 'PHPUnit\Framework\TestCase.php';
28require_once 'PHPUnit\Framework\TestSuite.php';
29require_once 'ODataProducer\Common\ClassAutoLoader.php';
1125            $this->assertEquals($code, 
1126            'if(((!(is_null($lt->OrderID)) && !(is_null($lt->OrderDate))) && (($lt->OrderID == 123) && (ODataProducer\Providers\Metadata\Type\DateTime::dateTimeCmp($lt->OrderDate, \'2000-11-11\') <= 0)))) { return true; } else { return false;}');
1127            $host->getWebOperationContext()->resetWebContextInternal();
1206            $this->assertEquals($code, 
1207            'if(((!(is_null($lt->OrderID)) && !(is_null($lt->OrderDate))) && (($lt->OrderID == 123) && (ODataProducer\Providers\Metadata\Type\DateTime::dateTimeCmp($lt->OrderDate, \'2000-11-11\') <= 0)))) { return true; } else { return false;}');
1208            $host->getWebOperationContext()->resetWebContextInternal();
PHPExpressionProviderTest.php https://hg01.codeplex.com/odataphpproducer | PHP | 692 lines
117            $actualPHPExpression = $expressionProcessor->processExpression();
118            $expectedPHPExpression = '((((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->LineNumber))) && (($lt->Customer->Address->LineNumber + 2) == 4)) || (((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->LineNumber2))) && (($lt->Customer->Address->LineNumber2 - 2) != 6)))';
119            $this->AssertEquals($actualPHPExpression, $expectedPHPExpression);
125            $actualPHPExpression = $expressionProcessor->processExpression();
126            $expectedPHPExpression = '((((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->Address2))) && !(is_null($lt->Customer->Address->Address2->IsPrimary))) && ($lt->Customer->Address->Address2->IsPrimary == true))';
127            $this->AssertEquals($actualPHPExpression, $expectedPHPExpression);
133            $actualPHPExpression = $expressionProcessor->processExpression();  
134            $expectedPHPExpression = '(((((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->Address2))) && !(is_null($lt->Customer->Address->Address2->IsPrimary))) && !(is_null($lt->Customer->Address->IsValid))) && ($lt->Customer->Address->Address2->IsPrimary && $lt->Customer->Address->IsValid))';
135            $this->AssertEquals($actualPHPExpression, $expectedPHPExpression);
141            $actualPHPExpression = $expressionProcessor->processExpression();  
142            $expectedPHPExpression = '(((((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->Address2))) && !(is_null($lt->Customer->Address->Address2->IsPrimary))) && $lt->Customer->Address->Address2->IsPrimary) || (((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->IsValid))) && $lt->Customer->Address->IsValid))';
143            $this->AssertEquals($actualPHPExpression, $expectedPHPExpression);
148            $actualPHPExpression = $expressionProcessor->processExpression();
149            $expectedPHPExpression = '(((((!(is_null($lt->Customer)) && !(is_null($lt->Customer->Address))) && !(is_null($lt->Customer->Address->Address2))) && !(is_null($lt->Customer->Address->Address2->IsPrimary))) && !(is_null($lt->Customer->Address->IsValid))) && ($lt->Customer->Address->Address2->IsPrimary <= $lt->Customer->Address->IsValid))';
150            $this->AssertEquals($actualPHPExpression, $expectedPHPExpression);
Blob.php http://grupal.googlecode.com/svn/trunk/ | PHP | 2,143 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Blob.php 24697 2012-03-23 13:11:04Z ezimuel $
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
pluginlib.php git://github.com/moodle/moodle.git | PHP | 1,691 lines
526     * Passing the parameter $typeclass allows us to reach the same effect as with the
527     * late binding in PHP 5.3. Once PHP 5.3 is required, we can refactor this to use
528     * {@example $plugin = new static();} instead of {@example $plugin = new $typeclass()}
859
860        } else if (is_null($this->versiondb) and !is_null($this->versiondisk)) {
861            return plugin_manager::PLUGIN_STATUS_NEW;
862
863        } else if (!is_null($this->versiondb) and is_null($this->versiondisk)) {
864            if (plugin_manager::is_deleted_standard_plugin($this->type, $this->name)) {
1373
1374        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1375            return new moodle_url('/admin/settings.php', array('section' => 'modsetting' . $this->name));
1536
1537        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1538            return new moodle_url('/admin/settings.php', array('section' => 'messagesetting' . $this->name));
pluginlib.php git://github.com/moodle/moodle.git | text | 0 lines
502     * Passing the parameter $typeclass allows us to reach the same effect as with the
503     * late binding in PHP 5.3. Once PHP 5.3 is required, we can refactor this to use
504     * {@example $plugin = new static();} instead of {@example $plugin = new $typeclass()}
832
833        } else if (is_null($this->versiondb) and !is_null($this->versiondisk)) {
834            return plugin_manager::PLUGIN_STATUS_NEW;
835
836        } else if (!is_null($this->versiondb) and is_null($this->versiondisk)) {
837            return plugin_manager::PLUGIN_STATUS_MISSING;
1342
1343        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1344            return new moodle_url('/admin/settings.php', array('section' => 'modsetting' . $this->name));
1505
1506        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1507            return new moodle_url('/admin/settings.php', array('section' => 'messagesetting' . $this->name));
plugin_api.php git://github.com/mantisbt/mantisbt.git | PHP | 1,102 lines
1<?php
2# MantisBT - A PHP based bugtracking system
28 *
29 * @uses access_api.php
30 * @uses config_api.php
30 * @uses config_api.php
31 * @uses constant_inc.php
32 * @uses database_api.php
32 * @uses database_api.php
33 * @uses error_api.php
34 * @uses event_api.php
34 * @uses event_api.php
35 * @uses file_api.php
36 * @uses helper_api.php
898			# Final check on the class
899			if( is_null( $t_plugin->name ) || is_null( $t_plugin->version ) ) {
900				return null;
Yahoo.inc git://github.com/petewarden/findbyemail.git | Pascal | 1,941 lines
1<?php
2
7 *  @author      Yahoo! Developer Network
8 *  @example     http://developer.yahoo.com/social/sdk/php/
9 *
46 *
47 *  Documentation: http://developer.yahoo.com/social/sdk/php/
48 */
49
50// Use OAuthConsumer as a test to see if any other instances of OAuth.php may
51// have been included. require_once() won't catch situations where multiple
1772        $sdkVersion = "1.2";
1773        $agent = sprintf("YosPhpSdk/%s php/%s", $sdkVersion, phpversion());
1774        curl_setopt($ch, CURLOPT_USERAGENT, $agent);
1921// version of PHP. Include fake versions of json_encode/json_decode that
1922// are backed by the native PHP php-json library, which is available in PEAR.
1923if(!function_exists("json_decode")) {
pluginlib.php git://pkgs.fedoraproject.org/moodle | PHP | 1,692 lines
527     * Passing the parameter $typeclass allows us to reach the same effect as with the
528     * late binding in PHP 5.3. Once PHP 5.3 is required, we can refactor this to use
529     * {@example $plugin = new static();} instead of {@example $plugin = new $typeclass()}
860
861        } else if (is_null($this->versiondb) and !is_null($this->versiondisk)) {
862            return plugin_manager::PLUGIN_STATUS_NEW;
863
864        } else if (!is_null($this->versiondb) and is_null($this->versiondisk)) {
865            if (plugin_manager::is_deleted_standard_plugin($this->type, $this->name)) {
1374
1375        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1376            return new moodle_url('/admin/settings.php', array('section' => 'modsetting' . $this->name));
1537
1538        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1539            return new moodle_url('/admin/settings.php', array('section' => 'messagesetting' . $this->name));
Blob.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 2,142 lines
1<?php
2/**
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
45 */
46require_once 'Zend/Service/WindowsAzure/Storage/LeaseInstance.php';
47
limonade.php https://github.com/liana866/FileZ.git | PHP | 2,483 lines
1195 *   a function, an object method, a static method or a closure.
1196 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1197 *   to learn more about callbacks.
1798 *   or an object and the name of a method within the object
1799 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1800 *   to learn more about callbacks.
2427   * For PHP 5 < 5.3.0 (backward compatibility)
2428   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2429   * 
2458
2459if(PHP_VERSION == '5.2.13' || PHP_VERSION == '5.3.2')
2460{
2461  # There is a bug with filter_var($site_url , FILTER_VALIDATE_URL); 
2462  # http://www.mail-archive.com/php-bugs@lists.php.net/msg134778.html
2463  function filter_var_url($str)
Blob.php https://github.com/kleky/MeetingPlace.git | PHP | 2,030 lines
1<?php
2/**
32 * @license    http://todo     name_todo
33 * @version    $Id: Blob.php 58737 2011-03-02 09:49:52Z unknown $
34 */
38 */
39require_once 'Microsoft/WindowsAzure/Credentials/SharedKey.php';
40
43 */
44require_once 'Microsoft/WindowsAzure/Credentials/SharedAccessSignature.php';
45
48 */
49require_once 'Microsoft/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
50
53 */
54require_once 'Microsoft/Http/Client.php';
55
index.php https://github.com/NHLH-ITM/phpMyFAQ-kindeditor.git | PHP | 769 lines
100// Login via local DB or LDAP or SSO
101if (!is_null($faqusername) && !is_null($faqpassword)) {
102
359    $includeTemplate = $action . '.tpl';
360    $includePhp      = $action . '.php';
361    $writeLangAdress = '?sid=' . $sid;
365        $includeTemplate = 'artikel.tpl';
366        $includePhp      = 'artikel.php';
367    } else {
368        $includeTemplate = 'main.tpl';
369        $includePhp      = 'main.php';
370    }
485    'userOnline'           => $usersOnline,
486    'copyright'            => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' .
487                              $faqConfig->get('main.currentVersion'),
Installer.php https://github.com/NHLH-ITM/phpMyFAQ-kindeditor.git | PHP | 907 lines
1<?php
2/**
13 * @author    Florian Anderiasch <florian@phpmyfaq.net>
14 * @copyright 2002-2014 phpMyFAQ Team
15 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
403            $dbError = "No supported database detected! Please install one of the following database systems and " .
404                        "enable the corresponding PHP extension in php.ini:";
405            $dbError .= "<ul>";
413        if (! $this->_system->checkRequiredExtensions()) {
414            $extError  = "The following extensions are missing! Please enable the PHP extension(s) in php.ini.";
415            $extError .= "<ul>";
477    {
478        if (version_compare(PHP_VERSION, PMF_System::VERSION_MINIMUM_PHP, '<')) {
479            return false;
526        if ((@ini_get('safe_mode') == 'On' || @ini_get('safe_mode') === 1)) {
527            $errors[] = "The PHP safe mode is enabled. You may have problems when phpMyFAQ tries to write in some " .
528                        "directories.";
oxconfig.php https://github.com/GM-Alex/oxideshop_ce.git | PHP | 2,266 lines
1<?php
2/**
32
33    // this column of params are defined in config.inc.php file,
34    // so for backwards compatibility. names starts without underscore
138     * If $blNativeImages is set to true the shop loads images from current domain,
139     * otherwise images are loaded from the domain specified in config.inc.php.
140     * This is applicable for different domains depending on language or mall
318    {
319        if (defined('OXID_PHP_UNIT')) {
320            if (isset(modConfig::$unitMOD) && is_object(modConfig::$unitMOD)) {
382
383        include getShopBasePath() . 'core/oxconfk.php';
384
446    {
447        //config variables from config.inc.php takes priority over the ones loaded from db
448        include getShopBasePath() . '/config.inc.php';
gradelib.php https://bitbucket.org/ceu/moodle_demo | PHP | 1,445 lines
1<?php // $Id: gradelib.php,v 1.120.2.33 2010/07/30 06:46:32 andyjdavis Exp $
2
37require_once($CFG->libdir . '/grade/grade_item.php');
38require_once($CFG->libdir . '/grade/grade_grade.php');
39require_once($CFG->libdir . '/grade/grade_scale.php');
75
76    if (is_null($courseid) or is_null($itemtype)) {
77        debugging('Missing courseid or itemtype');
651    // no grade yet?
652    if (is_null($value)) {
653        return '-';
1207
1208        if (is_null($grademax) and is_null($scaleid)) {
1209           $grade_item->gradetype  = GRADE_TYPE_NONE;
1238
1239    if (is_null($grademax) and is_null($scaleid)) {
1240        $params['gradetype'] = GRADE_TYPE_NONE;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21