PHP头条
热点:

一个程序下载的管理程序(三)


//后台程序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(" ","&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(和PHP搭配之最佳组合)_query($str,$cn);


header("location:download.php(做为现在的主流开发语言)?page=0&action=show");
}
if($action=="download")
{
     MySQL(和PHP搭配之最佳组合)_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()">关闭窗口</a></p>
<p>&nbsp;</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");
}
?> 

www.phpzy.comtrue/phprm/34076.htmlTechArticle一个程序下载的管理程序(三) //后台程序sign.php (做为现在的主流开发语言) 源代码如下: ?require("../opendata.php (做为现在的主流开发语言) ");? ? if(action=="sign") if(say==""||title==""||url==""||size=...

相关文章

    暂无相关文章

PHP之友评论

今天推荐