PageRenderTime 2047ms queryFilters 0ms Sphinxql 1891ms GetByIds 91ms meta 0ms repositoryFilters 2ms languageFilters 6ms sourceFilters 2ms

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

Source

Language

Repository

CHANGELOG.php https://github.com/cavila/Astica.git | PHP | 3,622 lines
2575# Task #870 - Wrong template used for Order Status Change link (ps_order.php)
2576# Task #868 - missing pathway's style class in Account Maintenance (account.billing.php, account.order_details.php, account.shipto.php, account.shipping.php)
2577# Task #867 - errors in german language-file
2591	(http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=21124.msg52587#msg52587)
2592	affected files: ps_checkout.php, ps_product.php, basket.php, admin.show_cfg.php, all language files
2593# possible errors in tax total calculation when coupons are used in vendor-based tax mode
3541  and list_extra_field_5 in file classes/ps_html.php.
3542  You can change position of this fields in form in files: account.shipto.php account.billing.php account.order_details.php 
3543  admin.users.html.php admin.user_address_form.php
358601-08-2005 Zdenek Dvorak
3587# Product Type: File mod_virtuemart.php, variable _PHPSHOP_PARAMETER_SEARCH was changed to _PHPSHOP_ADVANCED_PARAMETER_SEARCH 
3588
360501-07-2005 Zdenek Dvorak
3606! changed ToolTip in files ps_product_type.php, shop.parameter_search_form.php, product.product_form.php and
3607  product.product_type_parameter_form.php
cnk_section_tree.php https://github.com/netcarver/cnk_section_tree.git | PHP | 1,527 lines
1<?php
2
1126				case urldecode(strtolower(urlencode(gTxt('author')))):
1127						$out['author'] = (!empty($u2)) ? $u2 : ''; break;
1128						// AuthorID gets resolved from Name further down
1131						$out['s'] = 'file_download';
1132						$out['id'] = (!empty($u2)) ? $u2 : ''; break;
1133
1326	// Tidy up links back to the site homepage
1327	if ($path == 'index.php' && empty($query)) 
1328	{
1338	// Check to see if there is query to work with.
1339	else if (empty($query) || $path != 'index.php' || strpos($query, '/') === true)
1340	{
1462			extract($pl['settings']);
1463			if ((empty($s) && empty($c)) ||
1464			(empty($con_section) || @$s == $con_section) ||
install.php https://github.com/zihuxinyu/typecho.git | PHP | 629 lines
191                    <form method="post" action="?config" name="config">
192                    <p class="message error"><?php _e('您没有上传 config.inc.php 文件,请您重新安装!'); ?> <button class="btn primary" type="submit"><?php _e('重新安装 &raquo;'); ?></button></p>
193                    </form>
239                        <li><a href="<?php echo $loginUrl; ?>"><?php _e('点击这里访问您的控制面板'); ?></a></li>
240                        <li><a href="<?php echo _u(); ?>/index.php"><?php _e('点击这里查看您的 Blog'); ?></a></li>
241                    </ul>
553                                <?php if (_p('Mysql')): ?><option value="Mysql"<?php if('Mysql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Mysql 原生函数适配器') ?></option><?php endif; ?>
554                                <?php if (_p('SQLite')): ?><option value="SQLite"<?php if('SQLite' == $adapter): ?> selected=true<?php endif; ?>><?php _e('SQLite 原生函数适配器 (SQLite 2.x)') ?></option><?php endif; ?>
555                                <?php if (_p('Pgsql')): ?><option value="Pgsql"<?php if('Pgsql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pgsql 原生函数适配器') ?></option><?php endif; ?>
555                                <?php if (_p('Pgsql')): ?><option value="Pgsql"<?php if('Pgsql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pgsql 原生函数适配器') ?></option><?php endif; ?>
556                                <?php if (_p('Pdo_Mysql')): ?><option value="Pdo_Mysql"<?php if('Pdo_Mysql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 Mysql 适配器') ?></option><?php endif; ?>
557                                <?php if (_p('Pdo_SQLite')): ?><option value="Pdo_SQLite"<?php if('Pdo_SQLite' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 SQLite 适配器 (SQLite 3.x)') ?></option><?php endif; ?>
557                                <?php if (_p('Pdo_SQLite')): ?><option value="Pdo_SQLite"<?php if('Pdo_SQLite' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 SQLite 适配器 (SQLite 3.x)') ?></option><?php endif; ?>
558                                <?php if (_p('Pdo_Pgsql')): ?><option value="Pdo_Pgsql"<?php if('Pdo_Pgsql' == $adapter): ?> selected=true<?php endif; ?>><?php _e('Pdo 驱动 PostgreSql 适配器') ?></option><?php endif; ?>
559                            </select>
Menu.php https://github.com/zihuxinyu/typecho.git | PHP | 344 lines
128        array(
129            array(_t('文章'), _t('管理文章'), 'manage-posts.php', 'contributor', false, 'write-post.php'),
130            array(array('Widget_Contents_Post_Admin', 'getMenuTitle'), array('Widget_Contents_Post_Admin', 'getMenuTitle'), 'manage-posts.php?uid=', 'contributor', true),
130            array(array('Widget_Contents_Post_Admin', 'getMenuTitle'), array('Widget_Contents_Post_Admin', 'getMenuTitle'), 'manage-posts.php?uid=', 'contributor', true),
131            array(_t('独立页面'), _t('管理独立页面'), 'manage-pages.php', 'editor', false, 'write-page.php'),
132            array(_t('评论'), _t('管理评论'), 'manage-comments.php', 'contributor'),
133            array(array('Widget_Comments_Admin', 'getMenuTitle'), array('Widget_Comments_Admin', 'getMenuTitle'), 'manage-comments.php?cid=', 'contributor', true),
134            array(_t('分类'), _t('管理分类'), 'manage-categories.php', 'editor', false, 'category.php'),
135            array(_t('新增分类'), _t('新增分类'), 'category.php', 'editor', true),
142            array(array('Widget_Contents_Attachment_Edit', 'getMenuTitle'), array('Widget_Contents_Attachment_Edit', 'getMenuTitle'), 'media.php?cid=', 'contributor', true),
143            array(_t('用户'), _t('管理用户'), 'manage-users.php', 'administrator', false, 'user.php'),
144            array(_t('新增用户'), _t('新增用户'), 'user.php', 'administrator', true),
218                    && basename($urlParts['path']) == 'extending.php'
219                    && !empty($currentUrlParams['panel']) && !empty($urlParams['panel'])
220                    && $urlParams['panel'] != $currentUrlParams['panel']){
class.products-post-type.php https://github.com/ArzuA/gitwordpress.git | PHP | 815 lines
233					<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) : ?>
234						<input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save Draft' ); ?>" class="button button-large" />
235					<?php elseif ( 'pending' == $post->post_status && $can_publish ) : ?>
253						?>
254						<a class="preview button button-large" href="<?php echo $preview_link; ?>" target="wp-preview" id="<?php echo $preview_id; ?>"><?php echo $preview_button; ?></a>
255						<input type="hidden" name="wp-preview" id="wp-preview" value="" />
280				<div id="advanced-action">
281					<a class="advanced-status-option-link advanced-hidden" href data-hidden="<?php _e( 'Show Advanced', 'it-l10n-ithemes-exchange' ); ?>" data-visible="<?php _e( 'Hide Advanced', 'it-l10n-ithemes-exchange' ); ?>"><?php _e( 'Show Advanced', 'it-l10n-ithemes-exchange' ); ?></a>
282				</div>
321						<?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) : ?>
322							<a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js"><?php _e( 'Edit', 'it-l10n-ithemes-exchange' ) ?></a>
323							<div id="post-status-select" class="hide-if-js">
361								<select name='it-exchange-visibility' id='it-exchange-visibility'>
362										<option<?php selected( $product_visibility, 'visible' ); ?> value='visible'><?php _e( 'Show in Store', 'it-l10n-ithemes-exchange' ) ?></option>
363										<option<?php selected( $product_visibility, 'hidden' ); ?> value='hidden'><?php _e( 'Hide from Store', 'it-l10n-ithemes-exchange' ) ?></option>
index.php git://github.com/usebb/UseBB.git | PHP | 287 lines
1<?php
2
61
62if ( empty($_SESSION['installer_running']) && $functions->get_config('installer_run') ) {
63	
73	
74	if ( !empty($_POST['start']) && !is_writable(ROOT_PATH.'config.php') && !empty($_SESSION['installer_running']) ) {
75		
77		
78	} elseif ( !empty($_POST['db_type']) && array_key_exists($_POST['db_type'], $db_servers) && !empty($_POST['db_server']) && !empty($_POST['db_username']) && !empty($_POST['db_dbname']) && !empty($_POST['admin_username']) && preg_match(USER_PREG, $_POST['admin_username']) && !empty($_POST['admin_email']) && preg_match(EMAIL_PREG, $_POST['admin_email']) && !empty($_POST['admin_passwd1']) && !empty($_POST['admin_passwd2']) && $functions->validate_password(stripslashes($_POST['admin_passwd1']), true) && strlen(stripslashes($_POST['admin_passwd1'])) >= $functions->get_config('passwd_min_length') && $_POST['admin_passwd1'] == $_POST['admin_passwd2'] ) {
79		
110			
111			$config_warning = ( !is_writable(ROOT_PATH.'config.php') ) ? '<p class="important"><strong>Tip:</strong> <code>config.php</code> is at this moment not writable by the webserver. Therefore, you will be asked to download the file after filling in this form. If you would like UseBB to edit the file automatically, make <code>config.php</code> writable and <a href="index.php">refresh</a> this wizard.</p>' : '';
112			
225	
226} elseif ( $_GET['step'] === 2 && !empty($_SESSION['admin_username']) && preg_match(USER_PREG, $_SESSION['admin_username']) && !empty($_SESSION['admin_email']) && preg_match(EMAIL_PREG, $_SESSION['admin_email']) && !empty($_SESSION['admin_passwd']) ) {
227	
InstallerController.php https://bitbucket.org/openemr/openemr.git | PHP | 774 lines
451
452        if (file_exists($sqldir . "/acl_setup.php") && file_exists($ModulePath . "/version.php") && empty($mod->acl_version)) {
453            $mod->acl_action = "install";
454        }
455        if (file_exists($sqldir . "/acl_upgrade.php") && file_exists($ModulePath . "/version.php") && !empty($mod->acl_version)) {
456            global $ACL_UPGRADE;
690        $div = [];
691        if (file_exists($modDir . "/acl/acl_upgrade.php") && !empty($Module->acl_version)) {
692            // Pass a unique variable, so below scripts can not be run on their own
728
729        echo PHP_EOL . '--- Run command [' . $moduleAction . '] in module:  ' . $moduleName . '---' . PHP_EOL;
730        echo 'start process - ' . date('Y-m-d H:i:s') . PHP_EOL;
731
732        if (!empty($moduleAction) && !empty($moduleName) && $moduleName != "all") {
733            $moduleId = $this->getModuleId($moduleName);
lang.php https://code.google.com/p/enanocms/ | PHP | 791 lines
1<?php
2
112		if ( !$q )
113			$db->_die('lang.php - main select query');
114		
115		if ( $db->numrows() < 1 )
116			$db->_die('lang.php - There are no languages installed');
117		
162			if ( !$q )
163				$db->_die('lang.php - selecting language string data');
164			if ( $row = $db->fetchrow() )
184				if ( !defined('ENANO_ALLOW_LOAD_NOLANG') )
185					$db->_die('lang.php - No strings for language ' . $this->lang_code);
186			}
233		if ( empty($contents) )
234			$db->_die('lang.php - empty language file...');
235		
plugin.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 944 lines
1<?php
2
10 * @copyright &copy; 1999-2007 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id: plugin.php 12400 2007-05-17 16:36:13Z kink $
21function use_plugin ($name) {
22    if (file_exists(SM_PATH . "plugins/$name/setup.php")) {
23        include_once(SM_PATH . "plugins/$name/setup.php");
104 *
105 * Note that unlike PHP's array_merge function, matching array keys
106 * will not overwrite each other, instead, values under such keys
153                $plugin_ret = $function($args);
154                if (!empty($plugin_ret)) {
155                    $ret = sqm_array_merge($ret, $plugin_ret);
276  /**
277   * check if variable is empty. if var is not set, php empty
278   * returns true without error notice.
plugin.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 1,036 lines
1<?php
2
10 * @copyright 1999-2012 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id: plugin.php 14249 2012-01-02 02:09:17Z pdontthink $
21function use_plugin ($name) {
22    if (file_exists(SM_PATH . "plugins/$name/setup.php")) {
23        include_once(SM_PATH . "plugins/$name/setup.php");
104 *
105 * Note that unlike PHP's array_merge function, matching array keys
106 * will not overwrite each other, instead, values under such keys
153                $plugin_ret = $function($args);
154                if (!empty($plugin_ret)) {
155                    $ret = sqm_array_merge($ret, $plugin_ret);
276  /**
277   * check if variable is empty. if var is not set, php empty
278   * returns true without error notice.
CHANGELOG.php http://vanphongphamdm.googlecode.com/svn/trunk/ | PHP | 3,622 lines
51# Bug #360 Ajax calls recorded as last page
52# Bug #310 bug in shop.browse.php empty category
53
25223.09.2009 mauri
253# Fixed EU VAT ID in ps_product.php and ps_checkout.php
254# Fixed undefined index in ps_order_chenge.php
86514.07.2008 soeren
866^ Task #2240 - mf description also in shop.browse.php and browse_header_manufacturer.tpl.php 
867# Task #2227 - When Joomla cache is enabled Product list with table doesn't work 
1337- removed email_*.html (localized email templates)
1338^ changed Order Confirmation Email to use a php-based template (/order_emails/confirmation_email.tpl.php)
1339+ custom registration/user fields are sent with confirmation email now 
1350# Task #1848 - In IE7 it is possible to move a product into the same category, doing so results in product being placed in no category
1351# Task #1839 - Empty name, empty price in product list (extended layout)
1352# Task #1851 - Quantity Start and Quantity End language strings missing from List Prices
admin.php git://pkgs.fedoraproject.org/wordpress | PHP | 851 lines
146?>
147<?php if ( !empty($_POST['submit'] ) ) : ?>
148<div id="message" class="updated fade"><p><strong><?php _e('Options saved.') ?></strong></p></div>
224		<td><?php echo htmlspecialchars($ip); ?></td>
225		<td style="padding: 0 .5em; font-weight:bold; color: #fff; background-color: <?php echo $color; ?>"><?php echo ($status ? __('Accessible') : __('Re-trying') ); ?></td>
226		
310					<p><?php esc_html_e( $alert['msg'] ); ?></p>
311					<p>More information is available at <a href="https://akismet.com/errors/<?php echo $alert['code']; ?>">https://akismet.com/errors/<?php echo $alert['code']; ?></a></p>
312				</div>
327		return;
328	} elseif ( ( empty($_SERVER['SCRIPT_FILENAME']) || basename($_SERVER['SCRIPT_FILENAME']) == 'edit-comments.php' ) &&  wp_next_scheduled('akismet_schedule_cron_recheck') ) {
329		function akismet_warning() {
766function akismet_add_comment_author_url() {
767    if ( !empty( $_POST['id'] ) && !empty( $_POST['url'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) {
768        global $wpdb;
functions.php git://pkgs.fedoraproject.org/virtuoso-opensource | PHP | 3,081 lines
37// coming from the login.php page.
38if ( ! strstr ( $PHP_SELF, "login.php" ) && ! empty ( $GLOBALS["login"] ) ) {
39  $GLOBALS["login"] = "";
703  // if we are looking at a view, then always use "entry"
704  if ( strstr ( $PHP_SELF, "view_m.php" ) ||
705    strstr ( $PHP_SELF, "view_w.php" ) ||
2687// Convert HTML entities in 8bit
2688// Only supported for PHP4 (not PHP3)
2689function html_to_8bits ( $html ) {
2948  // if we are looking at a view, then always use "entry"
2949  if ( strstr ( $PHP_SELF, "view_m.php" ) ||
2950    strstr ( $PHP_SELF, "view_w.php" ) ||
2950    strstr ( $PHP_SELF, "view_w.php" ) ||
2951    strstr ( $PHP_SELF, "view_v.php" ) ||
2952    strstr ( $PHP_SELF, "view_t.php" ) )
edit_entry.php git://pkgs.fedoraproject.org/WebCalendar | PHP | 1,645 lines
126
127if ( empty ( $date ) && empty ( $month ) ) {
128  if ( empty ( $year ) )
197
198    $cal_date = ( ! empty ( $override ) && ! empty ( $date )
199      ? $date // Leave $cal_date to what was set in URL with date=YYYYMMDD.
579      <input type="hidden" name="eType" value="' . $eType . '" />'
580   . ( ! empty ( $id ) && ( empty ( $copy ) || $copy != '1' ) ? '
581      <input type="hidden" name="cal_id" value="' . $id . '" />' : '' )
1035      } else {
1036        if ( ! empty ( $defusers ) && ! empty ( $participants[$l] ) )
1037          // Default selection of participants was in the URL.
1135     . 'name="rpt_end_use" id="rpt_untilf" value="f" '
1136     . ( empty ( $rpt_end ) && empty ( $rpt_count ) ? $checked : '' )
1137     . ' onclick="toggle_until()" /><label for="rpt_untilf">'
admin.php https://git01.codeplex.com/officialwp | PHP | 834 lines
145?>
146<?php if ( !empty($_POST['submit'] ) ) : ?>
147<div id="message" class="updated fade"><p><strong><?php _e('Options saved.') ?></strong></p></div>
223		<td><?php echo htmlspecialchars($ip); ?></td>
224		<td style="padding: 0 .5em; font-weight:bold; color: #fff; background-color: <?php echo $color; ?>"><?php echo ($status ? __('Accessible') : __('Re-trying') ); ?></td>
225		
292					<p><?php esc_html_e( $alert['msg'] ); ?></p>
293					<p>More information is available at <a href="https://akismet.com/errors/<?php echo $alert['code']; ?>">https://akismet.com/errors/<?php echo $alert['code']; ?></a></p>
294				</div>
309		return;
310	} elseif ( ( empty($_SERVER['SCRIPT_FILENAME']) || basename($_SERVER['SCRIPT_FILENAME']) == 'edit-comments.php' ) &&  wp_next_scheduled('akismet_schedule_cron_recheck') ) {
311		function akismet_warning() {
749function akismet_add_comment_author_url() {
750    if ( !empty( $_POST['id'] ) && !empty( $_POST['url'] ) && check_admin_referer( 'comment_author_url_nonce' ) ) {
751        global $wpdb;
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', '<');
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
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>";
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');
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21