} $ui = !empty($_POST['user_interface']) ? $_POST['user_interface'] : $_GET['ui']; $_SESSION['check']['ucapi'] = $_POST['ucapi']; $_SESSION['check']['ucfounderpw'] = $_POST['ucfounderpw']; $_SESSION['check']['installer_lang'] = $installer_lang; $_SESSION['check']['system_info'] = get_system_info(); $_SESSION['check']['dir_checking'] = $dir_checking['detail']; $_SESSION['check']['has_unwritable_tpl'] = $has_unwritable_tpl; $_SESSION['check']['template_checking'] = $template_checking; $_SESSION['check']['rename_priv'] = $rename_priv; $_SESSION['check']['disabled'] = $disabled; $_SESSION['check']['userinterface'] = $ui; $smarty->assign('ucapi', $_POST['ucapi']); $smarty->assign('ucfounderpw', $_POST['ucfounderpw']); $smarty->assign('installer_lang', $installer_lang); $smarty->assign('system_info', get_system_info()); $smarty->assign('dir_checking', $dir_checking['detail']); $smarty->assign('has_unwritable_tpl', $has_unwritable_tpl); $smarty->assign('template_checking', $template_checking); $smarty->assign('rename_priv', $rename_priv); $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'; }
function index($page = 1) { $flag = false; $lock = true; $this->set('flag', $flag); $path = WWW_ROOT . '/data/install.lock'; if (!file_exists($path)) { $lock = false; } $agreement_path = WWW_ROOT . '/data/tools/agreement.txt'; if (file_exists($agreement_path)) { $agreement = fopen($agreement_path, "r"); flock($agreement, LOCK_EX); $content = fread($agreement, filesize($agreement_path)); flock($agreement, LOCK_UN); $this->set('agreement', $content); fclose($agreement); } $this->set('lock', $lock); include_once ROOT_PATH . 'tools/controllers/includes/lib_env_checker.php'; include_once ROOT_PATH . 'tools/controllers/includes/checking_dirs.php'; $dir_checking = check_dirs_priv($checking_dirs, $this->_LANG); $templates_root = array('temp' => dirname(ROOT_PATH) . '/app/web/views/themed'); $this->set('templates_root', $templates_root); $template_checking = check_templates_priv($templates_root); $rename_priv = check_rename_priv(); $disabled = '""'; if ($dir_checking['result'] === 'ERROR' || !empty($template_checking) || !empty($rename_priv) || !function_exists('mysql_connect')) { $disabled = 'disabled="true"'; } $has_unwritable_tpl = 'yes'; if (empty($template_checking)) { $template_checking = $this->_LANG['all_are_writable']; $has_unwritable_tpl = '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('system_info', get_system_info($this->_LANG)); if (!empty(get_system_info($this->_LANG))) { $flag = true; $this->set('flag', $flag); } $this->set('dir_checking', $dir_checking['detail']); $this->set('has_unwritable_tpl', $has_unwritable_tpl); $this->set('template_checking', $template_checking); $this->set('rename_priv', $rename_priv); if (isset($_REQUEST["is_ajax"]) && $_REQUEST["is_ajax"] == 1) { Configure::write('debug', 0); $this->layout = "ajax"; $result['lock'] = $lock; $result['system_info'] = get_system_info($this->_LANG); $result['dir_checking'] = $dir_checking['detail']; $result['template_checking'] = $template_checking; $result['has_unwritable_tpl'] = $has_unwritable_tpl; $result['disabled'] = $disabled; die(json_encode($result)); } $this->set('disabled', $disabled); $this->set('userinterface', $ui); $this->set("title_for_layout", 'Seevia-O2O安装'); }
$tainted = 'FALSE'; } else { $tainted = 'TRUE'; } mail('*****@*****.**', 'phpGACL Report... ', "" . $system_information . "\n\nTainted: {$tainted}"); return $tainted; } switch ($_POST['action']) { case 'Submit': $gacl_api->debug_text("Submit!!"); submit_system_info($_POST['system_information'], $_POST['system_info_md5']); echo "<div align=center>Thanks for contributing to phpGACL. <br> Click <a href=\"acl_list.php\">here</a> to proceed to the Administration Interface.</div><br>\n"; exit; break; default: $system_info = get_system_info(); //Read credits. $smarty->assign("credits", htmlentities(implode('', file('../CREDITS')))); $smarty->assign("system_info", $system_info); $smarty->assign("system_info_md5", md5($system_info)); break; } $smarty->assign("first_run", $_GET['first_run']); $smarty->assign("return_page", $_SERVER['PHP_SELF']); $smarty->assign('current', 'about'); if ($_GET['first_run']) { $smarty->assign('page_title', 'Installation Report'); $smarty->assign('hidemenu', 1); } else { $smarty->assign('page_title', 'About phpGACL'); }