A program Download Management program (ii) _php tutorial

Source: Internet
Author: User
Tags php source code microsoft frontpage
The main program download.php source code is as follows:







<title>Poor network software Alliance</title>












You are here: Home->> software Download->>
Switch ($type)
{
Case 1:echo "password cracking";
Case 2:echo "Remote control";
Case 3:echo "Port scan";
Case 4:echo "dictionary tool";
Case 5:echo "system security";
Case 6:echo "various *";
Case 7:echo "Encryption software";
Case 8:echo "source code";
Case 9:echo "other software";
Default:echo "All Software";
}
?>

Release software

















&isdesc="!--? = $isdesc?--"> Remote control
" /tr>

&isdesc=!--? = $isdesc? --> "> All software
&isdesc="!--? = $isdesc?--"> Password hack

&isdesc=!--? = $isdesc?--> "> Port scan
&isdesc= "!--? = $isdes C?--"> Dictionary tool
&isdesc= "!--? = $isdesc?--" > System security
&isdesc="!--? = $isdesc?--"> various *
&isdesc=!--? = $isdesc?--> "> Encryption software

&isdesc="!--? = $isde SC?--"> Source code
&isdesc= "!--? = $isdesc?--" > Other software


$pagesize = 10;
if ($action = = "Show")
{
Switch ($sort)
{
Case "1": $sortby = "id";
Case "2": $sortby = "click";
Case "3", $sortby = "title"; break;
Default: $sortby = "id";
}
if ($isdesc = = "1")
$temp _isdesc= "";
Else
$temp _isdesc= "desc";
if ($type = = "" | | $type ==0)
$temp = "";
Else
$temp = "where type=". $type;
$rs =mysql_fetch_array (mysql_query ("SELECT count (*) from download". $temp, $CN));
$max _page= $rs [0];
if ($page >= $max _page)
$page = $max _page-$pagesize;
if ($page <=0)
$page = 0;
$result =mysql_query ("select * from Download". $temp. "ORDER BY". $sortby. " ". $temp _isdesc." Limit ". $page.", ". $pagesize, $CN);
}
if ($action = = "Search")
{

Switch ($select)
{
Case "Software Name": $object = "title"; break;
Case "Author": $object = "Author";
Case "Introduction": $object = "Say";
}
if ($isdesc = = "1")
$temp _isdesc= "";
Else
$temp _isdesc= "desc";
Switch ($sort)
{
Case "1": $sortby = "id";
Case "2": $sortby = "click";
Case "3", $sortby = "title"; break;
Default: $sortby = "id";
}
if ($type = = "" | | $type ==0)
$temp = "";
Else
$temp = "and type=". $type;

$rs =mysql_fetch_array (mysql_query ("SELECT count (*) from download where". $object. "Like ('%". $content. " % ') ". $temp, $CN));
$max _page= $rs [0];
if ($page >= $max _page)
$page = $max _page-$pagesize;
if ($page <=0)
$page = 0;
$sql = "Select * from Download where". $object. "Like ('%". $content. " % ') ". $temp." ORDER BY ". $sortby." ". $temp _isdesc." Limit ". $page.", ". $pagesize;
$result =mysql_query ($sql, $CN);
}
?>














if ($max _page==0&& $action! = "Publish")
echo "

Sorry, I couldn't find the record you wanted.


";
Else

?>



=1) {?>
&type= &select= &sort= &isdesc= > First Page

=1) {?>
&action=search&content= &type= &select= &sort= &isdesc= > Previous Page


&action=search&content= &type= &select= &sort= &isdesc= > next Page


&action=search&content= &type= &select= &sort= &isdesc= > Last Page



=1) {?>
&action=show&sort= &isdesc= > First Page

=1) {?>
&type= &action=show&sort= &isdesc= > Previous Page


&type= &action=show&sort= &isdesc= > next Page


&type= &action=show&sort= &isdesc= > Last Page



0) {?>























}while ($rs = @mysql_fetch_array ($result)){?>

Number

Software name

Software Introduction

Size

Number of downloads

Upload Time




=1)
{
?>
"> Change


&action=download&id= "target=_blank>









&title= &type= "> If there is a problem with the link, please click here

















=1) {?>
&type= &select= &sort= &isdesc= > First Page

=1) {?>
&action=search&content= &type= &select= &sort= &isdesc= > Previous Page


&action=search&content= &type= &select= &sort= &isdesc= > next Page


&action=search&content= &type= &select= &sort= &isdesc= > Last Page



=1) {?>
&action=show&sort= &isdesc= > First Page

=1) {?>
&type= &action=show&sort= &isdesc= > Previous Page


&type= &action=show&sort= &isdesc= > next Page


&type= &action=show&sort= &isdesc= > Last Page
























http://www.bkjia.com/PHPjc/315264.html www.bkjia.com true http://www.bkjia.com/PHPjc/315264.html techarticle //Main program download.php source code is as follows:? Session_Start ();? HTML head meta http-equiv=content-language CONTENT=ZH-CN Meta Http-equiv=content-type content=text/html; charset=gb2312 Me ...

  • 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.