A program to download the management Program (iii) _php Foundation

Source: Internet
Author: User
Tags php source code
Background program sign.php Source code is as follows:
<?require (".. /opendata.php ");? >
?
if ($action = = "Sign")
{
if ($say = = "" | | $title = = "" | | $url = = "" | | $size = = "")
{
Header ("Location:.") /message.php?message= information is incomplete &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";
?>
<p align= "center" ><a href= "<?= $url?>" > If your browser does not eject the download window, please click here </a></p>

<p align= "center" ><a href= "Javascript:self.close ()" > Close window </a></p>
<p> </p>
?? >
<?if ($action = = "Mail")
{
Mail ("Khj99@163.net", "there is a problem with the link, please correct", "id= $id; program name = $title; category = $type", "FROM:KHJ99@163.NETNREPLY-TO:KHJ99@163.NETN");
Header ("location:download.php?action=show&type= $type");
}
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.