PageRenderTime 3263ms queryFilters 41ms Sphinxql 383ms GetByIds 962ms meta 0ms repositoryFilters 26ms languageFilters 0ms sourceFilters 53ms

70,509 results for 'php is_null repo:triartdesign/ZanPHP' (3263 ms)

Source

Language

Repository

jeromes-keywords.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 710 lines
1<?php
2/*
41    - added default options which are saved to the db
42    - moved old functions (template tags) to legacy.php
43    - many minor improvements, including random sorting of tag cloud & automatic meta keyword generation
57        'query_varname'  => 'tag',          // HTTP var name used for tag searches
58        'template'       => 'keywords.php', // template file to use for displaying tag queries
59
135            $this->rewriteon = true;                    // using rewrite rules
136            $this->base_url .= $wp_rewrite->root;		// set to "index.php/" if using that style
137            $this->base_url .= $this->option['query_varname'] . '/';
166        /* load administration class */
167        include (dirname(__FILE__) . DIRECTORY_SEPARATOR . 'LightPressTagging.php');
168        $this->admin =& new LightPressTagging($this->_table);
170        /* add tag management menu */
171        add_management_page('Manage Jerome\'s Keywords', 'Keywords/Tags', 'manage_categories', 'jeromes-keywords/managetags.php');
172        add_options_page('Jerome\'s Keywords Options', 'Jerome\'s Keywords', 'manage_options', 'jeromes-keywords/options-jkeywords.php');
gradelib.php https://moodleazure.svn.codeplex.com/svn | PHP | 1,441 lines
1<?php // $Id: gradelib.php,v 1.120.2.32 2009/11/13 22:09:03 mudrd8mz Exp $
2
37require_once($CFG->libdir . '/grade/grade_item.php');
38require_once($CFG->libdir . '/grade/grade_grade.php');
39require_once($CFG->libdir . '/grade/grade_scale.php');
75
76    if (is_null($courseid) or is_null($itemtype)) {
77        debugging('Missing courseid or itemtype');
647    // no grade yet?
648    if (is_null($value)) {
649        return '-';
1203
1204        if (is_null($grademax) and is_null($scaleid)) {
1205           $grade_item->gradetype  = GRADE_TYPE_NONE;
1234
1235    if (is_null($grademax) and is_null($scaleid)) {
1236        $params['gradetype'] = GRADE_TYPE_NONE;
Functions.php git://github.com/indowebit/Ext-PHP.git | PHP | 12,038 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;
index.php git://github.com/thorsten/phpMyFAQ.git | PHP | 742 lines
125// Login via local DB or LDAP or SSO
126if (!is_null($faqusername) && !is_null($faqpassword)) {
127    $user = new CurrentUser($faqConfig);
415    $includeTemplate = $action . '.html';
416    $includePhp = $action . '.php';
417    $renderUri = '?sid=' . $sessionId;
421        $includeTemplate = 'faq.html';
422        $includePhp = 'faq.php';
423    } else {
424        $includeTemplate = 'startpage.html';
425        $includePhp = 'startpage.php';
426    }
531    'switchLanguages' => LanguageHelper::renderSelectLanguage($faqLangCode, true),
532    'copyright' => 'powered with ❤️ and ☕️ by <a href="https://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' .
533        $faqConfig->get('main.currentVersion'),
setup.php git://github.com/thorsten/phpMyFAQ.git | PHP | 935 lines
26
27define('COPYRIGHT', '&copy; 2001-2012 <a href="http://www.phpmyfaq.de/">phpMyFAQ Team</a> | Follow us on <a href="http://twitter.com/phpMyFAQ">Twitter</a> | All rights reserved.');
28define('PMF_ROOT_DIR', dirname(__DIR__));
79
80    <title>phpMyFAQ <?php print PMF_System::getVersion(); ?> Setup</title>
81
465            <input class="btn-primary btn-large" type="submit"
466                   value="Click to install phpMyFAQ <?php print PMF_System::getVersion(); ?>" />
467        </div>
794        <iframe onload="iframeUpdated();" name="questionaireResult" style="display:none"></iframe>
795        <form action="http://www.phpmyfaq.de/stats/getstatdata.php" method="post" target="questionaireResult"
796              id="questionnaireForm" class="form-horizontal">
803                If you don't want to participate in the survey, you can directly visit
804                <a href="../index.php">your version of phpMyFAQ</a> or login into your
805                <a href="../admin/index.php">admin section</a>.
limonade.php git://github.com/sofadesign/limonade-blog-example.git | PHP | 2,289 lines
1<?php
2                                                                  
62define('E_LIM_HTTP',            32768);
63define('E_LIM_PHP',             65536);
64define('E_LIM_DEPRECATED',      35000);
71
72# for PHP 5.3.0 <
73if(!defined('E_DEPRECATED'))      define('E_DEPRECATED', 8192);
197  $name = array_shift($args);
198  if(is_null($name)) return $options;
199  if(!empty($args))
995
996      if($request_uri."index.php" == $base_path) $request_uri .= "index.php";
997  	  $uri = str_replace($base_path, '', $request_uri);
1649  static $_name = null;
1650  if(is_null($name) && !is_null($_name))
1651  {
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
QDateTime.class.php git://github.com/qcodo/qcodo.git | PHP | 812 lines
11	 * provides a nice wrapper around the PHP DateTime class, which is included with
12	 * all versions of PHP >= 5.2.0.
13	 * 
13	 * 
14	 * For legacy PHP users (PHP < 5.2.0), please refer to QDateTime.legacy
15	 */
389			// If HOUR or MINUTE is NULL...
390			if (is_null($intHour) || is_null($intMinute)) {
391				parent::setTime($intHour, $intMinute, $intSecond);
399
400			if (is_null($intHour))
401				$this->blnTimeNull = true;
767/*
768	This is a reference to the documentation for hte PHP DateTime classes (as of PHP 5.2)
769
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
coreylib.php git://github.com/collegeman/coreylib.git | PHP | 3,343 lines
137   * @return clNode if parsing succeeds; otherwise FALSE.
138   * @see http://php.net/manual/en/function.strtotime.php
139   */
269   * @return clDownload
270   * @see http://php.net/manual/en/function.strtotime.php
271   */
883   * @param mixed $timeout An expression of time or a positive integer indicating the number of seconds
884   * @see http://php.net/manual/en/function.strtotime.php
885   * @return a *nix timestamp in the future, or the current time if $timeout is 0, always in GMT.
1772   * and its children, suitable for exploring with print_r
1773   * @see http://php.net/manual/en/function.print-r.php
1774   */
2230      // TODO: in PHP >= 5.1.0, it's possible to silence SimpleXML parsing errors and then iterate over them
2231      // http://us.php.net/manual/en/function.simplexml-load-string.php
2232      return false;
Functions.php git://github.com/shimondoodkin/node_spreadsheet.git | PHP | 12,038 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;
Functions.php git://github.com/shimondoodkin/node_spreadsheet.git | PHP | 12,038 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;
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();
Blob.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 2,001 lines
1<?php
2/**
25 */
26require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
37
40 */
41require_once 'Zend/Http/Client.php';
42
45 */
46require_once 'Zend/Http/Response.php';
47
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;
gradelib.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 1,444 lines
1<?php // $Id$
2
37require_once($CFG->libdir . '/grade/grade_item.php');
38require_once($CFG->libdir . '/grade/grade_grade.php');
39require_once($CFG->libdir . '/grade/grade_scale.php');
39require_once($CFG->libdir . '/grade/grade_scale.php');
40require_once($CFG->libdir . '/grade/grade_outcome.php');
41
75
76    if (is_null($courseid) or is_null($itemtype)) {
77        debugging('Missing courseid or itemtype');
1207
1208        if (is_null($grademax) and is_null($scaleid)) {
1209           $grade_item->gradetype  = GRADE_TYPE_NONE;
1238
1239    if (is_null($grademax) and is_null($scaleid)) {
1240        $params['gradetype'] = GRADE_TYPE_NONE;
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 * 
utility.php http://carrington.googlecode.com/svn/ | PHP | 1,585 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
utility.php http://carrington.googlecode.com/svn/ | PHP | 1,432 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');
102function cfct_default_file($dir) {
103	$fancy = $dir.'-default.php';
104	file_exists(CFCT_PATH.$dir.'/'.$fancy) ? $default = $fancy : $default = 'default.php';
234	// child theme path
235	$path = STYLESHEETPATH.'/'.$dir.'/'.$file.'.php';
236	// check for child theme first
Table.php https://bitbucket.org/chamilo/chamilo/ | PHP | 1,080 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
13 * - Handles col and rowspans.
14 * - PHP code is shorter, easier to read and to maintain.
15 * - Tables options can be reused.
17 * For auto filling of data and such then check out
18 * http://pear.php.net/package/HTML_Table_Matrix
19 *
19 *
20 * PHP versions 4 and 5
21 *
25 *                          Bertrand Mansion <bmansion@mamasam.com>,
26 *                          Mark Wiesemann <wiesemann@php.net>
27 * All rights reserved.
57 * @author     Bertrand Mansion <bmansion@mamasam.com>
58 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
59 * @version    CVS: $Id: Table.php 137 2009-11-09 13:24:37Z vanpouckesven $
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21