include ("conf/config.inc.php"); if ($userauth == "xoops") { if (empty($xoopspath)) $xoopspath = "../xoops"; include("$xoopspath/mainfile.php"); } if ($out_see == "yes" && $userauth != "xoops") include("auth_by_ezf123.php"); else session_start(); include ("conf/defconf.inc.php"); include ("inc/sslhost.inc.php"); include ("inc/backgroup.inc.php"); if (!($do = $_GET['do'])) if (!($do = $_POST['do'])) $do = $_SESSION["do"]; if (!($mypartid = $_GET['mypartid'])) if (!($mypartid = $_POST['mypartid'])) $mypartid = $_SESSION["mypartid"]; if ($userauth == "xoops") $mypartid = $_GET['mypartid']; if (!($mytid = $_GET['mytid'])) if (!($mytid = $_POST['mytid'])) $mytid = $_SESSION["mytid"]; $_SESSION["usenuke"] = $_GET['usenuke']; $_SESSION["myid"] = $_POST['myid']; $_SESSION["mypwd"] = $_POST['mypwd']; $_SESSION["active"] = $_POST['active']; $_SESSION["myday"] = $_POST['myday']; $_SESSION["show"] = $_POST['show']; $_SESSION["nopart"] = $_POST['nopart']; $_SESSION["post_year"] = $_POST['post_year']; $_SESSION["post_month"] = $_POST['post_month']; $_SESSION["post_day"] = $_POST['post_day']; if ($do) $_SESSION["do"] = $do; if ($mypartid) $_SESSION["mypartid"] = $mypartid; if ($mytid) $_SESSION["mytid"] = $mytid; if ($_SESSION["myid"]) $myid = $_SESSION["myid"]; if ($_SESSION["mypwd"]) $mypwd = $_SESSION["mypwd"]; if ($_SESSION["active"]) $active = $_SESSION["active"]; if ($_SESSION["myday"]) $myday = $_SESSION["myday"]; if ($_SESSION["show"]) $show = $_SESSION["show"]; if ($nopart = $_SESSION["nopart"]) $nopart = $_SESSION["nopart"]; if ($_SESSION['post_year']) $post_year = $_SESSION['post_year']; if ($_SESSION['post_month']) $post_month = $_SESSION['post_month']; if ($_SESSION['post_day']) $post_day = $_SESSION['post_day']; if ($userauth == "xoops" && !$xoopsUser && $mypartid) { redirect_header(XOOPS_URL,3,'未獲授權用本模組'); exit; } if ($hide_admin_id != "no") { $id_data = $hide_admin_id.strlen($hide_admin_id); if ($_SESSION[$hide_admin_id] != $id_data) { echo " 無法操作此項功能!請洽管理員。"; exit; } } if ($active == 1 || ($userauth == "xoops" && $xoopsUser && $mypartid)) { if (ereg("^[a-zA-Z]", $mypartid)) { $link = "select partid from parttb where pid='$mypartid'"; $sql_act = "array"; include ("inc/sql.inc.php"); $mypartid = $row[partid]; } if ($do == "select") { header("Location:$myhost/index.php?mypartid=$mypartid&usenuke=$usenuke"); exit; } include ("inc/enter.inc.php"); switch($do) { case "add": header("Location:$myhost/add.php?mypartid=$mypartid&usenuke=$usenuke"); exit; break; case "edit": header("Location:$myhost/add.php?mypartid=$mypartid&mytid=$mytid&do=$do&usenuke=$usenuke"); exit; break; case "del": header("Location:$myhost/del.php?mypartid=$mypartid&mytid=$mytid&show=$show&myday=$myday&do=del&noday=$noday&nopart=$nopart&noyear=$noyear&nomonth=$nomonth&myyear=$myyear&mymonth=$mymonth&usenuke=$usenuke"); exit; break; case "admin": default: header("Location:$myhost/admin.php?mypartid=$mypartid&usenuke=$usenuke"); exit; break; } } include ("inc/bgrand.inc.php"); ?> if ($bg_rand != "yes") $mybg = bg($enterbg); else $mybg = bg($outbg); echo "
"; echo "