ss7.5聚合DZ7.2设置提示论坛路径错误的方法

时间: 2010-03-14 / 分类: 网站技术 / 被围观: 1,617 次 / 0个评论 发表评论

打开ss的admin目录的admin_bbs.php文件,找到以下代码:

$_SC[‘bbsurl’] = trim($_POST[‘bbsurl’]);
$txt = sreadfile($_SC[‘bbsurl’].’/viewthread.php’, ‘r’, 1);
if(strlen($txt) < 100) {
  showmessage(‘bbs_url_error’, CPURL.’?action=bbs&error=bbsurl’);
}

替换为:

$_SC[‘bbsurl’] = trim($_POST[‘bbsurl’]);
//echo “<script>alert(‘”.$_SC[‘bbsurl’].”‘);</script>”;
$txt = sreadfile($_POST[‘bbsurl’].’/index.php’, ‘r’, 1);
if(strlen($txt) < 100) {
  showmessage(‘bbs_url_error’, CPURL.’?action=bbs&error=bbsurl’);
}

Comments are closed.