PageRenderTime 912ms queryFilters 0ms Sphinxql 486ms GetByIds 326ms meta 0ms repositoryFilters 8ms languageFilters 0ms sourceFilters 19ms

206,208 results for 'php is_null repo:lyrixx/phpcr-utils' (912 ms)

Source

Language

Repository

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;
adodb-session2.php https://bitbucket.org/SerafinAkatsuki/consultorio | PHP | 947 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;
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# ============================================================================
Financial.php https://bitbucket.org/rlm3/rlm3_staging | PHP | 2,293 lines
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36}
256		$rate		= PHPExcel_Calculation_Functions::flattenSingleValue($rate);
257		$par		= (is_null($par))	? 1000 :	PHPExcel_Calculation_Functions::flattenSingleValue($par);
258		$basis		= (is_null($basis))	? 0 :		PHPExcel_Calculation_Functions::flattenSingleValue($basis);
2036
2037			if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
2038				++$maturity;
2044			} else {
2045				$daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement));
2046			}
2084
2085			if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
2086				++$maturity;
Financial.php https://bitbucket.org/nochallenge/exlarlistprice | PHP | 2,249 lines
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36}
256		$rate		= PHPExcel_Calculation_Functions::flattenSingleValue($rate);
257		$par		= (is_null($par))	? 1000 :	PHPExcel_Calculation_Functions::flattenSingleValue($par);
258		$basis		= (is_null($basis))	? 0 :		PHPExcel_Calculation_Functions::flattenSingleValue($basis);
1992
1993			if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
1994				++$maturity;
2000			} else {
2001				$daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::_getDateValue($maturity) - PHPExcel_Calculation_DateTime::_getDateValue($settlement));
2002			}
2040
2041			if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) {
2042				++$maturity;
Common.php https://bitbucket.org/yourphppro/phpscratchandwin | PHP | 2,360 lines
39//Initialize Common Variables @0-A81EBFE9
40$PHPVersion = explode(".",  phpversion());
41if (($PHPVersion[0] < 4) || ($PHPVersion[0] == 4  && $PHPVersion[1] < 1)) {
41if (($PHPVersion[0] < 4) || ($PHPVersion[0] == 4  && $PHPVersion[1] < 1)) {
42    echo "Sorry. This program requires PHP 4.1 and above to run. You may upgrade your php at <a href='http://www.php.net/downloads.php'>http://www.php.net/downloads.php</a>";
43    exit;
2257	function Custom_CalculateOdds() {
2258		$Odds = intval(1/(((pow(CONSTANT("phpScratchAndWin_HighNumber"),2)*12)-(CONSTANT("phpScratchAndWin_HighNumber")*24)+14)/pow(CONSTANT("phpScratchAndWin_HighNumber"),4)));
2259		return $Odds;
2287				$request .= "Host: www.random.org\r\n";
2288				$request .= "Referer: http://phpScratchAndWin.yourphppro.com/\r\n";
2289				$request .= "User-Agent: " . CONSTANT("phpScratchAndWin_Title") . "\r\n\r\n";
2335		if ($fp) {
2336		   fputs ($fp, "GET /version.txt HTTP/1.1\r\nReferer: " . CONSTANT("phpScratchAndWin_URL") . "\r\nHost: phpscratchandwin.yourphppro.com\r\n\r\n");
2337		   stream_set_timeout($fp,5);
polldaddy-client.php https://bitbucket.org/sergiohzlz/reportaprod | 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 ) ) {
Container.php https://bitbucket.org/thoti/phpscheduleit-sjr-edition | PHP | 776 lines
1<?php
2// +---------------------------------------------------------------------+
4// +---------------------------------------------------------------------+
5// | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group            |
6// +---------------------------------------------------------------------+
6// +---------------------------------------------------------------------+
7// | This source file is subject to version 2.0 of the PHP license,      |
8// | that is bundled with this package in the file LICENSE, and is       |
9// | available at through the world-wide-web at                          |
10// | http://www.php.net/license/2_02.txt.                                |
11// | If you did not receive a copy of the PHP license and are unable to  |
12// | obtain it through the world-wide-web, please send a note to         |
13// | license@php.net so we can mail you a copy immediately.              |
14// +---------------------------------------------------------------------+
404    {
405        if (is_null($type) && is_null($name)) {
406            return count($this->children);
Statistical.php https://PHPExcel.svn.codeplex.com/svn | PHP | 3,644 lines
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
36}
1168			if ((is_bool($arg)) &&
1169				((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) {
1170				$arg = (integer) $arg;
1441				if ((is_bool($arg)) &&
1442					((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) {
1443					$arg = (integer) $arg;
2999				if ((is_bool($arg)) &&
3000					((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) {
3001					$arg = (integer) $arg;
3098				if ((is_bool($arg)) &&
3099					((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) {
3100					$arg = (integer) $arg;
HTML.php https://PHPExcel.svn.codeplex.com/svn | PHP | 743 lines
54 */
55class PHPExcel_Writer_HTML implements PHPExcel_Writer_IWriter {
56	/**
86	 *
87	 * @param 	PHPExcel	$phpExcel	PHPExcel object
88	 */
455	 * 
456	 * @param	PHPExcel_Style_Borders 		$pStyle			PHPExcel_Style_Borders
457	 * @return	string
475	 * 
476	 * @param	PHPExcel_Style_Border		$pStyle			PHPExcel_Style_Border
477	 * @return	string
492	 * 
493	 * @param	PHPExcel_Style_Fill		$pStyle			PHPExcel_Style_Fill
494	 * @return	string
PHPReportMaker.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 857 lines
1<?php
2	include("PHPReportsUtil.php");
3
100			// check path stuff
101			if(is_null(getPHPReportsFilePath()))
102				$this->_oError->showMsg("NOPATH");
614		function createOutputPlugin($sName_) {
615			$sFullPath = $this->_sPath."/output/$sName_/PHPReportOutput.php";
616
628			$sClass = "PHPReportInput$sName";
629			$sFullPath = $this->_sPath."/input/PHPReportInput$sName.php";
630
780		function getClassName(){
781			return is_null($this->_sClassName)?"PHPReport":$this->_sClassName;
782		}
Creole_Wiki.php http://typecho.googlecode.com/svn/trunk/ | PHP | 1,600 lines
1<?php
2// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
5 *
6 * PHP versions 4 and 5
7 *
9 * @package    Text_Wiki
10 * @author     Paul M. Jones <pmjones@php.net>
11 * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
11 * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
12 * @version    CVS: $Id: Creole_Wiki.php 182 2008-09-14 15:56:00Z i.feelinglucky $
13 * @link       http://pear.php.net/package/Text_Wiki
18 */
19require_once 'Parse.inc.php';
20
23 */
24require_once 'Render.inc.php';
25
utility.php http://carrington.googlecode.com/svn/ | PHP | 673 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		include(CFCT_PATH.'error/exit.php');
23		die();
28	if (!empty($str)) {
29		include(CFCT_PATH.'misc/banner.php');
30	}
52function cfct_default_file($dir) {
53	$fancy = $dir.'-default.php';
54	file_exists(CFCT_PATH.$dir.'/'.$fancy) ? $default = $fancy : $default = 'default.php';
160	// fallback for category, author, tag, etc.
161	$path = CFCT_PATH.$dir.'/'.$file.'.php';
162	if (!file_exists($path)) {
MDB2.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 4,214 lines
1<?php
2// vim: set et ts=4 sw=4 fdm=marker:
220$GLOBALS['_MDB2_dsninfo_default'] = array(
221    'phptype'  => false,
222    'dbsyntax' => false,
775     * @return  array   an associative array with the following keys:
776     *  + phptype:  Database backend used in PHP (mysql, odbc etc.)
777     *  + dbsyntax: Database used with regards to SQL syntax etc.
1340        $info = get_class($this);
1341        $info.= ': (phptype = '.$this->phptype.', dbsyntax = '.$this->dbsyntax.')';
1342        if ($this->connection) {
1674     * InterBase doesn't seem to be able to use delimited identifiers
1675     * via PHP 4.  They work fine under PHP 5.
1676     *
2306        $dsn = array_merge($GLOBALS['_MDB2_dsninfo_default'], $this->dsn);
2307        $dsn['phptype'] = $this->phptype;
2308        $dsn['database'] = $this->database_name;
pgsql.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 1,436 lines
1<?php
2// vim: set et ts=4 sw=4 fdm=marker:
10// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB  |
11// | API as well as database abstraction for PHP applications.            |
12// | This LICENSE is in the BSD license style.                            |
45//
46// $Id: pgsql.php,v 1.173 2007/05/02 22:00:08 quipo Exp $
47
70
71        $this->phptype = 'pgsql';
72        $this->dbsyntax = 'pgsql';
203        }
204        if (version_compare(PHP_VERSION, '5.2.0RC5', '>=')) {
205            $text = @pg_escape_string($connection, $text);
465            return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
466                'extension '.$this->phptype.' is not compiled into PHP', __FUNCTION__);
467        }
sqlite.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 1,073 lines
1<?php
2// vim: set et ts=4 sw=4 fdm=marker:
45//
46// $Id: sqlite.php,v 1.149 2007/05/02 22:00:08 quipo Exp $
47//
76
77        $this->phptype = 'sqlite';
78        $this->dbsyntax = 'sqlite';
99
100        $this->options['base_transaction_name'] = '___php_MDB2_sqlite_auto_commit_off';
101        $this->options['fixed_float'] = 0;
125            
126        // PHP 5.2+ prepends the function name to $php_errormsg, so we need
127        // this hack to work around it, per bug #9599.
357            return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
358                'extension '.$this->phptype.' is not compiled into PHP', __FUNCTION__);
359        }
form.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 919 lines
1<?php
2/**
9if(!defined('DOKU_INC')) die('meh.');
10require_once(DOKU_INC.'inc/html.php');
11
125    function addHidden($name, $value) {
126        if (is_null($value))
127            unset($this->_hidden[$name]);
169        $rep = array();
170        if (!is_null($elem)) $rep[] = $elem;
171        array_splice($this->_content, $pos, 1, $rep);
394function form_makeField($type, $name, $value='', $label=null, $id='', $class='', $attrs=array()) {
395    if (is_null($label)) $label = $name;
396    $elem = array('_elem'=>'field', '_text'=>$label, '_class'=>$class,
410function form_makeFieldRight($type, $name, $value='', $label=null, $id='', $class='', $attrs=array()) {
411    if (is_null($label)) $label = $name;
412    $elem = array('_elem'=>'fieldright', '_text'=>$label, '_class'=>$class,
MDB2.php http://kfm.googlecode.com/svn/trunk/ | PHP | 4,271 lines
1<?php
2// vim: set et ts=4 sw=4 fdm=marker:
220$GLOBALS['_MDB2_dsninfo_default'] = array(
221    'phptype'  => false,
222    'dbsyntax' => false,
779     * @return  array   an associative array with the following keys:
780     *  + phptype:  Database backend used in PHP (mysql, odbc etc.)
781     *  + dbsyntax: Database used with regards to SQL syntax etc.
1356        $info = get_class($this);
1357        $info.= ': (phptype = '.$this->phptype.', dbsyntax = '.$this->dbsyntax.')';
1358        if ($this->connection) {
1690     * InterBase doesn't seem to be able to use delimited identifiers
1691     * via PHP 4.  They work fine under PHP 5.
1692     *
2322        $dsn = array_merge($GLOBALS['_MDB2_dsninfo_default'], $this->dsn);
2323        $dsn['phptype'] = $this->phptype;
2324        $dsn['database'] = $this->database_name;
Models.php http://oraculum-php.googlecode.com/svn/trunk/ | PHP | 552 lines
1<?php
2class Oraculum_Models
20        Oraculum::Load('ActiveRecord');
21        return (!is_null($model))?$this->LoadModel($model):$this;
22    }
24    public function LoadModel($model=NULL) {
25        if(!is_null($model)):
26			$model=strtolower($model);
26			$model=strtolower($model);
27            $modelfile=MODEL_DIR.'/'.$model.'.php';
28            if(file_exists($modelfile)):
44        endif;
45        if((!isset(self::$connection))||(!is_null(self::$connection))):
46            $this->PDO();
75
76                $modelfile=$dtodir.$table[0].'.php';
77                if(is_writable($dtodir)):
RSA.php https://code.google.com/p/s3db/ | PHP | 524 lines
1<?php
2/**
9 *
10 * LICENSE: This source file is subject to version 3.0 of the PHP license
11 * that is available through the world-wide-web at the following URI:
11 * that is available through the world-wide-web at the following URI:
12 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
13 * the PHP License and are unable to obtain it through the web, please
13 * the PHP License and are unable to obtain it through the web, please
14 * send a note to license@php.net so we can mail you a copy immediately.
15 *
19 * @copyright  2005, 2006 Alexander Valyalkin
20 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
21 * @version    1.2.0b
111 * @copyright  2005, 2006 Alexander Valyalkin
112 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
113 * @link       http://pear.php.net/package/Crypt_RSA
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21