PageRenderTime 24ms queryFilters 0ms Sphinxql 883ms GetByIds 2484ms meta 0ms repositoryFilters 5ms languageFilters 0ms sourceFilters 1ms

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

Source

Language

Repository

TableServiceFunctionalTestUtils.php https://hg.codeplex.com/bukuphpjs | PHP | 447 lines
18 * @package   Tests\Functional\WindowsAzure\Table
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
358    {
359        if (is_null($left) || is_null($right)) {
360            return null;
368    {
369        if (is_null($left) || is_null($right)) {
370            return null;
378    {
379        if (is_null($left) || is_null($right)) {
380            return null;
388    {
389        if (is_null($left) || is_null($right)) {
390            return null;
ca_places.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 524 lines
1<?php
2/** ---------------------------------------------------------------------
2/** ---------------------------------------------------------------------
3 * app/models/ca_places.php : table access class for table ca_places
4 * ----------------------------------------------------------------------
36
37require_once(__CA_LIB_DIR__."/ca/IBundleProvider.php");
38require_once(__CA_LIB_DIR__."/ca/BundlableLabelableBaseModelWithAttributes.php");
38require_once(__CA_LIB_DIR__."/ca/BundlableLabelableBaseModelWithAttributes.php");
39require_once(__CA_LIB_DIR__.'/ca/IHierarchy.php');
40require_once(__CA_MODELS_DIR__."/ca_lists.php");
49				'IDENTITY' => true, 'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
50				'IS_NULL' => false, 
51				'DEFAULT' => '',
56				'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
57				'IS_NULL' => true, 
58				'DEFAULT' => '',
ca_tour_stops.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 386 lines
1<?php
2/** ---------------------------------------------------------------------
2/** ---------------------------------------------------------------------
3 * app/models/ca_tour_stops.php : table access class for table ca_tour_stops
4 * ----------------------------------------------------------------------
36 
37require_once(__CA_LIB_DIR__.'/ca/BundlableLabelableBaseModelWithAttributes.php');
38require_once(__CA_LIB_DIR__.'/ca/IHierarchy.php');
38require_once(__CA_LIB_DIR__.'/ca/IHierarchy.php');
39require_once(__CA_MODELS_DIR__.'/ca_tours.php');
40require_once(__CA_MODELS_DIR__.'/ca_locales.php');
49				'IDENTITY' => true, 'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
50				'IS_NULL' => false, 
51				'DEFAULT' => '',
56				'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
57				'IS_NULL' => true, 
58				'DEFAULT' => '',
ca_sets.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 1,506 lines
1<?php
2/** ---------------------------------------------------------------------
2/** ---------------------------------------------------------------------
3 * app/models/ca_sets.php : table access class for table ca_sets
4 * ----------------------------------------------------------------------
36
37require_once(__CA_LIB_DIR__."/ca/IBundleProvider.php");
38require_once(__CA_LIB_DIR__."/ca/BundlableLabelableBaseModelWithAttributes.php");
38require_once(__CA_LIB_DIR__."/ca/BundlableLabelableBaseModelWithAttributes.php");
39require_once(__CA_APP_DIR__.'/models/ca_set_items.php');
40require_once(__CA_APP_DIR__.'/models/ca_users.php');
40require_once(__CA_APP_DIR__.'/models/ca_users.php');
41require_once(__CA_APP_DIR__.'/helpers/htmlFormHelpers.php');
42
53				'IDENTITY' => true, 'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
54				'IS_NULL' => false, 
55				'DEFAULT' => '',
ca_users.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 2,297 lines
1<?php
2/** ---------------------------------------------------------------------
2/** ---------------------------------------------------------------------
3 * app/models/ca_users.php : table access class for table ca_users
4 * ----------------------------------------------------------------------
36
37require_once(__CA_LIB_DIR__."/core/AccessRestrictions.php");
38require_once(__CA_APP_DIR__.'/models/ca_user_roles.php');
38require_once(__CA_APP_DIR__.'/models/ca_user_roles.php');
39include_once(__CA_APP_DIR__."/helpers/utilityHelpers.php");
40require_once(__CA_APP_DIR__.'/models/ca_user_groups.php');
40require_once(__CA_APP_DIR__.'/models/ca_user_groups.php');
41require_once(__CA_APP_DIR__.'/models/ca_locales.php');
42
50				'IDENTITY' => true, 'DISPLAY_WIDTH' => 10, 'DISPLAY_HEIGHT' => 1,
51				'IS_NULL' => false, 
52				'DEFAULT' => '',
adodb-session2.php https://bitbucket.org/tedbundyjr/adodb5.git | PHP | 949 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;
adodb-session2.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | 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;
adodb-session2.php https://bitbucket.org/nahedh/throughskysms.git | PHP | 941 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;
securimage.php https://github.com/kppf/securimage.git | PHP | 2,210 lines
1<?php
2
6 * Project:     Securimage: A PHP class for creating and managing form CAPTCHA images<br />
7 * File:        securimage.php<br />
8 *
38 *
39 * @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
40 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
40 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
41 * @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
42 * @copyright 2013 Drew Phillips
64 3.2RC3
65 - Fix canSendHeaders() check which was breaking if a PHP startup error was issued
66
165    // They can be passed as an array to the Securimage constructor, set below,
166    // or set from securimage_show.php and securimage_play.php
167
Oauth2.php https://github.com/A-Shevchenko/oauth-2---facebook---zend-framework-components.git | PHP | 362 lines
1<?php
2
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Oauth.php 21071 2010-02-16 14:35:00Z padraic $
21 */
25 */
26require_once 'Zend/Oauth2/Config.php';
27
30 */
31require_once 'Zend/Rest/Client.php';
32
35 */
36require_once 'Zend/Json.php';
37
64        $this->_config = new Zend_Oauth2_Config;
65        if (!is_null($options)) {
66            if ($options instanceof Zend_Config) {
ajaxservice.php https://github.com/cyrke/phpMyFAQ.git | PHP | 794 lines
121
122        if (!is_null($username) && !empty($username) && !empty($mail) && !is_null($mail) && !is_null($comment) &&
123            !empty($comment) && $stopwords->checkBannedWord($comment) && !$faq->commentDisabled($id, $languageCode, $type)) {
248            !is_null($answer) && !empty($answer) && $stopwords->checkBannedWord(PMF_String::htmlspecialchars($answer)) &&
249            ((is_null($faqid) && !is_null($categories['rubrik'])) || (!is_null($faqid) && !is_null($faqlanguage) &&
250            PMF_Language::isASupportedLanguage($faqlanguage)))) {
535
536        if (!is_null($loginname) && !empty($loginname) && !is_null($email) && !empty($email) &&
537            !is_null($realname) && !empty($realname)) {
630
631        if (!is_null($name) && !empty($name) && !is_null($email) && !empty($email) && !is_null($question) &&
632            !empty($question) && $stopwords->checkBannedWord(PMF_String::htmlspecialchars($question))) {
672
673        if (!is_null($name) && !empty($name) && !is_null($email) && !empty($email) &&
674            is_array($mailto) && !empty($mailto['mailto'][0]) &&
Installer.php https://github.com/cyrke/phpMyFAQ.git | PHP | 838 lines
386        if (!$this->checkMinimumPhpVersion()) {
387            printf('<p class="alert alert-error">Sorry, but you need PHP %s or later!</p>', PMF_System::VERSION_MINIMUM_PHP);
388            PMF_System::renderFooter();
397            echo '<p class="alert alert-error">No supported database detected! Please install one of the following' .
398                ' database systems and enable the corresponding PHP extension in php.ini:</p>';
399            echo '<ul>';
439
440        if (! is_readable(PMF_ROOT_DIR . '/inc/data.php') && ! is_readable(PMF_ROOT_DIR . '/config/database.php')) {
441            echo '<p class="alert alert-error">It seems you never run a version of phpMyFAQ.<br />' .
453    {
454        if (version_compare(PHP_VERSION, PMF_System::VERSION_MINIMUM_PHP, '<')) {
455            return false;
500        if ((@ini_get('safe_mode') == 'On' || @ini_get('safe_mode') === 1)) {
501            echo '<p class="alert alert-error">The PHP safe mode is enabled. You may have problems when phpMyFAQ tries to write ' .
502                ' in some directories.</p>';
jot.class.inc.php https://github.com/good-web-master/modx.evo.custom.git | PHP | 914 lines
1<?php
2class CJot {
18		if (!class_exists('CChunkie'))
19			include_once($path . '/includes/chunkie.class.inc.php');
20		$this->name = $this->config["snippet"]["name"] = "Jot";
71		// General settings
72		$this->config["docid"] = !is_null($this->Get("docid")) ? intval($this->Get("docid")):$modx->documentIdentifier;
73		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
73		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
74		$this->config["docids"] = !is_null($this->Get("docids")) ? $this->processDocs($this->Get("docids")) : $this->config["docid"];
75		$this->config["tagids"] = !is_null($this->Get("tagids")) ? $this->processTags($this->Get("tagids")) : $this->config["tagid"];
75		$this->config["tagids"] = !is_null($this->Get("tagids")) ? $this->processTags($this->Get("tagids")) : $this->config["tagid"];
76		$this->config["userids"] = !is_null($this->Get("userids")) ? $this->processUsers($this->Get("userids")) : '*';
77		$this->config["pagination"] = !is_null($this->Get("pagination")) ? $this->Get("pagination") : 10; // Set pagination (0 = disabled, # = comments per page)
611
612		include_once MODX_BASE_PATH . "manager/includes/controls/class.phpmailer.php";
613		
jot.class.inc.php https://github.com/dreeman/modx106.git | PHP | 909 lines
1<?php
2/*####
79		// TODO Add docid/tagid from all
80		$this->config["docid"] = !is_null($this->Get("docid")) ? intval($this->Get("docid")):$modx->documentIdentifier;
81		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
81		$this->config["tagid"] = !is_null($this->Get("tagid")) ? preg_replace("/[^A-z0-9_\-]/",'',$this->Get("tagid")):'';
82		$this->config["pagination"] = !is_null($this->Get("pagination")) ? $this->Get("pagination") : 10; // Set pagination (0 = disabled, # = comments per page)
83		$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)
673							$message = $tpl->Render();
674							mail($user["email"], $this->config["subject"]["subscribe"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
675						}
699				$message = $tpl->Render();
700				mail($user["email"], $this->config["subject"]["moderate"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
701			}
732			
733			mail($user["email"], $this->config["subject"]["author"], $message, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion());
734			
FormHandler.php https://github.com/reshadf/Library.git | PHP | 4,009 lines
1<?php
2/**
9// make sure this file is not accessed directly
10if(strtolower(basename($_SERVER['PHP_SELF'])) == strtolower(basename(__FILE__)))
11{
71// make some variables global when the version < 4.1.0
72if(intval( str_replace('.', '', phpversion()) ) < 410)
73{
87define('FH_INCLUDE_DIR', str_replace('\\', '/', dirname(__FILE__)).'/');
88require_once( FH_INCLUDE_DIR . 'fields/class.Field.php' );
89require_once( FH_INCLUDE_DIR . 'buttons/class.Button.php' );
89require_once( FH_INCLUDE_DIR . 'buttons/class.Button.php' );
90require_once( FH_INCLUDE_DIR . 'includes/config.inc.php' );
91require_once( FH_INCLUDE_DIR . 'includes/error.inc.php' );
91require_once( FH_INCLUDE_DIR . 'includes/error.inc.php' );
92require_once( FH_INCLUDE_DIR . 'includes/class.Validator.php' );
93require_once( FH_INCLUDE_DIR . 'includes/class.MaskLoader.php' );
gdgraph.php https://github.com/Ixxy/Open-Affiliates.git | PHP | 1,103 lines
179	function line_graph($data, $color=Array(), $x_ls=Array(), $x_t="", $y_t="", $inc_dot=true, $l_t=Array(), $g_per=0, $x_rl=NULL,  $x_ru=NULL, $y_rl=NULL,  $y_ru=NULL){
180		if((((!is_null($x_rl)) && (!is_null($x_ru))) && ($x_rl >= $x_ru)) || (((!is_null($y_rl)) && (!is_null($y_ru))) && ($y_rl >= $y_ru)))
181			die("Lower ranges of either X or Y can't be greater or equal to their upper ranges.");
194		//Now we do that with the data array
195		if ((!is_null($x_rl)) && (!is_null($x_ru))){
196			foreach($data as $prod => $sub_data)
327		//Obtaining max Y value
328		if (!($all_down) && !($all_up) && (is_null($y_rl)) && (is_null($y_ru)))
329			//Thanks to chris (chrego3-1 at yahoo dot fr) for this next line of code
362			if((($all_up) && ($line_count == ($x_axis_count-1))) || (!($all_up) && ($line_count == $x_axis_count))){
363				if ($all_up || ((!$all_down) && (is_null($y_rl)) && (is_null($y_ru))))
364					$current_y_value = 0;		//to avoid PHP putting something like "1628E-90" instead of 0
401				$x_axis_y = $current_y_pos;
402				if ($all_up || ((!$all_down) && (is_null($y_rl)) && (is_null($y_ru))))
403					$current_y_value = 0;		//to avoid PHP putting something like "1628E-90" instead of 0
index.php https://github.com/rakshithkr/showslow.git | PHP | 871 lines
263</script>
264<h2>Details for <?php if ($linkToURLs) {?><a target="_blank" href="<?php echo htmlentities($url)?>" rel="nofollow"><?php } else { ?><span class="sitelink"><?php } ?><span title="<?php echo htmlentities($url) ?>"><?php echo htmlentities(ellipsis($url, 61)) ?></span><?php if ($linkToURLs) {?></a><?php } else { ?></span><?php } ?></h2>
265<?php if (!is_null($addThisProfile)) {?>
352		<td valign="top" align="center" class="<?php echo $provider_name ?>">
353		<a href="#<?php echo $provider_name ?>"><img src="http://chart.apis.google.com/chart?chs=225x108&cht=gom&chd=t:<?php echo urlencode($score)?>&chl=<?php echo urlencode($pretty_score.' ('.$score.')') ?>" width="225" height="108" alt="<?php echo $pretty_score ?> (<?php echo htmlentities($score)?>)" title="Current <?php echo $provider['title'] ?> <?php echo $provider['score_name'] ?>: <?php echo $pretty_score ?> (<?php echo htmlentities($score)?>)" border="0"/></a>
354		<div>Current <a href="#<?php echo $provider_name ?>"><?php echo $provider['title'] ?></a> <?php echo $provider['score_name'] ?>: <b><?php echo $pretty_score ?> (<i><?php echo htmlentities($score)?></i>)</b></div>
545		{
546			?><span title="<?php echo htmlentities($metric['description'])?>" style="color: <?php echo array_key_exists('color', $metric) ? $metric['color'] : 'black' ?>"><?php echo htmlentities($metric['title'])?></span> (<a href="<?php echo $showslow_base ?>/details/data_metric.php?metric=<?php echo urlencode($name);?>&urlid=<?php echo urlencode($urlid);?>">csv</a>);
547	<?php
623					<td class="value"><?php echo $pretty_score?> (<i><?php echo htmlentities($value)?></i>%)</td>
624					<td><div class="gbox" title="Current <?php echo $metric['title']?>: <?php echo $pretty_score?> (<?php echo $value?>%)"><div class="bar c<?php echo scoreColorStep($value)?>" style="width: <?php echo $value+1?>px"/></div></td><?php
625				} else {
721							<td><span id="details_<?php echo $provider_name.'_'.$metric[1] ?>" class="details"></span></td>
722							<td><div class="gbox" title="Current <?php echo $provider['score_name']?>: <?php echo $pretty_score?> (<?php echo $value?>%)"><div class="bar c<?php echo scoreColorStep($value)?>" style="width: <?php echo $value+1?>px"/></div></td><?php
723						} else {
Underscore.php https://github.com/michanismus/phalcon-boilerplate.git | PHP | 931 lines
1<?php
2
3/**
4 * Underscore.php v1.0
5 * Copyright (c) 2013 Jonathan Aquino
6 *
7 * This is a fork of Brian Haveri's Underscore.php. I have removed the
8 * object-oriented way of calling the functions, and changed all functions to
8 * object-oriented way of calling the functions, and changed all functions to
9 * static. This eliminates the E_STRICT warnings under PHP >=5.4.
10 *
10 *
11 * Underscore.php is licensed under the MIT license
12 * Underscore.php was inspired by and borrowed from Underscore.js
12 * Underscore.php was inspired by and borrowed from Underscore.js
13 * For docs, license, tests, and downloads, see: https://github.com/JonathanAquino/Underscore.php
14 */
securimage.php https://github.com/iisafriyanti/pkm.git | PHP | 2,210 lines
1<?php
2
6 * Project:     Securimage: A PHP class for creating and managing form CAPTCHA images<br />
7 * File:        securimage.php<br />
8 *
38 *
39 * @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
40 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
40 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
41 * @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
42 * @copyright 2013 Drew Phillips
64 3.2RC3
65 - Fix canSendHeaders() check which was breaking if a PHP startup error was issued
66
165    // They can be passed as an array to the Securimage constructor, set below,
166    // or set from securimage_show.php and securimage_play.php
167
Blob.php https://github.com/kleky/MeetingPlace.git | PHP | 2,030 lines
1<?php
2/**
32 * @license    http://todo     name_todo
33 * @version    $Id: Blob.php 58737 2011-03-02 09:49:52Z unknown $
34 */
38 */
39require_once 'Microsoft/WindowsAzure/Credentials/SharedKey.php';
40
43 */
44require_once 'Microsoft/WindowsAzure/Credentials/SharedAccessSignature.php';
45
48 */
49require_once 'Microsoft/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
50
53 */
54require_once 'Microsoft/Http/Client.php';
55
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21