PageRenderTime 26ms queryFilters 0ms Sphinxql 32ms app.CodeModel.GetByIds 16ms findMatchingLines 50ms GetByIds 66ms meta 0ms repositoryFilters 5ms languageFilters 1ms sourceFilters 1ms

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

Source

Language

Repository

limonade.php https://bitbucket.org/co-me/isucon2.git | PHP | 2,671 lines
1222 *   a function, an object method, a static method or a closure.
1223 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1224 *   to learn more about callbacks.
1868 *   or an object and the name of a method within the object
1869 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1870 *   to learn more about callbacks.
2572   * For PHP 5 < 5.3.0 (backward compatibility)
2573   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2574   * 
2607 * This implementation no longer requires 
2608 * {@link http://www.php.net/manual/en/book.filter.php the filter extenstion}, 
2609 * so it will improve compatibility with older PHP versions.
2623 * For PHP 5 < 5.1.0 (backward compatibility)
2624 * (from {@link http://www.php.net/manual/en/function.htmlspecialchars-decode.php#82133})
2625 * 
Document.php https://github.com/joedevon/Shanty-Mongo.git | PHP | 1,292 lines
1<?php
2require_once 'Shanty/Mongo/Exception.php';
2require_once 'Shanty/Mongo/Exception.php';
3require_once 'Shanty/Mongo/Collection.php';
4require_once 'Shanty/Mongo/Iterator/Default.php';
145	{
146		return !is_null($this->getId());
147	}
196	{
197		return (!is_null($this->getConfigAttribute('connectionGroup')) && !is_null($this->getConfigAttribute('db')) && !is_null($this->getConfigAttribute('collection')));
198	}
248	{
249		return is_null($this->getPathToDocument());
250	}
300	{
301		if (is_null($property)) return $this->_config['criteria'];
302		
Facebook.php https://github.com/A-Shevchenko/oauth-2---facebook---zend-framework-components.git | PHP | 855 lines
765        if (!is_null($limit)) $query['limit'] = $limit;
766        if (!is_null($offset) && !is_null($limit)) $query['offset'] = $offset;
767        if (!is_null($since) && !is_null($limit)) $query['since'] = $since;
770        // if both are null return null
771        if (is_null($objectFields) && is_null($objectConnections)) return array(null, $path);
772
773        // if only connections are null return query with fields list
774        if (!is_null($objectFields) && is_null($objectConnections)) {
775            // check if fields got specified
793        // a single field is ok if you pass it in the fields query but not a single connection
794        if (is_null($objectFields) && !is_null($objectConnections)) {
795            // check if fields got specified
808        // if none is null return query with connections and fields list
809        if (!is_null($objectFields) && !is_null($objectConnections)) {
810            $fieldsAndConnections = array();
Functions.php https://github.com/jcplat/console-seolan.git | PHP | 11,009 lines
5584			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
5585			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
5586
5635			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
5636				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
5637			} else {
5637			} else {
5638				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
5639			}
6381												  break;
6382			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6383												  break;
6420												  break;
6421			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6422												  break;
locallib.php https://github.com/KieranRBriggs/moodle-mod_hotpot.git | PHP | 2,024 lines
1<?php
2
32
33require_once(dirname(__FILE__).'/lib.php');     // we extend this library here
34require_once($CFG->libdir . '/gradelib.php');   // we use some rounding and comparing routines here
371        $this->course = $course;
372        if (is_null($context)) {
373            $this->context = hotpot_get_context(CONTEXT_MODULE, $this->cm->id);
376        }
377        if (is_null($attempt)) {
378            // do nothing
406        $editmode = optional_param('editmode', null, PARAM_BOOL);
407        if (! is_null($editmode)) {
408            $USER->editing = $editmode;
479        if ($sourcetype) {
480            $classes = self::get_classes('hotpotattempt', 'renderer.php', 'mod_', '_renderer');
481            foreach ($classes as $class) {
index.php https://github.com/cyrke/phpMyFAQ.git | PHP | 752 lines
104// Login via local DB or LDAP or SSO
105if (!is_null($faqusername) && !is_null($faqpassword)) {
106    $user = new PMF_User_CurrentUser($faqConfig);
249        }
250    } elseif (is_null($sid_get) || is_null($sid_cookie)) {
251        if (is_null($sid_cookie)) {
374    $includeTemplate = $action . '.tpl';
375    $includePhp      = $action . '.php';
376    $writeLangAdress = '?sid=' . $sid;
380        $includeTemplate = 'artikel.tpl';
381        $includePhp      = 'artikel.php';
382    } else {
488    'stickyRecordsHeader' => $PMF_LANG['stickyRecordsHeader'],
489    'copyright'           => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' .
490                             $faqConfig->get('main.currentVersion'),
Installer.php https://github.com/cyrke/phpMyFAQ.git | PHP | 838 lines
386        if (!$this->checkMinimumPhpVersion()) {
387            printf('<p class="alert alert-error">Sorry, but you need PHP %s or later!</p>', PMF_System::VERSION_MINIMUM_PHP);
388            PMF_System::renderFooter();
397            echo '<p class="alert alert-error">No supported database detected! Please install one of the following' .
398                ' database systems and enable the corresponding PHP extension in php.ini:</p>';
399            echo '<ul>';
439
440        if (! is_readable(PMF_ROOT_DIR . '/inc/data.php') && ! is_readable(PMF_ROOT_DIR . '/config/database.php')) {
441            echo '<p class="alert alert-error">It seems you never run a version of phpMyFAQ.<br />' .
453    {
454        if (version_compare(PHP_VERSION, PMF_System::VERSION_MINIMUM_PHP, '<')) {
455            return false;
500        if ((@ini_get('safe_mode') == 'On' || @ini_get('safe_mode') === 1)) {
501            echo '<p class="alert alert-error">The PHP safe mode is enabled. You may have problems when phpMyFAQ tries to write ' .
502                ' in some directories.</p>';
view.php https://github.com/eviweb/moodle-mod_turnitintool.git | PHP | 424 lines
1<?php
2/**
10require_once("../../lib/form/text.php");
11require_once("../../lib/form/datetimeselector.php");
12require_once("../../lib/form/hidden.php");
157
158if (!is_null($param_do) AND $param_do=="tutors" AND !is_null($param_unenrol)) {
159    $tutors=turnitintool_remove_tiitutor($cm,$turnitintool,$param_unenrol);
167
168if (!is_null($param_do) AND $param_do=="tutors" AND !is_null($param_enroltutor)) {
169    $tutors=turnitintool_add_tiitutor($cm,$turnitintool,$param_enroltutor);
177
178if (!is_null($param_do) AND $param_do=="tutors" AND is_null($param_unenrol) AND is_null($param_enroltutor)) {
179    $tutors=turnitintool_get_tiitutors($cm,$turnitintool);
192
193if (!is_null($param_do) AND $turnitintool->autoupdates==1 AND $param_do=="allsubmissions" AND !is_null($param_anonid)) {
194    $loaderbar = new turnitintool_loaderbarclass(3);
jpgraph.php https://bitbucket.org/mannir/agp.git | 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://github.com/ejgallegos/tgpcuentas.git | 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);
Common.php https://github.com/CodeYellowBV/piwik.git | PHP | 1,102 lines
1<?php
2/**
121     * @since added in 0.4.4
122     * @return bool true if PHP invoked as a CGI or from CLI
123     */
242     * 
243     * - [htmlspecialchars](http://php.net/manual/en/function.htmlspecialchars.php) is used to escape text.
244     * - Single quotes are not escaped so **Piwik's amazing community** will still be
353    /**
354     * Undo the damage caused by magic_quotes; deprecated in php 5.3 but not removed until php 5.4
355     *
721     *
722     * See [core/DataFiles/Languages.php](https://github.com/piwik/piwik/blob/master/core/DataFiles/Languages.php).
723     *
738     *
739     * See [core/DataFiles/LanguageToCountry.php](https://github.com/piwik/piwik/blob/master/core/DataFiles/LanguageToCountry.php).
740     *
pagelib.php https://github.com/lsuits/moodle.git | PHP | 1,931 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) {
index.php https://github.com/rakshithkr/showslow.git | PHP | 871 lines
263</script>
264<h2>Details for <?php if ($linkToURLs) {?><a target="_blank" href="<?php echo htmlentities($url)?>" rel="nofollow"><?php } else { ?><span class="sitelink"><?php } ?><span title="<?php echo htmlentities($url) ?>"><?php echo htmlentities(ellipsis($url, 61)) ?></span><?php if ($linkToURLs) {?></a><?php } else { ?></span><?php } ?></h2>
265<?php if (!is_null($addThisProfile)) {?>
352		<td valign="top" align="center" class="<?php echo $provider_name ?>">
353		<a href="#<?php echo $provider_name ?>"><img src="http://chart.apis.google.com/chart?chs=225x108&cht=gom&chd=t:<?php echo urlencode($score)?>&chl=<?php echo urlencode($pretty_score.' ('.$score.')') ?>" width="225" height="108" alt="<?php echo $pretty_score ?> (<?php echo htmlentities($score)?>)" title="Current <?php echo $provider['title'] ?> <?php echo $provider['score_name'] ?>: <?php echo $pretty_score ?> (<?php echo htmlentities($score)?>)" border="0"/></a>
354		<div>Current <a href="#<?php echo $provider_name ?>"><?php echo $provider['title'] ?></a> <?php echo $provider['score_name'] ?>: <b><?php echo $pretty_score ?> (<i><?php echo htmlentities($score)?></i>)</b></div>
545		{
546			?><span title="<?php echo htmlentities($metric['description'])?>" style="color: <?php echo array_key_exists('color', $metric) ? $metric['color'] : 'black' ?>"><?php echo htmlentities($metric['title'])?></span> (<a href="<?php echo $showslow_base ?>/details/data_metric.php?metric=<?php echo urlencode($name);?>&urlid=<?php echo urlencode($urlid);?>">csv</a>);
547	<?php
623					<td class="value"><?php echo $pretty_score?> (<i><?php echo htmlentities($value)?></i>%)</td>
624					<td><div class="gbox" title="Current <?php echo $metric['title']?>: <?php echo $pretty_score?> (<?php echo $value?>%)"><div class="bar c<?php echo scoreColorStep($value)?>" style="width: <?php echo $value+1?>px"/></div></td><?php
625				} else {
721							<td><span id="details_<?php echo $provider_name.'_'.$metric[1] ?>" class="details"></span></td>
722							<td><div class="gbox" title="Current <?php echo $provider['score_name']?>: <?php echo $pretty_score?> (<?php echo $value?>%)"><div class="bar c<?php echo scoreColorStep($value)?>" style="width: <?php echo $value+1?>px"/></div></td><?php
723						} else {
component.php https://github.com/J2MTecnologia/joomla-3.x.git | PHP | 820 lines
276
277		if (is_null($isCli) && is_null($isAdmin))
278		{
392
393		if (is_null($isCli) && is_null($isAdmin))
394		{
540
541		if (is_null($isCli) && is_null($isAdmin))
542		{
641
642		if (is_null($isCli) && is_null($isAdmin))
643		{
743
744		if (is_null($isCli) && is_null($isAdmin))
745		{
gradelib.php https://github.com/gwamgerald/moodle-1.git | PHP | 1,466 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) {
1004            //dont include default empty grades created when activities are created
1005            if (!is_null($oldgrade->finalgrade) || !is_null($oldgrade->feedback)) {
1006                $recoveredgrades = true;
ajaxservice.php https://github.com/NHLH-ITM/phpMyFAQ-kindeditor.git | PHP | 851 lines
129
130        if (!is_null($username) && !empty($username) && !empty($mail) && !is_null($mail) && !is_null($comment) &&
131            !empty($comment) && $stopwords->checkBannedWord($comment) && !$faq->commentDisabled($id, $languageCode, $type)) {
281            !is_null($answer) && !empty($answer) && $stopwords->checkBannedWord(strip_tags($answer)) &&
282            ((is_null($faqid) && !is_null($categories['rubrik'])) || (!is_null($faqid) && !is_null($faqlanguage) &&
283            PMF_Language::isASupportedLanguage($faqlanguage)))) {
682
683        if (!is_null($name) && !empty($name) && !is_null($email) && !empty($email) && !is_null($question) &&
684            !empty($question) && $stopwords->checkBannedWord(PMF_String::htmlspecialchars($question))) {
724
725        if (!is_null($name) && !empty($name) && !is_null($email) && !empty($email) &&
726            is_array($mailto) && !empty($mailto['mailto'][0]) &&
757
758        if (!isset($_SESSION['phpmyfaq_csrf_token']) || $_SESSION['phpmyfaq_csrf_token'] !== $currentToken) {
759            $message = array('error' => $PMF_LANG['ad_msg_noauth']);
jpgraph.php https://github.com/dublado/PHPExcel.git | PHP | 856 lines
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 */
723		require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_bar.php');
724		require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_scatter.php');
725		require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_regstat.php');
725		require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_regstat.php');
726		require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php');
727
import_resources_zip.php https://bitbucket.org/bontiv/insomnia | PHP | 619 lines
43
44    require("classes/phpzip/phpzip.inc.php");
45    $zipfile=$_FILES['the_file']['tmp_name'];
226
227    require("classes/phpzip/phpzip.inc.php");
228    //$the_full_file_path = $tempdir . "/" . $_FILES['the_file']['name'];
330        }
331        elseif (is_null($aErrorFilesInfo) && is_null($aImportedFilesInfo))
332        {
339        }
340        elseif (!is_null($aErrorFilesInfo) && !is_null($aImportedFilesInfo))
341        {
408
409    require("classes/phpzip/phpzip.inc.php");
410    //$the_full_file_path = $tempdir . "/" . $_FILES['the_file']['name'];
cityedit.php https://bitbucket.org/joemarmatulac/ebutton | PHP | 1,129 lines
6<?php include_once "ewmysql8.php" ?>
7<?php include_once "phpfn8.php" ?>
8<?php include_once "cityinfo.php" ?>
8<?php include_once "cityinfo.php" ?>
9<?php include_once "userinfo.php" ?>
10<?php include_once "userfn8.php" ?>
147</script>
148<p class="phpmaker ewTitle"><?php echo $Language->Phrase("Edit") ?>&nbsp;<?php echo $Language->Phrase("TblTypeTABLE") ?><?php echo $city->TableCaption() ?></p>
149<p class="phpmaker"><a href="<?php echo $city->getReturnUrl() ?>"><?php echo $Language->Phrase("GoBack") ?></a></p>
239?>
240<option value="<?php echo ew_HtmlEncode($arwrk[$rowcntwrk][0]) ?>"<?php echo $selwrk ?>>
241<?php echo $arwrk[$rowcntwrk][1] ?>
270</script>
271<?php include_once "footer.php" ?>
272<?php
barangayedit.php https://bitbucket.org/joemarmatulac/ebutton | PHP | 1,181 lines
6<?php include_once "ewmysql8.php" ?>
7<?php include_once "phpfn8.php" ?>
8<?php include_once "barangayinfo.php" ?>
8<?php include_once "barangayinfo.php" ?>
9<?php include_once "userinfo.php" ?>
10<?php include_once "userfn8.php" ?>
144</script>
145<p class="phpmaker ewTitle"><?php echo $Language->Phrase("Edit") ?>&nbsp;<?php echo $Language->Phrase("TblTypeTABLE") ?><?php echo $barangay->TableCaption() ?></p>
146<p class="phpmaker"><a href="<?php echo $barangay->getReturnUrl() ?>"><?php echo $Language->Phrase("GoBack") ?></a></p>
259		<td<?php echo $barangay->brgyaltitude->CellAttributes() ?>><span id="el_brgyaltitude">
260<input type="text" name="x_brgyaltitude" id="x_brgyaltitude" size="30" value="<?php echo $barangay->brgyaltitude->EditValue ?>"<?php echo $barangay->brgyaltitude->EditAttributes() ?>>
261</span><?php echo $barangay->brgyaltitude->CustomMsg ?></td>
284</script>
285<?php include_once "footer.php" ?>
286<?php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21