<?php define('ROOT_PATH', str_replace("\\", "/", realpath(dirname(__FILE__) . "/../../"))); require ROOT_PATH . "/include/config.php"; require ROOT_PATH . "/include/parameter.php"; include ROOT_PATH . "/source/function/etag.php"; require ROOT_PATH . "/source/function/global.php"; require ROOT_PATH . "/source/function/web.php"; require ROOT_PATH . "/source/function/admin.php"; require ROOT_PATH . "/source/class/abstract.class.php"; require ROOT_PATH . "/source/class/mystep.class.php"; $mystep = new MyStep(); $mystep->getLanguage(dirname(ROOT_PATH . $_SERVER['PHP_SELF']) . "/language/"); $mystep->pageStart(true); $db->Reconnect(true, $setting['db']['name']); $method = $req->getGet("method"); if (empty($method)) { $method = "list"; } $mid = $req->getReq("mid"); $id = $req->getReq("id"); $field = $req->getReq("f"); if (empty($field) || empty($id)) { header("HTTP/1.0 404 Not Found"); $db->close(); unset($db, $req); exit; } if ($data = $db->result($setting['db']['pre'] . "custom_form_" . $mid, $field, array("id", "n=", $id))) { $data = explode("::", $data); $the_file = dirname(__FILE__) . "/setting/" . $mid . "/" . $data[2];
<?php define('ROOT_PATH', str_replace("\\", "/", realpath(dirname(__FILE__) . "/../"))); require ROOT_PATH . "/include/config.php"; require ROOT_PATH . "/include/parameter.php"; require ROOT_PATH . "/source/function/global.php"; require ROOT_PATH . "/source/function/web.php"; require ROOT_PATH . "/source/function/admin.php"; require ROOT_PATH . "/source/class/abstract.class.php"; require ROOT_PATH . "/source/class/mystep.class.php"; header("Expires: -1"); header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0", false); header("Pragma: no-cache"); $mystep = new MyStep(); $mystep->getLanguage(dirname(__FILE__) . "/language/"); $mystep->pageStart(); $db->Reconnect(true, $setting['db']['name']); $setting['gen']['minify'] = false; $usergroup = $req->getSession("usergroup"); if ($usergroup === 0) { $goto_url = "../"; $mystep->pageEnd(false); } $group = getParaInfo("user_group", "group_id", $usergroup); if ($setting['info']['self'] == "login.php") { $method = $req->getServer("QUERY_STRING"); if (!empty($group['power_func']) && $method != "logout") { $goto_url = "./index.php"; $mystep->pageEnd(false); } } else {