PageRenderTime 251ms queryFilters 0ms Sphinxql 47ms app.CodeModel.GetByIds 108ms findMatchingLines 60ms GetByIds 168ms meta 0ms repositoryFilters 11ms languageFilters 1ms sourceFilters 7ms

60,014 results for 'php is_null repo:sebs/mosolar' (251 ms)

Source

Language

Repository

Table.php https://bitbucket.org/stk2k/charcoalphp2.1.git | PHP | 2,650 lines
432    DB_TABLE_ERR_VER_IDX_COL_MISSING => 'Verification failed: index does not contain all specified cols',
433    DB_TABLE_ERR_CREATE_PHPTYPE      => 'Creation mode is not supported for this phptype',
434    DB_TABLE_ERR_DECLARE_PRIMARY     => 'Only one primary key is allowed',
891        if (is_subclass_of($db, 'db_common')) {
892            $phptype = $db->phptype;
893            $dbsyntax = $db->dbsyntax;
895            $dsn = MDB2::parseDSN($db->getDSN());
896            $phptype = $dsn['phptype'];
897            $dbsyntax = $dsn['dbsyntax'];
1357        // null or if the old and new modes already match.
1358        if ((is_null($new_mode) && is_null($new_class)) ||
1359            ($old_mode == $new_mode && $old_class == $new_class)) {
1479        // add LIMIT if requested
1480        if (! is_null($start) && ! is_null($count)) {
1481            if ($this->backend == 'mdb2') {
joomsef.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 1,030 lines
1<?php
2/**
35(strpos($_SERVER['REQUEST_URI'], $base.$index.'?') !== false) &&    // request uri has ?
36($index != 'index2.php') &&                                         // site isn't index2.php
37(count($_POST) == 0))                                              // POST is empty
65
66        if (is_null($option)) {
67            $GLOBALS['JOOMSEF_DEBUG']['REDIRECT_INDEX'] = 0;
75                $_GET['Itemid'] = $_REQUEST['Itemid'] = $Itemid = $row[0];
76                $_SERVER['QUERY_STRING'] = $QUERY_STRING  = str_replace('index.php?', '', $row[1])."&Itemid=$Itemid";
77                $REQUEST_URI = $GLOBALS['mosConfig_live_site'].'/index.php?'.$QUERY_STRING;
107                $database->setQuery("SELECT * FROM #__redirection WHERE oldurl = '' OR oldurl = '$index' LIMIT 1");
108                if (!is_null($database->loadObject($sefRow))) {
109                    if (@$sefRow->metatitle)  $GLOBALS['sefMetaTags']['title']     = $sefRow->metatitle;
610    // If this appears to be SEO-able URL, work with it.
611    if (((strcasecmp(substr($newstring, 0, 9), 'index.php') == 0) || (strcasecmp(substr($newstring, 0, 10), 'index2.php') == 0))
612    && !eregi('^(([^:/?#]+):)', $newstring)
sef.class.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 1,332 lines
1<?php
2/**
569}
570// Net/Url.php From the PEAR Library (http://pear.php.net/package/Net_URL)
571// +-----------------------------------------------------------------------+
603//
604// $Id: sef.class.php,v 1.5 2005/02/06 16:32:15 marlboroman_2k Exp $
605//
708            $this->port = ! empty($port) ? $port : (isset($HTTP_SERVER_VARS['SERVER_PORT']) ? $HTTP_SERVER_VARS['SERVER_PORT'] : $this->getStandardPort($this->protocol));
709            //$this->path        = isset($HTTP_SERVER_VARS['ORIG_SCRIPT_NAME']) ? $HTTP_SERVER_VARS['ORIG_SCRIPT_NAME'] : (isset($HTTP_SERVER_VARS['SCRIPT_NAME']) ? $HTTP_SERVER_VARS['SCRIPT_NAME'] : (isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : '/'));
710            if (isset($HTTP_SERVER_VARS['ORIG_SCRIPT_NAME']) && strstr($HTTP_SERVER_VARS['ORIG_SCRIPT_NAME'], '.php') != false) {
873     *
874     * /foo/bar/../boo.php    => /foo/boo.php
875     * /foo/bar/../../boo.php => /boo.php
875     * /foo/bar/../../boo.php => /boo.php
876     * /foo/bar/.././/boo.php => /foo/boo.php
877     *
jpgraph.php https://bitbucket.org/aurimukas/intrans-v2.git | PHP | 840 lines
21 *
22 * @category	PHPExcel
23 * @package		PHPExcel_Chart
23 * @package		PHPExcel_Chart
24 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
25 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
29
30require_once(PHPExcel_Settings::getChartRendererPath().'/jpgraph.php');
31
37 * @package		PHPExcel_Chart_Renderer
38 * @copyright	Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
39 */
239		$yAxisLabel = $this->_chart->getYAxisLabel();
240		if (!is_null($yAxisLabel)) {
241			$title = $this->_getCaption($yAxisLabel);
Tokens.php https://bitbucket.org/bestteam/expenses.git | PHP | 482 lines
50 * @version   Release: @package_version@
51 * @link      http://pear.php.net/package/PHP_DocBlockGenerator
52 */
175        $this->tokens = token_get_all($data) and array_walk($this->tokens, array($this, 'tidy')) and
176        $this->phpTokens = array_filter($this->tokens, array($this, 'isPHPCode'));
177        // /
294
295                    case T_DOC_COMMENT: // /**     */ PHPDoc style comments (PHP 5 only)
296                        // spots the page block, realigns the DocBlock tags
335                    case T_STATIC: // static variable scope
336                        if (!is_null($this->inClass) and is_null($inFunct)) {
337                            // captures the static property within a class and
359                            $this->block->setGlobal($this->id[T_GLOBAL], $token, $allTokens);
360                        } else if (is_null($this->inClass) and is_null($inFunct) and $value == '$GLOBALS') {
361                            // a GLOBALS variable outside of a class and function
Blob.php https://bitbucket.org/ssellek/saywhatnation.bitbucket.git | PHP | 2,039 lines
1<?php
2/**
32 * @license    http://todo     name_todo
33 * @version    $Id: Blob.php 53747 2010-11-18 19:34:25Z unknown $
34 */
41 */
42require_once 'Microsoft/WindowsAzure/Credentials/SharedKey.php';
43
46 */
47require_once 'Microsoft/WindowsAzure/Credentials/SharedAccessSignature.php';
48
51 */
52require_once 'Microsoft/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
53
56 */
57require_once 'Microsoft/Http/Client.php';
58
Table.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 931 lines
1<?php
2/**
35 */
36#require_once 'Zend/Service/WindowsAzure/Storage/TableEntityQuery.php';
37
40 */
41#require_once 'Zend/Service/WindowsAzure/Storage/DynamicTableEntity.php';
42
45 */
46#require_once 'Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php';
47
548		// Add continuation querystring parameters?
549		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
550		    if ($queryString !== '') {
629			// More entities?
630		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
631		        if (strpos($queryString, '$top') === false) {
Queue.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 592 lines
1<?php
2/**
25 */
26#require_once 'Zend/Service/WindowsAzure/Storage.php';
27
30 */
31#require_once 'Zend/Service/WindowsAzure/Storage/QueueInstance.php';
32
35 */
36#require_once 'Zend/Service/WindowsAzure/Storage/QueueMessage.php';
37
82		if ($queueName === '') {
83			#require_once 'Zend/Service/WindowsAzure/Exception.php';
84			throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
86		if (!self::isValidQueueName($queueName)) {
87			#require_once 'Zend/Service/WindowsAzure/Exception.php';
88		    throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
db_update.php https://bitbucket.org/gencer/fluxbb.git | PHP | 1,909 lines
34if (!function_exists('version_compare') || version_compare(PHP_VERSION, MIN_PHP_VERSION, '<'))
35	exit('You are running PHP version '.PHP_VERSION.'. FluxBB '.UPDATE_TO.' requires at least PHP '.MIN_PHP_VERSION.' to run properly. You must upgrade your PHP installation before you can continue.');
36
508
509<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang_common['lang_identifier'] ?>" lang="<?php echo $lang_common['lang_identifier'] ?>" dir="<?php echo $lang_common['lang_direction'] ?>">
510<head>
524			<h1><span><?php echo $lang_update['Update'] ?></span></h1>
525			<div id="brddesc"><p><?php echo $lang_update['Update message'] ?></p><p><strong><?php echo $lang_update['Note']; ?></strong> <?php echo $lang_update['Members message']; ?></p></div>
526		</div>
1664					<div class="infldset">
1665						<label class="required"><strong><?php echo $lang_update['New username'] ?> <span><?php echo $lang_update['Required'] ?></span></strong><br /><input type="text" name="<?php echo 'dupe_users['.$id.']'; ?>" value="<?php if (isset($_POST['dupe_users'][$id])) echo pun_htmlspecialchars($_POST['dupe_users'][$id]); ?>" size="25" maxlength="25" /><br /></label>
1666					</div>
1868
1869<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang_common['lang_identifier'] ?>" lang="<?php echo $lang_common['lang_identifier'] ?>" dir="<?php echo $lang_common['lang_direction'] ?>">
1870<head>
Table.php https://bitbucket.org/jfrubiom/zendframework-1.x.git | PHP | 926 lines
1<?php
2/**
30 */
31require_once 'Zend/Service/WindowsAzure/Storage/TableInstance.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/Storage/TableEntityQuery.php';
37
40 */
41require_once 'Zend/Service/WindowsAzure/Storage/DynamicTableEntity.php';
42
543		// Add continuation querystring parameters?
544		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
545		    if ($queryString !== '') {
624			// More entities?
625		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
626		        if (strpos($queryString, '$top') === false) {
Blob.php https://bitbucket.org/bsnowman/classyblog.git | PHP | 2,038 lines
1<?php
2/**
32 * @license    http://todo     name_todo
33 * @version    $Id: Blob.php 53747 2010-11-18 19:34:25Z unknown $
34 */
41 */
42require_once 'Microsoft/WindowsAzure/Credentials/SharedKey.php';
43
46 */
47require_once 'Microsoft/WindowsAzure/Credentials/SharedAccessSignature.php';
48
51 */
52require_once 'Microsoft/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
53
56 */
57require_once 'Microsoft/Http/Client.php';
58
renderer.php https://bitbucket.org/synergylearning/campusconnect.git | PHP | 1,122 lines
1<?php
2
69
70        if (!is_null($url) and !is_null($label)) {
71            $o .= $this->output->single_button($url, $label, 'get');
135            if (!empty($CFG->enableplagiarism)) {
136                require_once($CFG->libdir.'/plagiarismlib.php');
137                $content .= plagiarism_get_links(array('userid' => $submission->authorid,
186            $userpic            = $this->output->user_picture($author, array('courseid' => $this->page->course->id, 'size' => 35));
187            $userurl            = new moodle_url('/user/view.php',
188                                            array('id' => $author->id, 'course' => $this->page->course->id));
496                    $cell->attributes['class'] = 'receivedgrade';
497                    if (is_null($assessment) or is_null($assessment->grade)) {
498                        $cell->attributes['class'] .= ' null';
520                    $cell->attributes['class'] = 'givengrade';
521                    if (is_null($assessment) or is_null($assessment->grade)) {
522                        $cell->attributes['class'] .= ' null';
renderer.php https://bitbucket.org/mbbid5r/moodle_workshop_phaseless.git | PHP | 1,012 lines
1<?php
2
69
70        if (!is_null($url) and !is_null($label)) {
71            $o .= $this->output->single_button($url, $label, 'get');
184            $userpic            = $this->output->user_picture($author, array('courseid' => $this->page->course->id, 'size' => 35));
185            $userurl            = new moodle_url('/user/view.php',
186                                            array('id' => $author->id, 'course' => $this->page->course->id));
225        $content = format_text($example->content, $example->contentformat, array('overflowdiv'=>true));
226        $content = file_rewrite_pluginfile_urls($content, 'pluginfile.php', $this->page->context->id,
227                                                        'mod_workshop', 'submission_content', $example->id);
497                    $cell->attributes['class'] = 'receivedgrade';
498                    if (is_null($assessment) or is_null($assessment->grade)) {
499                        $cell->attributes['class'] .= ' null';
521                    $cell->attributes['class'] = 'givengrade';
522                    if (is_null($assessment) or is_null($assessment->grade)) {
523                        $cell->attributes['class'] .= ' null';
gradelib.php https://bitbucket.org/systime/screening2.git | 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;
em_core_helper.php https://bitbucket.org/sammousa/valuematchbv-ls2.git | PHP | 3,552 lines
155        $this->RDP_ValidFunctions = array(
156'abs' => array('abs', 'Math.abs', $this->gT('Absolute value'), 'number abs(number)', 'http://www.php.net/manual/en/function.checkdate.php', 1),
157'acos' => array('acos', 'Math.acos', $this->gT('Arc cosine'), 'number acos(number)', 'http://www.php.net/manual/en/function.acos.php', 1),
184'is_nan' => array('is_nan', 'isNaN', $this->gT('Finds whether a value is not a number'), 'bool is_nan(var)', 'http://www.php.net/manual/en/function.is-nan.php', 1),
185'is_null' => array('is_null', 'LEMis_null', $this->gT('Finds whether a variable is NULL'), 'bool is_null(var)', 'http://www.php.net/manual/en/function.is-null.php', 1),
186'is_numeric' => array('is_numeric', 'LEMis_numeric', $this->gT('Finds whether a variable is a number or a numeric string'), 'bool is_numeric(var)', 'http://www.php.net/manual/en/function.is-numeric.php', 1),
214'strcmp' => array('strcmp', 'strcmp', $this->gT('Binary safe string comparison'), 'int strcmp(str1, str2)', 'http://www.php.net/manual/en/function.strcmp.php', 2),
215'strip_tags' => array('strip_tags', 'strip_tags', $this->gT('Strip HTML and PHP tags from a string'), 'string strip_tags(str, allowable_tags)', 'http://www.php.net/manual/en/function.strip-tags.php', 1,2),
216'stripos' => array('stripos', 'stripos', $this->gT('Find position of first occurrence of a case-insensitive string'), 'int stripos(haystack, needle [, offset=0])', 'http://www.php.net/manual/en/function.stripos.php', 2,3),
227'sumifop' => array('exprmgr_sumifop', 'LEMsumifop', $this->gT('Sum the values of answered questions in the list which pass the critiera (arg op value)'), 'number sumifop(op, value, arg1, arg2, ... argN)', '', -3),
228'tan' => array('tan', 'Math.tan', $this->gT('Tangent'), 'number tan(arg)', 'http://www.php.net/manual/en/function.tan.php', 1),
229'time' => array('time', 'time', $this->gT('Return current UNIX timestamp'), 'number time()', 'http://www.php.net/manual/en/function.time.php', 0),
229'time' => array('time', 'time', $this->gT('Return current UNIX timestamp'), 'number time()', 'http://www.php.net/manual/en/function.time.php', 0),
230'trim' => array('trim', 'trim', $this->gT('Strip whitespace (or other characters) from the beginning and end of a string'), 'string trim(string [, charlist])', 'http://www.php.net/manual/en/function.trim.php', 1,2),
231'ucwords' => array('ucwords', 'ucwords', $this->gT('Uppercase the first character of each word in a string'), 'string ucwords(string)', 'http://www.php.net/manual/en/function.ucwords.php', 1),
config.class.php https://bitbucket.org/mariocesar/solmujeres | PHP | 988 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) {
895/**
896 *  Provide php_strip_whitespace (php5 function) functionality
897 *
execSetResults.php https://bitbucket.org/pfernandez/testlink1.9.6 | PHP | 1,432 lines
1<?php
2/**
4 *
5 * Filename $RCSfile: execSetResults.php,v $
6 *
53**/
54require_once('../../config.inc.php');
55require_once('common.php');
55require_once('common.php');
56require_once('exec.inc.php');
57require_once("attachments.inc.php");
57require_once("attachments.inc.php");
58require_once("specview.php");
59require_once("web_editor.php");
71  require_once(TL_ABS_PATH. 'lib' . DIRECTORY_SEPARATOR . 'bugtracking' . 
72               DIRECTORY_SEPARATOR . 'int_bugtracking.php');
73}
execNavigator.php https://bitbucket.org/pfernandez/testlink1.9.6 | PHP | 739 lines
1<?php
2/**
9 * @copyright 	2007-2009, TestLink community
10 * @version    	CVS: $Id: execNavigator.php,v 1.119 2010/06/28 16:19:38 asimon83 Exp $
11 * @filesource	http://testlink.cvs.sourceforge.net/viewvc/testlink/testlink/lib/functions/object.class.php?view=markup
11 * @filesource	http://testlink.cvs.sourceforge.net/viewvc/testlink/testlink/lib/functions/object.class.php?view=markup
12 * @link 		http://www.teamst.org/index.php
13 *
41
42require_once('../../config.inc.php');
43require_once('common.php');
43require_once('common.php');
44require_once("users.inc.php");
45require_once('treeMenu.inc.php');
45require_once('treeMenu.inc.php');
46require_once('exec.inc.php');
47
Table.php https://bitbucket.org/renaatdemuynck/chamilo | PHP | 1,177 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 $
Slim.php https://bitbucket.org/nvnoskov/grow | PHP | 1,168 lines
1<?php
2/**
2/**
3 * Slim - a micro PHP 5 framework
4 *
32
33//Ensure PHP session IDs only use the characters [a-z0-9]
34ini_set('session.hash_bits_per_character', 4);
46
47//This determines which errors are reported by PHP. By default, all
48//errors (including E_STRICT) are reported.
50
51//This tells PHP to auto-load classes using Slim's autoloader; this will
52//only auto-load a class file located in the same directory as Slim.php
53//whose file name (excluding the final dot and extension) is the same
54//as its class name (case-sensitive). For example, "View.php" will be
55//loaded when Slim uses the "View" class for the first time.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21