// The background program sign. php (as the mainstream development language) source code is as follows: & lt ;? Require (../opendata. php (as the mainstream development language ));? & Gt; & lt ;? If (& #36; actionsign) & #123; if (& #36; say | & #36; title | & #36; url | & #36; size) & #12 // background program sign. php (as the mainstream development language) source code is as follows:
If ($ action = "sign ")
{
If ($ say = "" | $ title = "" | $ url = "" | $ size = "")
{
Header ("location: ../message. php (as the mainstream development language )? Message = incomplete information & redirect = download/download. php (as the mainstream development language )? Page = 0% 26 action = 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 (the best combination with PHP) _ query ($ str, $ cn );
Header ("location: download. php (as the mainstream development language )? Page = 0 & action = show ");
}
If ($ action = "download ")
{
MySQL (best combination with PHP) _ query ("update download set click = click + 1 where id =". $ id, $ cn );
?>
Header ("Content-type: text/html ");
If (header ("location: $ url "))
Echo "error ";
?>
"> If the download window does not pop up in your browser, click here
Close Window
{
Mail ("khj99@163.net", "This link has a problem, please correct", "id = $ id; program name = $ title; Category = $ type", "From: khj99@163.netnReply-To: khj99@163.netn ");
Header ("location: download. php (as the mainstream development language )? Action = show & type = $ type ");
}
?>