2024-10-10

This commit is contained in:
2024-10-10 12:56:56 +08:00
commit 7b347c848a
2648 changed files with 643965 additions and 0 deletions

59
web/bbs.php Normal file
View File

@@ -0,0 +1,59 @@
<!-- /web/bbs.php -->
<?php
require_once("./include/db_info.inc.php");
if($OJ_BBS===false || (isset($OJ_EXAM_CONTEST_ID) && $OJ_EXAM_CONTEST_ID>0))
{
header("Content-type: text/html; charset=utf-8");
echo $MSG_BBS_NOT_ALLOWED_FOR_EXAM;
exit ();
}
$parm = "";
if(isset($_GET['pid']))
{
$pid = intval($_GET['pid']);
$parm = "pid=".$pid;
}
else
{
$pid = 0;
}
if(isset($_GET['cid']))
{
$cid = intval($_GET['cid']);
$parm .= "&cid=".$cid;
}
else
{
$cid = 0;
}
if($OJ_BBS == "discuss")
{
echo ("<script>location.href='discuss/discuss.php?".$parm."';</script>");
}
else if($OJ_BBS == "discuss3")
{
if($parm == "")
echo ("<script>location.href='discuss.php';</script>");
else
echo ("<script>location.href='discuss.php?".$parm."';</script>");
}
else
{
if(isset($_GET['pid']))
{
$url = ("bbs/search.php?fid[]=2&keywords=".$pid); //chenge this to your own phpBB search link
}
else
{
$url = ("bbs/");
}
echo ("<script>location.href='".$url."';</script>");
}
?>