|
include "news_left.htm" ?>
|
|
|
 |
| |
|
include "../admin/auth_db/config.inc";
include "../admin/auth_db/gongji.cfg";
include "../admin/auth_db/function.inc";
$query="SELECT * FROM areanews 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_subject=$row[4];
$my_comment=$row[5];
$my_signdate=date("Y-m-d H:i",$row[6]);
$my_ref=$row[7];
$my_thread=$row[8];
$my_filename=$row[9];
$my_filesize=(int)($row[10]/1000);
$my_passwd=$row[11];
$my_ip=$row[12];
$my_subject=stripslashes($my_subject);
$my_comment=stripslashes($my_comment);
$my_subject=htmlspecialchars($my_subject);
$savedir="../admin/areanews/areanews_files";
if($keyfield === "subject" && $key) {
$my_subject=preg_replace("/(\$key)/i", "\\1", $my_subject);
}
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 areanews SET ref=$my_ref WHERE uid=$number");
if(!$result) {
error("QUERY_ERROR");
exit;
}
echo("
|
|
|
|