Home > Backend Development > PHP Tutorial > A program download management program (3)_PHP tutorial

A program download management program (3)_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-21 16:06:49
Original
997 people have browsed it

//后台程序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(" "," ",$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";
?>

如果你的浏览器没有弹出下载窗口,请点这里



关闭窗口


 




{
mail("khj99@163.net","该链接有问题,请更正","id=$id;程序名=$title;类别=$type","From:khj99@163.netnReply-To:khj99@163.netn");
header("location:download.php?action=show&type=$type");
}
?> 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/315279.htmlTechArticle//后台程序sign.php源代码如下: ?require(../opendata.php);? ? if($action==sign) { if($say==||$title==||$url==||$size==) { header(location:../message.php?message=资料不完整...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Why does it still jump after returning false?
From 1970-01-01 08:00:00
0
0
0
Optimize table indexes in MySQL
From 1970-01-01 08:00:00
0
0
0
Why can't I install it?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template