PageRenderTime 2156ms queryFilters 1ms Sphinxql 1847ms GetByIds 238ms meta 0ms repositoryFilters 9ms languageFilters 10ms sourceFilters 1ms

1,427,616 results for 'php empty repo:theguly/thaps' (2156 ms)

Source

Language

Repository

v1.php https://github.com/ASUPortal/ASUPortalPHP.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,
card.php https://github.com/atm-maximep/dolibarr.git | PHP | 1,951 lines
41require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
42if (! empty($conf->propal->enabled))  require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
43if (! empty($conf->projet->enabled)) {
1320                print '<td width="50" align="right">'.$langs->trans("ReductionShort").'</td>';
1321				if (! empty($conf->margin->enabled) && ! empty($conf->global->MARGIN_SHOW_ON_CONTRACT)) print '<td width="50" align="right">'.$langs->trans("BuyingPrice").'</td>';
1322                print '<td width="30">&nbsp;</td>';
1381					// Margin
1382					if (! empty($conf->margin->enabled) && ! empty($conf->global->MARGIN_SHOW_ON_CONTRACT)) print '<td align="right" class="nowrap">'.price($objp->pa_ht).'</td>';
1383
1512                    $colspan=5;
1513                    if (! empty($conf->margin->enabled) && ! empty($conf->global->MARGIN_SHOW_ON_CONTRACT)) $colspan++;
1514	              if($conf->global->PRODUCT_USE_UNITS) $colspan++;
1903  if (idprod > 0) {
1904	  $.post('<?php echo DOL_URL_ROOT; ?>/fourn/ajax/getSupplierPrices.php', {'idprod': idprod}, function(data) {
1905	    if (data.length > 0) {
card.php https://github.com/atm-maxime/dolibarr.git | PHP | 883 lines
290	$newlang='';
291	if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST['lang_id'])) $newlang=$_REQUEST['lang_id'];
292	if ($conf->global->MAIN_MULTILANGS && empty($newlang)) $newlang=$object->thirdparty->default_lang;
394
395	if (empty($conf->societe->enabled) || empty($conf->global->DONATION_USE_THIRDPARTIES))
396	{
534
535    if ($object->socid && !empty($conf->societe->enabled) && !empty($conf->global->DONATION_USE_THIRDPARTIES)) {
536        $company = new Societe($db);
636
637	$linkback = '<a href="'.DOL_URL_ROOT.'/don/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
638
867	// Show online payment link
868	$useonlinepayment = (!empty($conf->paypal->enabled) || !empty($conf->stripe->enabled) || !empty($conf->paybox->enabled));
869
dispatch.php https://github.com/atm-maxime/dolibarr.git | PHP | 1,090 lines
93
94if ($action == 'checkdispatchline' && !((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check))))
95{
137
138if ($action == 'uncheckdispatchline' && !((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check))))
139{
180
181if ($action == 'denydispatchline' && !((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check))))
182{
819						if (!empty($conf->global->SUPPLIER_ORDER_CAN_UPDATE_BUYINGPRICE_DURING_RECEIPT)) {
820							if (empty($conf->multicurrency->enabled) && empty($conf->dynamicprices->enabled)) {
821								// Price
1036					print '<td class="center">';
1037					if ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check)))
1038					{
card.php https://github.com/atm-maximep/dolibarr.git | PHP | 2,085 lines
71// If multicompany module is enabled, we redefine the root of data
72if (! empty($conf->multicompany->enabled) && ! empty($conf->entity) && $conf->entity > 1)
73{
1210			{
1211				if (empty($user->rights->expensereport->readall) && empty($user->rights->expensereport->lire_tous))
1212				{
1247
1248				$linkback = '<a href="'.DOL_URL_ROOT.'/expensereport/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
1249
1405
1406				$linkback = '<a href="'.DOL_URL_ROOT.'/expensereport/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
1407
2059
2060//$conf->global->DOL_URL_ROOT_DOCUMENT_PHP=dol_buildpath('/expensereport/documentwrapper.php',1);
2061
card.php https://github.com/atm-maximep/dolibarr.git | PHP | 1,861 lines
47}
48if (! empty($conf->global->FICHEINTER_ADDON) && is_readable(DOL_DOCUMENT_ROOT ."/core/modules/fichinter/mod_".$conf->global->FICHEINTER_ADDON.".php"))
49{
1244
1245	$linkback = '<a href="'.DOL_URL_ROOT.'/fichinter/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
1246
1393		$sql.= ' WHERE ft.fk_fichinter = '.$object->id;
1394		if (!empty($conf->global->FICHINTER_HIDE_EMPTY_DURATION))
1395			$sql.= ' AND ft.duree <> 0';
1654						{
1655							if ($user->rights->agenda->myactions->create) print '<div class="inline-block divButAction"><a class="butAction" href="'.DOL_URL_ROOT.'/comm/action/card.php?action=create&amp;origin='.$object->element.'&amp;originid='.$object->id.'&amp;socid='.$object->socid.'&amp;backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.$object->id).'">'.$langs->trans("AddEvent").'</a></div>';
1656							else print '<div class="inline-block divButAction"><a class="butActionRefused" href="#" title="'.$langs->trans("NotEnoughPermissions").'">'.$langs->trans("AddEvent").'</a></div>';
1763		$newlang = '';
1764		if ($conf->global->MAIN_MULTILANGS && empty($newlang) && ! empty($_REQUEST['lang_id']))
1765			$newlang = $_REQUEST['lang_id'];
tasks.php https://github.com/atm-maxime/dolibarr.git | PHP | 853 lines
302			{
303				header("Location: ".DOL_URL_ROOT.'/projet/tasks/list.php'.(empty($mode) ? '' : '?mode='.$mode));
304				exit;
789	if (!empty($arrayfields['t.duration_effective']['checked'])) print_liste_field_titre($arrayfields['t.duration_effective']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right ');
790	if (!empty($arrayfields['t.progress_calculated']['checked'])) print_liste_field_titre($arrayfields['t.progress_calculated']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right ');
791	if (!empty($arrayfields['t.progress']['checked']))  print_liste_field_titre($arrayfields['t.progress']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right ');
791	if (!empty($arrayfields['t.progress']['checked']))  print_liste_field_titre($arrayfields['t.progress']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right ');
792	if (!empty($arrayfields['t.progress_summary']['checked'])) print_liste_field_titre($arrayfields['t.progress_summary']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'center ');
793	if ($object->usage_bill_time)
795		if (!empty($arrayfields['t.tobill']['checked']))  print_liste_field_titre($arrayfields['t.tobill']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right ');
796		if (!empty($arrayfields['t.billed']['checked'])) print_liste_field_titre($arrayfields['t.billed']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right ');
797	}
797	}
798	if (!empty($conf->global->PROJECT_SHOW_CONTACTS_IN_LIST)) print_liste_field_titre("TaskRessourceLinks", $_SERVER["PHP_SELF"], '', '', $param, $sortfield, $sortorder);
799	// Extra fields
element_resource.php https://github.com/atm-maxime/dolibarr.git | PHP | 642 lines
1<?php
2/* Copyright (C) 2013-2018	Jean-Fran├žois Ferry	<hello+jf@librethic.io>
27require '../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/resource/class/dolresource.class.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
31if (!empty($conf->projet->enabled)) {
31if (!empty($conf->projet->enabled)) {
32    require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
33    require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
34}
35if (!empty($conf->product->enabled) || !empty($conf->service->enabled)) {
36    require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
492			// Intervention card
493			$linkback = '<a href="'.DOL_URL_ROOT.'/fichinter/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
494
admin.php https://github.com/atomboyd/wordpress-heroku.git | PHP | 943 lines
225						<td>
226							<input id="key" name="key" type="text" size="15" maxlength="12" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="regular-text code <?php echo $key_status;?>"><div class="under-input key-status <?php echo $key_status;?>"><?php echo isset( $key_status_strings[ $key_status ] ) ? $key_status_strings[ $key_status ] : '';?></div>
227							<p class="need-key description"><?php printf( __('You must enter a valid Akismet API key here. If you need an API key, you can <a href="%s">create one here</a>'), '#' );?></p>
234							<fieldset><legend class="screen-reader-text"><span><?php _e('Settings');?></span></legend>
235							<label for="akismet_discard_month" title="<?php esc_attr_e( 'Auto-detete old spam' ); ?>"><input name="akismet_discard_month" id="akismet_discard_month" value="true" type="checkbox" <?php echo get_option('akismet_discard_month') == 'true' ? 'checked="checked"':''; ?>> <span><?php _e('Auto-delete spam submitted on posts more than a month old.'); ?></span></label><br>
236							<label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' ); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="true" type="checkbox" <?php echo get_option('akismet_show_user_comments_approved') == 'true' ? 'checked="checked"':''; ?>> <span><?php _e('Show the number of comments you\'ve approved beside each comment author.'); ?></span></label>
329	if ( !$api_key ) :?>
330	<div id="akismet-warning" class="updated fade"><p><strong><?php _e('Akismet is almost ready.');?></strong> <?php printf( __( 'You must <a href="%1$s">enter your Akismet API key</a> for it to work.' ), $config_link );?></p></div><?php
331	else :?>
331	else :?>
332	<iframe src="<?php echo esc_url( sprintf( '%s://akismet.com/web/1.0/user-stats.php?blog=%s&api_key=%s', is_ssl()?'https':'http', $blog, $api_key ) ); ?>" width="100%" height="2500px" frameborder="0" id="akismet-stats-frame"></iframe><?php
333	endif;?>
344	global $submenu;
345	echo '<p>'.sprintf( _n( '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.', '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.', $count ), 'http://akismet.com/?return=true', esc_url( add_query_arg( array( 'page' => 'akismet-admin' ), admin_url( isset( $submenu['edit-comments.php'] ) ? 'edit-comments.php' : 'edit.php' ) ) ), number_format_i18n($count) ).'</p>';
346}
install.php https://github.com/AUTOPLANNING/SuiteCRM.git | PHP | 767 lines
55if (version_compare(phpversion(),'5.2.0') < 0) {
56	$msg = 'Minimum PHP version required is 5.2.0.  You are using PHP version  '. phpversion();
57    die($msg);
361
362if(empty($sugar_config['cache_dir']) && !empty($_SESSION['cache_dir'])) {
363    $sugar_config['cache_dir'] = $_SESSION['cache_dir'];
473
474    $exclude_files = array('complete_install.php','register.php','download_modules.php');
475
643        // check to see if installer has been disabled
644        if(is_readable('config.php') && (filesize('config.php') > 0)) {
645            include_once('config.php');
684         */
685        if (!empty($_SESSION['setup_site_specify_guid']) && !empty($_SESSION['setup_site_guid'])) {
686            $sugar_config['unique_key'] = $_SESSION['setup_site_guid'];
install.php https://github.com/Barnetik/SuiteCRM.git | PHP | 608 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');
v1.php https://github.com/benawv/bogor-city-guide.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/BillTheBest/Cloud4SOA.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/blogxpert/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,
install.php https://github.com/bojkic/SuiteCRM.git | PHP | 608 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');
upgrade.php git://github.com/markjaquith/WordPress.git | PHP | 157 lines
48$mysql_version = $wpdb->db_version();
49$php_compat    = version_compare( $php_version, $required_php_version, '>=' );
50if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) {
73<p><?php _e( 'Your WordPress database is already up to date!' ); ?></p>
74<p class="step"><a class="button button-large" href="<?php echo get_option( 'home' ); ?>/"><?php _e( 'Continue' ); ?></a></p>
75
84	/* translators: %s: URL to Update PHP page. */
85	$php_update_message = '</p><p>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) );
86
104		$message = sprintf(
105			/* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number. */
106			__( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ),
137<p><?php _e( 'The database update process may take a little while, so please be patient.' ); ?></p>
138<p class="step"><a class="button button-large button-primary" href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p>
139			<?php
CValidator.php https://bitbucket.org/dinhtrung/yiicorecms/ | PHP | 259 lines
1<?php
2/**
145			else
146				$on=preg_split('/[\s,]+/',$params['on'],-1,PREG_SPLIT_NO_EMPTY);
147		}
171
172		$validator->on=empty($on) ? array() : array_combine($on,$on);
173
217	 * <ul>
218	 * <li>the validator's "on" property is empty</li>
219	 * <li>the validator's "on" property contains the specified scenario</li>
226	{
227		return empty($this->on) || isset($this->on[$scenario]);
228	}
245	 * Checks if the given value is empty.
246	 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
247	 * Note that this method is different from PHP empty(). It will return false when the value is 0.
CValidator.php http://yii.googlecode.com/svn/trunk/ | PHP | 262 lines
1<?php
2/**
145			else
146				$on=preg_split('/[\s,]+/',$params['on'],-1,PREG_SPLIT_NO_EMPTY);
147		}
176
177		$validator->on=empty($on) ? array() : array_combine($on,$on);
178
222	 * <ul>
223	 * <li>the validator's "on" property is empty</li>
224	 * <li>the validator's "on" property contains the specified scenario</li>
230	{
231		return empty($this->on) || isset($this->on[$scenario]);
232	}
249	 * Checks if the given value is empty.
250	 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
251	 * Note that this method is different from PHP empty(). It will return false when the value is 0.
CValidator.php https://code.google.com/p/monkeys-job/ | PHP | 233 lines
1<?php
2/**
137			else
138				$on=preg_split('/[\s,]+/',$params['on'],-1,PREG_SPLIT_NO_EMPTY);
139		}
163
164		$validator->on=empty($on) ? array() : array_combine($on,$on);
165
191	 * <ul>
192	 * <li>the validator's "on" property is empty</li>
193	 * <li>the validator's "on" property contains the specified scenario</li>
200	{
201		return empty($this->on) || isset($this->on[$scenario]);
202	}
219	 * Checks if the given value is empty.
220	 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
221	 * Note that this method is different from PHP empty(). It will return false when the value is 0.
CValidator.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 232 lines
1<?php
2/**
137			else
138				$on=preg_split('/[\s,]+/',$params['on'],-1,PREG_SPLIT_NO_EMPTY);
139		}
163
164		$validator->on=empty($on) ? array() : array_combine($on,$on);
165
191	 * <ul>
192	 * <li>the validator's "on" property is empty</li>
193	 * <li>the validator's "on" property contains the specified scenario</li>
200	{
201		return empty($this->on) || isset($this->on[$scenario]);
202	}
219	 * Checks if the given value is empty.
220	 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
221	 * Note that this method is different from PHP empty(). It will return false when the value is 0.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21