-
Notifications
You must be signed in to change notification settings - Fork 2
/
bbsclear.php
36 lines (31 loc) · 908 Bytes
/
bbsclear.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
require("www2-funcs.php");
login_init();
if (isset($_GET['board']))
$board = $_GET['board'];
elseif (isset($_POST['board']))
$board = $_POST['board'];
else
die;
$brdarr = array();
$isnormalboard = bbs_safe_getboard(0, $board, $brdarr);
if (is_null($isnormalboard)) {
die;
}
if ($brdarr["FLAG"]&BBS_BOARD_GROUP)
die;
$board = $brdarr["NAME"];
$bid = $brdarr["BID"];
$guest = (!strcmp($currentuser['userid'],'guest'));
if ($isnormalboard && (isset($_GET["kbsrc"]))) {
// this could be cacheable... - atppp
} else {
if (!$guest) bbs_brcclear($board);
}
$id = $brdarr["LASTPOST"];
$page_title = "<a href=\"bbsdoc.php?board=".$board."\">".htmlspecialchars($brdarr["DESC"])."</a>";
$metas = "<meta http-equiv='refresh' content='0; url=bbsdoc.php?board=".urlencode($board)."'/>";
page_header("Çå³ýδ¶Á¼Ç¼", $page_title, $metas);
echo "<div id='kbsrcInfo'>con,$bid,$id,f</div>";
page_footer();
?>