PageRenderTime 420ms queryFilters 13ms Sphinxql 50ms app.CodeModel.GetByIds 229ms findMatchingLines 101ms GetByIds 330ms meta 0ms repositoryFilters 10ms languageFilters 0ms sourceFilters 3ms

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

Source

Language

Repository

ConverterTest.php https://github.com/atstudy007/Pomm.git | PHP | 862 lines
1<?php
2
13
14class ConverterTest extends \PHPUnit_Framework_TestCase
15{
58
59        $this->assertEquals(1, $entity['id'], "PHP int 1 <=> PG int 1");
60        $this->assertEquals(12.345, $entity['fixed'], "PHP 12.345 <=> PG 12.345 numeric");
60        $this->assertEquals(12.345, $entity['fixed'], "PHP 12.345 <=> PG 12.345 numeric");
61        $this->assertEquals(0.000001, $entity['fl'], "PHP 0.000001 <=> PG 1e-6");
62        $this->assertEquals(array(1.0, 1.1, 1.2, 1.3), $entity['arr_fl'], "Float array is preserved.");
68
69        $this->assertEquals(0.000, $entity['fixed'], "PHP 0.0001 <=> PG 0.000 numeric");
70        $this->assertEquals(1000000, $entity['fl'], "PHP 1000000.000001 <=> PG 1e+6");
119
120        $this->assertTrue(is_null($entity['some_char']), "Strings NULL are preserved.");
121
functions.php https://github.com/guodont/easycart.git | PHP | 1,400 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/guodont/easycart.git | PHP | 1,038 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;
115        $name = strtoupper($name);
116        if (is_null($value))
117            return isset($_lang[$name]) ? $_lang[$name] : $name;
class.general.php https://github.com/vlad-ghita/symphony-2.git | PHP | 1,438 lines
1<?php
2	/**
220		public static function flattenArray(array &$source, &$output = null, $path = null) {
221			if (is_null($output)) $output = array();
222
224				if (is_int($key)) $key = (string)($key + 1);
225				if (!is_null($path)) $key = $path . '.' . (string)$key;
226
583		 * of both. If there is no merge_file_post_data function defined then
584		 * such a function is created. This is necessary to overcome PHP's ability
585		 * to handle forms. This overcomes PHP's convoluted `$_FILES` structure
794		 *  the mode that the file should be opened with, defaults to 'w'. See modes
795		 *  at http://php.net/manual/en/function.fopen.php
796		 * @param boolean $trim (optional)
814			if($trim === true) {
815				$data = preg_replace("/(" . PHP_EOL . "(\t+)?){2,}" . PHP_EOL . "/", PHP_EOL . PHP_EOL, trim($data));
816			}
formslib.php https://github.com/lsuits/moodle.git | PHP | 2,961 lines
19 *
20 * To use formslib then you will want to create a new file purpose_form.php eg. edit_form.php
21 * and you want to name your class something like {modulename}_{purpose}_form. Your class will
24 *
25 * See examples of use of this library in course/edit.php and course/edit_form.php
26 *
39
40/** setup.php includes our hacked pear libs first */
41require_once 'HTML/QuickForm.php';
43require_once 'HTML/QuickForm/Renderer/Tableless.php';
44require_once 'HTML/QuickForm/Rule.php';
45
1145        // set checkbox state depending on orignal/submitted value by controoler button
1146        if (!is_null($contollerbutton) || is_null($selectvalue)) {
1147            foreach ($mform->_elements as $element) {
oci_native_moodle_database.php https://github.com/lsuits/moodle.git | PHP | 1,812 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
27require_once(__DIR__.'/moodle_database.php');
28require_once(__DIR__.'/oci_native_moodle_recordset.php');
29require_once(__DIR__.'/oci_native_moodle_temptables.php');
34 * One complete reference for PHP + OCI:
35 * http://www.oracle.com/technology/tech/php/underground-php-oracle-manual.html
36 *
55    /**
56     * Detects if all needed PHP stuff installed.
57     * Note: can be used before connect()
61        if (!extension_loaded('oci8')) {
62            return get_string('ociextensionisnotpresentinphp', 'install');
63        }
152        // Switching to OFF (OCI_DEFAULT), when playing with transactions
153        // please note this thing is not defined if oracle driver not present in PHP
154        // which means it can not be used as default value of object property!
my.php https://github.com/rakshithkr/showslow.git | PHP | 265 lines
211			<td colspan="<?php echo $cols*2 ?>"/>
212		<?php } else if (!is_null($row['o']) || !is_null($row['ps_o']) || !is_null($row['dt_o'])) { ?>
213			<td style="text-align: right; padding-right: 1em"><a title="Time of last check for this URL" href="<?php echo detailsUrl($row['id'], $row['url'])?>"><?php echo htmlentities($row['last_update']); ?></a></td>
215			<?php } else if (!is_null($row['o'])) {?>
216				<td class="score" title="Current YSlow grade: <?php echo prettyScore($row['o'])?> (<?php echo $row['o']?>)"><?php echo prettyScore($row['o'])?> (<?php echo $row['o']?>)</td>
217				<td title="Current YSlow grade: <?php echo prettyScore($row['o'])?> (<?php echo $row['o']?>)"><div class="gbox"><div style="width: <?php echo $row['o']+1?>px" class="bar c<?php echo scoreColorStep($row['o'])?>"/></div></td>
225				<td class="score" title="Current Page Speed score: <?php echo prettyScore($row['ps_o'])?> (<?php echo $row['ps_o']?>)"><?php echo prettyScore($row['ps_o'])?> (<?php echo $row['ps_o']?>)</td>
226				<td title="Current Page Speed score: <?php echo prettyScore($row['ps_o'])?> (<?php echo $row['ps_o']?>)"><div class="gbox"><div style="width: <?php echo $row['ps_o']+1?>px" class="bar c<?php echo scoreColorStep($row['ps_o'])?>"/></div></td>
227			<?php } else { ?>
234				<td class="score" title="Current dynaTrace score: <?php echo prettyScore($row['dt_o'])?> (<?php echo $row['dt_o']?>)"><?php echo prettyScore($row['dt_o'])?> (<?php echo $row['dt_o']?>)</td>
235				<td title="Current dynaTrace score: <?php echo prettyScore($row['dt_o'])?> (<?php echo $row['dt_o']?>)"><div class="gbox"><div style="width: <?php echo $row['dt_o']+1?>px" class="bar c<?php echo scoreColorStep($row['dt_o'])?>"/></div></td>
236			<?php }else{?>
249		<?php if ($link) {?>
250		<td style="padding-left: 1em; overflow: hidden; white-space: nowrap;"><a href="<?php echo detailsUrl($row['id'], $row['url'])?>"><?php echo htmlentities(substr($row['url'], 0, 100))?><?php if (strlen($row['url']) > 100) { ?>...<?php } ?></a></td>
251		<?php } else { ?>
index.php https://github.com/NHLH-ITM/phpMyFAQ-kindeditor.git | PHP | 356 lines
1<?php
2/**
12 * @package   Administraion
13 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
14 * @author    Bastian Poettner <bastian@poettner.net>
16 * @author    Minoru TODA <todam@netjapan.co.jp>
17 * @author    Matteo Scaramuccia <matteo@phpmyfaq.de>
18 * @copyright 2002-2014 phpMyFAQ Team
19 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
20 * @link      http://www.phpmyfaq.de
21 * @since     2002-09-16
31if (!file_exists(PMF_ROOT_DIR . '/config/database.php')) {
32    RedirectResponse::create(str_replace('admin/index.php', '', $_SERVER['SCRIPT_NAME']).'setup/index.php')
33        ->send();
124// Login via local DB or LDAP or SSO
125if (!is_null($faqusername) && !is_null($faqpassword)) {
126    $user = new PMF_User_CurrentUser($faqConfig);
util.php https://github.com/stenrap/bridgetjohansen.com.git | PHP | 2,676 lines
1<?php
2
2
3require_once('db.php');
4require_once('auth.php');
4require_once('auth.php');
5require_once('LessonSchedule.php');
6require_once('EventSchedule.php');
86		
87		if (is_null($result))
88		{
115		
116		if (is_null($result))
117		{
149			
150		if (is_null($result))
151		{
LocalisationCache.php https://github.com/spenser-roark/OOUG-Wiki.git | PHP | 1,167 lines
1<?php
2
5/**
6 * Class for caching the contents of localisation files, Messages*.php
7 * and *.i18n.php.
72	 * is filled by initShallowFallback() when data is requested from a language
73	 * that lacks a Messages*.php file.
74	 */
140	 * Constructor.
141	 * For constructor parameters, see the documentation in DefaultSettings.php
142	 * for $wgLocalisationCacheConf.
387
388		# If the code is of the wrong form for a Messages*.php file, do a shallow fallback
389		if ( !Language::isValidBuiltInCode( $code ) ) {
398			} elseif ( $code === 'en' ) {
399				throw new MWException( 'MessagesEn.php is missing.' );
400			} else {
base.php https://github.com/giovanisp/cops.git | PHP | 1,393 lines
1<?php
2/**
2/**
3 * COPS (Calibre OPDS PHP Server) class file
4 *
172 * This method is a direct copy-paste from
173 * http://tmont.com/blargh/2010/1/string-format-in-php
174 */
265 * This method is based on this page
266 * http://www.mind-it.info/2010/02/22/a-simple-approach-to-localization-in-php/
267 */
282    /* If no instance of $translations has occured load the language file */
283    if (is_null($translations)) {
284        $lang_file_en = NULL;
441        parent::__construct ($phref, Link::OPDS_NAVIGATION_TYPE, $prel, $ptitle);
442        if (!is_null (GetUrlParam (DB))) $this->href = addURLParameter ($this->href, DB, GetUrlParam (DB));
443        if (!preg_match ("#^\?(.*)#", $this->href) && !empty ($this->href)) $this->href = "?" . $this->href;
Asset.php https://github.com/asalem/pyrocms.git | PHP | 1,547 lines
1006					}
1007					$ret .= '<!--'.PHP_EOL.'Group: '.$group_name.PHP_EOL.implode('', $bits).'-->'.PHP_EOL;
1008				}
1021					if ($inline) {
1022						$ret .= self::html_tag('style', $attr, PHP_EOL.file_get_contents($file['file']).PHP_EOL).PHP_EOL;
1023					} else {
1262				if (self::$show_files_inline) {
1263					$content .= PHP_EOL.'/* '.$file['file'].' */'.PHP_EOL.PHP_EOL;
1264				}
1313		foreach (self::$inline_assets['js'] as $content) {
1314			$ret .= self::html_tag('script', $attr, PHP_EOL.$content.PHP_EOL).PHP_EOL;
1315		}
1337		foreach (self::$inline_assets['css'] as $content) {
1338			$ret .= self::html_tag('style', $attr, PHP_EOL.$content.PHP_EOL).PHP_EOL;
1339		}
oxlang.php https://github.com/GM-Alex/oxideshop_ce.git | PHP | 1,380 lines
1<?php
2/**
166
167            if (is_null($this->_iBaseLanguageId)) {
168                $this->_iBaseLanguageId = oxRegistry::getConfig()->getRequestParameter('lang');
182
183            if (is_null($this->_iBaseLanguageId)) {
184                $this->_iBaseLanguageId = oxRegistry::getConfig()->getRequestParameter('language');
191            // getting language from browser
192            if (is_null($this->_iBaseLanguageId) && !$blAdmin && !oxRegistry::getUtils()->isSearchEngine()) {
193
197                // getting from browser
198                if (is_null($this->_iBaseLanguageId)) {
199                    $this->_iBaseLanguageId = $this->detectLanguageByBrowser();
202
203            if (is_null($this->_iBaseLanguageId)) {
204                $this->_iBaseLanguageId = $myConfig->getConfigParam('sDefaultLang');
GoogleOpenID.php https://bitbucket.org/lkalif/singularity-crash-processor | PHP | 479 lines
1<?php
2  
16  *
17  * $googleGateway = GoogleOpenID::createRequest("http://www.mydomain.com/check.php",
18  *                                              "ABCDEFG",
35  *
36  * $googleGateway = GoogleOpenID::createRequest("http://www.mydomain.com/checkauth.php", "ABCDEFG", true);
37  * $googleGateway->redirect();
42  *
43  * $googleGateway = GoogleOpenID::createRequest("http://www.mydomain.com/checkauth.php", $handle, true);
44  * $googleGateway->redirect();
50  *
51  * To continue the previous example, the following code would go in checkauth.php
52  *
120      //if assoc_handle is null, fetch one
121      if(is_null($assoc_handle))
122        $assoc_handle = GoogleOpenID::getAssociationHandle();
Financial.php https://bitbucket.org/y_widyatama/ijepa2 | PHP | 2,293 lines
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36}
256		$rate		= PHPExcel_Calculation_Functions::flattenSingleValue($rate);
257		$par		= (is_null($par))	? 1000 :	PHPExcel_Calculation_Functions::flattenSingleValue($par);
258		$basis		= (is_null($basis))	? 0 :		PHPExcel_Calculation_Functions::flattenSingleValue($basis);
2036
2037			if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
2038				++$maturity;
2044			} else {
2045				$daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement));
2046			}
2084
2085			if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
2086				++$maturity;
Devblocks.class.php https://github.com/rmiddle/devblocks.git | PHP | 5,094 lines
1<?php
2include_once(DEVBLOCKS_PATH . "api/Model.php");
3include_once(DEVBLOCKS_PATH . "api/DAO.php");
4include_once(DEVBLOCKS_PATH . "api/Extension.php");
5
43	static function importVar($value,$type=null,$default=null) {
44		if(is_null($value) && !is_null($default))
45			$value = $default;
90	static function importGPC($var,$cast=null,$default=null) {
91	    if(!is_null($var)) {
92	        if(is_string($var)) {
99	        
100	    } elseif (is_null($var) && !is_null($default)) {
101	        $var = $default;
103
104	    if(!is_null($cast))
105	    	$var = self::importVar($var, $cast, $default);
qforms.base.php https://github.com/mcniac/mostly-joomla.git | PHP | 840 lines
1<?php
2/*
46**/
47require_once(QFORMS_PATH.'qforms.widgets.php');
48if(!function_exists('adodb_date_test_date')) {
48if(!function_exists('adodb_date_test_date')) {
49    require_once(QFORMS_PATH.'adodb-time.inc.php');
50}
112            $this->abm_prefix.'Module'=>basename($_SERVER['SCRIPT_FILENAME'])
113            ),null,'qforms.generic.export_print.php');
114        $this->abm_print_url    = QForms::URL($this->abm_url, array(
116            $this->abm_prefix.'Module'=>basename($_SERVER['SCRIPT_FILENAME'])
117             ),null,'qforms.generic.export_print.php');
118
121
122        $this->template_list    = QFORMS_PATH_TEMPLATES.'qforms.template.list.php';
123        $this->template_form    = QFORMS_PATH_TEMPLATES.'qforms.template.form.php';
SOAP5.php https://github.com/yrchen/OPMS.git | PHP | 268 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
10 * that is available through the world-wide-web at the following URI:
11 * http://www.php.net/license/3_01.txt.  If you did not receive a copy of
12 * the PHP License and are unable to obtain it through the web, please
12 * the PHP License and are unable to obtain it through the web, please
13 * send a note to license@php.net so we can mail you a copy immediately.
14 *
20 * @copyright  2001-2006 The PHP Group
21 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
22 * @version    CVS: $Id: SOAP5.php,v 1.4 2006/09/07 02:32:35 aashley Exp $
49 *
50 * See http://www.php.net/manual/en/ref.soap.php for further details
51 * on options for the PHP5 SoapClient which are passed through.
102 * @copyright  2001-2006 The PHP Group
103 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
104 * @version    Release: 1.4.0  File: $Revision: 1.4 $
mpd.php https://github.com/jinzora/jinzora3.git | PHP | 1,714 lines
1<?php if (!defined(JZ_SECURE_ACCESS)) die ('Security breach detected.');
2	/**
117				</form>
118				<?php
119				exit();
141				// Ok, let's create the settings file
142				$content  = "<?". "php\n";
143				$content .= "$". "jbArr[0]['server'] = '". $_POST['edit_server']. "';\n";
150				// Now let's write it out IF we can
151				$filename = getcwd(). "/jukebox/settings.php";
152				if (is_writable($filename)){
159					</form>
160					<?php
161					exit();
165					echo "Or copy and paste the below information into the file at: ". getcwd(). "/jukebox/settings.php<br><br>";
166					echo str_replace("    ","&nbsp;&nbsp;&nbsp;&nbsp;",nl2br(str_replace("<?php", "&lt;php",$content)));
167					echo "<br><br>";
adodb-session.php https://github.com/reinhardsual/openemr.git | PHP | 818 lines
1<?php
2
29if (!defined('_ADODB_LAYER')) {
30	require_once realpath(dirname(__FILE__) . '/../adodb.inc.php');
31}
50
51		if (!is_null($driver)) {
52			$_driver = trim($driver);
69
70		if (!is_null($host)) {
71			$_host = trim($host);
88
89		if (!is_null($user)) {
90			$_user = trim($user);
107
108		if (!is_null($password)) {
109			$_password = $password;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21