PageRenderTime 1964ms queryFilters 0ms Sphinxql 685ms GetByIds 1204ms meta 0ms repositoryFilters 5ms languageFilters 0ms sourceFilters 2ms

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

Source

Language

Repository

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;
gradelib.php https://bitbucket.org/ceu/moodle_demo | PHP | 1,445 lines
1<?php // $Id: gradelib.php,v 1.120.2.33 2010/07/30 06:46:32 andyjdavis 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');
651    // no grade yet?
652    if (is_null($value)) {
653        return '-';
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;
active_record.php https://github.com/jkinner/ringside.git | PHP | 3,257 lines
31/**
32 *  Load the {@link http://pear.php.net/manual/en/package.pear.php PEAR base class}
33 */
36/**
37 *  Load the {@link http://pear.php.net/manual/en/package.database.mdb2.php PEAR MDB2 package}
38 *  PEAR::DB is now deprecated.
72     *  see
73     *  {@link http://pear.php.net/manual/en/package.database.mdb2.php PEAR MDB2}
74     */
1125     *  @param string $sql  SQL for the query command
1126     *  @return $mdb2->query {@link http://pear.php.net/manual/en/package.database.mdb2.intro-query.php}
1127     *    Result set from query
2438     *  Call {@link 
2439     *  http://pear.php.net/manual/en/package.database.db.db-common.tableinfo.php
2440     *  DB_common::tableInfo()} to get a description of the table and
limonade.php https://github.com/sanemat/ktsukishima.git | PHP | 2,238 lines
1<?php
2                                                                  
13 *  @copyright Copyright (c) 2009 Fabrice Luraine
14 *  @license http://opensource.org/licenses/mit-license.php The MIT License
15 *  @package limonade
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))
997  	  
998      if($request_uri."index.php" == $base_path) $request_uri .= "index.php";
999  	  $uri = str_replace($base_path, '', $request_uri);
index.php https://github.com/max-koehler/phpMyFAQ.git | PHP | 689 lines
96$faqpassword = PMF_Filter::filterInput(INPUT_POST, 'faqpassword', FILTER_SANITIZE_STRING);
97if (!is_null($faqusername) && !is_null($faqpassword)) {
98    $user = new PMF_User_CurrentUser();
358    $inc_tpl         = $action . '.tpl';
359    $inc_php         = $action . ".php";
360    $writeLangAdress = "?" . PMF_Filter::getFilteredQueryString();
364        $inc_tpl = 'artikel.tpl';
365        $inc_php = 'artikel.php';
366    } else {
367        $inc_tpl = 'main.tpl';
368        $inc_php = 'main.php';
369    }
515    'stickyRecordsHeader' => $PMF_LANG['stickyRecordsHeader'],
516    'copyright'           => 'powered by <a href="http://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> ' . 
517                             $faqconfig->get('main.currentVersion'));
setup.php https://github.com/max-koehler/phpMyFAQ.git | PHP | 1,024 lines
94/**
95 * Removes the data.php and the dataldap.php if an installation failed
96 *
253
254<p class="center">Your PHP version: <strong>PHP <?php print PHP_VERSION; ?></strong></p>
255
615            print "\n<div class=\"error\">\n";
616            print "<p><strong>Error:</strong> Please install your version of phpMyFAQ once again or send us a <a href=\"http://bugs.phpmyfaq.de\" target=\"_blank\">bug report</a>.</p>";
617            print "<p><strong>DB error:</strong> ".$db->error()."</p>\n";
929<iframe onload="iframeUpdated();" name="questionaireResult" style="display:none"></iframe>
930<form action="http://www.phpmyfaq.de/stats/getstatdata.php" method="post" target="questionaireResult" id="questionnaireForm">
931
932    <p class="center">For further development we would like to get some feedback from our users.<br />Therefore we'd ask you to take a few minutes of your time to answer a few questions.</p>
933    <p class="center">If you don't want to participate in the survey, you can directly visit <a href="../index.php">your version of phpMyFAQ</a> or login into your <a href="../admin/index.php">admin section</a>.</p>
934
config.class.php https://github.com/multiscan/dokuwiki.git | PHP | 1,043 lines
1<?php
2/**
13    var $_name = 'conf';           // name of the config variable found in the files (overridden by $config['varname'])
14    var $_format = 'php';          // format of the config file, supported formats - php (overridden by $config['format'])
15    var $_heading = '';            // heading string written at top of config file - don't include comment indicators
154        if(@file_exists($file)){
155            $contents = @php_strip_whitespace($file);
156        }else{
181      $out = '';
182      if ($this->_format == 'php') {
183          $out .= '<'.'?php'."\n".
196      $out = '';
197      if ($this->_format == 'php') {
198 #         if ($this->_protected_file) {
950/**
951 *  Provide php_strip_whitespace (php5 function) functionality
952 *
Application.php https://github.com/chrismcband/PHPFrame.git | PHP | 1,014 lines
2/**
3 * PHPFrame/Application/Application.php
4 *
11 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
12 * @link      http://github.com/PHPFrame/PHPFrame
13 */
28 * @license  http://www.opensource.org/licenses/bsd-license.php New BSD License
29 * @link     http://github.com/PHPFrame/PHPFrame
30 * @since    1.0
31 */
32class PHPFrame_Application extends PHPFrame_Observer
33{
538     *
539     * @param PHPFrame_Database $db [Optional] Instance of PHPFrame_Database.
540     *
Issue.php https://github.com/joechrysler/Campsite.git | PHP | 1,069 lines
1<?php
2/**
8 */
9require_once($GLOBALS['g_campsiteDir'].'/db_connect.php');
10require_once($GLOBALS['g_campsiteDir'].'/classes/DatabaseObject.php');
10require_once($GLOBALS['g_campsiteDir'].'/classes/DatabaseObject.php');
11require_once($GLOBALS['g_campsiteDir'].'/classes/DbObjectArray.php');
12require_once($GLOBALS['g_campsiteDir'].'/classes/SQLSelectClause.php');
12require_once($GLOBALS['g_campsiteDir'].'/classes/SQLSelectClause.php');
13require_once($GLOBALS['g_campsiteDir'].'/classes/Log.php');
14require_once($GLOBALS['g_campsiteDir'].'/classes/Language.php');
14require_once($GLOBALS['g_campsiteDir'].'/classes/Language.php');
15require_once($GLOBALS['g_campsiteDir'].'/classes/Section.php');
16require_once($GLOBALS['g_campsiteDir'].'/classes/IssuePublish.php');
16require_once($GLOBALS['g_campsiteDir'].'/classes/IssuePublish.php');
17require_once($GLOBALS['g_campsiteDir'].'/classes/CampCacheList.php');
18require_once($GLOBALS['g_campsiteDir'].'/template_engine/classes/CampTemplate.php');
limonade.php https://github.com/jblanche/limonade.git | PHP | 2,566 lines
1280 *   a function, an object method, a static method or a closure.
1281 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1282 *   to learn more about callbacks.
1880 *   or an object and the name of a method within the object
1881 *   See {@link http://php.net/manual/en/language.pseudo-types.php#language.types.callback php documentation}
1882 *   to learn more about callbacks.
2510   * For PHP 5 < 5.3.0 (backward compatibility)
2511   * (from {@link http://www.php.net/manual/fr/function.array-replace.php#92549 this php doc. note})
2512   * 
2541
2542if(PHP_VERSION == '5.2.13' || PHP_VERSION == '5.3.2')
2543{
2544  # There is a bug with filter_var($site_url , FILTER_VALIDATE_URL); 
2545  # http://www.mail-archive.com/php-bugs@lists.php.net/msg134778.html
2546  function filter_var_url($str)
jot.class.inc.php https://github.com/modxcms/evolution.git | PHP | 910 lines
1<?php
2/*####
78		// TODO Add docid/tagid from all
79		$this->config["docid"] = !is_null($this->Get("docid")) ? intval($this->Get("docid")):$modx->documentIdentifier;
80		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
80		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
81		$this->config["pagination"] = !is_null($this->Get("pagination")) ? $this->Get("pagination") : 10; // Set pagination (0 = disabled, # = comments per page)
82		$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)
675							$message = $tpl->Render();
676							mail($user["email"], $this->config["subject"]["subscribe"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
677						}
701				$message = $tpl->Render();
702				mail($user["email"], $this->config["subject"]["moderate"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
703			}
734			
735			mail($user["email"], $this->config["subject"]["author"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
736			
plugin_api.php https://github.com/markkimsal/mantisbt.git | PHP | 927 lines
1<?php
2# MantisBT - A PHP based bugtracking system
28 *
29 * @uses access_api.php
30 * @uses config_api.php
30 * @uses config_api.php
31 * @uses constant_inc.php
32 * @uses database_api.php
32 * @uses database_api.php
33 * @uses error_api.php
34 * @uses event_api.php
34 * @uses event_api.php
35 * @uses helper_api.php
36 * @uses history_api.php
781			# Final check on the class
782			if( is_null( $t_plugin->name ) || is_null( $t_plugin->version ) ) {
783				return null;
QDateTime.class.php https://github.com/spekary/qcodo.git | PHP | 804 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	 */
381			// If HOUR or MINUTE is NULL...
382			if (is_null($intHour) || is_null($intMinute)) {
383				parent::setTime($intHour, $intMinute, $intSecond);
391
392			if (is_null($intHour))
393				$this->blnTimeNull = true;
759/*
760	This is a reference to the documentation for hte PHP DateTime classes (as of PHP 5.2)
761
Functions.php https://bitbucket.org/joseph_b/mti-media-plic-redac-intranet | PHP | 9,538 lines
4718			if ($PHPDateArray['day'] == '')		{ $PHPDateArray['day'] = strftime('%d'); }
4719			$excelDateValue = floor(PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']));
4720
4767			if (self::$compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
4768				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($PHPDateArray['year'],$PHPDateArray['month'],$PHPDateArray['day'],$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']);
4769			} else {
4769			} else {
4770				$excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900,1,1,$PHPDateArray['hour'],$PHPDateArray['minute'],$PHPDateArray['second']) - 1;
4771			}
5469												  break;
5470			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
5471												  break;
5507												  break;
5508			case self::RETURNDATE_PHP_NUMERIC	: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject));
5509												  break;
edit_tickets.php https://bitbucket.org/yourphppro/phpscratchandwin | PHP | 883 lines
1<?php
2/*
3##############################################################################
4# PHP Scratch And Win                                           Version 4.04 #
5# Copyright 2012                                          www.YourPHPPro.com #
12define("PathToCurrentPage", "/admin/");
13define("FileName", "edit_tickets.php");
14include_once(RelativePath . "/Common.php");
14include_once(RelativePath . "/Common.php");
15include_once(RelativePath . "/Template.php");
16include_once(RelativePath . "/Sorter.php");
16include_once(RelativePath . "/Sorter.php");
17include_once(RelativePath . "/Navigator.php");
18//End Include Common Files
20//Include Page implementation @28-47CFCC1A
21include_once(RelativePath . "/admin/header.php");
22//End Include Page implementation
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
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        {
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 $
DataService.php https://hg01.codeplex.com/odataphpproducer | PHP | 963 lines
1<?php
2/** 
17 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)
18 * @license   New BSD license, (http://www.opensource.org/licenses/bsd-license.php)
19 * @version   SVN: 1.0
19 * @version   SVN: 1.0
20 * @link      http://odataphpproducer.codeplex.com
21 * 
48 * @package   ODataProducer
49 * @author    Anu T Chandy <odataphpproducer_alias@microsoft.com>
50 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)
732        if (!$resourceType->hasETagProperties()) {
733            if (!is_null($ifMatch) || !is_null($ifNoneMatch)) {
734                // No eTag properties but request has eTag headers, bad request
743
744        if (is_null($ifMatch) && is_null($ifNoneMatch)) {
745            // No request eTag header, we need to write the response 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21