⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 header_php.php

📁 Zen Cart是真正的电子商务艺术
💻 PHP
字号:
<?php
/**
 * @package Installer
 * @access private
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_php.php 7415 2007-11-11 06:19:40Z drbyte $
 */

$write_config_files_only = ((isset($_POST['submit']) && $_POST['submit']==ONLY_UPDATE_CONFIG_FILES) || (isset($_POST['configfile']) && zen_not_null($_POST['configfile'])) || (isset($_GET['configfile']) && zen_not_null($_GET['configfile'])) || ZC_UPG_DEBUG3 != false) ? true : false;

$is_upgrade = (int)$zc_install->getConfigKey('is_upgrade');
$result = false;
$action = (isset($_GET['action'])) ? $_GET['action'] : '';

/**
 * recheck to see if written files are valid
 */
if ($action == 'recheck') {
  $result = $zc_install->validateConfigFiles($http_server);
}
/**
 * write files and check to see if they're valid
 */
if ($result == false || $action == 'write') {
  $result = $zc_install->writeConfigFiles();
}

// if config files wrote okay, carry on to next step
if ($result == true) {
  $zc_install->resetConfigKeys();
  $zc_install->resetConfigInfo();
  header('location: index.php?main_page=store_setup' /*. zcInstallAddSID()*/ );
  exit;
} else {
  $flag_check_config_keys = true;
}
// otherwise, proceed with displaying file contents for manual setup -- (copy/paste from template output)
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -