PageRenderTime 2530ms queryFilters 256ms Sphinxql 824ms GetByIds 1637ms meta 0ms repositoryFilters 5ms languageFilters 1ms sourceFilters 1ms

206,208 results for 'php is_null repo:connvoi/dev' (2530 ms)

Source

Language

Repository

phpthumb.class.php https://github.com/modxcms/evolution.git | PHP | 4,293 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		}
666	function CleanUpCacheDirectory() {
667		$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__);
668
4046
4047		$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);
4048
4240		} else {
4241			$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';
4242			if ($this->issafemode) {
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();
formslib.php https://github.com/dongsheng/moodle.git | PHP | 3,004 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
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';
41require_once 'HTML/QuickForm.php';
42require_once 'HTML/QuickForm/DHTMLRulesTableless.php';
43require_once 'HTML/QuickForm/Renderer/Tableless.php';
1162        // set checkbox state depending on orignal/submitted value by controoler button
1163        if (!is_null($contollerbutton) || is_null($selectvalue)) {
1164            foreach ($mform->_elements as $element) {
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.
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	 * 
adodb-session2.php.bak https://github.com/zengcode/ZengCode-PHP-Framework.git | Unknown | 943 lines
1<?php
2
58if (!defined('_ADODB_LAYER')) {
59	require realpath(dirname(__FILE__) . '/../adodb.inc.php');
60}
67/* 
68	Unserialize session data manually. See http://phplens.com/lens/lensforum/msgs.php?id=9821 
69	
86/*
87	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
88	Since adodb 4.61.
119    Generate database table for session data
120    @see http://phplens.com/lens/lensforum/msgs.php?id=12280
121    @return 0 if failure, 1 if errors, 2 if successful.
150	
151		if (!is_null($lock)) $_lock = $lock;
152		return $lock;
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.
users_controller.php https://github.com/rogerwu99/randomizr.git | PHP | 1,768 lines
1155			
1156			if (!is_null($user['Userprofile']['id']) && !is_null($other_user['Userprofile']['id'])){
1157				// check difference in birthday
1292			// compare places
1293			if (!is_null($user['Place']['id']) && !is_null($other_user['Place']['id'])){
1294				//var_dump($user['Place']['body']);
1304			// compare movies
1305			if (!is_null($user['Movie']['id']) && !is_null($other_user['Movie']['id'])){
1306							echo 'checking movies';
1311			// compare schools
1312			if (!is_null($user['School']['id']) && !is_null($other_user['School']['id'])){
1313				
1446			// compare works
1447			if (!is_null($user['Work']['id']) && !is_null($other_user['Work']['id'])){
1448				$my_industries = array();
formslib.php https://github.com/thepurpleblob/gumoodle.git | PHP | 2,622 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
1132        // set checkbox state depending on orignal/submitted value by controoler button
1133        if (!is_null($contollerbutton) || is_null($selectvalue)) {
1134            foreach ($mform->_elements as $element) {
functions.php https://gitlab.com/yoage/thinkphp.git | PHP | 1,065 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;
62    switch($ext){
63        case 'php':
64            return include $file;
polldaddy-client.php https://bitbucket.org/derekeder/thoughtyouknew.us | PHP | 1,316 lines
1<?php
2
2
3require_once dirname( __FILE__ ) . '/polldaddy-xml.php';
4
35				'headers' => array( 'Content-Type' => 'text/xml; charset=utf-8', 'Content-Length' => strlen( $this->request_xml ) ),
36				'user-agent' => 'PollDaddy PHP Client/0.1',
37				'body' => $this->request_xml
72			$request .= "Host: {$parsed['host']}\r\n";
73			$request .= "User-agent: PollDaddy PHP Client/0.1\r\n";
74			$request .= "Content-Type: text/xml; charset=utf-8\r\n";
241		$r = $this->response_part( $pos );
242		if ( isset( $r->account ) && !is_null( $r->account->email ) )
243			return $r->account;
328		$demand = $this->response_part( $pos );
329		if ( is_a( $demand, 'Ghetto_XML_Object' ) && isset( $demand->poll ) && !is_null( $demand->poll->question ) ) {
330			if ( isset( $demand->poll->answers->answer ) && !is_array( $demand->poll->answers->answer ) ) {
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-session2.php https://bitbucket.org/szeber/yapep | PHP | 941 lines
1<?php
2
58if (!defined('_ADODB_LAYER')) {
59	require realpath(dirname(__FILE__) . '/../adodb.inc.php');
60}
67/* 
68	Unserialize session data manually. See http://phplens.com/lens/lensforum/msgs.php?id=9821 
69	
86/*
87	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
88	Since adodb 4.61.
119    Generate database table for session data
120    @see http://phplens.com/lens/lensforum/msgs.php?id=12280
121    @return 0 if failure, 1 if errors, 2 if successful.
150	
151		if (!is_null($lock)) $_lock = $lock;
152		return $lock;
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-session2.php https://bitbucket.org/openemr/openemr.git | PHP | 940 lines
1<?php
2
60if (!defined('_ADODB_LAYER')) {
61	require realpath(dirname(__FILE__) . '/../adodb.inc.php');
62}
69/*
70	Unserialize session data manually. See http://phplens.com/lens/lensforum/msgs.php?id=9821
71
88/*
89	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
90	Since adodb 4.61.
121    Generate database table for session data
122    @see http://phplens.com/lens/lensforum/msgs.php?id=12280
123    @return 0 if failure, 1 if errors, 2 if successful.
152
153		if (!is_null($lock)) $_lock = $lock;
154		return $lock;
GlobalFunctions.php https://bitbucket.org/kgrashad/thawrapedia | PHP | 3,620 lines
2469 * The values returned from ini_get() are pre-normalized for settings
2470 * set via php.ini or php_flag/php_admin_flag... but *not*
2471 * for those set via php_value/php_admin_value.
2647function wfUsePHP( $req_ver ) {
2648	$php_ver = PHP_VERSION;
2649
2678 * Reimplemented because PHP5's basename() is buggy with multibyte text.
2679 * http://bugs.php.net/bug.php?id=33898
2680 *
3283		# Some sites use Apache rewrite rules to handle subdomains,
3284		# and have PHP set up in a weird way that causes PHP_SELF
3285		# to contain the rewritten URL instead of the one that the
3527/**
3528 * Set PHP's memory limit to the larger of php.ini or $wgMemoryLimit;
3529 * @return Integer value memory was set to.
sfForm.class.php https://bitbucket.org/wildanm/orangehrm | PHP | 1,217 lines
1<?php
2
20 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
21 * @version    SVN: $Id: sfForm.class.php 17858 2009-05-01 21:22:50Z FabianLange $
22 */
208
209    if (is_null($this->taintedValues))
210    {
213
214    if (is_null($this->taintedFiles))
215    {
373
374    $decorator = is_null($decorator) ? $widgetSchema->getFormFormatter()->getDecoratorFormat() : $decorator;
375
418
419    $decorator = is_null($decorator) ? $widgetSchema->getFormFormatter()->getDecoratorFormat() : $decorator;
420    $innerDecorator = is_null($innerDecorator) ? $widgetSchema->getFormFormatter()->getDecoratorFormat() : $innerDecorator;
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-session2.php https://bitbucket.org/bontiv/insomnia | PHP | 945 lines
1<?php
2
58if (!defined('_ADODB_LAYER')) {
59    require realpath(dirname(__FILE__) . '/../adodb.inc.php');
60}
67/*
68 Unserialize session data manually. See http://phplens.com/lens/lensforum/msgs.php?id=9821
69
86/*
87 Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
88 Since adodb 4.61.
119 Generate database table for session data
120 @see http://phplens.com/lens/lensforum/msgs.php?id=12280
121 @return 0 if failure, 1 if errors, 2 if successful.
150
151    if (!is_null($lock)) $_lock = $lock;
152    return $lock;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21