PageRenderTime 1370ms queryFilters 0ms Sphinxql 981ms GetByIds 322ms meta 0ms repositoryFilters 11ms languageFilters 3ms sourceFilters 2ms

1,856,275 results for 'php empty' (1370 ms)

Source

Language

Repository

install.php https://bitbucket.org/blakeball/test-repository.git | PHP | 602 lines
39if (version_compare(phpversion(),'5.2.0') < 0) {
40	$msg = 'Minimum PHP version required is 5.2.0.  You are using PHP version  '. phpversion();
41    die($msg);
222
223if(empty($sugar_config['cache_dir']) && !empty($_SESSION['cache_dir'])) {
224    $sugar_config['cache_dir'] = $_SESSION['cache_dir'];
287// Add check here to see if a silent install config file exists; if so then launch silent installer
288elseif ( is_file('config_si.php') && empty($sugar_config['installer_locked'])) {
289
332
333    $exclude_files = array('register.php','download_modules.php');
334
498        // check to see if installer has been disabled
499        if(is_readable('config.php') && (filesize('config.php') > 0)) {
500            include_once('config.php');
utils.php https://bitbucket.org/blakeball/test-repository.git | PHP | 4,897 lines
183	'upload_badext' => empty($upload_badext) ? array (
184	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
185	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ) : $upload_badext,
327	'upload_badext' => array (
328	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
329	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ),
1939	if(isset($_SERVER['PHP_SELF'])) {
1940		if (!empty($_SERVER['PHP_SELF'])) clean_string($_SERVER['PHP_SELF'], 'SAFED_GET');
1941	}
2733function check_php_version($sys_php_version = '') {
2734	$sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version;
2735	// versions below $min_considered_php_version considered invalid by default,
3632
3633	// http://us3.php.net/manual/en/ref.pcre.php#ini.pcre.backtrack-limit
3634	// starting with 5.2.0, backtrack_limit breaks JSON decoding
v1.php https://bitbucket.org/adarshj/convenient_website.git | PHP | 1,613 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://bitbucket.org/speedealing/speedealing.git | PHP | 1,841 lines
190    }
191    if (empty($_POST['idprodfournprice']) && empty($_POST['np_desc']) && empty($_POST['dp_desc']))
192    {
1395                print '<a name="'.$line->id.'"></a>'; // ancre pour retourner sur la ligne
1396                if ((! empty($conf->product->enabled) || ! empty($conf->service->enabled)) && $line->fk_product > 0)
1397                {
1411                    print $form->select_type_of_lines($line->product_type,'type',1);
1412                    if (! empty($conf->product->enabled) && ! empty($conf->service->enabled)) print '<br>';
1413                }
1474            if ($forceall || (! empty($conf->product->enabled) && ! empty($conf->service->enabled))
1475            || (empty($conf->product->enabled) && empty($conf->service->enabled))) print '<br>';
1476
1500            // Ajout de produits/services predefinis
1501            if (! empty($conf->product->enabled) || ! empty($conf->service->enabled))
1502            {
fiche.php https://bitbucket.org/speedealing/speedealing.git | PHP | 1,347 lines
1<?php
2/* Copyright (C) 2002-2007	Rodolphe Quiedeville	<rodolphe@quiedeville.org>
28require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
29require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/modules/fichinter/modules_fichinter.php';
30require_once DOL_DOCUMENT_ROOT.'/core/modules/fichinter/modules_fichinter.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/fichinter.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
37}
38if (! empty($conf->global->FICHEINTER_ADDON) && is_readable(DOL_DOCUMENT_ROOT ."/core/modules/fichinter/mod_".$conf->global->FICHEINTER_ADDON.".php"))
39{
893
894    $linkback = '<a href="'.DOL_URL_ROOT.'/fichinter/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
895
1278            $newlang='';
1279            if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST['lang_id'])) $newlang=$_REQUEST['lang_id'];
1280            if ($conf->global->MAIN_MULTILANGS && empty($newlang)) $newlang=$object->client->default_lang;
v1.php https://bitbucket.org/Yason/armory | PHP | 1,613 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://bitbucket.org/renaatdemuynck/chamilo | PHP | 1,706 lines
237/**
238 * Error code when a php5 package is packaged in php4 (analysis doesn't work)
239 */
1028                PEAR_PACKAGEFILE_ERROR_CHANNELVAL => 'Channel validator error: field "%field%" - %reason%', 
1029                PEAR_PACKAGEFILE_ERROR_PHP5 => 'Error, PHP5 token encountered in %file%, analysis should be in PHP5', 
1030                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND => 'File "%file%" in package.xml does not exist', 
1161                }
1162                if ($d['type'] == 'php' && ! empty($d['name']))
1163                {
1166                }
1167                elseif ($d['type'] != 'php' && empty($d['name']))
1168                {
1170                }
1171                if ($d['type'] == 'php' && empty($d['version']))
1172                {
v1.php https://bitbucket.org/renaatdemuynck/chamilo | PHP | 1,712 lines
243/**
244 * Error code when a php5 package is packaged in php4 (analysis doesn't work)
245 */
1034                PEAR_PACKAGEFILE_ERROR_CHANNELVAL => 'Channel validator error: field "%field%" - %reason%', 
1035                PEAR_PACKAGEFILE_ERROR_PHP5 => 'Error, PHP5 token encountered in %file%, analysis should be in PHP5', 
1036                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND => 'File "%file%" in package.xml does not exist', 
1167                }
1168                if ($d['type'] == 'php' && ! empty($d['name']))
1169                {
1172                }
1173                elseif ($d['type'] != 'php' && empty($d['name']))
1174                {
1176                }
1177                if ($d['type'] == 'php' && empty($d['version']))
1178                {
v1.php https://github.com/ntws/agilebill.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/mikmagic/sugarcrm_dev.git | PHP | 4,326 lines
176	'upload_badext' => empty($upload_badext) ? array (
177	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
178	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ) : $upload_badext,
300	'upload_badext' => array (
301	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
302	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ),
1851	if(isset($_SERVER['PHP_SELF'])) {
1852		if (!empty($_SERVER['PHP_SELF'])) clean_string($_SERVER['PHP_SELF'], 'SAFED_GET');
1853	}
2525function check_php_version($sys_php_version = '') {
2526	$sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version;
2527	// versions below $min_considered_php_version considered invalid by default,
3474	if(function_exists('json_encode')) {
3475		$phpInfo = getPhpInfo(8);
3476        return version_compare($phpInfo['json']['json version'], '1.1.1', '<');
PackageManagerDisplay.php https://github.com/vincentamari/SuperSweetAdmin.git | PHP | 607 lines
1<?php
2/*********************************************************************************
41require_once('include/ytree/Tree.php');
42require_once('include/ytree/Node.php');
43require_once('ModuleInstall/PackageManager/ListViewPackages.php');
74        $error_html = "";
75		if(!empty($mi_errors)){
76			$error_html = "<tr><td><span>";
202        }
203        if($form_action == 'install.php' && (empty($releases) || count($releases['packages']) == 0)){
204        	//return false;
227    	$output = "<div id='login_panel'><div class='hd'><b>".$mod_strings['HDR_LOGIN_PANEL']."</b></div>";
228        $output .= "<div class='bd'><form><table><tr><td>".$mod_strings['LBL_USERNAME']."</td><td><input type='text' name='login_panel_username' id='login_panel_username' value='".$credentials['username']."'></td><td><a href='http://www.sugarcrm.com/crm/index.php?option=com_registration&task=register' target='blank'>".$mod_strings['LNK_NEW_ACCOUNT']."</a></td>";
229
517            $credentials = PackageManager::getCredentials();
518            if(empty($credentials['username']) || empty($credentials['password'])){
519            	//$header_text = "<font color='red'><b>".$mod_strings['ERR_CREDENTIALS_MISSING']."</b></font>";
class.types.php https://bitbucket.org/acipriani/madeinapulia.com | PHP | 539 lines
1<?php
2/**
4 *
5 * $HeadURL: https://www.onthegosystems.com/misc_svn/common/tags/Views-1.6.4-CRED-1.3.2-Types-1.6.4-Acces-1.2.3/toolset-forms/classes/class.types.php $
6 * $LastChangedDate: 2014-09-11 14:31:16 +0000 (Thu, 11 Sep 2014) $
78                    $field['name'] ), // Translated title
79            'description' => !empty( $field['description'] ) ? self::translate( "field {$field['id']} description",
80                    $field['description'] ) : '', // Translated description
99        case 'checkboxes':
100            if ( !empty( $field['data']['options'] ) ) {
101                global $pagenow;
109                    );
110                    if ( $pagenow == 'post-new.php' && !empty( $option['checked'] ) ) {
111                        $_field['options'][$option_key]['checked'] = true;
116        case 'date':
117            $_field['add_time'] = !empty( $field['data']['date_and_time'] ) && $field['data']['date_and_time'] == 'and_time';
118            break;
Validator.php https://github.com/FrediL/yii2.git | PHP | 367 lines
1<?php
2/**
125    /**
126     * @var callable a PHP callable that replaces the default implementation of [[isEmpty()]].
127     * If not set, [[isEmpty()]] will be used to check if a value is empty. The signature
130     */
131    public $isEmpty;
132    /**
132    /**
133     * @var callable a PHP callable whose return value determines whether this validator should be applied.
134     * The signature of the callable should be `function ($model, $attribute)`, where `$model` and `$attribute`
235            $skip = $this->skipOnError && $object->hasErrors($attribute)
236                || $this->skipOnEmpty && $this->isEmpty($object->$attribute);
237            if (!$skip) {
353     * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
354     * Note that this method is different from PHP empty(). It will return false when the value is 0.
355     * @param mixed $value the value to be checked
Validator.php https://github.com/lucianobaraglia/yii2.git | PHP | 367 lines
1<?php
2/**
128    /**
129     * @var callable a PHP callable that replaces the default implementation of [[isEmpty()]].
130     * If not set, [[isEmpty()]] will be used to check if a value is empty. The signature
133     */
134    public $isEmpty;
135    /**
135    /**
136     * @var callable a PHP callable whose return value determines whether this validator should be applied.
137     * The signature of the callable should be `function ($model, $attribute)`, where `$model` and `$attribute`
234            $skip = $this->skipOnError && $model->hasErrors($attribute)
235                || $this->skipOnEmpty && $this->isEmpty($model->$attribute);
236            if (!$skip) {
353     * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
354     * Note that this method is different from PHP empty(). It will return false when the value is 0.
355     * @param mixed $value the value to be checked
config.inc.php https://github.com/netplayer/PrestaShop.git | PHP | 236 lines
1<?php
2/*
26
27require_once(dirname(__FILE__).'/defines.inc.php');
28$start_time = microtime(true);
32
33/* Improve PHP configuration to prevent issues */
34ini_set('upload_max_filesize', '100M');
42/* No settings file? goto installer... */
43if (!file_exists(_PS_ROOT_DIR_.'/config/settings.inc.php'))
44{
76	{
77		if (basename($_SERVER['SCRIPT_NAME']) == 'index.php' && empty($_SERVER['QUERY_STRING']))
78			$_SERVER['REQUEST_URI'] = dirname($_SERVER['SCRIPT_NAME']).'/';
132$locale = strtolower(Configuration::get('PS_LOCALE_LANGUAGE')).'_'.strtoupper(Configuration::get('PS_LOCALE_COUNTRY'));
133/* Please do not use LC_ALL here http://www.php.net/manual/fr/function.setlocale.php#25041 */
134setlocale(LC_COLLATE, $locale.'.UTF-8', $locale.'.utf8');
PackageManagerDisplay.php https://github.com/BarnetikKoop/SuiteCRM.git | PHP | 622 lines
1<?php
2/*********************************************************************************
44require_once('include/ytree/Tree.php');
45require_once('include/ytree/Node.php');
46require_once('ModuleInstall/PackageManager/ListViewPackages.php');
78        $error_html = "";
79		if(!empty($mi_errors)){
80			$error_html = "<tr><td><span>";
215        }
216        if($form_action == 'install.php' && (empty($releases) || count($releases['packages']) == 0)){
217        	//return false;
240    	$output = "<div id='login_panel'><div class='hd'><b>".$mod_strings['HDR_LOGIN_PANEL']."</b></div>";
241        $output .= "<div class='bd'><form><table><tr><td>".$mod_strings['LBL_USERNAME']."</td><td><input type='text' name='login_panel_username' id='login_panel_username' value='".$credentials['username']."'></td><td><a href='http://www.sugarcrm.com/crm/index.php?option=com_registration&task=register' target='blank'>".$mod_strings['LNK_NEW_ACCOUNT']."</a></td>";
242
533            $credentials = PackageManager::getCredentials();
534            if(empty($credentials['username']) || empty($credentials['password'])){
535            	//$header_text = "<font color='red'><b>".$mod_strings['ERR_CREDENTIALS_MISSING']."</b></font>";
class.types.php https://github.com/ngocphuuit/wordpress-tax.git | PHP | 497 lines
1<?php
2/**
4 *
5 * $HeadURL: https://www.onthegosystems.com/misc_svn/common/tags/Views-1.6.1-Types-1.5.7/toolset-forms/classes/class.types.php $
6 * $LastChangedDate: 2014-04-16 10:42:22 +0200 (Wed, 16 Apr 2014) $
78                    $field['name'] ), // Translated title
79            'description' => !empty( $field['description'] ) ? self::translate( "field {$field['id']} description",
80                    $field['description'] ) : '', // Translated description
99        case 'checkboxes':
100            if ( !empty( $field['data']['options'] ) ) {
101                global $pagenow;
109                    );
110                    if ( $pagenow == 'post-new.php' && !empty( $option['checked'] ) ) {
111                        $_field['options'][$option_key]['checked'] = true;
116        case 'date':
117            $_field['add_time'] = !empty( $field['data']['date_and_time'] ) && $field['data']['date_and_time'] == 'and_time';
118            break;
v1.php https://github.com/hnw/phpbugs.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,
v1.php https://github.com/wrobel/horde-glue.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/oilcf/agilebill.git | PHP | 1,596 lines
16 * @copyright  1997-2005 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.67 2005/10/27 05:07:24 cellog Exp $
1041                PEAR_PACKAGEFILE_ERROR_PHP5 =>
1042                    'Error, PHP5 token encountered in %file%, analysis should be in PHP5',
1043                PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
1149                }
1150                if ($d['type'] == 'php' && !empty($d['name'])) {
1151                    $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED,
1152                        array('index' => $i, 'name' => $d['name']));
1153                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1154                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME,
1156                }
1157                if ($d['type'] == 'php' && empty($d['version'])) {
1158                    $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21