|
include "news_left.htm" ?>
|
|
|
 |
| |
|
include "../common/auth_db/config.inc";
include "../common/auth_db/gongji.cfg";
include "../common/auth_db/function.inc";
$query="SELECT * FROM recent_news WHERE uid=$number limit 1";
$result=mysqli_query($db, $query);
if(!$result) {
error("QUERY_ERROR");
exit;
}
$row=mysqli_fetch_row($result);
$my_uid=$row[0];
$my_fid=$row[1];
$my_name=$row[2];
$my_email=$row[3];
$my_class=$row[4];
$my_subject=$row[5];
$my_comment=$row[6];
$my_signdate=date("Y-m-d H:i",$row[7]);
$my_ref=$row[8];
$my_thread=$row[9];
$my_filename=$row[10];
$my_filesize=(int)($row[11]/1000);
$my_passwd=$row[12];
$my_ip=$row[13];
$my_comment=stripslashes($my_comment);
$savedir="../admin/recent_news/recent_files";
if($keyfield === "comment" && $key) {
$my_comment=eregi_replace("($key)", "\\1", $my_comment);
}
if(!$allow_html) {
$my_comment=htmlspecialchars($my_comment);
}
$my_comment=nl2br($my_comment);
$my_ref=$my_ref + 1;
$result=mysql_query("UPDATE recent_news SET ref=$my_ref WHERE uid=$number");
if(!$result) {
error("QUERY_ERROR");
exit;
}
echo("
|
|
|
|