"; $mytid = $_GET['mytid']; $mypartid = $_GET['mypartid']; $noday = $_GET['noday']; $nopart = $_GET['nopart']; $show = $_GET['show']; $myday = $_GET['myday']; $noyear = $_GET['noyear']; $nomonth = $_GET['nomonth']; $myyear = $_GET['myyear']; $mymonth = $_GET['mymonth']; $usenuke = $_GET['usenuke']; if (!($mysearch = $_POST['mysearch'])) $mysearch = $_GET['mysearch']; if ($bg_rand != "yes") { $mybg = bg($showbg); } else { include ("inc/bgrand.inc.php"); $mybg = bg($outbg); } if (!ereg("^[0-9]+$", $mytid)) { echo "公告編號錯誤!"; exit; } $link = "select * from titletb where tid='$mytid'"; $sql_act = "array"; include ("inc/sql.inc.php"); if ($number == 0) { echo "沒有這篇公告!"; exit; } $tid = $row[tid]; $partname = $row[partname]; $subject = stripslashes($row[subject]); $posttime = $row[posttime]; $firsttime = $row[firsttime]; $gpartid = $row[partid]; $hits = $row[hits]; $type = $row[type]; $mylocal = $row[local]; $hits++; $link = "update titletb set hits='$hits' where tid='$mytid'"; $sql_act = "do"; include ("inc/sql.inc.php"); $link = "select * from anntb where tid='$mytid'"; $sql_act = "array"; include ("inc/sql.inc.php"); if ($mylocal == "yes") { $issee = "no"; $islocal = strtok($local, " "); while ($islocal && $issee == "no") { $tmp_end = substr($islocal, -1); $tmp_ip = explode(".", $islocal); if (strstr($tmp_ip[3], "-")) { $tmp_ipc = explode("-", $tmp_ip[3]); $tmp_ipk = $tmp_ip[0].".".$tmp_ip[1].".".$tmp_ip[2]."."; if (eregi("^" . $tmp_ipk, $myip)) { $tmp_ipf = explode(".", $myip); if ($tmp_ipc[0] <= $tmp_ipf[3] && $tmp_ipc[1] >= $tmp_ipf[3]) $issee = "ok"; } } else if (strstr($tmp_end, ".")) { if (eregi("^" . $islocal, $myip)) $issee = "ok"; } else { if (strstr($islocal, $myip)) $issee = "ok"; } $islocal = strtok(" "); } } if ($issee == "no") { if ($out_see == "yes") { $tmp_host = $myhost; if ($userauth == "xoops") { if (empty($xoopspath)) $xoopspath = "../xoops"; include("$xoopspath/mainfile.php"); if ($userauth == "xoops" && !$xoopsUser) { redirect_header(XOOPS_URL,3,'未獲授權用本模組'); exit; } } else { if ($hide_admin_id != "no") { $id_data = $hide_admin_id.strlen($hide_admin_id); if ($_SESSION[$hide_admin_id] != $id_data) { echo " 無法操作此項功能!請洽管理員。"; exit; } } $auth = 1; include("auth_by_ezf123.php"); } $myhost = $tmp_host; } else { echo "此為內部公告,或沒有此公告內容!"; echo "[返回]"; exit; } } include ("inc/init.inc.php"); echo ""; if ($number == 0) { $link = "delete from titletb where tid='$mytid'"; $sql_act = "do"; include ("inc/sql.inc.php"); if ($usenuke == 1) $tmpurl = "/index.php?usenuke=1"; echo "沒有此公告內容!"; echo "[返回]"; exit; } $guserid = $row[userid]; $ip = $row[ip]; $filename = stripslashes($row[filename]); $url = stripslashes($row[url]); if (ereg("<", $row[comment])) { $hh = 1; $comment = $row[comment]; } else { if ($nl2br == "yes") $comment = nl2br($row[comment]); else $comment = ereg_replace($nl2br, "
", $row[comment]); } if ($space == "yes" && $hh != 1) $comment = ereg_replace(" ", "  ", stripslashes($comment)); else $comment = stripslashes($comment); $link = "select realname, email from usertb where userid='$guserid'"; $sql_act = "array"; include ("inc/sql.inc.php"); if ($number != 0) { $realname = stripslashes($row[realname]); $email = stripslashes($row[email]); } else $realname = "無此人"; echo "
"; include ("inc/myhost.inc.php"); echo "

"; $mybg = bg($showtable); $mytbg1 = bg($showtbg1); $mytbg2 = bg($showtbg2); $myt1 = bg($showt1); $myt2 = bg($showt2); echo "[返回上一頁]  "; echo "[回首頁]"; echo ""; $mybg1 = bg($showrow2); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $mycbg = bg($showcbg); $myc = bg($showc); if ($hh == 1) { echo "
單位$partname發公告者"; if (empty($email)) echo "$realname"; else echo "$realname"; echo ""; if ($showip == "yes") $myip = $ip; elseif ($showip == "no") { $ip3 = explode(".", $ip); // 把 ip 切出來 $myip = $ip3[0].".".$ip3[1].".?.?"; } else $myip = $showip; echo "來源$myip
標題$subject相關網址"; if (empty($url)) echo "無"; else echo ""; //elseif (ereg("://", $url)) // echo "有 <按我>"; //else // echo "有 <按我>"; echo "人氣$hits
時間"; $mydate = explode(" ",$firsttime); $mydate = explode("-",$mydate[0]); if ($database == "mysql" && $mydate[0] != "0000" || $database == "pgsql" && $mydate[0] != "0001") echo "$firsttime (最新編修時間 ".$posttime.")"; else echo "$posttime"; echo "相關附件"; if (empty($filename)) echo "無"; else echo ""; echo "管理"; echo "刪除 "; echo "編修"; echo "

"; echo "".$comment."
 
"; echo "
"; } else { echo "
"; } $mypbg = bg($showpbg); if (!empty($url)) { $uu = strtok($url, " "); $i = 0; while ($uu) { echo ""; $uu = strtok(" "); $i++; } } if (!empty($filename)) { $ff = strtok($filename, " "); $i = 0; while ($ff) { $fp = "files"."/".$gpartid."/".$guserid."/".$ff; if (file_exists($fp)) { $fs = intval(filesize($fp) / 1024); echo ""; } else echo ""; $ff = strtok(" "); $i++; } } echo "
".$comment."
 
"; $myu = explode("!",$uu); if (empty($myu[1])) $myu[1] = $myu[0]; if (ereg("://", $myu[0])) echo "★相關網址".($i+1).":".$myu[1].""; else echo "★相關網址".($i+1).":".$myu[1].""; echo "
★相關附件".($i+1).":".$ff." (大小:".$fs."K 時間:". date("Y-m-d H:i:s", filemtime($fp)).")
★相關附件".($i+1).":".$ff." (檔案已不存在!)

"; echo "[返回上一頁]  "; echo "[回首頁]"; echo ""; include ("conf/mysite.inc.php"); if ($usenuke == 1) include("$nuke_dir/footer.php"); echo ""; ?>