PageRenderTime 275ms queryFilters 0ms Sphinxql 26ms app.CodeModel.GetByIds 161ms findMatchingLines 46ms GetByIds 207ms meta 0ms repositoryFilters 11ms languageFilters 4ms sourceFilters 4ms

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

Source

Language

Repository

gradelib.php https://github.com/mylescarrick/moodle.git | PHP | 1,367 lines
1<?php
2
29/** Include essential files */
30require_once($CFG->libdir . '/grade/constants.php');
31
31
32require_once($CFG->libdir . '/grade/grade_category.php');
33require_once($CFG->libdir . '/grade/grade_item.php');
33require_once($CFG->libdir . '/grade/grade_item.php');
34require_once($CFG->libdir . '/grade/grade_grade.php');
35require_once($CFG->libdir . '/grade/grade_scale.php');
35require_once($CFG->libdir . '/grade/grade_scale.php');
36require_once($CFG->libdir . '/grade/grade_outcome.php');
37
74
75    if (is_null($courseid) or is_null($itemtype)) {
76        debugging('Missing courseid or itemtype');
FAlbum.class.php https://github.com/jdickie/mithpressbeta.git | PHP | 1,981 lines
1<?php
2/*
98		$continue = true;
99		if (!is_null($show)) {
100			if ($show == 'tags') {
110			// Show list of albums/photosets (none have been selected yet)
111			if (is_null($album) && is_null($tags) && is_null($photo)) {
112				$output = $this->show_albums($page);
114			// Show list of photos in the selected album/photoset
115			elseif (!is_null($album) && is_null($photo)) {
116				$output = $this->show_album_thumbnails($album, $page);
118			// Show list of photos of the selected tags
119			elseif (!is_null($tags) && is_null($photo)) {
120				$output = $this->show_tags_thumbnails($tags, $page);
122			// Show the selected photo in the slected album/photoset
123			elseif ((!is_null($album) || !is_null($tags)) && !is_null($photo)) {
124				$output = $this->show_photo($album, $tags, $photo, $page);
securimage.php https://github.com/kppf/securimage.git | PHP | 2,210 lines
1<?php
2
6 * Project:     Securimage: A PHP class for creating and managing form CAPTCHA images<br />
7 * File:        securimage.php<br />
8 *
38 *
39 * @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
40 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
40 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
41 * @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
42 * @copyright 2013 Drew Phillips
64 3.2RC3
65 - Fix canSendHeaders() check which was breaking if a PHP startup error was issued
66
165    // They can be passed as an array to the Securimage constructor, set below,
166    // or set from securimage_show.php and securimage_play.php
167
utility.php https://github.com/dancameron/wp-carrington-core.git | PHP | 1,593 lines
1<?php
2
9// Released under the GPL license
10// http://www.opensource.org/licenses/gpl-license.php
11//
27	if (!empty($str)) {
28		if (file_exists(CFCT_PATH.'error/exit.php')) {
29			include(CFCT_PATH.'error/exit.php');
45	if (!empty($str)) {
46		if (file_exists(CFCT_PATH.'misc/banner.php')) {
47			include(CFCT_PATH.'misc/banner.php');
120function cfct_default_file($dir) {
121	$fancy = $dir.'-default.php';
122	file_exists(CFCT_PATH.$dir.'/'.$fancy) ? $default = $fancy : $default = 'default.php';
252	// child theme path
253	$path = STYLESHEETPATH.'/'.$dir.'/'.$file.'.php';
254	// check for child theme first
ajaxservice.php https://github.com/cyrke/phpMyFAQ.git | PHP | 794 lines
121
122        if (!is_null($username) && !empty($username) && !empty($mail) && !is_null($mail) && !is_null($comment) &&
123            !empty($comment) && $stopwords->checkBannedWord($comment) && !$faq->commentDisabled($id, $languageCode, $type)) {
248            !is_null($answer) && !empty($answer) && $stopwords->checkBannedWord(PMF_String::htmlspecialchars($answer)) &&
249            ((is_null($faqid) && !is_null($categories['rubrik'])) || (!is_null($faqid) && !is_null($faqlanguage) &&
250            PMF_Language::isASupportedLanguage($faqlanguage)))) {
535
536        if (!is_null($loginname) && !empty($loginname) && !is_null($email) && !empty($email) &&
537            !is_null($realname) && !empty($realname)) {
630
631        if (!is_null($name) && !empty($name) && !is_null($email) && !empty($email) && !is_null($question) &&
632            !empty($question) && $stopwords->checkBannedWord(PMF_String::htmlspecialchars($question))) {
672
673        if (!is_null($name) && !empty($name) && !is_null($email) && !empty($email) &&
674            is_array($mailto) && !empty($mailto['mailto'][0]) &&
jot.class.inc.php https://github.com/dreeman/modx106.git | PHP | 909 lines
1<?php
2/*####
79		// TODO Add docid/tagid from all
80		$this->config["docid"] = !is_null($this->Get("docid")) ? intval($this->Get("docid")):$modx->documentIdentifier;
81		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
81		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
82		$this->config["pagination"] = !is_null($this->Get("pagination")) ? $this->Get("pagination") : 10; // Set pagination (0 = disabled, # = comments per page)
83		$this->config["captcha"] = !is_null($this->Get("captcha")) ? intval($this->Get("captcha")) : 0; // Set captcha (0 = disabled, 1 = enabled, 2 = enabled for not logged in users)
673							$message = $tpl->Render();
674							mail($user["email"], $this->config["subject"]["subscribe"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
675						}
699				$message = $tpl->Render();
700				mail($user["email"], $this->config["subject"]["moderate"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
701			}
732			
733			mail($user["email"], $this->config["subject"]["author"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
734			
FormHandler.php https://github.com/reshadf/Library.git | PHP | 4,009 lines
1<?php
2/**
9// make sure this file is not accessed directly
10if(strtolower(basename($_SERVER['PHP_SELF'])) == strtolower(basename(__FILE__)))
11{
71// make some variables global when the version < 4.1.0
72if(intval( str_replace('.', '', phpversion()) ) < 410)
73{
87define('FH_INCLUDE_DIR', str_replace('\\', '/', dirname(__FILE__)).'/');
88require_once( FH_INCLUDE_DIR . 'fields/class.Field.php' );
89require_once( FH_INCLUDE_DIR . 'buttons/class.Button.php' );
89require_once( FH_INCLUDE_DIR . 'buttons/class.Button.php' );
90require_once( FH_INCLUDE_DIR . 'includes/config.inc.php' );
91require_once( FH_INCLUDE_DIR . 'includes/error.inc.php' );
91require_once( FH_INCLUDE_DIR . 'includes/error.inc.php' );
92require_once( FH_INCLUDE_DIR . 'includes/class.Validator.php' );
93require_once( FH_INCLUDE_DIR . 'includes/class.MaskLoader.php' );
context.php https://github.com/qibinghua/vpn.51sync.git | PHP | 1,376 lines
1<?php
2// $Id: context.php 2684 2010-07-18 17:30:05Z dualface $
6 *
7 * @link http://qeephp.com/
8 * @copyright Copyright (c) 2006-2009 Qeeyuan Inc. {@link http://www.qeeyuan.com}
8 * @copyright Copyright (c) 2006-2009 Qeeyuan Inc. {@link http://www.qeeyuan.com}
9 * @license New BSD License {@link http://qeephp.com/license/}
10 * @version $Id: context.php 2684 2010-07-18 17:30:05Z dualface $
16 *
17 * 所谓运行时上下文是指 QeePHP 应用程序的运行环境本身。
18 * QContext 主要封装了请求参数和请求状态,以及 URL 解析等功能。
24 *
25 * @code php
26 * if (isset($context['title']))
32 * @author YuLei Liao <liaoyulei@qeeyuan.com>
33 * @version $Id: context.php 2684 2010-07-18 17:30:05Z dualface $
34 * @package core
define.php https://github.com/failstar/polycaro.git | PHP | 1,627 lines
1<?php
2
36defined('W3TC_DIR') || define('W3TC_DIR', realpath(dirname(__FILE__) . '/..'));
37define('W3TC_FILE', 'w3-total-cache/w3-total-cache.php');
38define('W3TC_INC_DIR', W3TC_DIR . '/inc');
64define('W3TC_CACHE_TMP_DIR', W3TC_CACHE_DIR . '/tmp');
65define('W3TC_CACHE_BLOGMAP_FILENAME', W3TC_CACHE_DIR . '/blogs.php');
66
73
74define('W3TC_INSTALL_FILE_ADVANCED_CACHE', W3TC_INSTALL_DIR . '/advanced-cache.php');
75define('W3TC_INSTALL_FILE_DB', W3TC_INSTALL_DIR . '/db.php');
75define('W3TC_INSTALL_FILE_DB', W3TC_INSTALL_DIR . '/db.php');
76define('W3TC_INSTALL_FILE_OBJECT_CACHE', W3TC_INSTALL_DIR . '/object-cache.php');
77
283    w3_require_once(W3TC_INC_FUNCTIONS_DIR . '/ui.php');
284    return w3_is_preview_mode() ? w3_button_link(__('Stop Previewing', 'w3-total-cache'), wp_nonce_url(w3_admin_url('admin.php?page=w3tc_dashboard&w3tc_default_stop_previewing'), 'w3tc'), false) : w3_button_link(__('Preview', 'w3-total-cache'), wp_nonce_url(w3_admin_url('admin.php?page=w3tc_dashboard&w3tc_default_previewing'), 'w3tc'), true);
285}
define.php https://github.com/louieDA/bestilblomster.git | PHP | 1,579 lines
1<?php
2
29
30define('W3TC_WIN', (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'));
31
32defined('W3TC_DIR') || define('W3TC_DIR', realpath(dirname(__FILE__) . '/..'));
33define('W3TC_FILE', 'w3-total-cache/w3-total-cache.php');
34define('W3TC_INC_DIR', W3TC_DIR . '/inc');
60define('W3TC_CACHE_TMP_DIR', W3TC_CACHE_DIR . '/tmp');
61define('W3TC_CACHE_BLOGMAP_FILENAME', W3TC_CACHE_DIR . '/blogs.php');
62
69
70define('W3TC_INSTALL_FILE_ADVANCED_CACHE', W3TC_INSTALL_DIR . '/advanced-cache.php');
71define('W3TC_INSTALL_FILE_DB', W3TC_INSTALL_DIR . '/db.php');
71define('W3TC_INSTALL_FILE_DB', W3TC_INSTALL_DIR . '/db.php');
72define('W3TC_INSTALL_FILE_OBJECT_CACHE', W3TC_INSTALL_DIR . '/object-cache.php');
73
all.php https://github.com/rakshithkr/showslow.git | PHP | 286 lines
89			}
90			?><li><a href="<?php echo $showslow_base.'all.php'.$paramsstring ?>"><?php echo $group['title']?></a></li><?php
91		}
240	<?php }else{?>
241		<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>
242		<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>
250		<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>
251		<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>
252	<?php }?>
259		<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>
260		<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>
261	<?php }?>
262
263	<td class="url"><a href="<?php echo detailsUrl($row['url_id'], $row['url']);?>"><?php echo htmlentities(substr($row['url'], 0, 100))?><?php if (strlen($row['url']) > 100) { ?>...<?php } ?></a></td>
264	</tr><?php
phpthumb.class.php https://github.com/dbruenig/phpThumb.git | PHP | 4,305 lines
228
229		$php_sapi_name = strtolower(function_exists('php_sapi_name') ? php_sapi_name() : '');
230		if ($php_sapi_name == 'cli') {
235			// if debug mode is enabled, force phpThumbDebug output, do not allow normal thumbnails to be generated
236			$this->phpThumbDebug = (is_null($this->phpThumbDebug) ? 9 : max(1, intval($this->phpThumbDebug)));
237		}
681	function CleanUpCacheDirectory() {
682		$this->DebugMessage('CleanUpCacheDirectory() set to purge ('.(is_null($this->config_cache_maxage) ? 'NULL' : number_format($this->config_cache_maxage / 86400, 1)).' days; '.(is_null($this->config_cache_maxsize) ? 'NULL' : number_format($this->config_cache_maxsize / 1048576, 2)).' MB; '.(is_null($this->config_cache_maxfiles) ? 'NULL' : number_format($this->config_cache_maxfiles)).' files)', __FILE__, __LINE__);
683
4058
4059		$text = 'phpThumb() v'.$this->phpthumb_version."\n".'http://phpthumb.sourceforge.net'."\n\n".($this->config_disable_debug ? 'Error messages disabled.'."\n\n".'edit phpThumb.config.php and (temporarily) set'."\n".'$PHPTHUMB_CONFIG[\'disable_debug\'] = false;'."\n".'to view the details of this error' : $text);
4060
4252		} else {
4253			$ErrorMessage = 'Failed to generate phpThumb_tempnam() in '.__FILE__.' on line '.__LINE__."\n".'You may need to set $PHPTHUMB_CONFIG[temp_directory] in phpThumb.config.php';
4254			if ($this->issafemode) {
mysql_stats.php https://github.com/bohdan-s/librenms.git | PHP | 1,248 lines
1<?php
2
99if ($use_ss ) {
100   if (file_exists( dirname(__FILE__) . "/../include/global.php") ) {
101      # See issue 5 for the reasoning behind this.
101      # See issue 5 for the reasoning behind this.
102      debug("including " . dirname(__FILE__) . "/../include/global.php");
103      include_once(dirname(__FILE__) . "/../include/global.php");
104   }
105   elseif (file_exists( dirname(__FILE__) . "/../include/config.php" ) ) {
106      # Some Cacti installations don't have global.php.
190$message
191Usage: php ss_get_mysql_stats.php --host <host> --items <item,...> [OPTION]
192
1072# Returns a bigint from two ulint or a single hex number.  This is tested in
1073# t/mysql_stats.php and copied, without tests, to ss_get_by_ssh.php.
1074# ============================================================================
mysql https://github.com/bohdan-s/librenms.git | Unknown | 1,256 lines
1#!/usr/bin/php
2<?php
6
7### This script requires php-cli and php-mysql packages
8
103#if ($use_ss ) {
104#   if (file_exists( dirname(__FILE__) . "/../include/global.php") ) {
105#      # See issue 5 for the reasoning behind this.
105#      # See issue 5 for the reasoning behind this.
106#      debug("including " . dirname(__FILE__) . "/../include/global.php");
107#      include_once(dirname(__FILE__) . "/../include/global.php");
196$message
197Usage: php mysql_stats.php --host <host> --items <item,...> [OPTION]
198
1080# Returns a bigint from two ulint or a single hex number.  This is tested in
1081# t/mysql_stats.php and copied, without tests, to ss_get_by_ssh.php.
1082# ============================================================================
Queue.php https://github.com/kleky/MeetingPlace.git | PHP | 595 lines
1<?php
2/**
32 * @license    http://todo     name_todo
33 * @version    $Id: Blob.php 24241 2009-07-22 09:43:13Z unknown $
34 */
38 */
39require_once 'Microsoft/WindowsAzure/Credentials/SharedKey.php';
40
43 */
44require_once 'Microsoft/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
45
48 */
49require_once 'Microsoft/Http/Client.php';
50
53 */
54require_once 'Microsoft/Http/Response.php';
55
Client.php https://github.com/softwarevamp/amazon-mws.git | PHP | 1,929 lines
1<?php
2/**
22// require_once ('MarketplaceWebService/Interface.php');
23// require_once ('RequestType.php');
24
44  private  $config = array ('ServiceURL' => null,
45                            'UserAgent' => 'PHP Client Library/2011-08-01 (Language=PHP5)',
46                            'SignatureVersion' => 2,
97    $this->awsSecretAccessKey = $awsSecretAccessKey;
98    if (!is_null($config)) 
99      $this->config = array_merge($this->config, $config);
155
156    $userAgent .= 'Language=PHP/' . phpversion();
157    $userAgent .= '; ';
157    $userAgent .= '; ';
158    $userAgent .= 'Platform=' . php_uname('s') . '/' . php_uname('m') . '/' . php_uname('r');
159    $userAgent .= '; ';
GlobalFunctions.php https://github.com/spenser-roark/OOUG-Wiki.git | PHP | 3,885 lines
2315		$uts = $ts;
2316		$strtime = "@$ts"; // http://php.net/manual/en/datetime.formats.compound.php
2317	} elseif ( preg_match( '/^\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}.\d{6}$/', $ts ) ) {
2643 * The values returned from ini_get() are pre-normalized for settings
2644 * set via php.ini or php_flag/php_admin_flag... but *not*
2645 * for those set via php_value/php_admin_value.
2896	wfRunHooks( 'wfShellMaintenanceCmd', array( &$script, &$parameters, &$options ) );
2897	$cmd = isset( $options['php'] ) ? array( $options['php'] ) : array( $wgPhpCli );
2898	if ( isset( $options['wrapper'] ) ) {
3071	if ( version_compare( $php_ver, (string)$req_ver, '<' ) ) {
3072		throw new MWException( "PHP $req_ver required--this is only $php_ver" );
3073	}
3099 * Reimplemented because PHP5's basename() is buggy with multibyte text.
3100 * http://bugs.php.net/bug.php?id=33898
3101 *
adodb-session.php https://github.com/muchael/expressolivre.git | PHP | 936 lines
1<?php
2
28if (!defined('_ADODB_LAYER')) {
29	require realpath(dirname(__FILE__) . '/../adodb.inc.php');
30}
37/* 
38	Unserialize session data manually. See http://phplens.com/lens/lensforum/msgs.php?id=9821 
39	
57/*
58	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
59	Since adodb 4.61.
90    Generate database table for session data
91    @see http://phplens.com/lens/lensforum/msgs.php?id=12280
92    @return 0 if failure, 1 if errors, 2 if successful.
121	
122		if (!is_null($lock)) $_lock = $lock;
123		return $lock;
OnApp.php https://github.com/Spencerx/OnApp-PHP-Wrapper-External.git | PHP | 1,681 lines
690                    $msg = 'FATAL ERROR: Caster for "' . $this->options[ ONAPP_OPTION_API_TYPE ] . '" is not defined'
691                        . ' in FILE ' . __FILE__ . ' LINE ' . __LINE__ . PHP_EOL . PHP_EOL;
692                    try {
1136                $msg = 'FATAL ERROR: Caster for "' . $this->options[ ONAPP_OPTION_API_TYPE ] . '" is not defined'
1137                    . ' in FILE ' . __FILE__ . ' LINE ' . __LINE__ . PHP_EOL . PHP_EOL;
1138                try {
1201
1202        if( is_null( $id ) && ! is_null( $this->_id ) ) {
1203            $id = $this->_id;
1304                $msg = 'FATAL ERROR: Caster for "' . $this->options[ ONAPP_OPTION_API_TYPE ] . '" is not defined'
1305                    . ' in FILE ' . __FILE__ . ' LINE ' . __LINE__ . PHP_EOL . PHP_EOL;
1306                try {
1344                $msg = 'FATAL ERROR: Caster for "' . $this->options[ ONAPP_OPTION_API_TYPE ] . '" is not defined'
1345                    . ' in FILE ' . __FILE__ . ' LINE ' . __LINE__ . PHP_EOL . PHP_EOL;
1346                try {
Table.php https://SqlCrudPHPWizard.svn.codeplex.com/svn | PHP | 974 lines
1<?php
2/**
43 */
44require_once 'Microsoft/WindowsAzure/SharedKeyCredentials.php';
45
48 */
49require_once 'Microsoft/WindowsAzure/SharedKeyLiteCredentials.php';
50
178		if (!function_exists('odbc_connect'))
179			throw new Microsoft_WindowsAzure_Exception('Function odbc_connect does not exist. Please enable the php_odbc.dll module in your php.ini.');
180		if ($this->_odbcConnectionString == '')
669		// Add continuation querystring parameters?
670		if (!is_null($nextPartitionKey) && !is_null($nextRowKey))
671		{
763			// More entities?
764			if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey')))
765			{
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21