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);
 }
Exemple #2
0
     $smarty->assign('disabled', $disabled);
     $smarty->assign('userinterface', $ui);
     $smarty->display('checking.php');
     break;
 case 'setting_ui':
     $prefix = 'ecs_';
     if (file_exists(ROOT_PATH . 'install/data/inc_goods_type_' . $installer_lang . '.php')) {
         include_once ROOT_PATH . 'install/data/inc_goods_type_' . $installer_lang . '.php';
     } else {
         include_once ROOT_PATH . 'install/data/inc_goods_type_zh_cn.php';
     }
     $goods_types = array();
     foreach ($attributes as $key => $val) {
         $goods_types[$key] = $_LANG[$key];
     }
     if (!has_supported_gd()) {
         $checked = 'checked="checked"';
         $disabled = 'disabled="true"';
     } else {
         $checked = '';
         $disabled = '';
     }
     $show_timezone = PHP_VERSION >= '5.1' ? 'yes' : 'no';
     $timezones = get_timezone_list($installer_lang);
     $_SESSION['setting_ui']['ucapi'] = $_POST['ucapi'];
     $_SESSION['setting_ui']['ucfounderpw'] = $_POST['ucfounderpw'];
     $_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;