function setting() { if (!has_supported_gd()) { $checked = 'checked="checked"'; $disabled = 'disabled="true"'; } else { $checked = ''; $disabled = ''; } $show_timezone = PHP_VERSION >= '5.1' ? 'yes' : 'no'; $ui = !empty($_POST['user_interface']) ? $_POST['user_interface'] : "seevia"; $ucapi = !empty($_POST['ucapi']) ? $_POST['ucapi'] : "seevia"; $ucfounderpw = !empty($_POST['ucfounderpw']) ? $_POST['ucfounderpw'] : "seevia"; $this->set('ucapi', $ucapi); $this->set('ucfounderpw', $ucfounderpw); $this->set('installer_lang', $this->installer_lang); $this->set('checked', $checked); $this->set('disabled', $disabled); $this->set('show_timezone', $show_timezone); $this->set('local_timezone', get_local_timezone()); $this->set('timezones', get_timezone_list($this->installer_lang)); $this->set('userinterface', $ui); }
$_SESSION['setting_ui']['installer_lang'] = $installer_lang; $_SESSION['setting_ui']['checked'] = $checked; $_SESSION['setting_ui']['disabled'] = $disabled; $_SESSION['setting_ui']['goods_types'] = $goods_types; $_SESSION['setting_ui']['show_timezone'] = $show_timezone; $_SESSION['setting_ui']['local_timezone'] = get_local_timezone(); $_SESSION['setting_ui']['timezones'] = $timezones; $_SESSION['setting_ui']['userinterface'] = empty($_GET['ui']) ? 'ecshop' : $_GET['ui']; $smarty->assign('ucapi', $_POST['ucapi']); $smarty->assign('ucfounderpw', $_POST['ucfounderpw']); $smarty->assign('installer_lang', $installer_lang); $smarty->assign('checked', $checked); $smarty->assign('disabled', $disabled); $smarty->assign('goods_types', $goods_types); $smarty->assign('show_timezone', $show_timezone); $smarty->assign('local_timezone', get_local_timezone()); $smarty->assign('timezones', $timezones); $smarty->assign('userinterface', empty($_GET['ui']) ? 'ecshop' : $_GET['ui']); $smarty->display('setting.php'); break; case 'get_db_list': $db_host = isset($_POST['db_host']) ? trim($_POST['db_host']) : ''; $db_port = isset($_POST['db_port']) ? trim($_POST['db_port']) : ''; $db_user = isset($_POST['db_user']) ? trim($_POST['db_user']) : ''; $db_pass = isset($_POST['db_pass']) ? trim($_POST['db_pass']) : ''; include_once ROOT_PATH . 'includes/cls_json.php'; $json = new JSON(); $databases = get_db_list($db_host, $db_port, $db_user, $db_pass); if ($databases === false) { echo $json->encode(implode(',', $err->get_all())); } else {