//後台程式sign.php來源程式碼如下:
if($action=="sign")
{
if($say==""||$title==""||$url==""||$size== "")
{
header("位置: ../message.php?message=資料不完整&redirect=download/download.php?page=0&action=publish");
休息;
} $say=htmlspecialchars($say) ; title=htmlspecialchars($title);
$say=str_replace(" "," ",$say);
;
$ttime=$now_time["year"]."-".$now_time["mon"]."-".$now_time["mday"]." ".$now_time["hours"]." : ".$now_time["分鐘"].":".$now_time["秒"];
$str="插入下載(標題、例如、點擊、ttime、url、大小、類型)值('" .$title."','".$say."',0,'#" .$ttime."#','".$url."','".$size."',".$ type.")";
mysql_query($str,$cn);
header("location:download.php?page=0&action=show");
header("location:download.php?page=0&action=show");
}
}
; >if($action=="下載")
{
mysql_query("更新下載集click=click 1 where id=".$id,$cn);
? >
header("內容類型:text/html");
if(header("location:$url"))
echo "error";
? >