PageRenderTime 1400ms queryFilters 0ms Sphinxql 987ms GetByIds 346ms meta 0ms repositoryFilters 5ms languageFilters 4ms sourceFilters 1ms

1,542,995 results for 'php empty' (1400 ms)

Source

Language

Repository

Common.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 2,094 lines
503            case 'provides':
504                if (empty($attribs['type']) || empty($attribs['name'])) {
505                    break;
1147                }
1148                if ($d['type'] == 'php' && !empty($d['name'])) {
1149                    $warnings[] = "dependency $i: name ignored for php type dependencies";
1149                    $warnings[] = "dependency $i: name ignored for php type dependencies";
1150                } elseif ($d['type'] != 'php' && empty($d['name'])) {
1151                    $errors[] = "dependency $i: missing name";
1414                                 )) {
1415                            PEAR::raiseError('Error: PHP5 packages must be packaged by php 5 PEAR');
1416                            return false;
1793        $request .= "Host: $host:$port\r\n".
1794            "User-Agent: PHP/".PHP_VERSION."\r\n";
1795        if ($proxy_host != '' && $proxy_user != '') {
install.php https://bitbucket.org/cviolette/sugarcrm.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/cviolette/sugarcrm.git | PHP | 4,876 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,
3762	if(function_exists('json_encode')) {
3763		$phpInfo = getPhpInfo(8);
3764        return version_compare($phpInfo['json']['json version'], '1.1.1', '<');
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;
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', '<');
cap-interceptor_rs.php https://github.com/adityag2/suneha.git | PHP | 1,010 lines
285
286						if ( ( false !== $key ) && ! $doing_admin_menus && in_array( $pagenow, array( 'edit.php', 'post.php', 'post-new.php', 'press-this.php', 'admin-ajax.php', 'upload.php', 'media.php' ) ) ) {				
287							$rs_reqd_caps[$key] = $object_type_obj->cap->$post_cap_name;
353			if ( ! $doing_admin_menus ) {
354				if ( ! empty($_REQUEST['action']) && in_array( $pagenow, array('edit.php','edit-tags.php') ) )
355					$this->skip_id_generation = true;
443			
444			if ( defined('RVY_VERSION') && in_array( $pagenow, array('edit.php', 'edit-tags.php', 'admin-ajax.php') ) && ( ! empty($_REQUEST['action']) && ( -1 != $_REQUEST['action'] ) ) ) {
445				$rs_reqd_caps = Rvy_Helper::fix_table_edit_reqd_caps( $rs_reqd_caps, $args[0], $_post, $object_type_obj );
553
554		$maybe_attachment = in_array( $pagenow, array( 'upload.php', 'media.php' ) );
555
617		// Page refresh following publishing of new page by users who can edit by way of Term Role fails without this workaround
618		if ( ! empty( $_POST ) && ( defined( 'SCOPER_CACHE_SAFE_MODE' ) || ( in_array( $pagenow, array( 'post.php', 'press-this.php' ) ) && ( $args[0] == $object_type_obj->cap->edit_post ) ) ) ) {
619			$force_refresh = true;
role-scoper_init.php https://github.com/adityag2/suneha.git | PHP | 1,047 lines
361	if ( ! isset( $optval ) ) {
362		if ( ! empty($scoper_default_options) && ! empty( $scoper_default_options[$option_basename] ) )
363			$optval = $scoper_default_options[$option_basename];
895
896	if ( ! empty( $GLOBALS['post'] ) && is_object($GLOBALS['post']) && ! empty( $GLOBALS['post']->post_type ) ) {
897		$object_type = $GLOBALS['post']->post_type;
907		
908	} elseif ( in_array( $pagenow, array( 'post-new.php', 'edit.php' ) ) ) {
909		$object_type = ! empty( $_GET['post_type'] ) ? $_GET['post_type'] : 'post';
913
914	} elseif ( in_array( $pagenow, array( 'admin-ajax.php' ) ) && ! empty( $_REQUEST['taxonomy'] ) ) {
915		$object_type = $_REQUEST['taxonomy'];
920				
921	} elseif ( ! empty( $_GET['post'] ) ) {	 // post.php
922		if ( $_post = get_post( $_GET['post'] ) )
utils.php https://github.com/vincentamari/SuperSweetAdmin.git | PHP | 4,193 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' ),
1806	if(isset($_SERVER['PHP_SELF'])) {
1807		if (!empty($_SERVER['PHP_SELF'])) clean_string($_SERVER['PHP_SELF'], 'SAFED_GET');
1808	}
2480function check_php_version($sys_php_version = '') {
2481	$sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version;
2482	// versions below $min_considered_php_version considered invalid by default,
3424	if(function_exists('json_encode')) {
3425		$phpInfo = getPhpInfo(8);
3426        return version_compare($phpInfo['json']['json version'], '1.1.1', '<');
propal.php https://github.com/zeert/dolibarr.git | PHP | 1,806 lines
372    			$newlang='';
373    			if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST['lang_id'])) $newlang=$_REQUEST['lang_id'];
374    			if ($conf->global->MAIN_MULTILANGS && empty($newlang)) $newlang=$object->client->default_lang;
1448$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action);    // Note that $action and $object may have been modified by hook
1449if (empty($reshook) && ! empty($extrafields->attribute_label))
1450{
1620		{
1621			print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&amp;action=reopen'.(empty($conf->global->MAIN_JUMP_TAG)?'':'#reopen').'"';
1622			print '>'.$langs->trans('ReOpen').'</a>';
1661		{
1662			print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&amp;action=statut'.(empty($conf->global->MAIN_JUMP_TAG)?'':'#close').'"';
1663			print '>'.$langs->trans('Close').'</a>';
1737        $newlang='';
1738        if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST['lang_id'])) $newlang=$_REQUEST['lang_id'];
1739        if ($conf->global->MAIN_MULTILANGS && empty($newlang)) $newlang=$object->client->default_lang;
Themes.php https://github.com/dekoza/openshift-smf-2.0.7.git | PHP | 2,163 lines
370
371	if (empty($_GET['th']) && empty($_GET['id']))
372	{
439		foreach ($context['themes'] as $k => $v)
440			if (empty($v['theme_dir']) || (!file_exists($v['theme_dir'] . '/Settings.template.php') && empty($v['num_members'])))
441				unset($context['themes'][$k]);
1330
1331	if ((!empty($_FILES['theme_gz']) && (!isset($_FILES['theme_gz']['error']) || $_FILES['theme_gz']['error'] != 4)) || !empty($_REQUEST['theme_gz']))
1332		$method = 'upload';
2044	{
2045		if (!empty($base_theme_dir) && file_exists($base_theme_dir . '/' . $_REQUEST['template'] . '.template.php'))
2046			$filename = $base_theme_dir . '/' . $_REQUEST['template'] . '.template.php';
2059	{
2060		if (!empty($base_theme_dir) && file_exists($base_theme_dir . '/languages/' . $_REQUEST['lang_file'] . '.php'))
2061			$filename = $base_theme_dir . '/languages/' . $_REQUEST['template'] . '.php';
class.admin.php https://github.com/ArzuA/gitwordpress.git | PHP | 1,916 lines
428		$active = 'email' == $current_tab ? 'nav-tab-active' : '';
429		?><a class="nav-tab <?php echo $active; ?>" href="<?php echo admin_url( 'admin.php?page=it-exchange-settings&tab=email' ); ?>"><?php _e( 'Email Settings', 'it-l10n-ithemes-exchange' ); ?></a><?php
430	}
451		$active = 'pages' == $current_tab ? 'nav-tab-active' : '';
452		?><a class="nav-tab <?php echo $active; ?>" href="<?php echo admin_url( 'admin.php?page=it-exchange-settings&tab=pages' ); ?>"><?php _e( 'Pages', 'it-l10n-ithemes-exchange' ); ?></a><?php
453	}
494		$active = 'enabled' == $current_tab ? 'nav-tab-active' : '';
495		?><a class="nav-tab <?php echo $active; ?>" href="<?php echo admin_url( 'admin.php?page=it-exchange-addons&tab=enabled' ); ?>"><?php _e( 'Enabled', 'it-l10n-ithemes-exchange' ); ?></a><?php
496	}
505		$active = 'disabled' == $current_tab ? 'nav-tab-active' : '';
506		?><a class="nav-tab <?php echo $active; ?>" href="<?php echo admin_url( 'admin.php?page=it-exchange-addons&tab=disabled' ); ?>"><?php _e( 'Disabled', 'it-l10n-ithemes-exchange' ); ?></a><?php
507	}
546		$active = 'get-more' == $current_tab ? 'nav-tab-active' : '';
547		?><a class="nav-tab <?php echo $active; ?>" href="<?php echo admin_url( 'admin.php?page=it-exchange-addons&tab=get-more' ); ?>"><?php _e( 'Get More', 'it-l10n-ithemes-exchange' ); ?></a><?php
548	}
install.php https://github.com/BarnetikKoop/SuiteCRM.git | PHP | 609 lines
42if (version_compare(phpversion(),'5.2.0') < 0) {
43	$msg = 'Minimum PHP version required is 5.2.0.  You are using PHP version  '. phpversion();
44    die($msg);
226
227if(empty($sugar_config['cache_dir']) && !empty($_SESSION['cache_dir'])) {
228    $sugar_config['cache_dir'] = $_SESSION['cache_dir'];
292// Add check here to see if a silent install config file exists; if so then launch silent installer
293elseif ( is_file('config_si.php') && empty($sugar_config['installer_locked'])) {
294
337
338    $exclude_files = array('complete_install.php','register.php','download_modules.php');
339
503        // check to see if installer has been disabled
504        if(is_readable('config.php') && (filesize('config.php') > 0)) {
505            include_once('config.php');
functions.php https://github.com/DigitalPaulScholtenProject/DPSP-Platform.git | PHP | 1,509 lines
30include_once(CFCT_PATH.'functions/tinymce-upload/image-popup.php');
31include_once(CFCT_PATH.'functions/phpquery/phpquery.php');
32include_once(CFCT_PATH.'functions/anno-xml-download.php');
1032			<td class="first b"><a href="<?php echo esc_url($base_edit_link); ?>"><?php echo number_format_i18n($total_records); ?></a></td>
1033			<td class="t"><a href="<?php echo esc_url($base_edit_link); ?>"><?php _e('Articles', 'anno'); ?></a></td>
1034		</tr>
1039				<td class="first b"><a href="<?php echo esc_url($details['url']); ?>"><?php echo esc_html(number_format_i18n($details['count'])); ?></a></td>
1040				<td class="t"><a class="<?php echo esc_attr($details['class']); ?>" href="<?php echo esc_url($details['url']); ?>"><?php echo esc_html($details['i18n']); // already i18n'd ?></a></td>
1041			</tr>
1165	global $post;
1166	if (($hook_suffix == 'post-new.php' || $hook_suffix == 'post.php') && (!empty($post->post_type) && $post->post_type == 'article')) {
1167?>
1257function anno_edit_post_assets($hook_suffix) {
1258	if ($hook_suffix == 'post.php' || $hook_suffix == 'post-new.php') {
1259		global $post;
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