--- fenglin/www/journal.php 2025/03/12 13:28:32 1.11 +++ fenglin/www/journal.php 2025/03/28 05:50:18 1.12 @@ -1,4 +1,8 @@ + require_once "../lib/db_open.inc.php"; + require_once "../lib/common.inc.php"; +?> + if (isset($_GET["jid"])) $jid=intval($_GET["jid"]); else @@ -8,12 +12,10 @@ else $uid=0; if (isset($_GET["as_email"])) - $base_url="https://www.fenglin.info"; + $base_url="https://" . $BBS_host_name; else $base_url=""; - $db_conn=include "./db_open.inc.php"; - $rs=mysql_query("select * from journal_index where JID=$jid and enable") or die("Query journal_index error!"); if ($row=mysql_fetch_array($rs)) @@ -72,7 +74,6 @@ mysql_free_result($rs); $class_list=substr($class_list,0,strlen($class_list)-1); ?> -