1 Star 3 Fork 2

mojie126/HDCN-PT

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
notice.php 1.27 KB
Copy Edit Raw Blame History
<?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();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mojie126/HDCN-PT.git
git@gitee.com:mojie126/HDCN-PT.git
mojie126
HDCN-PT
HDCN-PT
master

Search