PageRenderTime 249ms queryFilters 2ms Sphinxql 36ms app.CodeModel.GetByIds 143ms findMatchingLines 35ms GetByIds 178ms meta 0ms repositoryFilters 9ms languageFilters 1ms sourceFilters 3ms

60,014 results for 'php is_null repo:sebs/mosolar' (249 ms)

Source

Language

Repository

html_api.php https://github.com/markkimsal/mantisbt.git | PHP | 1,799 lines
1<?php
2# MantisBT - A PHP based bugtracking system
60 * @uses authentication_api.php
61 * @uses bug_api.php
62 * @uses config_api.php
62 * @uses config_api.php
63 * @uses constant_inc.php
64 * @uses current_user_api.php
74 * @uses news_api.php
75 * @uses php_api.php
76 * @uses print_api.php
99require_api( 'news_api.php' );
100require_api( 'php_api.php' );
101require_api( 'print_api.php' );
612	#    verification comparison to fail
613	if ( auth_is_user_authenticated() && !current_user_is_anonymous() && !( is_page_name( 'verify.php' ) || is_page_name( 'account_update.php' ) ) ) {
614		$t_user_id = auth_get_current_user_id();
filelib.php https://github.com/dongsheng/moodle.git | PHP | 4,549 lines
159
160    if (is_null($itemid) or is_null($context)) {
161        $contextid = null;
248
249    if ($options['maxfiles'] == 0 or is_null($filearea) or is_null($itemid) or empty($editor['itemid'])) {
250        $data->{$field} = $editor['text'];
276    }
277    if (is_null($itemid) or is_null($context)) {
278        $itemid = null;
431            // this happens when developers forget to post process the text
432            $text = str_replace("\"$CFG->httpswwwroot/draftfile.php", "\"$CFG->httpswwwroot/brokenfile.php#", $text);
433        }
451 * @param string $text The content that may contain ULRs in need of rewriting.
452 * @param string $file The script that should be used to serve these files. pluginfile.php, draftfile.php, etc.
453 * @param int $contextid This parameter and the next two identify the file area to use.
Lite.php https://github.com/saltybeagle/config_lite.git | PHP | 490 lines
99     * 
100     * prepends a php exit if suffix is php,
101     * it is valid to write an empty Config file,
184    {
185        if (is_null($this->sections) && is_null($default)) {
186            throw new Config_Lite_RuntimeException(
213    {
214        if (is_null($this->sections) && is_null($default)) {
215            throw new Config_Lite_RuntimeException(
241    {
242        if (is_null($this->sections) && is_null($default)) {
243            throw new Config_Lite_RuntimeException(
280    {
281        if (is_null($this->sections) && is_null($default)) {
282            throw new Config_Lite_RuntimeException(
lightvc.php https://github.com/conantp/OpenBeerDB-API.git | PHP | 1,425 lines
45	protected static $controllerPaths = array();
46	protected static $controllerSuffix = '.php'; // e.g. _controller.php
47	protected static $controllerViewPaths = array();
47	protected static $controllerViewPaths = array();
48	protected static $controllerViewSuffix = '.php'; // e.g. .tpl.php
49	protected static $layoutViewPaths = array();
49	protected static $layoutViewPaths = array();
50	protected static $layoutViewSuffix = '.php'; // e.g. .tpl.php
51	protected static $elementViewPaths = array();
51	protected static $elementViewPaths = array();
52	protected static $elementViewSuffix = '.php'; // e.g. .tpl.php
53	protected static $viewClassName = 'Lvc_View'; // e.g. AppView
636	 * 
637	 *     'redirect' => a replacement string that will be used to redirect to.  You can have parts of the original url mapped into the new one (like IDs).  See http://www.php.net/manual/en/function.preg-replace.php's documentation for the replacement parameter.
638	 * 
filelib.php https://github.com/nfreear/moodle.git | PHP | 3,097 lines
113
114    if (is_null($itemid) or is_null($context)) {
115        $contextid = null;
198
199    if ($options['maxfiles'] == 0 or is_null($filearea) or is_null($itemid) or empty($editor['itemid'])) {
200        $data->{$field} = $editor['text'];
225    }
226    if (is_null($itemid) or is_null($context)) {
227        $itemid = null;
357            // this happens when developers forget to post process the text
358            $text = str_replace("\"$CFG->httpswwwroot/draftfile.php", "\"$CFG->httpswwwroot/brokenfile.php#", $text);
359        }
376 * @param string $text The content that may contain ULRs in need of rewriting.
377 * @param string $file The script that should be used to serve these files. pluginfile.php, draftfile.php, etc.
378 * @param integer $contextid This parameter and the next two identify the file area to use.
filelib.php https://bitbucket.org/sebastianberm/moodle20 | PHP | 3,143 lines
127
128    if (is_null($itemid) or is_null($context)) {
129        $contextid = null;
212
213    if ($options['maxfiles'] == 0 or is_null($filearea) or is_null($itemid) or empty($editor['itemid'])) {
214        $data->{$field} = $editor['text'];
239    }
240    if (is_null($itemid) or is_null($context)) {
241        $itemid = null;
371            // this happens when developers forget to post process the text
372            $text = str_replace("\"$CFG->httpswwwroot/draftfile.php", "\"$CFG->httpswwwroot/brokenfile.php#", $text);
373        }
390 * @param string $text The content that may contain ULRs in need of rewriting.
391 * @param string $file The script that should be used to serve these files. pluginfile.php, draftfile.php, etc.
392 * @param integer $contextid This parameter and the next two identify the file area to use.
lib.php https://bitbucket.org/sebastianberm/moodle2x | PHP | 1,721 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
20 * This contains functions that are called also from outside the quiz module
21 * Functions that are only called by the quiz module itself are in {@link locallib.php}
22 *
31
32require_once($CFG->libdir . '/eventslib.php');
33require_once($CFG->dirroot . '/calendar/lib.php');
52 * Given an object containing all the necessary data,
53 * (defined by the form in mod_form.php) this function
54 * will create a new instance and return the id number
83 * Given an object containing all the necessary data,
84 * (defined by the form in mod_form.php) this function
85 * will update an existing instance with new data.
102    if (!$quiz->shufflequestions && !empty($quiz->repaginatenow)) {
103        require_once($CFG->dirroot . '/mod/quiz/locallib.php');
104        $quiz->questions = quiz_repaginate(quiz_clean_layout($oldquiz->questions, true),
adodb-session.php https://bitbucket.org/openemr/openemr.git | PHP | 935 lines
1<?php
2
30if (!defined('_ADODB_LAYER')) {
31	require realpath(dirname(__FILE__) . '/../adodb.inc.php');
32}
39/*
40	Unserialize session data manually. See http://phplens.com/lens/lensforum/msgs.php?id=9821
41
58/*
59	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
60	Since adodb 4.61.
91    Generate database table for session data
92    @see http://phplens.com/lens/lensforum/msgs.php?id=12280
93    @return 0 if failure, 1 if errors, 2 if successful.
122
123		if (!is_null($lock)) $_lock = $lock;
124		return $lock;
adodb-session.php https://bitbucket.org/bontiv/insomnia | PHP | 934 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
56/*
57 Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
58 Since adodb 4.61.
89 Generate database table for session data
90 @see http://phplens.com/lens/lensforum/msgs.php?id=12280
91 @return 0 if failure, 1 if errors, 2 if successful.
120
121    if (!is_null($lock)) $_lock = $lock;
122    return $lock;
adodb-session.php https://bitbucket.org/SerafinAkatsuki/consultorio | PHP | 934 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	
56/*
57	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
58	Since adodb 4.61.
89    Generate database table for session data
90    @see http://phplens.com/lens/lensforum/msgs.php?id=12280
91    @return 0 if failure, 1 if errors, 2 if successful.
120	
121		if (!is_null($lock)) $_lock = $lock;
122		return $lock;
mysql_stats.php https://bitbucket.org/MelFlynn/observium | PHP | 1,243 lines
1<?php
2
96      # See issue 5 for the reasoning behind this.
97      debug("including " . dirname(__FILE__) . "/../include/global.php");
98      include_once(dirname(__FILE__) . "/../include/global.php");
99   }
100   elseif (file_exists( dirname(__FILE__) . "/../include/config.php" ) ) {
101      # Some Cacti installations don't have global.php.
101      # Some Cacti installations don't have global.php.
102      debug("including " . dirname(__FILE__) . "/../include/config.php");
103      include_once(dirname(__FILE__) . "/../include/config.php");
185$message
186Usage: php ss_get_mysql_stats.php --host <host> --items <item,...> [OPTION]
187
1067# Returns a bigint from two ulint or a single hex number.  This is tested in
1068# t/mysql_stats.php and copied, without tests, to ss_get_by_ssh.php.
1069# ============================================================================
index.php http://showslow.googlecode.com/svn/trunk/ | PHP | 435 lines
175		<td valign="top" align="center" class="<?php echo $provider_name ?>">
176		<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.')') ?>" 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)?>)"/>
177		<div>Current <a target="_blank" href="<?php echo $provider['url'] ?>"><?php echo $provider['title'] ?></a> <?php echo $provider['score_name'] ?>: <b><?php echo $pretty_score ?> (<i><?php echo htmlentities($score)?></i>)</b></div>
277	{
278		?><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="data_metric.php?metric=<?php echo urlencode($name);?>&url=<?php echo urlencode($url);?>">csv</a>);
279<?php
335							<td><span id="details_<?php echo $provider_name.'_'.$metric[1] ?>" class="details"></span></td>
336							<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>
337						<?php
359?>
360	<a name="yslow-table"/><h2>YSlow measurements history (<a href="data.php?ver=<?php echo urlencode($row['yslow_timestamp'])?>&url=<?php echo urlencode($url)?>">csv</a>)</h2>
361	<div id="measurementstable"></div>
415
416	<p>You can see latest HAR data in the viewer here: <a href="<?php echo htmlentities($HARViewerBase)?>?inputUrl=<?php echo urlencode($har_url) ?>" target="_blank">HAR for <?php echo htmlentities($url)?></a>.</p>
417
PHPReportsUtil.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 398 lines
10	*																										*
11	*	This function will return if there is a PHPReports path in the PHP			*
12	*	ini_get("include_path").																	*
46		// put your distro path here
47		return __INCLUDES__ . "/php/PHPReports/";
48	}
171	*	http://www.gingerall.com/charlie/ga/xml/p_sab.xml									*
172	*	http://www.php.net/manual/en/ref.xslt.php												*
173	*	Used on PHP4 or installed from the PECL modules.									*
314			$this->_aMsgs["NOXMLTRANS"]["default"]		= "COL parameter <b>%s</b> not found on XML translation.";
315			$this->_aMsgs["NOXSLT"]["default"]			= "There is no XSLT processor available. Check if you compiled PHP with <b>--enable-xslt</b> and the <a href=\"http://www.gingerall.com/charlie/ga/xml/p_sab.xml\">Sablotron</a> library (for <a href=\"http://www.php.net/manual/en/ref.xslt.php\">PHP4</a>) or with <b>--enable-xsl</b> (for <a href=\"http://www.php.net/manual/en/ref.xsl.php\">PHP5</a>).";
316			$this->_aMsgs["NOPATH"]["default"]			= "Seems that you didn't specified the phpReports path on the PHP <b>include_path</b> statement or <b>php.ini</b>. I don't know there the classes are.";
346			$this->_aMsgs["NOXMLTRANS"]["pt_BR"]		= "O par?metro <b>%s</b> de COL n?o foi encontrado na tradu??o para XML.";
347			$this->_aMsgs["NOXSLT"]["pt_BR"]				= "N?o h? um processador XSLT dispon?vel. Verifique se voc? compilou o PHP com <b>--enable-xslt</b> e a library <a href=\"http://www.gingerall.com/charlie/ga/xml/p_sab.xml\">Sablotron</a> (para o <a href=\"http://www.php.net/manual/en/ref.xslt.php\">PHP4</a>) ou com <b>--enable-xsl</b> (para o <a href=\"http://www.php.net/manual/en/ref.xsl.php\">PHP5</a>).";
348			$this->_aMsgs["NOPATH"]["pt_BR"]				= "Parece que voc? n?o especificou o path do phpReports com o comando <b>include_path</b> ou no <b>php.ini</b>. N?o sei onde as classes est?o.";
utility.php http://carrington.googlecode.com/svn/ | PHP | 821 lines
1<?php
2
9// Released under the GPL license
10// http://www.opensource.org/licenses/gpl-license.php
11//
21	if (!empty($str)) {
22		if (file_exists(CFCT_PATH.'error/exit.php')) {
23			include(CFCT_PATH.'error/exit.php');
33	if (!empty($str)) {
34		if (file_exists(CFCT_PATH.'misc/banner.php')) {
35			include(CFCT_PATH.'misc/banner.php');
72function cfct_default_file($dir) {
73	$fancy = $dir.'-default.php';
74	file_exists(CFCT_PATH.$dir.'/'.$fancy) ? $default = $fancy : $default = 'default.php';
180	// child theme path
181	$path = STYLESHEETPATH.'/'.$dir.'/'.$file.'.php';
182	// check for child theme first
utility.php git://github.com/lojjic/PIE.git | PHP | 821 lines
1<?php
2
9// Released under the GPL license
10// http://www.opensource.org/licenses/gpl-license.php
11//
21	if (!empty($str)) {
22		if (file_exists(CFCT_PATH.'error/exit.php')) {
23			include(CFCT_PATH.'error/exit.php');
33	if (!empty($str)) {
34		if (file_exists(CFCT_PATH.'misc/banner.php')) {
35			include(CFCT_PATH.'misc/banner.php');
72function cfct_default_file($dir) {
73	$fancy = $dir.'-default.php';
74	file_exists(CFCT_PATH.$dir.'/'.$fancy) ? $default = $fancy : $default = 'default.php';
180	// child theme path
181	$path = STYLESHEETPATH.'/'.$dir.'/'.$file.'.php';
182	// check for child theme first
functions.inc.php git://github.com/tylerhall/simple-php-framework.git | PHP | 779 lines
321    {
322        if(is_null($url)) $url = $_SERVER['PHP_SELF'];
323        header("Location: $url");
442            $ch = curl_init();
443            if(!is_null($username) && !is_null($password)) {
444                curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic ' .  base64_encode("$username:$password")));
453        {
454            if(!is_null($username) && !is_null($password))
455                $url = str_replace("://", "://$username:$password@", $url);
460        {
461            // Cannot open url. Either install curl-php or set allow_url_fopen = true in php.ini
462            return false;
558    {
559        if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_USER'] == $un && $_SERVER['PHP_AUTH_PW'] == $pw))
560        {
PHPReportsUtil.php http://simpleinvoices.googlecode.com/svn/trunk/ | PHP | 403 lines
10	*																										*
11	*	This function will return if there is a PHPReports path in the PHP			*
12	*	ini_get("include_path").																	*
176	*	http://www.gingerall.com/charlie/ga/xml/p_sab.xml									*
177	*	http://www.php.net/manual/en/ref.xslt.php												*
178	*	Used on PHP4 or installed from the PECL modules.									*
201	*	Uses libxslt																					*
202	*	http://www.php.net/manual/en/ref.xsl.php												*
203	*																										*
319			$this->_aMsgs["NOXMLTRANS"]["default"]		= "COL parameter <b>%s</b> not found on XML translation.";
320			$this->_aMsgs["NOXSLT"]["default"]			= "There is no XSLT processor available. Check if you compiled PHP with <b>--enable-xslt</b> and the <a href=\"http://www.gingerall.com/charlie/ga/xml/p_sab.xml\">Sablotron</a> library (for <a href=\"http://www.php.net/manual/en/ref.xslt.php\">PHP4</a>) or with <b>--enable-xsl</b> (for <a href=\"http://www.php.net/manual/en/ref.xsl.php\">PHP5</a>).";
321			$this->_aMsgs["NOPATH"]["default"]			= "Seems that you didn't specified the phpReports path on the PHP <b>include_path</b> statement or <b>php.ini</b>. I don't know there the classes are.";
351			$this->_aMsgs["NOXMLTRANS"]["pt_BR"]		= "O par?metro <b>%s</b> de COL n?o foi encontrado na tradu??o para XML.";
352			$this->_aMsgs["NOXSLT"]["pt_BR"]				= "N?o h? um processador XSLT dispon?vel. Verifique se voc? compilou o PHP com <b>--enable-xslt</b> e a library <a href=\"http://www.gingerall.com/charlie/ga/xml/p_sab.xml\">Sablotron</a> (para o <a href=\"http://www.php.net/manual/en/ref.xslt.php\">PHP4</a>) ou com <b>--enable-xsl</b> (para o <a href=\"http://www.php.net/manual/en/ref.xsl.php\">PHP5</a>).";
353			$this->_aMsgs["NOPATH"]["pt_BR"]				= "Parece que voc? n?o especificou o path do phpReports com o comando <b>include_path</b> ou no <b>php.ini</b>. N?o sei onde as classes est?o.";
advmultiselect.php https://bitbucket.org/chamilo/chamilo/ | PHP | 954 lines
1<?php
2/**
31 *
32 * PHP versions 4 and 5
33 *
37 * @copyright 2005-2008 Laurent Laville
38 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD
39 * @version   CVS: $Id: advmultiselect.php 137 2009-11-09 13:24:37Z vanpouckesven $
39 * @version   CVS: $Id: advmultiselect.php 137 2009-11-09 13:24:37Z vanpouckesven $
40 * @link      http://pear.php.net/package/HTML_QuickForm_advmultiselect
41 * @since     File available since Release 0.4.0
43
44require_once 'HTML/QuickForm/select.php';
45
56 * @copyright 2005-2008 Laurent Laville
57 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD
58 * @version   Release: @package_version@
Consumer.php git://github.com/frapi/frapi.git | PHP | 272 lines
1<?php
2/**
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Consumer.php 20232 2010-01-12 17:56:33Z matthew $
20 */
22/** Zend_Oauth */
23// require_once 'Zend/Oauth.php';
24
25/** Zend_Uri */
26// require_once 'Zend/Uri.php';
27
28/** Zend_Oauth_Http_RequestToken */
29// require_once 'Zend/Oauth/Http/RequestToken.php';
30
31/** Zend_Oauth_Http_UserAuthorization */
32// require_once 'Zend/Oauth/Http/UserAuthorization.php';
33
Table.php git://github.com/frapi/frapi.git | PHP | 816 lines
1<?php
2/**
30 */
31// require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
32
35 */
36// require_once 'Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php';
37
40 */
41// require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
42
525		// Add continuation querystring parameters?
526		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
527		    if ($queryString !== '') {
604			// More entities?
605		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
606		        if (strpos($queryString, '$top') === false) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21