PageRenderTime 2561ms queryFilters 0ms Sphinxql 2073ms GetByIds 439ms meta 0ms repositoryFilters 3ms languageFilters 2ms sourceFilters 0ms

1,427,616 results for 'php empty' (2561 ms)

Source

Language

Repository

v1.php https://github.com/jlduran/BAPS2.git | PHP | 1,618 lines
16 * @copyright  1997-2006 The PHP Group
17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
18 * @version    CVS: $Id: v1.php,v 1.73 2007/05/10 00:00:38 cellog Exp $
1049                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1050                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1051                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1157                }
1158                if ($d['type'] == 'php' && !empty($d['name'])) {
1159                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1160                        array('index' => $i, 'name' => $d['name']));
1161                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1162                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1164                }
1165                if ($d['type'] == 'php' && empty($d['version'])) {
1166                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
v1.php https://github.com/Magrath/Centrifuge.git | PHP | 1,618 lines
16 * @copyright  1997-2008 The PHP Group
17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
18 * @version    CVS: $Id: v1.php,v 1.74 2008/01/03 20:26:36 cellog Exp $
1049                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1050                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1051                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1157                }
1158                if ($d['type'] == 'php' && !empty($d['name'])) {
1159                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1160                        array('index' => $i, 'name' => $d['name']));
1161                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1162                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1164                }
1165                if ($d['type'] == 'php' && empty($d['version'])) {
1166                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
utils.php https://github.com/nerdystudmuffin/dashlet-subpanels.git | PHP | 4,311 lines
174	'upload_badext' => empty($upload_badext) ? array (
175	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
176	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ) : $upload_badext,
315	'upload_badext' => array (
316	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
317	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ),
1954	if(isset($_SERVER['PHP_SELF'])) {
1955		if (!empty($_SERVER['PHP_SELF'])) clean_string($_SERVER['PHP_SELF'], 'SAFED_GET');
1956	}
2751function check_php_version($sys_php_version = '') {
2752	$sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version;
2753	// versions below $min_considered_php_version considered invalid by default,
3666	if(function_exists('json_encode')) {
3667		$phpInfo = getPhpInfo(8);
3668
utils.php https://github.com/mitani/dashlet-subpanels.git | PHP | 4,311 lines
174	'upload_badext' => empty($upload_badext) ? array (
175	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
176	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ) : $upload_badext,
315	'upload_badext' => array (
316	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
317	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ),
1954	if(isset($_SERVER['PHP_SELF'])) {
1955		if (!empty($_SERVER['PHP_SELF'])) clean_string($_SERVER['PHP_SELF'], 'SAFED_GET');
1956	}
2751function check_php_version($sys_php_version = '') {
2752	$sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version;
2753	// versions below $min_considered_php_version considered invalid by default,
3666	if(function_exists('json_encode')) {
3667		$phpInfo = getPhpInfo(8);
3668
v1.php https://github.com/0xshyam/efront_open_source.git | PHP | 1,612 lines
237/**
238 * Error code when a php5 package is packaged in php4 (analysis doesn't work)
239 */
1043                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1044                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1045                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1151                }
1152                if ($d['type'] == 'php' && !empty($d['name'])) {
1153                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1154                        array('index' => $i, 'name' => $d['name']));
1155                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1156                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1158                }
1159                if ($d['type'] == 'php' && empty($d['version'])) {
1160                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
fiche.php https://github.com/abhimanyumohan/dolibarr.git | PHP | 1,828 lines
37require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
38if (! empty($conf->produit->enabled) || ! empty($conf->service->enabled))  require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
39if (! empty($conf->propal->enabled))  require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
270								// Define output language
271								if (! empty($conf->global->MAIN_MULTILANGS) && ! empty($conf->global->PRODUIT_TEXTS_IN_THIRDPARTY_LANGUAGE))
272								{
1260                print '<td width="50" align="right">'.$langs->trans("ReductionShort").'</td>';
1261				if (! empty($conf->margin->enabled) && ! empty($conf->global->MARGIN_SHOW_ON_CONTRACT)) print '<td width="50" align="right">'.$langs->trans("BuyingPrice").'</td>';
1262                print '<td width="30">&nbsp;</td>';
1311					// Margin
1312					if (! empty($conf->margin->enabled) && ! empty($conf->global->MARGIN_SHOW_ON_CONTRACT)) print '<td align="right" class="nowrap">'.price($objp->pa_ht).'</td>';
1313
1418                    $colspan=5;
1419                    if (! empty($conf->margin->enabled) && ! empty($conf->global->MARGIN_SHOW_ON_CONTRACT)) $colspan++;
1420
fiche.php https://github.com/abhimanyumohan/dolibarr.git | PHP | 1,739 lines
45}
46if (! empty($conf->global->FICHEINTER_ADDON) && is_readable(DOL_DOCUMENT_ROOT ."/core/modules/fichinter/mod_".$conf->global->FICHEINTER_ADDON.".php"))
47{
1044        // Show link to origin object
1045        if (! empty($origin) && ! empty($originid) && is_object($objectsrc))
1046        {
1155
1156	$linkback = '<a href="'.DOL_URL_ROOT.'/fichinter/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
1157
1262    $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action);    // Note that $action and $object may have been modified by hook
1263	if (empty($reshook) && ! empty($extrafields->attribute_label))
1264	{
1642		$newlang = '';
1643		if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST['lang_id']))
1644			$newlang = $_REQUEST['lang_id'];
fiche.php https://github.com/abhimanyumohan/dolibarr.git | PHP | 2,095 lines
517    // Check parameters
518    if (! empty($conf->stock->enabled) && ! empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER) && $qualified_for_stock_change)
519    {
1609		// Show product and description
1610		$type=(! empty($line->product_type)?$line->product_type:(! empty($line->fk_product_type)?$line->fk_product_type:0));
1611		// Try to enhance type detection using date_start and date_end for free lines where type
1714			print '<a name="'.$line->id.'"></a>'; // ancre pour retourner sur la ligne
1715			if ((! empty($conf->product->enabled) || ! empty($conf->service->enabled)) && $line->fk_product > 0)
1716			{
1732                if ($forceall || (! empty($conf->product->enabled) && ! empty($conf->service->enabled))
1733                || (empty($conf->product->enabled) && empty($conf->service->enabled))) print '<br>';
1734			}
1995		$newlang = '';
1996		if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST['lang_id']))
1997			$newlang = $_REQUEST['lang_id'];
Common.php https://github.com/aborruso/geocloud2.git | PHP | 2,040 lines
21
22require_once 'PEAR.php';
23require_once 'Archive/Tar.php';
507            case 'provides':
508                if (empty($attribs['type']) || empty($attribs['name'])) {
509                    break;
1142                }
1143                if ($d['type'] == 'php' && !empty($d['name'])) {
1144                    $warnings[] = "dependency $i: name ignored for php type dependencies";
1144                    $warnings[] = "dependency $i: name ignored for php type dependencies";
1145                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1146                    $errors[] = "dependency $i: missing name";
1739        $request .= "Host: $host:$port\r\n".
1740            "User-Agent: PHP/".PHP_VERSION."\r\n";
1741        if ($proxy_host != '' && $proxy_user != '') {
v1.php https://github.com/adqio/revive-adserver.git | PHP | 1,603 lines
16 * @copyright  1997-2006 The PHP Group
17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
18 * @version    CVS: $Id$
1049                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1050                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1051                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1157                }
1158                if ($d['type'] == 'php' && !empty($d['name'])) {
1159                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1160                        array('index' => $i, 'name' => $d['name']));
1161                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1162                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1164                }
1165                if ($d['type'] == 'php' && empty($d['version'])) {
1166                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
ManageThemes.controller.php https://github.com/Adrekk/Elkarte.git | PHP | 1,978 lines
364
365		if (empty($theme) && empty($_GET['id']))
366		{
380			foreach ($context['themes'] as $k => $v)
381				if (empty($v['theme_dir']) || (!file_exists($v['theme_dir'] . '/Settings.template.php') && empty($v['num_members'])))
382					unset($context['themes'][$k]);
1546		// We need to know what kind of file we have
1547		$is_php = substr($_REQUEST['filename'], -4) == '.php';
1548		$is_template = substr($_REQUEST['filename'], -13) == '.template.php';
1824		{
1825			if (!empty($theme_dirs['base_theme_dir']) && file_exists($theme_dirs['base_theme_dir'] . '/' . $_REQUEST['template'] . '.template.php'))
1826				$filename = $theme_dirs['base_theme_dir'] . '/' . $_REQUEST['template'] . '.template.php';
1839		{
1840			if (!empty($theme_dirs['base_theme_dir']) && file_exists($theme_dirs['base_theme_dir'] . '/languages/' . $_REQUEST['lang_file'] . '.php'))
1841				$filename = $theme_dirs['base_theme_dir'] . '/languages/' . $_REQUEST['template'] . '.php';
v1.php https://github.com/alictai/tuftstextblast.git | PHP | 1,612 lines
237/**
238 * Error code when a php5 package is packaged in php4 (analysis doesn't work)
239 */
1043                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1044                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1045                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1151                }
1152                if ($d['type'] == 'php' && !empty($d['name'])) {
1153                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1154                        array('index' => $i, 'name' => $d['name']));
1155                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1156                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1158                }
1159                if ($d['type'] == 'php' && empty($d['version'])) {
1160                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
v1.php https://github.com/alictai/tuftstextblast.git | PHP | 1,612 lines
237/**
238 * Error code when a php5 package is packaged in php4 (analysis doesn't work)
239 */
1043                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1044                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1045                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1151                }
1152                if ($d['type'] == 'php' && !empty($d['name'])) {
1153                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1154                        array('index' => $i, 'name' => $d['name']));
1155                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1156                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1158                }
1159                if ($d['type'] == 'php' && empty($d['version'])) {
1160                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
v1.php https://github.com/all4senses/bvc.git | PHP | 1,612 lines
237/**
238 * Error code when a php5 package is packaged in php4 (analysis doesn't work)
239 */
1043                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1044                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1045                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1151                }
1152                if ($d['type'] == 'php' && !empty($d['name'])) {
1153                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1154                        array('index' => $i, 'name' => $d['name']));
1155                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1156                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1158                }
1159                if ($d['type'] == 'php' && empty($d['version'])) {
1160                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
v1.php https://github.com/allanice001/EyeOS.git | PHP | 1,612 lines
237/**
238 * Error code when a php5 package is packaged in php4 (analysis doesn't work)
239 */
1043                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1044                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1045                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1151                }
1152                if ($d['type'] == 'php' && !empty($d['name'])) {
1153                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1154                        array('index' => $i, 'name' => $d['name']));
1155                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1156                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1158                }
1159                if ($d['type'] == 'php' && empty($d['version'])) {
1160                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
v1.php https://github.com/aaoliveira/expressolivre.git | PHP | 1,612 lines
237/**
238 * Error code when a php5 package is packaged in php4 (analysis doesn't work)
239 */
1043                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1044                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1045                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1151                }
1152                if ($d['type'] == 'php' && !empty($d['name'])) {
1153                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1154                        array('index' => $i, 'name' => $d['name']));
1155                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1156                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1158                }
1159                if ($d['type'] == 'php' && empty($d['version'])) {
1160                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
v1.php https://github.com/alucard263096/PortalSite.git | PHP | 1,618 lines
16 * @copyright  1997-2008 The PHP Group
17 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
18 * @version    CVS: $Id: v1.php,v 1.1 2010/05/07 09:29:47 soonchoy Exp $
1049                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1050                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1051                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1157                }
1158                if ($d['type'] == 'php' && !empty($d['name'])) {
1159                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1160                        array('index' => $i, 'name' => $d['name']));
1161                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1162                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1164                }
1165                if ($d['type'] == 'php' && empty($d['version'])) {
1166                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
update-core.php https://bitbucket.org/jsvana/alfred.git | PHP | 712 lines
475
476	$php_version    = phpversion();
477	$mysql_version  = $wpdb->db_version();
480	$wp_version = '3.4';
481	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
482	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
490	if ( !$mysql_compat && !$php_compat )
491		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
492	elseif ( !$php_compat )
492	elseif ( !$php_compat )
493		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
494	elseif ( !$mysql_compat )
702<script type="text/javascript">
703window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
704</script>
ResourceManager.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 154 lines
1<?php
2/*********************************************************************************
38/**
39 * ResourceManager.php
40 * This class is responsible for resource management of SQL queries, file usage, etc.
75	//Check if config.php exists
76	if(!file_exists('config.php') || empty($module)) {
77	   return false;	
80    if($module == 'Soap') {
81      require_once('include/resource/Observers/SoapResourceObserver.php');
82      $observer = new SoapResourceObserver('Soap');      	
83    } else {
84      require_once('include/resource/Observers/WebResourceObserver.php');
85      $observer = new WebResourceObserver($module);    	
88	//Load config
89	if(!empty($observer->module)) {
90		$limit = 0;
update-core.php https://bitbucket.org/crafttheweb/wordpress-fold.git | PHP | 756 lines
519
520	$php_version    = phpversion();
521	$mysql_version  = $wpdb->db_version();
524	$wp_version = '3.4';
525	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
526	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
534	if ( !$mysql_compat && !$php_compat )
535		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
536	elseif ( !$php_compat )
536	elseif ( !$php_compat )
537		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
538	elseif ( !$mysql_compat )
746<script type="text/javascript">
747window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
748</script>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21