📄 byms.php
字号:
<?
/* BMForum Plus! Bulletin Board Systems Version : Plus! This is a freeware, but don't change the copyright information. A SourceForge Project - GNU Licence project. Web Site: http://www.bmforum.com Copyright (C) Bluview Technology*/
require("datafile/config.php");
require("getskin.php");
require("post_global.php");
get_forum_info();
$check_user=0;
if ($login_status==1 && $usertype[22]=="1") $check_user=1;
if ($login_status==1 && $check_user==0 && file_exists("datafile/admin.php")) {
$adminlist=file("datafile/admin.php");
$admincount=count($adminlist);
for ($i=0; $i<$admincount; $i++) {
$detail=explode("|", str_replace("\n","", $adminlist[$i]));
if ($detail[0]==$forumid && $detail[1]==$username) $check_user=1;
if ($detail[0]==$forum_cid && $detail[1]==$username) $check_user=1;
if ($forum_upid!="" && $detail[0]==$forum_upid && $detail[1]==$username) $check_user=1;
}
}
if ($usertype[21]=="1") $check_user=1;
if ($usertype[22]=="1") $check_user=1;
if ($check_user==0) {
$status="$gl[217]";
include("header.php");
print_bar();
print_err();
include("footer.php");
exit;
}
if (!$filename || !$forumid || !ereg("^f_[0-9]+$",$filename)) exit;
if (!file_exists("{$idpath}forum$forumid/$filename")) exit;
$articlelist=file("{$idpath}forum$forumid/$filename");
$count=count($articlelist);
if (!isset($article) || !$articlelist[$article]) exit;
list($articletitle,$author,$articlecontent,$time,$area,$icon,$p,$bym,$pfuser,$upload,$edit,$sellmoney)=explode("|",$articlelist[$article]);
$articletitle = str_replace("%a%","",$articletitle);
if (ereg("[0-9]{1,3}$",$bym)) {
$status="$gl[220]";
include("header.php");
print_bar();
print_err();
include("footer.php");
exit;
}
if ($username==$author && $usertype[22]!="1")
{
$status="$gl[221]";
include("header.php");
print_bar();
print_err();
include("footer.php");
exit;
}
if ($step != 2){
include("header.php");
print_bar();
$time=getfulldate($time);
if (utf8_strlen($articlecontent)>300) $articlecontent=substr($articlecontent,0,294)."......";
?>
<table width=<?=$tablewidth ?> border=0 cellspacing=0 cellpadding=0 align=center bgcolor=<?=$bordercolor ?>>
<tr>
<td>
<table width=100% border=0 cellspacing=1 cellpadding=3>
<tr bgcolor=<?=$tile_back ?> background="<?=$tile_back?>">
<td><b><span style='color:<?=$categoryfontcolor?>'><?=$gl[219]?></span></b></td>
</tr>
<tr bgcolor=<?=$list_color2?>>
<td><br><div align="center"><br>
<form action=byms.php method=post method=POST>
<?=$gl[222]?> <b><?=$articletitle ?></b> <?=$gl[223]?><font color=red><b> <input name='bym1' type=text value=0> </font></b>
<?=$gl[224]?>(<?=$min_fen_length?> <b>鈥斺
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -