PageRenderTime 813ms queryFilters 0ms Sphinxql 549ms GetByIds 177ms meta 0ms repositoryFilters 5ms languageFilters 1ms sourceFilters 1ms

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

Source

Language

Repository

TwitterApiClient.class.php git://github.com/n1k0/phptwitterbot.git | PHP | 815 lines
1<?php
2require_once dirname(__FILE__).'/TwitterApiServer.class.php';
2require_once dirname(__FILE__).'/TwitterApiServer.class.php';
3require_once dirname(__FILE__).'/Tweet.class.php';
4require_once dirname(__FILE__).'/TweetCollection.class.php';
4require_once dirname(__FILE__).'/TweetCollection.class.php';
5require_once dirname(__FILE__).'/TwitterDirectMessage.class.php';
6require_once dirname(__FILE__).'/TwitterDirectMessageCollection.class.php';
6require_once dirname(__FILE__).'/TwitterDirectMessageCollection.class.php';
7require_once dirname(__FILE__).'/TwitterUser.class.php';
8require_once dirname(__FILE__).'/TwitterUserCollection.class.php';
13 * Credits:
14 *  - Some parts of the code are based on the work of Tijs Verkoyen on the PHPTwitter project (BSD licensed)
15 *
23    $server    = null,
24    $userAgent = 'PHPTwitterBot (http://code.google.com/p/phptwitterbot/)';
25
securimage.php git://github.com/dapphp/securimage.git | PHP | 3,770 lines
1<?php
2
35 *
36 * @link https://www.phpcaptcha.org Securimage Homepage
37 * @link https://www.phpcaptcha.org/latest.zip Download Latest Version
37 * @link https://www.phpcaptcha.org/latest.zip Download Latest Version
38 * @link https://github.com/dapphp/securimage GitHub page
39 * @link https://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
69 3.6.4
70 - Fix XSS vulnerability in example_form.ajax.php (Discovered by RedTeam. advisory rt-sa-2016-002)
71 - Update example_form.ajax.php to use Securimage::getCaptchaHtml()
232    // They can be passed as an array to the Securimage constructor, set below,
233    // or set from securimage_show.php and securimage_play.php
234
696     * @var string The character encoding (e.g. UTF-8, UTF-7, EUC-JP, GB2312)
697     * @see http://php.net/manual/en/mbstring.supported-encodings.php
698     * @since 3.6.3
popup.php git://pkgs.fedoraproject.org/zabbix | PHP | 2,045 lines
1<?php
2/*
21
22require_once dirname(__FILE__).'/include/config.inc.php';
23require_once dirname(__FILE__).'/include/hosts.inc.php';
23require_once dirname(__FILE__).'/include/hosts.inc.php';
24require_once dirname(__FILE__).'/include/triggers.inc.php';
25require_once dirname(__FILE__).'/include/items.inc.php';
25require_once dirname(__FILE__).'/include/items.inc.php';
26require_once dirname(__FILE__).'/include/users.inc.php';
27require_once dirname(__FILE__).'/include/nodes.inc.php';
27require_once dirname(__FILE__).'/include/nodes.inc.php';
28require_once dirname(__FILE__).'/include/js.inc.php';
29require_once dirname(__FILE__).'/include/discovery.inc.php';
142}
143$page['file'] = 'popup.php';
144$page['scripts'] = array();
pluginlib.php git://pkgs.fedoraproject.org/moodle | PHP | 1,692 lines
527     * Passing the parameter $typeclass allows us to reach the same effect as with the
528     * late binding in PHP 5.3. Once PHP 5.3 is required, we can refactor this to use
529     * {@example $plugin = new static();} instead of {@example $plugin = new $typeclass()}
860
861        } else if (is_null($this->versiondb) and !is_null($this->versiondisk)) {
862            return plugin_manager::PLUGIN_STATUS_NEW;
863
864        } else if (!is_null($this->versiondb) and is_null($this->versiondisk)) {
865            if (plugin_manager::is_deleted_standard_plugin($this->type, $this->name)) {
1374
1375        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1376            return new moodle_url('/admin/settings.php', array('section' => 'modsetting' . $this->name));
1537
1538        if (file_exists($this->full_path('settings.php')) or file_exists($this->full_path('settingstree.php'))) {
1539            return new moodle_url('/admin/settings.php', array('section' => 'messagesetting' . $this->name));
Functions.php https://bitbucket.org/tschope/codeigniter_basic.git | PHP | 12,055 lines
5901			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
5902			$excelDateValue = floor(Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
5903
5954			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
5955				$excelDateValue = Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
5956			} else {
5964													  break;
5965				case self::RETURNDATE_PHP_OBJECT	: return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']);
5966													  break;
6754												  break;
6755			case self::RETURNDATE_PHP_NUMERIC	: return (integer) Shared_Date::ExcelToPHP(Shared_Date::PHPToExcel($PHPDateObject));
6756												  break;
6793												  break;
6794			case self::RETURNDATE_PHP_NUMERIC	: return (integer) Shared_Date::ExcelToPHP(Shared_Date::PHPToExcel($PHPDateObject));
6795												  break;
limonade.php https://bitbucket.org/ashwanthkumar/blueignis-ui.git | PHP | 2,667 lines
1218 *   a function, an object method, a static method or a closure.
1219 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1220 *   to learn more about callbacks.
1864 *   or an object and the name of a method within the object
1865 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1866 *   to learn more about callbacks.
2569   * For PHP 5 < 5.3.0 (backward compatibility)
2570   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2571   * 
2604 * This implementation no longer requires 
2605 * {@link http://www.php.net/manual/en/book.filter.php the filter extenstion}, 
2606 * so it will improve compatibility with older PHP versions.
2620 * For PHP 5 < 5.1.0 (backward compatibility)
2621 * (from {@link http://www.php.net/manual/en/function.htmlspecialchars-decode.php#82133})
2622 * 
Functions.php https://github.com/vykintasv/psiprogresas.git | PHP | 10,506 lines
5457			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
5458			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
5459
5508			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
5509				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
5510			} else {
5510			} else {
5511				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
5512			}
6245												  break;
6246			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6247												  break;
6284												  break;
6285			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6286												  break;
limonade.php https://github.com/cbrumelle/limonade.git | PHP | 2,376 lines
1006
1007      if($request_uri."index.php" == $base_path) $request_uri .= "index.php";
1008  	  $uri = str_replace($base_path, '', $request_uri);
1157 *   a function, an object method, a static method or a closure.
1158 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1159 *   to learn more about callbacks.
1675  static $_name = null;
1676  if(is_null($name) && !is_null($_name))
1677  {
1737 *   or an object and the name of a method within the object
1738 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1739 *   to learn more about callbacks.
2338   * For PHP 5 < 5.3.0 (backward compatibility)
2339   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2340   * 
functions.inc.php https://github.com/ifthisandthat/devbox.git | PHP | 1,604 lines
328        {
329            // Cannot open url. Either install curl-php or set allow_url_fopen = true in php.ini
330            return false;
670    {
671        if(is_null($url)) $url = $_SERVER['PHP_SELF'];
672        header("Location: $url");
851    {
852        if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_USER'] == $un && $_SERVER['PHP_AUTH_PW'] == $pw))
853        {
1371			// so we skip those and only do the long opening tags.
1372			$str = str_replace(array('<?php', '<?PHP'),  array('&lt;?php', '&lt;?PHP'), $str);
1373		} else {
1373		} else {
1374			$str = str_replace(array('<?php', '<?PHP', '<?', '?'.'>'),  array('&lt;?php', '&lt;?PHP', '&lt;?', '?&gt;'), $str);
1375		}
pipeline.class.php https://bitbucket.org/ducnv66/bbb-admin | PHP | 1,228 lines
1<?php
2
2
3require_once(HTML2PS_DIR.'utils_array.php');
4require_once(HTML2PS_DIR.'utils_graphic.php');
4require_once(HTML2PS_DIR.'utils_graphic.php');
5require_once(HTML2PS_DIR.'utils_url.php');
6require_once(HTML2PS_DIR.'utils_text.php');
6require_once(HTML2PS_DIR.'utils_text.php');
7require_once(HTML2PS_DIR.'utils_units.php');
8require_once(HTML2PS_DIR.'utils_number.php');
9
10require_once(HTML2PS_DIR.'value.color.php');
11
11
12require_once(HTML2PS_DIR.'config.parse.php');
13
Functions.php https://bitbucket.org/tripodreporting/development-to-production-webservice | PHP | 12,039 lines
5810												  break;
5811			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour-1, $minute, $second));	// -2147468400; //	-2147472000 + 3600
5812												  break;
5901			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
5902			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
5903
5954			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
5955				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
5956			} else {
6754												  break;
6755			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6756												  break;
6793												  break;
6794			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
6795												  break;
Client.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 612 lines
1<?php
2/**
30 */
31 #require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
32 
35 */
36 #require_once 'Zend/Service/SqlAzure/Management/ServerInstance.php';
37 
40 */
41 #require_once 'Zend/Service/SqlAzure/Management/FirewallRuleInstance.php';
42
43 /** @see Zend_Xml_Security */
44 #require_once 'Zend/Xml/Security.php';
45
359                }
360                if (is_null($location) && is_null($affinityGroup)) {
361                    #require_once 'Zend/Service/SqlAzure/Management/Exception.php';
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 6,907 lines
4115												  break;
4116			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour-1, $minute, $second));	// -2147468400; //	-2147472000 + 3600
4117												  break;
4175			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
4176			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
4177
4226			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
4227				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
4228			} else {
4906												  break;
4907			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
4908												  break;
4944												  break;
4945			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
4946												  break;
Functions.php https://PHPExcel.svn.codeplex.com/svn | PHP | 6,527 lines
4077												  break;
4078			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour-1, $minute, $second));	// -2147468400; //	-2147472000 + 3600
4079												  break;
4137			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
4138			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
4139
4188			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
4189				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
4190			} else {
4190			} else {
4191				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
4192			}
4198													  break;
4199				case self::RETURNDATE_PHP_OBJECT	: return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']);
4200													  break;
weblcms_manager.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms/ | PHP | 1,794 lines
1<?php
2namespace application\weblcms;
30 */
31require_once dirname(__FILE__) . '/weblcms_search_form.class.php';
32require_once dirname(__FILE__) . '/../category_manager/content_object_publication_category.class.php';
32require_once dirname(__FILE__) . '/../category_manager/content_object_publication_category.class.php';
33require_once dirname(__FILE__) . '/../tool/tool.class.php';
34require_once dirname(__FILE__) . '/../tool/tool_component.class.php';
34require_once dirname(__FILE__) . '/../tool/tool_component.class.php';
35require_once dirname(__FILE__) . '/../tool_list_renderer.class.php';
36require_once dirname(__FILE__) . '/../course/course.class.php';
36require_once dirname(__FILE__) . '/../course/course.class.php';
37require_once dirname(__FILE__) . '/../course/course_request.class.php';
38require_once dirname(__FILE__) . '/../course/course_create_request.class.php';
778        {
779            $path = $directory . $tool . '/php/' . $tool . '_tool.class.php';
780
box.container.php http://simpleinvoices.googlecode.com/svn/trunk/ | text | 0 lines
1<?php
2// $Header: /cvsroot/html2ps/box.container.php,v 1.68 2007/05/06 18:49:29 Konstantin Exp $
5require_once(HTML2PS_DIR.'strategy.width.min.nowrap.php');
6require_once(HTML2PS_DIR.'strategy.width.max.php');
7require_once(HTML2PS_DIR.'strategy.width.max.natural.php');
127        if ($driver->contains($child)) {
128          if (is_null($child->show($driver))) {
129            return null;
291
292    // We use this construct to avoid notice messages in PHP 4.4 and PHP 5
293    $dummy = null;
316
317    // We use this construct to avoid notice messages in PHP 4.4 and PHP 5
318    $dummy = null;
335
336    // We use this construct to avoid notice messages in PHP 4.4 and PHP 5
337    $dummy = null;
OrderByParserTest.php https://hg01.codeplex.com/odataphpproducer | PHP | 717 lines
7use ODataProducer\UriProcessor\QueryProcessor\OrderByParser\OrderByParser;
8require_once 'PHPUnit\Framework\Assert.php';
9require_once 'PHPUnit\Framework\Test.php';
11require_once 'PHPUnit\Framework\TestCase.php';
12require_once 'PHPUnit\Framework\TestSuite.php';
13require_once 'ODataProducer\Common\ClassAutoLoader.php';
256            /**
257             	$flag1 = is_null($CustomersA) || is_null($CustomersA->Address) || is_null($CustomersA->Address->HouseNumber); 
258				$flag2 = is_null($CustomersB) || is_null($CustomersB->Address) || is_null($CustomersB->Address->HouseNumber); 
555             $flag1 = is_null($Order_DetailsA) || is_null($Order_DetailsA->Order) || is_null($Order_DetailsA->Order->Price); 
556			 $flag2 = is_null($Order_DetailsB) || is_null($Order_DetailsB->Order) || is_null($Order_DetailsB->Order->Price); 
557			 if($flag1 && $flag2) { 
616            
617			$flag1 = is_null($Order_DetailsA) || is_null($Order_DetailsA->Product) || is_null($Order_DetailsA->Product->ProductName); 
618			$flag2 = is_null($Order_DetailsB) || is_null($Order_DetailsB->Product) || is_null($Order_DetailsB->Product->ProductName); 
Table.php http://grupal.googlecode.com/svn/trunk/ | PHP | 932 lines
1<?php
2/**
30 */
31require_once 'Zend/Service/WindowsAzure/Storage/TableInstance.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/Storage/TableEntityQuery.php';
37
40 */
41require_once 'Zend/Service/WindowsAzure/Storage/DynamicTableEntity.php';
42
548		// Add continuation querystring parameters?
549		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
550		    if ($queryString !== '') {
629			// More entities?
630		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
631		        if (strpos($queryString, '$top') === false) {
Queue.php http://grupal.googlecode.com/svn/trunk/ | PHP | 593 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Queue.php 24593 2012-01-05 20:35:02Z matthew $
21 */
25 */
26require_once 'Zend/Service/WindowsAzure/Storage.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Storage/QueueInstance.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/Storage/QueueMessage.php';
37
82		if ($queueName === '') {
83			require_once 'Zend/Service/WindowsAzure/Exception.php';
84			throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
commands.php http://fredistrano.googlecode.com/svn/trunk/ | PHP | 545 lines
1<?php 
2/* SVN FILE: $Id: commands.php 374 2009-10-12 21:49:11Z fbollon $ */
17 * @lastmodified	$Date: 2009-10-12 23:49:11 +0200 (Mon, 12 Oct 2009) $
18 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
19 */
20/**
21 * Wrap all used shell commands in a static PHP function
22 *
208		// Check
209		if ( is_null($path) || is_null($mode) ) {
210			$actionLog->error(sprintf(__('Forbidden NULL value for input parameter [%s;%s]',true),$path,$mode));	
383		// Check
384		if ( is_null($svnUrl) || is_null($path) || is_null($targetDir)) {
385			$actionLog->error(sprintf(__('Forbidden NULL value for input parameter [%s;%s;%s]',true),$svnUrl,$path,$targetDir));	
438		
439		if ( is_null($svnUrl) || is_null($path) || is_null($targetDir)) {
440			$actionLog->error(sprintf(__('Forbidden NULL value for input parameter [%s;%s;%s]',true),$svnUrl,$path,$targetDir));	
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21