广

PHP编程

  • IOS开发
  • android开发
  • PHP编程
  • JavaScript
  • ASP.NET
  • ASP编程
  • JSP编程
  • Java编程
  • 易语言
  • Ruby编程
  • Perl编程
  • AJAX
  • 正则表达式
  • C语言
  • 编程开发

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

    2018-09-28 15:13:38 次阅读 稿源:互联网
    零七广告
    //后台程序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()">关闭窗口</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");
    }
    ?> 

    零七网部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与零七网进行文章共享合作。

    零七广告
    零七广告
    零七广告
    零七广告