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
&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 | " /tr>
$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) {?>
Number
|
Software name
|
Software Introduction
|
Size
|
Number of downloads
|
Upload Time
|
}while ($rs = @mysql_fetch_array ($result)){?>
=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 ...