session_start();
$iscon = array();
include("../data/_config.php");
include("../data/_group.php");
include("../data/_icon.php");
include("./lang.php");
include("../data/_isconfig.v7.php");
include("./class.post.php");
include("./print.html.php");
$iscon["dotpath"]=".";
if(isset($_POST["action"])) $action = $_POST["action"]; else $action = "";
switch ($action) {
case("movetopic"):
if($idcat = moveto($_POST["idcat"], $_POST["oldidcat"], $_POST["cid"], $_POST["num"])){
echo "
";
echo "";
exit();
}
break;
case("setting"):
saveconfig();
break;
case("group"):
savegroup();
break;
case("icon"):
saveicon();
break;
case("newadmin"):
newadmin();
break;
case("banner"):
writejs(1);
writejs(2);
break;
default:
if(isset($_GET["action"])) $action = $_GET["action"]; else $action = "";
switch ($action) {
case("deltopic"):
deletetopic($_GET["id"]);
break;
case("delaw"):
deleteaw($_GET["id"], $_GET["t"]);
$isboard = new showhtml();
$isboard->printhtml($_GET["t"], true);
break;
case("delins"):
deleteinsert($_GET["id"], $_GET["t"]);
$isboard = new showhtml();
$isboard->printhtml($_GET["t"], true);
break;
case("nortopic"):
sethighlight($_GET["id"], "0");
break;
case("hitopic"):
sethighlight($_GET["id"], "1");
break;
case("showtopic"):
setactive($_GET["id"]);
break;
case("deluser"):
deleteuser($_GET["id"], $_GET["tb"]);
break;
case("icon"):
deletefile($iscon["dotpath"]."./data/icon/i".$_GET["id"].".gif");
break;
case("delgroup"):
deletegroup($_GET["id"]);
echo "";
echo "";
exit();
break;
default:
}
}
echo "";
echo "";
?>