PageRenderTime 70ms queryFilters 75ms Sphinxql 111ms app.CodeModel.GetByIds 565ms findMatchingLines 44ms GetByIds 609ms meta 0ms repositoryFilters 5ms languageFilters 1ms sourceFilters 3ms

84,023 results for 'php is_null repo:praaxe/damas-core' (70 ms)

Source

Language

Repository

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 
Blob.php git://github.com/frapi/frapi.git | PHP | 1,401 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Blob.php 36457 2010-01-04 07:36:33Z unknown $
21 */
25 */
26// require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
27
30 */
31// require_once 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
32
35 */
36// require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
37
40 */
41// require_once 'Zend/Http/Client.php';
42
ss_get_by_ssh.php http://mysql-cacti-templates.googlecode.com/svn/trunk/ | PHP | 1,486 lines
1076# You can test it like this, as root:
1077# su - cacti -c 'env -i php /var/www/cacti/scripts/ss_get_by_ssh.php --type diskstats --device sda4 --host 127.0.0.1 --items bj,bk,bl,bm,bn,bo,bp'
1078# ============================================================================
1137# You can test it like this, as root:
1138# su - cacti -c 'env -i php /var/www/cacti/scripts/ss_get_by_ssh.php --type openvz --host 127.0.0.1 --items bu,bv,bw,bx,by,bz,c0'
1139# ============================================================================
1194# You can test it like this, as root:
1195# su - cacti -c 'env -i php /var/www/cacti/scripts/ss_get_by_ssh.php --type redis --host 127.0.0.1 --items cy,cz,d2,d3
1196# ============================================================================
1261# You can test it like this, as root:
1262# su - cacti -c 'env -i php /var/www/cacti/scripts/ss_get_by_ssh.php --type jmx --host 127.0.0.1 --items d4,d5,d6,d7,d8,d9,da,db
1263# ============================================================================
1300# You can test it like this, as root:
1301# su - cacti -c 'env -i php /var/www/cacti/scripts/ss_get_by_ssh.php --type mongodb --host 127.0.0.1 --items dc,de,df,dg,dh,di,dj,dk,dl,dm,dn,do,dp,dq,dr,ds,dt,du
1302# ============================================================================
file_info_context_course.php git://github.com/moodle/moodle.git | PHP | 997 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
140        }
141        if (is_null($itemid)) {
142            return $this;
146
147        $filepath = is_null($filepath) ? '/' : $filepath;
148        $filename = is_null($filename) ? '.' : $filename;
156        }
157        $urlbase = $CFG->wwwroot.'/pluginfile.php';
158        return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, get_string('areacourseintro', 'repository'), false, true, true, false);
174        }
175        if (is_null($itemid)) {
176            return $this;
180
181        $filepath = is_null($filepath) ? '/' : $filepath;
182        $filename = is_null($filename) ? '.' : $filename;
Blob.php git://github.com/moodle/moodle.git | PHP | 1,402 lines
1<?php
2/**
25 */
26require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
37
40 */
41require_once 'Zend/Http/Client.php';
42
45 */
46require_once 'Zend/Http/Response.php';
47
phprpc_client.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 583 lines
5|                                                          |
6| phprpc_client.php                                        |
7|                                                          |
66    function keep_phprpc_cookie_in_session() {
67        global $_PHPRPC_COOKIES, $_PHPRPC_COOKIE;
68        $_SESSION['phprpc_cookies'] = $_PHPRPC_COOKIES;
281        }
282        $this->_warning = new PHPRPC_Error($phprpc_errno, $phprpc_errstr);
283        if (array_key_exists('phprpc_output', $result)) {
513        if (!is_null($this->_key) || ($this->_encryptMode == 0)) return true;
514        $request = "phprpc_encrypt=true&phprpc_keylen={$this->_keylen}";
515        $result = $this->_post($request);
576else {
577    class PHPRPC_Client extends _PHPRPC_Client {
578        function __call($function, $arguments) {
io.php http://sloodle.googlecode.com/svn/trunk/ | PHP | 1,193 lines
1<?php
2    // This file is part of the Sloodle project (www.sloodle.org) and is released under the GNU GPL v3.
21    /** Include our general library. */
22    require_once(SLOODLE_DIRROOT . '/lib/general.php');
23    
46    /**
47    * A helper class to validate and structure data for output according to the {@link http://slisweb.sjsu.edu/sl/index.php/Sloodle_communications_specification Sloodle communications specification}.
48    * @package sloodle
69        * Integer status code of the response.
70        * Refer to the {@link http://slisweb.sjsu.edu/sl/index.php/Sloodle_status_codes status codes} page on the Sloodle wiki for a reference.
71        * <b>Required.</b>
242            // Validate
243            if (is_string($par) == false && is_null($par) == false) {
244                $this->_internal_validation_error("Sloodle - LSL response: invalid status descriptor specified; should be a string or null", 0);
551            // Make sure that if the page number is specified, that the total is as well
552            if (is_null($this->page_number) xor is_null($this->page_total)) {
553                $this->_internal_validation_error("Sloodle - LSL response: script must specify both \"page_total\" *and* \"page_number\", or specify neither");
context.php http://enaj.googlecode.com/svn/trunk/ | PHP | 1,396 lines
1<?php
2// $Id: context.php 2421 2009-04-14 08:59:23Z jerry $
6 *
7 * @link http://qeephp.com/
8 * @copyright Copyright (c) 2006-2009 Qeeyuan Inc. {@link http://www.qeeyuan.com}
8 * @copyright Copyright (c) 2006-2009 Qeeyuan Inc. {@link http://www.qeeyuan.com}
9 * @license New BSD License {@link http://qeephp.com/license/}
10 * @version $Id: context.php 2421 2009-04-14 08:59:23Z jerry $
16 *
17 * ?????????? QeePHP ????????????
18 * QContext ????????????????? URL ??????
24 *
25 * @code php
26 * if (isset($context['title']))
32 * @author YuLei Liao <liaoyulei@qeeyuan.com>
33 * @version $Id: context.php 2421 2009-04-14 08:59:23Z jerry $
34 * @package core
jpgraph.php https://PHPExcel.svn.codeplex.com/svn | PHP | 832 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 */
237		$yAxisLabel = $this->_chart->getYAxisLabel();
238		if (!is_null($yAxisLabel)) {
239			$title = $this->_getCaption($yAxisLabel);
FLEA.php http://ipmanger.googlecode.com/svn/trunk/ | PHP | 2,032 lines
13 *
14 * ????? FleaPHP ???????????? FleaPHP ???
15 * ??????????? require('FLEA.php') ??????
36
37// ???? PHP4 ? PHP5 ???
38if (substr(PHP_VERSION, 0, 1) == '5') {
1386 *
1387 * FleaPHP ???? PHP4????????????????????????????????
1388 * FleaPHP ?????????????
1797/**
1798 * PHP4 ? PHP5 ????????
1799 */
1814     *
1815     * ? PHP5 ??FLEA_Exception ??? PHP ??? Exception ??
1816     * ? PHP4 ???????????
phprpc_client.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 583 lines
5|                                                          |
6| phprpc_client.php                                        |
7|                                                          |
66    function keep_phprpc_cookie_in_session() {
67        global $_PHPRPC_COOKIES, $_PHPRPC_COOKIE;
68        $_SESSION['phprpc_cookies'] = $_PHPRPC_COOKIES;
281        }
282        $this->_warning = new PHPRPC_Error($phprpc_errno, $phprpc_errstr);
283        if (array_key_exists('phprpc_output', $result)) {
513        if (!is_null($this->_key) || ($this->_encryptMode == 0)) return true;
514        $request = "phprpc_encrypt=true&phprpc_keylen={$this->_keylen}";
515        $result = $this->_post($request);
576else {
577    class PHPRPC_Client extends _PHPRPC_Client {
578        function __call($function, $arguments) {
misc.php git://github.com/unirgy/buckyball.git | PHP | 3,899 lines
279     *
280     * @see http://www.php.net/manual/en/function.sprintf.php#94608
281     * @param string $format sprintf format string, with any number of named arguments
1073    *
1074    * @see http://us2.php.net/manual/en/function.parse-url.php#106731
1075    * @param array $p result of parse_url()
3742    /**
3743     * @see http://www.php.net/manual/en/function.htmlentities.php#106535
3744     */
3787     *
3788     * @see http://www.php.net/manual/en/function.hash-hmac.php#93440
3789     *
3832     *
3833     * @see http://www.php.net/manual/en/function.hash-hmac.php#109260
3834     *
controller.php git://github.com/unirgy/buckyball.git | PHP | 2,261 lines
1<?php
2/**
60        if (!empty($_SERVER['ORIG_SCRIPT_NAME'])) {
61            $_SERVER['ORIG_SCRIPT_NAME'] = str_replace('/index.php/index.php', '/index.php', $_SERVER['ORIG_SCRIPT_NAME']);
62        }
63        if (!empty($_SERVER['ORIG_SCRIPT_FILENAME'])) {
64            $_SERVER['ORIG_SCRIPT_FILENAME'] = str_replace('/index.php/index.php', '/index.php', $_SERVER['ORIG_SCRIPT_FILENAME']);
65        }
264    *
265    * If request is /folder1/folder2/index.php, return /folder1/folder2/
266    *
294    {
295        if (is_null($forceSecure)) {
296            $scheme = static::https() ? 'https:' : '';
321        $path = explode('/', ltrim($pathInfo, '/'));
322        if (is_null($length)) {
323            return isset($path[$offset]) ? $path[$offset] : null;
Sailthru_Client.php git://github.com/sailthru/sailthru-php5-client.git | PHP | 1,644 lines
1<?php
2
6 * Response from server depends on the format being queried
7 * if 'json' format is requested, client will recieve JSON object and 'php' is requested, client will recieve PHP array
8 * XML format is also available but not has not been tested thoroughly
42     * User agent making request to Sailthru API server
43     * Even, if you modify user-agent, please try to include 'PHP5' somewhere in the user-agent
44     * @var String
62
63    private $httpHeaders = [ "User-Agent: Sailthru API PHP5 Client" ];
64
71     * Instantiate a new client; constructor optionally takes overrides for api_uri and whether
72     * to share the version of PHP that is being used.
73     *
251     * @param string $list the mailing list name to send to
252     * @param string $schedule_time when the blast should send. Dates in the past will be scheduled for immediate delivery. Any English textual datetime format known to PHP's strtotime function is acceptable, such as 2009-03-18 23:57:22 UTC, now (immediate delivery), +3 hours (3 hours from now), or February 14, 9:30 EST. Be sure to specify a timezone if you use an exact time.
253     * @param string $from_name the name appearing in the "From" of the email
Blob.php git://github.com/centurion-project/Centurion.git | PHP | 1,401 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Blob.php 36457 2010-01-04 07:36:33Z unknown $
21 */
25 */
26//$1 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
27
30 */
31//$1 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
32
35 */
36//$1 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
37
40 */
41//$1 'Zend/Http/Client.php';
42
Slim.php git://github.com/h9k/magirc.git | PHP | 1,232 lines
1<?php
2/**
2/**
3 * Slim - a micro PHP 5 framework
4 *
33
34//This determines which errors are reported by PHP. By default, all
35//errors (including E_STRICT) are reported.
44
45//This tells PHP to auto-load classes using Slim's autoloader; this will
46//only auto-load a class file located in the same directory as Slim.php
47//whose file name (excluding the final dot and extension) is the same
48//as its class name (case-sensitive). For example, "View.php" will be
49//loaded when Slim uses the "View" class for the first time.
51
52//PHP 5.3 will complain if you don't set a timezone. If you do not
53//specify your own timezone before requiring Slim, this tells PHP to use UTC.
YahooOAuthApplication.class.php git://github.com/yahoo/yos-social-php5.git | PHP | 482 lines
1<?php
2
3/**
4 * Yahoo! PHP5 SDK
5 *
10 *
11 * Hosted on GitHub: http://github.com/yahoo/yos-social-php5/tree/master
12 *
12 *
13 * @package    yos-social-php5
14 * @subpackage yahoo
39
40require_once 'YahooCurl.class.php';
41require_once 'YahooYQLQuery.class.php';
41require_once 'YahooYQLQuery.class.php';
42require_once 'YahooOAuthApplicationException.class.php';
43require_once 'YahooOAuthAccessToken.class.php';
Blob.php git://github.com/nfabre/deepzoom.php.git | PHP | 1,400 lines
1<?php
2/**
19 * @license    http://todo     name_todo
20 * @version    $Id: Blob.php 20923 2010-02-05 07:16:14Z maartenba $
21 */
25 */
26require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
27
30 */
31require_once 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
32
35 */
36require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
37
40 */
41require_once 'Zend/Http/Client.php';
42
MetaBox.php git://github.com/beingzoe/wpplugin-kitchen-sink-html5-base.git | PHP | 2,237 lines
1<?php
2
608		<style type="text/css">
609			<?php if ($this->hide_editor): ?> #postdiv, #postdivrich { display:none; } <?php endif; ?>
610		</style>
658
659				var mb_id = '<?php echo $this->id; ?>';
660				var mb = $('#' + mb_id + '_metabox');
661
662				<?php if (WPALCHEMY_LOCK_TOP == $this->lock): ?>
663				<?php if ('side' == $this->context): ?>
668				}
669				<?php else: ?>
670				var id = 'wpalchemy-content-top';
994
995		if ($uri AND in_array($file, array('post.php', 'post-new.php')))
996		{
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21