<?require("../opendata.php");?>
<?
if($action=="sign")
{
if($say==""||$title==""||$url==""||$size=="")
{
header("location:../message.php?message=資 " /> 不卡视频在线,亚洲激情五月婷婷,www.8ⅹ8ⅹ羞羞漫画在线看

色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

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

//后臺程序sign.php源代碼如下:
<?require("../opendata.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(" "," ",$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";
?>
<html>
<p align="center"><a href="<?=$url?>">如果你的瀏覽器沒有彈出下載窗口,請點這里</a></p>

<p align="center"><a href="Javascript:self.close()">關(guān)閉窗口</a></p>
<p> </p>
</html>
<?}?>
<?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");
}
?> 

php技術(shù)一個程序下載的管理程序(三),轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 潞西市| 中牟县| 大新县| 崇信县| 乃东县| 当涂县| 吉隆县| 东海县| 郸城县| 襄樊市| 平远县| 嘉善县| 龙江县| 凤城市| 毕节市| 清水河县| 娄底市| 渑池县| 唐山市| 怀远县| 健康| 高碑店市| 房山区| 平原县| 唐山市| 平阴县| 孟津县| 梧州市| 清镇市| 顺平县| 大宁县| 乌鲁木齐市| 北海市| 枣庄市| 东港市| 海口市| 论坛| 通化县| 西华县| 永德县| 东乡县|