Fetch the repository succeeded.
<?php
require "include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < $staffmem_class) {
stderr("错误", "权限不足");
}
stdhead("小公告设置");
$aurl = "[url]" . get_protocol_prefix() . $BASEURL . "[/url]";
$burl = "[url=" . get_protocol_prefix() . $BASEURL . "]" . PROJECTNAME . "[/url]";
$notice = mysql_fetch_array(sql_query("SELECT noticeoff, notice FROM notice ORDER BY id DESC LIMIT 1"));
?>
<div>
<form method="post" action="takenotice.php">
是否开启小公告:<input name="noticeoff" type="radio" <?= $notice['noticeoff'] == 'yes' ? "checked" : "" ?> value="yes" />开<input name="noticeoff" type="radio" <?= $notice['noticeoff'] == 'no' ? "checked" : "" ?> value="no" />关<br /><br />
<textarea name='notice' style='width:600px; height:200px;'><?= $notice['notice'] ?></textarea><br /><br />
<table style="background:none repeat scroll;" align="center">
<td>
<div style="margin:10px;">
代码:<?= $aurl ?><br />效果:<?= format_comment($aurl) ?><hr>
代码:<?= $burl ?><br />效果:<?= format_comment($burl) ?><hr>
遵循BBCode语法,<a href="tags.php" target="_blank">点此查看</a>
</div>
</td>
</table><br />
<input type="submit" name="submit" value="提交" />
</form>
</div>
<?php
stdfoot();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。