一個程序下載的管理程序三

//後臺程序sign.php源代碼如下:

<?
if($action=="sign")
{
if($say==""||$title==""||$url==""||$size=="")
{
header("location:../message.php?message=資料不完整&redirect=download/download.php?page=0%26action=publish");
break;
} $say=htmlspecialchars($say);
$title=htmlspecialchars($title);
$say=str_replace(" ","&nbsp",$say);
$say=nl2br($say);
$now_time=getdate();
$ttime=$now_time["year"]."-".$now_time["mon"]."-".$now_time["mday"]." ".$now_time["hours"].":".$now_time["minutes"].":".$now_time["seconds"];
$str="insert into download (title,say,click,ttime,url,size,type) values (".$title.",".$say.",0,#".$ttime."#,".$url.",".$size.",".$type.")";

mysql_query($str,$cn);
header("location:download.php?page=0&action=show");
}
if($action=="download")
{
mysql_query("update download set click=click+1 where id=".$id,$cn);
?>
<?
header("Content-type: text/html");
if(header("location:$url"))
echo "error";
?>

">如果你的瀏覽器沒有彈出下載窗口,請點這裡
關閉窗口
 

<?if($action=="mail")
{
mail("khj99@163.net","該鏈接有問題,請更正","id=$id;程序名=$title;類別=$type","From:khj99@163.netnReply-To:khj99@163.netn");
header("location:download.php?action=show&type=$type");
}
?>

發佈留言