PageRenderTime 444ms queryFilters 0ms Sphinxql 37ms app.CodeModel.GetByIds 279ms findMatchingLines 84ms GetByIds 363ms meta 0ms repositoryFilters 10ms languageFilters 1ms sourceFilters 3ms

60,014 results for 'php is_null repo:fuel/oil' (444 ms)

Source

Language

Repository

Consumer.php http://stuffpack.googlecode.com/svn/ | PHP | 274 lines
1<?php
2/**
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Consumer.php 22475 2010-06-20 18:25:36Z padraic $
20 */
22/** Zend_Oauth */
23require_once 'Zend/Oauth.php';
24
25/** Zend_Uri */
26require_once 'Zend/Uri.php';
27
28/** Zend_Oauth_Http_RequestToken */
29require_once 'Zend/Oauth/Http/RequestToken.php';
30
31/** Zend_Oauth_Http_UserAuthorization */
32require_once 'Zend/Oauth/Http/UserAuthorization.php';
33
functions.php http://thinksns-2.googlecode.com/svn/trunk/ | PHP | 1,068 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
4// +----------------------------------------------------------------------
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
6// +----------------------------------------------------------------------
40	//??????
41	$site_url	=	SITE_URL.'/index.php?'.C('VAR_APP').'='.$app.'&'.C('VAR_MODULE').'='.$mod.'&'.C('VAR_ACTION').'='.$act;
42
274 +----------------------------------------------------------
275 * ??????ThinkPHP?????????model?Action??
276 * ????????????
288    if(substr($name,-5)=="Model") {
289        require_cache(LIB_PATH.'Model/'.$name.'.class.php');
290    }elseif(substr($name,-6)=="Action"){
GlobalFunctions.php https://code.google.com/p/alfresco-php-sdk/ | PHP | 2,139 lines
1<?php
2
30 * Re-implementations of newer functions or functions in non-standard
31 * PHP extensions may be included here.
32 */
1764		# This is a hack to work around PHP's flawed invocation of cmd.exe
1765		# http://news.php.net/php.internals/21796
1766		$cmd = '"' . $cmd . '"';
1792function wfUsePHP( $req_ver ) {
1793	$php_ver = PHP_VERSION;
1794
1795	if ( version_compare( $php_ver, (string)$req_ver, '<' ) )
1796		 throw new MWException( "PHP $req_ver required--this is only $php_ver" );
1797}
1828 * Reimplemented because PHP5's basename() is buggy with multibyte text.
1829 * http://bugs.php.net/bug.php?id=33898
1830 *
htmlMimeMail.php http://chronique.googlecode.com/svn/ | PHP | 776 lines
1<?php
2/* $Id: htmlMimeMail.php 4622 2011-07-03 04:33:19Z daintree $*/
10
11require_once('includes/mimePart.php');
12
193	{
194		if (!is_null($host)) $this->smtp_params['host'] = $host;
195		if (!is_null($port)) $this->smtp_params['port'] = $port;
195		if (!is_null($port)) $this->smtp_params['port'] = $port;
196		if (!is_null($helo)) $this->smtp_params['helo'] = $helo;
197		if (!is_null($auth)) $this->smtp_params['auth'] = $auth;
197		if (!is_null($auth)) $this->smtp_params['auth'] = $auth;
198		if (!is_null($user)) $this->smtp_params['user'] = $user;
199		if (!is_null($pass)) $this->smtp_params['pass'] = $pass;
395*/
396	function _addTextPart(&$obj, $text) // // FIXED PHP & PEAR LIBRARY ERROR - ONLY VARIABLE REFERENCES SHOULD BE RETURNED BY REFERENCE
397	{
Table.php http://rewardvn.googlecode.com/svn/trunk/ | PHP | 858 lines
1<?php
2/**
35 */
36require_once 'Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php';
37
40 */
41require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
42
45 */
46require_once 'Zend/Http/Client.php';
47
526		// Add continuation querystring parameters?
527		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
528		    if ($queryString !== '') {
605			// More entities?
606		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
607		        if (strpos($queryString, '$top') === false) {
PRTY_Reportssmry.php http://tinkerportal.googlecode.com/svn/trunk/ | PHP | 1,852 lines
467	<td>
468	<span class="phpreportmaker"><?php echo $ReportLanguage->Phrase("Record") ?> <?php echo $Pager->FromIndex ?> <?php echo $ReportLanguage->Phrase("To") ?> <?php echo $Pager->ToIndex ?> <?php echo $ReportLanguage->Phrase("Of") ?> <?php echo $Pager->RecordCount ?></span>
469<?php } else { ?>
537<?php } ?>
538		<td style="width: 20px;" align="right"><a href="#" onclick="ewrpt_ShowPopup(this.name, 'PRTY_Reports_priority', false, '<?php echo $PRTY_Reports->priority->RangeFrom; ?>', '<?php echo $PRTY_Reports->priority->RangeTo; ?>');return false;" name="x_priority<?php echo $PRTY_Reports_summary->Cnt[0][0]; ?>" id="x_priority<?php echo $PRTY_Reports_summary->Cnt[0][0]; ?>"><img src="phprptimages/popup.gif" width="15" height="14" border="0" alt="<?php echo $ReportLanguage->Phrase("Filter") ?>"></a></td>
539	</tr></table>
552<?php } ?>
553		<td style="width: 20px;" align="right"><a href="#" onclick="ewrpt_ShowPopup(this.name, 'PRTY_Reports_department_name', false, '<?php echo $PRTY_Reports->department_name->RangeFrom; ?>', '<?php echo $PRTY_Reports->department_name->RangeTo; ?>');return false;" name="x_department_name<?php echo $PRTY_Reports_summary->Cnt[0][0]; ?>" id="x_department_name<?php echo $PRTY_Reports_summary->Cnt[0][0]; ?>"><img src="phprptimages/popup.gif" width="15" height="14" border="0" alt="<?php echo $ReportLanguage->Phrase("Filter") ?>"></a></td>
554	</tr></table>
642	<tr<?php echo $PRTY_Reports->RowAttributes(); ?>>
643		<td colspan="4"<?php echo $PRTY_Reports->priority->CellAttributes() ?>><?php echo $ReportLanguage->Phrase("RptSumHead") ?> <?php echo $PRTY_Reports->priority->FldCaption() ?>: <?php echo $PRTY_Reports->priority->GroupViewValue; ?> (<?php echo ewrpt_FormatNumber($PRTY_Reports_summary->Cnt[1][0],0,-2,-2,-2); ?><?php echo $ReportLanguage->Phrase("RptDtlRec") ?>)</td></tr>
644<?php
713	<td>
714	<span class="phpreportmaker"><?php echo $ReportLanguage->Phrase("Record") ?> <?php echo $Pager->FromIndex ?> <?php echo $ReportLanguage->Phrase("To") ?> <?php echo $Pager->ToIndex ?> <?php echo $ReportLanguage->Phrase("Of") ?> <?php echo $Pager->RecordCount ?></span>
715<?php } else { ?>
rpt-summary.php http://tinkerportal.googlecode.com/svn/trunk/ | PHP | 2,224 lines
577		<td<!--##=sJsSort##-->><?php echo $<!--##=sFldObj##-->->FldCaption() ?></td><td style="width: 10px;">
578		<?php if ($<!--##=sFldObj##-->->getSort() == "ASC") { ?><img src="<!--##=ew_FolderPath("_images")##-->/sortup.gif" width="10" height="9" border="0"><?php } elseif ($<!--##=sFldObj##-->->getSort() == "DESC") { ?><img src="<!--##=ew_FolderPath("_images")##-->/sortdown.gif" width="10" height="9" border="0"><?php } ?></td>
579<?php } ?>
580	<!--## If bGenFilter Then ##-->
581		<td style="width: 20px;" align="right"><a href="#" onclick="ewrpt_ShowPopup(this.name, '<!--##=sSessionFldVar##-->', <!--##=sUseRange##-->, '<?php echo $<!--##=sFldObj##-->->RangeFrom; ?>', '<?php echo $<!--##=sFldObj##-->->RangeTo; ?>');return false;" name="<!--##=sFldVar##--><?php echo $<!--##=sPageObj##-->->Cnt[0][0]; ?>" id="<!--##=sFldVar##--><?php echo $<!--##=sPageObj##-->->Cnt[0][0]; ?>"><img src="<!--##=ew_FolderPath("_images")##-->/popup.gif" width="15" height="14" border="0" alt="<!--##@Filter##-->"></a></td>
582	<!--## End If ##-->
630		<td<!--##=sJsSort##-->><?php echo $<!--##=sFldObj##-->->FldCaption() ?></td><td style="width: 10px;">
631		<?php if ($<!--##=sFldObj##-->->getSort() == "ASC") { ?><img src="<!--##=ew_FolderPath("_images")##-->/sortup.gif" width="10" height="9" border="0"><?php } elseif ($<!--##=sFldObj##-->->getSort() == "DESC") { ?><img src="<!--##=ew_FolderPath("_images")##-->/sortdown.gif" width="10" height="9" border="0"><?php } ?></td>
632<?php } ?>
633	<!--## If bGenFilter Then ##-->
634		<td style="width: 20px;" align="right"><a href="#" onclick="ewrpt_ShowPopup(this.name, '<!--##=sSessionFldVar##-->', <!--##=sUseRange##-->, '<?php echo $<!--##=sFldObj##-->->RangeFrom; ?>', '<?php echo $<!--##=sFldObj##-->->RangeTo; ?>');return false;" name="<!--##=sFldVar##--><?php echo $<!--##=sPageObj##-->->Cnt[0][0]; ?>" id="<!--##=sFldVar##--><?php echo $<!--##=sPageObj##-->->Cnt[0][0]; ?>"><img src="<!--##=ew_FolderPath("_images")##-->/popup.gif" width="15" height="14" border="0" alt="<!--##@Filter##-->"></a></td>
635	<!--## End If ##-->
838##-->
839		<td colspan="<!--##=nSlots-i##-->"<?php echo $<!--##=sFldObj##-->->CellAttributes() ?>><!--##@RptSumHead##--> <?php echo $<!--##=sFldObj##-->->FldCaption() ?>: <?php echo $<!--##=sFldObj##-->->GroupViewValue; ?> (<?php echo ewrpt_FormatNumber($<!--##=sPageObj##-->->Cnt[<!--##=lvl##-->][0],0,-2,-2,-2); ?><!--##@RptDtlRec##-->)</td></tr>
840
Blob.php https://moodleazure.svn.codeplex.com/svn | PHP | 1,414 lines
1<?php
2/**
32 * @license    http://todo     name_todo
33 * @version    $Id: Blob.php 33934 2009-11-03 07:21:49Z unknown $
34 */
38 */
39require_once 'Microsoft/WindowsAzure/SharedKeyCredentials.php';
40
43 */
44require_once 'Microsoft/WindowsAzure/SharedAccessSignatureCredentials.php';
45
48 */
49require_once 'Microsoft/WindowsAzure/RetryPolicy.php';
50
53 */
54require_once 'Microsoft/Http/Transport.php';
55
Table.php https://moodleazure.svn.codeplex.com/svn | PHP | 883 lines
1<?php
2/**
38 */
39require_once 'Microsoft/WindowsAzure/Credentials.php';
40
43 */
44require_once 'Microsoft/WindowsAzure/SharedKeyCredentials.php';
45
48 */
49require_once 'Microsoft/WindowsAzure/SharedKeyLiteCredentials.php';
50
556		// Add continuation querystring parameters?
557		if (!is_null($nextPartitionKey) && !is_null($nextRowKey))
558		{
650			// More entities?
651		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey')))
652		    {
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
Table.php git://github.com/centurion-project/Centurion.git | PHP | 816 lines
1<?php
2/**
30 */
31//$1 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
32
35 */
36//$1 'Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php';
37
40 */
41//$1 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
42
525		// Add continuation querystring parameters?
526		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
527		    if ($queryString !== '') {
604			// More entities?
605		    if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
606		        if (strpos($queryString, '$top') === false) {
ClassMixer.php git://github.com/wellspringworldwide/PHP-ClassMixer.git | PHP | 977 lines
1<?php
2/*******************************************************************************
60     */
61    public static function php_min_version($min_version_str)
62    {
62    {
63        //Get the minimum version desired, and the PHP version of the system
64        $min_version = explode('.', $min_version_str);
716    private static function available_base_class_methods($klass, $is_parent=false) {
717        $php5_available = CM_Utils::php_min_version('5');
718
754                                              $before_cutpoint=false, $after_cutpoint=false) {
755        $php5_available = CM_Utils::php_min_version('5');
756        if ($php5_available) {
772    private static function form_class_variables($mixins) {
773        $php5_available = CM_Utils::php_min_version('5');
774        if ($php5_available) {
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';
functions.php git://github.com/Cotonti/Cotonti.git | PHP | 5,759 lines
14{
15	(function_exists('version_compare') && version_compare(PHP_VERSION, '5.3.3', '>=')) or die('Cotonti system requirements: PHP 5.3.3 or above.'); // TODO: Need translate
16	extension_loaded('mbstring') or die('Cotonti system requirements: mbstring PHP extension must be loaded.'); // TODO: Need translate
779
780	if (count($date) > 0 && is_null($year) && is_null($month) && is_null($day) && is_null($hour) && is_null($minute))
781	{
5150 * Unregisters globals if globals are On
5151 * @see http://www.php.net/manual/en/faq.misc.php#faq.misc.registerglobals
5152 */
5378
5379	$url = in_array($name, array('admin', 'login', 'message')) ? "$name.php" : 'index.php';
5380	if (!in_array($name, array('admin', 'index', 'login', 'message', 'plug')))
5477 * @param array $url Array of URL parts
5478 * @see http://php.net/manual/en/function.parse-str.php
5479 */
QueueServiceFunctionalTest.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 1,363 lines
18 * @package   Tests\Functional\WindowsAzure\Queue
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
870            }
871            else if (!is_null($options->getVisibilityTimeoutInSeconds()) && !is_null($options->getTimeToLiveInSeconds()) && $options->getVisibilityTimeoutInSeconds() > 0 && $options->getTimeToLiveInSeconds() <= $options->getVisibilityTimeoutInSeconds()) {
872                $this->assertEquals(400, $e->getCode(), 'getCode');
1120        // Default is 1 message
1121        $effectiveNumOfMessages = (is_null($options) || is_null($options->getNumberOfMessages()) ? 1 : $options ->getNumberOfMessages());
1122        $effectiveNumOfMessages = ($effectiveNumOfMessages < 0 ? 0 : $effectiveNumOfMessages);
1124        // Default is 30 seconds
1125        $effectiveVisTimeout = (is_null($options) || is_null($options->getVisibilityTimeoutInSeconds()) ? 30 : $options ->getVisibilityTimeoutInSeconds());
1126        $effectiveVisTimeout = ($effectiveVisTimeout < 0 ? 0 : $effectiveVisTimeout);
1234        // Default is 1 message
1235        $effectiveNumOfMessages = (is_null($options) || is_null($options->getNumberOfMessages()) ? 1 : $options ->getNumberOfMessages());
1236        $effectiveNumOfMessages = ($effectiveNumOfMessages < 0 ? 0 : $effectiveNumOfMessages);
TableRestProxy.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 1,299 lines
1<?php
2
14 * 
15 * PHP version 5
16 *
18 * @package   WindowsAzure\Table
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
23 */
56 * @package   WindowsAzure\Table
57 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
58 * @copyright 2012 Microsoft Corporation
60 * @version   Release: @package_version@
61 * @link      https://github.com/windowsazure/azure-sdk-for-php
62 */
AppObject.php git://github.com/ethna/ethna.git | PHP | 1,658 lines
1<?php
2// vim: foldmethod=marker
99            return $db_list;
100        } else if (is_null($db_list['rw'])) {
101            return Ethna::raiseError(
145        // ?????????
146        if (is_null($key_type) && is_null($key) && is_null($prop)) {
147            // perhaps for adding object
629       //   ????????????
630       if (is_null($offset) == false || is_null($count) == false) {
631            $sql = $this->_getSQL_SearchLength($filter);
685        //   ????????????
686        if (is_null($offset) == false || is_null($count) == false) {
687            $sql = $this->_getSQL_SearchLength($filter);
1557
1558        // PHP 4?????????...??PHP 5??
1559        $table = preg_replace('/^([A-Z])/e', "strtolower('\$1')", $table);
PHPReportsUtil.php git://github.com/taq/phpreports.git | PHP | 397 lines
10	*																										*
11	*	This function will return if there is a PHPReports path in the PHP			*
12	*	ini_get("include_path").																	*
171	*	http://www.gingerall.com/charlie/ga/xml/p_sab.xml									*
172	*	http://www.php.net/manual/en/ref.xslt.php												*
173	*	Used on PHP4 or installed from the PECL modules.									*
314			$this->_aMsgs["NOXMLTRANS"]["default"]		= "COL parameter <b>%s</b> not found on XML translation.";
315			$this->_aMsgs["NOXSLT"]["default"]			= "There is no XSLT processor available. Check if you compiled PHP with <b>--enable-xslt</b> and the <a href=\"http://www.gingerall.com/charlie/ga/xml/p_sab.xml\">Sablotron</a> library (for <a href=\"http://www.php.net/manual/en/ref.xslt.php\">PHP4</a>) or with <b>--enable-xsl</b> (for <a href=\"http://www.php.net/manual/en/ref.xsl.php\">PHP5</a>).";
316			$this->_aMsgs["NOPATH"]["default"]			= "Seems that you didn't specified the phpReports path on the PHP <b>include_path</b> statement or <b>php.ini</b>. I don't know there the classes are.";
346			$this->_aMsgs["NOXMLTRANS"]["pt_BR"]		= "O parâmetro <b>%s</b> de COL não foi encontrado na tradução para XML.";
347			$this->_aMsgs["NOXSLT"]["pt_BR"]				= "Não há um processador XSLT disponível. Verifique se você compilou o PHP com <b>--enable-xslt</b> e a library <a href=\"http://www.gingerall.com/charlie/ga/xml/p_sab.xml\">Sablotron</a> (para o <a href=\"http://www.php.net/manual/en/ref.xslt.php\">PHP4</a>) ou com <b>--enable-xsl</b> (para o <a href=\"http://www.php.net/manual/en/ref.xsl.php\">PHP5</a>).";
348			$this->_aMsgs["NOPATH"]["pt_BR"]				= "Parece que você não especificou o path do phpReports com o comando <b>include_path</b> ou no <b>php.ini</b>. Não sei onde as classes estão.";
364			else
365				$sLang = isset($GLOBALS["phpReportsLanguage"]) ? $GLOBALS["phpReportsLanguage"] : null;
366			if(!$sLang)
qdmail.php git://github.com/slywalker/account_manager.git | PHP | 4,121 lines
5 *
6 * PHP versions 4 and 5 (PHP4.3 upper)
7 *
1370	function addressField( $addr = null , $name = null ){
1371		if( is_null($addr) && is_null($name) ){
1372			return array( $this->tokey['_ADDR'] , $this->tokey['_NAME'] );
3471		'php4'=>'application/x-httpd-php',
3472		'php3'=>'application/x-httpd-php',
3473		'phtml'=>'application/x-httpd-php',
3473		'phtml'=>'application/x-httpd-php',
3474		'phps'=>'application/x-httpd-php-source',
3475		'js'=>'application/x-javascript',
3483	function iniGather(){
3484		$ret  = 'OS '.PHP_OS.' ; PHP Version '.PHP_VERSION.' ; '.$this->name.' version '.$this->version;
3485		$ret .= $this->LFC.'php.ini status: mb_language = '.mb_language()
Modules.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 3,635 lines
1<?php
2
741
742		// if the filename doesn't end with .module or .module.php, then stop and move onto the next
743		if(!strpos($filename, '.module') || (substr($filename, -7) !== '.module' && substr($filename, -11) !== '.module.php')) return false;
816
817		if(is_null($module)) {
818			// placeholder for a module, which is not yet included and instantiated
1213			if(!is_null($requiredVersion)) {
1214				$currentVersion = $class === 'PHP' ? PHP_VERSION : $this->wire('config')->version; 
1215			}
1900		// we will try to get info from a PHP or JSON info file
1901		$filePHP = $path . "$moduleName.info.php";
1902		$fileJSON = $path . "$moduleName.info.json";
2213			} else if($configurable) {
2214				// configurable via external file: ModuleName.config.php or ModuleNameConfig.php file
2215				$info['configurable'] = basename($configurable); 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21