PageRenderTime 1173ms queryFilters 1ms Sphinxql 53ms app.CodeModel.GetByIds 1014ms findMatchingLines 73ms GetByIds 1087ms meta 0ms repositoryFilters 8ms languageFilters 2ms sourceFilters 3ms

84,023 results for 'php is_null repo:fuel/oil' (1173 ms)

Source

Language

Repository

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
default.php http://joomlaworks.googlecode.com/svn/trunk/ | text | 0 lines
66					      <td>1.0.1</td>
67					      <td><?php echo JText::_('K2_PHP_CLASS'); ?></td>
68					      <td><?php echo JText::_('K2_BSD'); ?></td>
268			          <td><strong>System - K2</strong></td>
269			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'system'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'system'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('system', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
270			        </tr>
272			          <td><strong>User - K2</strong></td>
273			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'user'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'user'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('user', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
274			        </tr>
276			          <td><strong>Search - K2</strong></td>
277			          <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'search'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'search'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('search', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td>
278			        </tr>
300			          <td><?php
301							if (JFile::exists(JPATH_PLUGINS.DS.'content'.DS.'jw_allvideos.php') || JFile::exists(JPATH_PLUGINS.DS.'content'.DS.'jw_allvideos'.DS.'jw_allvideos.php'))
302								echo JText::_('K2_INSTALLED');
image_view.php http://candydolldb.googlecode.com/svn/trunk/ | PHP | 237 lines
163<h2><?php echo sprintf(
164	'<a href="index.php">%7$s</a> - <a href="model_view.php?model_id=%1$d">%4$s</a> - <a href="set.php?model_id=%1$d">%8$s</a> -  <a href="set_view.php?model_id=%1$d&amp;set_id=%2$d">%9$s %5$s</a> - <a href="image.php?model_id=%1$d&amp;set_id=%2$d">%10$s</a> - %6$s',
165	$ModelID,
213<label for="txtImageHeight"><?php echo $lang->g('LabelHeight')?> (pixels):</label>
214<input type="text" id="txtImageHeight" name="txtImageHeight" maxlength="10" value="<?php echo $Image->getImageHeight()?>"<?php echo HTMLstuff::DisabledStr($DisableControls)?> />
215</div>
218<label for="txtTags"><?php echo $lang->g('LabelTags')?> (CSV):</label>
219<input type="text" id="txtTags" name="txtTags" maxlength="400" class="TagsBox" value="<?php echo Tag2All::Tags2AllCSV($TagsThisImage)?>"<?php echo HTMLstuff::DisabledStr($DisableControls)?> />
220</div>
222<div class="FormRow"><label>&nbsp;</label>
223<input type="submit" class="FormButton" value="<?php echo $DeleteImage ? $lang->g('ButtonDelete') : $lang->g('ButtonSave')?>"<?php echo HTMLstuff::DisabledStr($DisableDefaultButton)?> />
224<input type="button" class="FormButton" value="<?php echo $lang->g('ButtonCancel')?>" onclick="window.location='<?php echo htmlentities($ReturnURL)?>';" />
224<input type="button" class="FormButton" value="<?php echo $lang->g('ButtonCancel')?>" onclick="window.location='<?php echo htmlentities($ReturnURL)?>';" />
225<input type="button" class="FormButton" value="<?php echo $lang->g('ButtonClearCacheImage')?>" onclick="window.location='cacheimage_delete.php?image_id=<?php echo $ImageID ?>';"<?php echo HTMLstuff::DisabledStr($DisableCacheDeleteButton)?> />
226</div>
user_view.php http://candydolldb.googlecode.com/svn/trunk/ | PHP | 340 lines
222
223<h2><?php echo sprintf('<a href="index.php">%3$s</a> - <a href="user.php">%2$s</a> - %1$s',
224	htmlentities($User->getUserName()),
250<div class="FormRow">
251<label for="txtPassword"><?php echo $lang->g('LabelPassword')?>:<?php echo $UserID ? '' : ' <em>*</em>'?></label>
252<input type="password" id="txtPassword" name="txtPassword" maxlength="100" value=""<?php echo HTMLstuff::DisabledStr($DisableControls)?> />
252<input type="password" id="txtPassword" name="txtPassword" maxlength="100" value=""<?php echo HTMLstuff::DisabledStr($DisableControls)?> />
253<input type="button" id="btnGenerate" name="btnGenerate" value="<?php echo $lang->g('ButtonGenerate')?>"<?php echo HTMLstuff::DisabledStr($DisableControls)?> onclick="$.get('ajax_genpass.php', function(data){$('#txtGenerated, #txtPassword, #txtRepeatPassword').val(data);});" />
254<input type="text" id="txtGenerated" name="txtGenerated" class="Small" readonly="readonly" maxlength="10" value=""<?php echo HTMLstuff::DisabledStr($DisableControls)?> />
286<label><?php echo $lang->g('LabelGender')?>: </label>
287<input type="radio" id="radFemale" name="radGender" value="<?php echo GENDER_FEMALE?>"<?php echo $User->getGender() == GENDER_FEMALE ? ' checked="checked"' : NULL?><?php echo HTMLstuff::DisabledStr($DisableControls)?> /> 
288<label for="radFemale" class="Radio"><?php echo $lang->g('LabelFemale')?></label>
288<label for="radFemale" class="Radio"><?php echo $lang->g('LabelFemale')?></label>
289<input type="radio" id="radMale" name="radGender" value="<?php echo GENDER_MALE?>"<?php echo $User->getGender() == GENDER_MALE ? ' checked="checked"' : NULL?><?php echo HTMLstuff::DisabledStr($DisableControls)?> /> 
290<label for="radMale" class="Radio"><?php echo $lang->g('LabelMale')?></label>
PHPReportMaker.php http://simpleinvoices.googlecode.com/svn/trunk/ | PHP | 858 lines
1<?php
2	include("PHPReportsUtil.php");
3
101			// check path stuff
102			if(is_null(getPHPReportsFilePath()))
103				$this->_oError->showMsg("NOPATH");
615		function createOutputPlugin($sName_) {
616			$sFullPath = $this->_sPath."/output/$sName_/PHPReportOutput.php";
617			
629			$sClass = "PHPReportInput$sName";
630			$sFullPath = $this->_sPath."/input/PHPReportInput$sName.php";
631			
781		function getClassName(){
782			return is_null($this->_sClassName)?"PHPReport":$this->_sClassName;
783		}
sqlite.php https://bitbucket.org/chamilo/chamilo/ | PHP | 1,084 lines
1<?php
2// vim: set et ts=4 sw=4 fdm=marker:
45//
46// $Id: sqlite.php 137 2009-11-09 13:24:37Z vanpouckesven $
47//
76
77        $this->phptype = 'sqlite';
78        $this->dbsyntax = 'sqlite';
102        $this->options['DBA_password'] = false;
103        $this->options['base_transaction_name'] = '___php_MDB2_sqlite_auto_commit_off';
104        $this->options['fixed_float'] = 0;
129            
130        // PHP 5.2+ prepends the function name to $php_errormsg, so we need
131        // this hack to work around it, per bug #9599.
363            return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
364                'extension '.$this->phptype.' is not compiled into PHP', __FUNCTION__);
365        }
oci8.php https://bitbucket.org/chamilo/chamilo/ | PHP | 1,635 lines
1<?php
2// vim: set et ts=4 sw=4 fdm=marker:
45
46// $Id: oci8.php 137 2009-11-09 13:24:37Z vanpouckesven $
47
72
73        $this->phptype = 'oci8';
74        $this->dbsyntax = 'oci8';
129        $native_msg  = $error_data['message'];
130        if (is_null($error)) {
131            static $ecode_map;
326            return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
327                'extension '.$this->phptype.' is not compiled into PHP', __FUNCTION__);
328        }
1564                            // Probably a NULL LOB
1565                            // @see http://bugs.php.net/bug.php?id=27485
1566                            continue;
DataServiceStreamProviderWrapper.php https://hg01.codeplex.com/odataphpproducer | PHP | 543 lines
1<?php
2/**
4 * 
5 * PHP version 5.3
6 * 
8 * @package   ODataProducer_Providers_Stream
9 * @author    Anu T Chandy <odataphpproducer_alias@microsoft.com>
10 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)
10 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)
11 * @license   New BSD license, (http://www.opensource.org/licenses/bsd-license.php)
12 * @version   SVN: 1.0
12 * @version   SVN: 1.0
13 * @link      http://odataphpproducer.codeplex.com
14 * 
29 * @package   ODataProducer_Providers_Stream
30 * @author    Anu T Chandy <odataphpproducer_alias@microsoft.com>
31 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)
template.php git://github.com/splitbrain/dokuwiki.git | PHP | 1,882 lines
1<?php
2/**
65 * (defined by the global $ACT var) by calling the appropriate
66 * outputfunction(s) from html.php
67 *
233            'rel' => 'search', 'type'=> 'application/opensearchdescription+xml',
234            'href'=> DOKU_BASE.'lib/exe/opensearch.php', 'title'=> $conf['title']
235        );
246    if (actionOK('manifest')) {
247        $head['link'][] = array('rel'=> 'manifest', 'href'=> DOKU_BASE.'lib/exe/manifest.php');
248    }
260                'rel'  => 'alternate', 'type'=> 'application/rss+xml',
261                'title'=> $lang['btn_recent'], 'href'=> DOKU_BASE.'feed.php'
262            );
265                'title'=> $lang['currentns'],
266                'href' => DOKU_BASE.'feed.php?mode=list&ns='.(isset($INFO) ? $INFO['namespace'] : '')
267            );
migrate.php git://github.com/fuel/core.git | PHP | 712 lines
19 * @category	Migrations
20 * @link		http://docs.fuelphp.com/classes/migrate.html
21 */
127				// determine the direction
128				$direction = (is_null($version) or $match[1] < $version) ? 'up' : 'down';
129
428		}
429		if ( ! is_null($end))
430		{
444			// add the file to the migrations list if it's in between version bounds
445			if ((is_null($start) or $migration > $start) and (is_null($end) or $migration <= $end))
446			{
705			// delete any old migration config file that may exist
706			is_file(APPPATH.'config'.DS.'migrations.php') and unlink(APPPATH.'config'.DS.'migrations.php');
707		}
oci8.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 1,874 lines
46
47// $Id: oci8.php 137 2009-11-09 13:24:37Z vanpouckesven $
48
76        
77        $this->phptype = 'oci8';
78        $this->dbsyntax = 'oci8';
344        {
345            return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null, 'extension ' . $this->phptype . ' is not compiled into PHP', __FUNCTION__);
346        }
904            }
905            if (is_null($placeholder_type))
906            {
1793                            // Probably a NULL LOB
1794                            // @see http://bugs.php.net/bug.php?id=27485
1795                            continue;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21