当前位置: 编程技术>php
本页文章导读:
▪一个程序下载的管理程序(四)
//管理程序chang.php源代码如下: <? session_start() ?> <? if($session_power==""||$session_power<1) { header("location: ../message.php?redirect=default.php&message=你不是理员"); break; }?> <?require ("../opendata.php.........
▪PHP下MAIL的另一解决方案
前一段时间我接触到DEC Tru64 Unix 我在上面装了PHP+APACHE,可以用提供的mail函数始终不能正常发信,于是自编了一个函数,它利用UNIX下的管道和PHP的SOCK函数进行发信,经过实验非常驻成功,下.........
▪一个程序下载的管理程序(二)
//主程序download.php源代码如下: <?session_start();?> <html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta name="GENERAT.........
[1]一个程序下载的管理程序(四)
来源: 互联网 发布时间: 2013-11-30
//管理程序chang.php源代码如下:
<? session_start() ?>
<? if($session_power==""||$session_power<1)
{
header("location: ../message.php?redirect=default.php&message=你不是理员");
break;
}?>
<?require ("../opendata.php");?>
<?
if($step=="1")
{
if(!($rs=mysql_fetch_array(mysql_query("select * from download where id='".$id."'",$cn))))
echo "提取资料出错";
else
{
?>
<html>
<head>
<title>修改资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="29"><font size="2">你的位置:<a href="/default.html">首页</a>->><a href="/blog_article/download/action/show.html">下载基地</a>->>修改资料</font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="446">
<tr>
<td height="335" width="77%" bgcolor="#99cc00">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="335">
<tr>
<td colspan="2" height="42"> </td>
</tr>
<form method="post" action="/blog_article/chang/step/2/amp;id/lt;/$id/gt;.html">
<tr>
<td height="35" width="19%"><font size="2">软件名称</font></td>
<td height="35" width="81%">
<input name="title" value="<?=$rs["title"];?>" >
</td>
</tr>
<tr>
<td height="36" width="19%"><font size="2">软件地址</font></td>
<td height="36" width="81%">
<input name="url" size="50" value="<?=$rs["url"];?>"
>
</td>
</tr>
<tr>
<td height="34" width="19%"><font size="2">大小</font></td>
<td height="34" width="81%"> <font size="2">
<input type="text" name="size" size="12" value="<?=$rs["size"]?>">
</font></td>
</tr>
<tr>
<td height="42" width="19%">
<div align="left"><font size="2">分类</font></div>
</td>
<td height="42" width="81%"><font size="2">
<select name="type">
<option <?if($rs["type"]==1) echo "selected"; ?> value="1">密码破解</option>
<option <?if($rs["type"]==2) echo "selected"; ?> value="2">远程控制</option>
<option <?if($rs["type"]==3) echo "selected"; ?> value="3">端口扫描</option>
<option <?if($rs["type"]==4) echo "selected"; ?> value="4">字典工具</option>
<option <?if($rs["type"]==5) echo "selected"; ?> value="5">系统安全</option>
<option <?if($rs["type"]==6) echo "selected"; ?> value="6">各种炸弹</option>
<option <?if($rs["type"]==7) echo "selected"; ?> value="7">加密软件</option>
<option <?if($rs["type"]==8) echo "selected"; ?> value="8">源代码</option>
<option <?if($rs["type"]==9) echo "selected"; ?> value="9">其它软件</option>
</select>
</font> </td>
</tr>
<tr>
<td height="31" width="19%"><font size="2">简介:</font></td>
<td height="31" width="81%">
<textarea name="say" cols="50" rows="10"><?=$rs["say"];?></textarea>
</td>
</tr>
<tr>
<td height="37" colspan="2">
<div align="center">
<input type="submit" value="搞定" name="submit">
</div>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</body>
</html>
<?
}
}
if($step=="2")
{
mysql_query("update download set title='".$title."', say='".$say."',url='".$url."',size='".$size."',type='".$type."' where id=".$id,$cn);
header("location:download.php?action=show&type=$type");
}
?>
<? session_start() ?>
<? if($session_power==""||$session_power<1)
{
header("location: ../message.php?redirect=default.php&message=你不是理员");
break;
}?>
<?require ("../opendata.php");?>
<?
if($step=="1")
{
if(!($rs=mysql_fetch_array(mysql_query("select * from download where id='".$id."'",$cn))))
echo "提取资料出错";
else
{
?>
<html>
<head>
<title>修改资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="29"><font size="2">你的位置:<a href="/default.html">首页</a>->><a href="/blog_article/download/action/show.html">下载基地</a>->>修改资料</font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="446">
<tr>
<td height="335" width="77%" bgcolor="#99cc00">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="335">
<tr>
<td colspan="2" height="42"> </td>
</tr>
<form method="post" action="/blog_article/chang/step/2/amp;id/lt;/$id/gt;.html">
<tr>
<td height="35" width="19%"><font size="2">软件名称</font></td>
<td height="35" width="81%">
<input name="title" value="<?=$rs["title"];?>" >
</td>
</tr>
<tr>
<td height="36" width="19%"><font size="2">软件地址</font></td>
<td height="36" width="81%">
<input name="url" size="50" value="<?=$rs["url"];?>"
>
</td>
</tr>
<tr>
<td height="34" width="19%"><font size="2">大小</font></td>
<td height="34" width="81%"> <font size="2">
<input type="text" name="size" size="12" value="<?=$rs["size"]?>">
</font></td>
</tr>
<tr>
<td height="42" width="19%">
<div align="left"><font size="2">分类</font></div>
</td>
<td height="42" width="81%"><font size="2">
<select name="type">
<option <?if($rs["type"]==1) echo "selected"; ?> value="1">密码破解</option>
<option <?if($rs["type"]==2) echo "selected"; ?> value="2">远程控制</option>
<option <?if($rs["type"]==3) echo "selected"; ?> value="3">端口扫描</option>
<option <?if($rs["type"]==4) echo "selected"; ?> value="4">字典工具</option>
<option <?if($rs["type"]==5) echo "selected"; ?> value="5">系统安全</option>
<option <?if($rs["type"]==6) echo "selected"; ?> value="6">各种炸弹</option>
<option <?if($rs["type"]==7) echo "selected"; ?> value="7">加密软件</option>
<option <?if($rs["type"]==8) echo "selected"; ?> value="8">源代码</option>
<option <?if($rs["type"]==9) echo "selected"; ?> value="9">其它软件</option>
</select>
</font> </td>
</tr>
<tr>
<td height="31" width="19%"><font size="2">简介:</font></td>
<td height="31" width="81%">
<textarea name="say" cols="50" rows="10"><?=$rs["say"];?></textarea>
</td>
</tr>
<tr>
<td height="37" colspan="2">
<div align="center">
<input type="submit" value="搞定" name="submit">
</div>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</body>
</html>
<?
}
}
if($step=="2")
{
mysql_query("update download set title='".$title."', say='".$say."',url='".$url."',size='".$size."',type='".$type."' where id=".$id,$cn);
header("location:download.php?action=show&type=$type");
}
?>
[2]PHP下MAIL的另一解决方案
来源: 互联网 发布时间: 2013-11-30
前一段时间我接触到DEC Tru64 Unix 我在上面装了PHP+APACHE,可以用提供的mail函数始终不能正常发信,于是自编了一个函数,它利用UNIX下的管道和PHP的SOCK函数进行发信,经过实验非常驻成功,下面是此函数原代码。
function mymail($mto,$mcc,$msubject,$mbody)
{
$from="webmaster@backhome.com.cn";
$sign = "\n";//随你便写些什么
$sendmailpath="/usr/lib/sendmail";//Semdmail路径
$bound = "========_".uniqid("BCFMail")."==_";//分界符
$headers = "MIME-Version: 1.0\n".
"Content-Type: multipart/mixed; boundary=\"$bound\"\n".
"Date: ".date("D, d M H:i:s Y ")."\n".
"From: $from\n".
"To: $mto\n".
"Cc: $mcc\n".
"Subject: $msubject\n".
"Status: \n".
"X-Status:\n".
"X-Mailer: MY Email Interface\n".
"X-Keywords:\n\n";
$content="--".$bound."\n"."Content-Type:text/plain;charset=\"GB2312\"\n\n".$mbody.$sign."\n";
$end = "\n"."--".$bound."--\n";
$sock = popen("$sendmailpath -t -f 'webmaster@backhome.com.cn'",'w');
fputs($sock, $headers);
fputs($sock, $content);
fputs($sock, $end);
fputs($sock, ".\n");
fputs($sock, "QUIT\n");
pclose($sock);
}
function mymail($mto,$mcc,$msubject,$mbody)
{
$from="webmaster@backhome.com.cn";
$sign = "\n";//随你便写些什么
$sendmailpath="/usr/lib/sendmail";//Semdmail路径
$bound = "========_".uniqid("BCFMail")."==_";//分界符
$headers = "MIME-Version: 1.0\n".
"Content-Type: multipart/mixed; boundary=\"$bound\"\n".
"Date: ".date("D, d M H:i:s Y ")."\n".
"From: $from\n".
"To: $mto\n".
"Cc: $mcc\n".
"Subject: $msubject\n".
"Status: \n".
"X-Status:\n".
"X-Mailer: MY Email Interface\n".
"X-Keywords:\n\n";
$content="--".$bound."\n"."Content-Type:text/plain;charset=\"GB2312\"\n\n".$mbody.$sign."\n";
$end = "\n"."--".$bound."--\n";
$sock = popen("$sendmailpath -t -f 'webmaster@backhome.com.cn'",'w');
fputs($sock, $headers);
fputs($sock, $content);
fputs($sock, $end);
fputs($sock, ".\n");
fputs($sock, "QUIT\n");
pclose($sock);
}
[3]一个程序下载的管理程序(二)
来源: 互联网 发布时间: 2013-11-30
//主程序download.php源代码如下:
<?session_start();?>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>穷人网软件联盟</title>
<script language="javascript">
function popwin(parm)
{ window.open("sign.php?"+parm,"","height=400,width=300,resizable=yes,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}
</script>
<style>
BODY {
FONT-SIZE: 9pt; LINE-HEIGHT: 12pt
}
TABLE {
FONT-SIZE: 9pt; LINE-HEIGHT: 12pt
}
A:link {
COLOR: blue; TEXT-DECORATION: none
}
A:visited {
COLOR: #663300; TEXT-DECORATION: none
}
A:active {
TEXT-DECORATION: none
}
A:hover {
COLOR: #ff0000; TEXT-DECORATION: underline
}
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="19">
<tr bgcolor="#f7f7ff">
<td height="24" width="88%"> <font size="2">
<? require ("../opendata.php") ?>
</font> <font size="2"> 你的位置:<a href="http://poorren.yeah.net">首页</a>->> <a href="/blog_article/download/action/show.html">软件下载</a>->>
<?
switch($type)
{
case 1:echo "密码破解";break;
case 2:echo "远程控制";break;
case 3:echo "端口扫描";break;
case 4:echo "字典工具";break;
case 5:echo "系统安全";break;
case 6:echo "各种炸弹";break;
case 7:echo "加密软件";break;
case 8:echo "源代码";break;
case 9:echo "其它软件";break;
default:echo "全部软件";
}
?>
</font></td>
<td height="24" width="12%">
<div align="center"><font size="2"><a href="/blog_article/download/action/publish.html">发布软件</a></font></div>
</td>
</tr>
</table>
<font size="2"> </font>
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="20" bordercolor="#FFFFFF">
<tr bgcolor="#f0f0ff" bordercolor="#FFFFFF">
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/0/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">全部软件</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/1/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">密码破解</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/2/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">远程控制</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/3/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">端口扫描</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/4/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">字典工具</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/5/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">系统安全</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/6/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">各种炸弹</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><a href="/blog_article/download/action/show/amp;page/0/amp;type/7/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html"><font size="2">加密软件</font></a></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/8/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">源代码</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/9/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">其它软件</a></font></div>
</td>
</tr>
</table>
<?
$pagesize=10;
if($action=="show")
{
switch($sort)
{
case "1":$sortby="id";break;
case "2":$sortby="click";break;
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 "软件名称":$object="title";break;
case "作者":$object="author";break;
case "简介":$object="say";
}
if($isdesc=="1")
$temp_isdesc="";
else
$temp_isdesc="desc";
switch($sort)
{
case "1":$sortby="id";break;
case "2":$sortby="click";break;
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);
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="28">
<form action=download.php?action=search&page=0&sort=<?=$sort?>&isdesc=<?=$isdesc?> method="post">
<tr>
<td width="37%" height="35"><font size="2"> 符合你要求的软件总数:
<?=$max_page;?>
</font></td>
<td width="63%" height="35" bordercolor="#FFFFFF"> <font size="2"> 软件查找:
<input type="text" name="content" size="20" value="<?=$content?>">
查找对像
<select name="select">
<option><font size="2">软件名称</font></option>
<option><font size="2">简介</font></option>
</select>
<select name="type" >
<option value="0">全部软件</option>
<option selected value="<?=$type?>">当前类别</option>
</select>
<input type="submit" name="search" value="go">
</font> </td>
</tr> </form>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="38">
<tr>
<td width="66%"></td>
<td width="34%">
<form action="/blog_article/download/action/show/amp;type/lt;/$type/gt;.html" method="post">
<div align="right"><font size="2">排序按:</font>
<select name="sort">
<option <?if($sort==1) echo "selected";?> value="1">上传时间</option>
<option <?if($sort==2) echo "selected";?> value="2">下载次数</option>
<option <?if($sort==3) echo "selected";?> value="3">软件名称</option>
</select>
<select name="isdesc">
<option <?if($isdesc==2) echo "selected";?> value="2">降序</option>
<option <?if($isdesc==1) echo "selected";?> value="1">升序</option>
</select>
<input type="submit" value="go" name="submit" >
</div>
</form>
</td>
</tr>
</table>
<?
if($max_page==0&&$action!="publish")
echo "<p align=center><font size=4 color=red>对不起,没能找到你想要的记录</font></p><br>";
else
?>
<?if($action!="publish"){?>
<p align="right"><font size="2">
<?if($action=="search"){?>
<?if($page>=1){?>
<a href=/blog_article/download/page/0/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;第一页/lt;/a/gt;.html
<?}?>
<?if($page>=1){?>
<a href=/blog_article/download/page/lt;/$page-$pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;上一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$page $pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;下一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$max_page-$pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;最后页/lt;/a/gt;.html
<?}?>
<?}?>
<?if($action=="show"){?>
<?if($page>=1){?>
<a href=/blog_article/download/page/0/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;第一页/lt;/a/gt;.html
<?}?>
<?if($page>=1){?>
  <a href=/blog_article/download/page/lt;/$page-$pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;上一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$page $pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;下一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$max_page-$pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;最后页/lt;/a/gt;.html
<?}?>
<?}?>
</font></p>
<?if($max_page>0){?>
<table border="1" width="100%" height="58" cellspacing="0" cellpadding="0" bordercolor="#000000">
<tr bordercolor="#000000" bgcolor="#f0f0ff">
<td width="25" height="25">
<div align="center"><font size="2">编号</font></div>
</td>
<td width="41" height="25">
<div align="right"><font size="2">软件名</font></div>
</td>
<td width="539" height="25">
<div align="center"><font size="2">软件介绍</font></div>
</td>
<td width="31" height="25">
<div align="center"><font size="2">大小</font></div>
</td>
<td width="31" height="25">
<div align="center"><font size="2">下载次数</font></div>
</td>
<td width="82" height="25">
<div align="center"> <font size="2">上传时间</font> </div>
</td>
</tr>
<?
}
while ($rs=@mysql_fetch_array($result))
{
?>
<tr bordercolor="#000000">
<td width="25" height="25">
<?=$rs["id"];?>
<br>
<?if($session_power>=1)
{
?>
<a href="/blog_article/chang/step/1/amp;id/lt;/$rs[.html"id"];?>">更改</a>
<?}?>
</td>
<td width="41" height="25">
<div align="center"><font size="2"> <a href="/blog_article/sign/url/lt;/$rs[.html"url"]?>&action=download&id=<?=$rs["id"]?>" target=_blank>
<?=$rs["title"];?>
</a>
</font></div>
</td>
<td width="539" height="25">
<div align="left"><font size="2">
<?=$rs["say"];?>
<br>
<a href="/blog_article/sign/action/mail/amp;id/lt;/$rs[.html"id"]?>&title=<?=$rs["title"]?>&type=<?=$rs["type"]?>">如果该链接有问题,请点这里
</a></font></div>
</td>
<td width="31" height="25">
<div align="center"><font size="2">
<?=$rs["size"];?>
</font></div>
</td>
<td width="31" height="25">
<div align="center"><font size="2">
<?=$rs["click"];?>
</font> </div>
</td>
<td width="82" height="25">
<div align="center"><font size="2">
<?=$rs["ttime"];?>
</font> </div>
</td>
</tr>
<?}?>
</table>
<div align="right">
<p><font size="2">
<?if($action=="search"){?>
<?if($page>=1){?>
<a href=/blog_article/download/page/0/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;第一页/lt;/a/gt;.html
<?}?>
<?if($page>=1){?>
<a href=/blog_article/download/page/lt;/$page-$pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;上一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$page $pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;下一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$max_page-$pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;最后页/lt;/a/gt;.html
<?}?>
<?}?>
<?if($action=="show"){?>
<?if($page>=1){?>
<a href=/blog_article/download/page/0/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;第一页/lt;/a/gt;.html
<?}?>
<?if($page>=1){?>
  <a href=/blog_article/download/page/lt;/$page-$pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;上一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$page $pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;下一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$max_page-$pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;最后页/lt;/a/gt;.html
<?}?>
<?}?>
</font></p>
</div>
<font size="2">
</font>
<?}?>
<?if($action=="publish"){?>
<form method="POST" action="/blog_article/sign/action/sign.html">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="155">
<tr>
<td height="20" width="28%"><font size="2">发布你的软件<br>
或你推荐软件 <br>
</font></td>
<td height="20" width="72%"> </td>
</tr>
<tr>
<td width="28%"><font size="2">软件名称:</font></td>
<td width="72%"> <font size="2">
<input type="text" name="title" size="20">
</font></td>
</tr>
<tr>
<td width="28%" height="24"><font size="2">软件大小:</font></td>
<td width="72%" height="24"><font size="2">
<input type="text" name="size" size="20">
</font></td>
</tr>
<tr>
<td width="28%"><font size="2">软件地址(<a href="mailto:hack99@163.net">如果没有,请打包给版主</a>)</font></td>
<td width="72%"><font size="2">
<input type="text" name="url" size="50">
</font></td>
</tr>
<tr>
<td width="28%" height="21"><font size="2">软件类型</font></td>
<td width="72%" height="21"><font size="2">
<select name="type">
<option value="1">密码破解</option>
<option value="2">远程控制</option>
<option value="3">端口扫描</option>
<option value="4">字典工具</option>
<option value="5">系统安全</option>
<option value="6">各种炸弹</option>
<option value="7">加密软件</option>
<option value="8">源代码</option>
<option selected value="9">其它软件</option>
</select>
</font></td>
</tr>
<tr>
<td width="28%"><font size="2">软件简介:</font></td>
<td width="72%" rowspan="2"> <font size="2">
<textarea rows="8" name="say" cols="50"></textarea>
</font></td>
</tr>
<tr>
<td width="28%"> </td>
</tr>
</table>
<p align="left"> <font size="2">
<input type="submit" value="提交" name="sign">
<input type="reset" value="重写" >
</font>
</form>
<?}?>
<div align="right"> <font size="2">
<br>
</font></div>
<p align="center"><font size="2"><br>
</font> </p>
<p align="right"> </p>
<p> </p>
</body>
</html>
<?session_start();?>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>穷人网软件联盟</title>
<script language="javascript">
function popwin(parm)
{ window.open("sign.php?"+parm,"","height=400,width=300,resizable=yes,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}
</script>
<style>
BODY {
FONT-SIZE: 9pt; LINE-HEIGHT: 12pt
}
TABLE {
FONT-SIZE: 9pt; LINE-HEIGHT: 12pt
}
A:link {
COLOR: blue; TEXT-DECORATION: none
}
A:visited {
COLOR: #663300; TEXT-DECORATION: none
}
A:active {
TEXT-DECORATION: none
}
A:hover {
COLOR: #ff0000; TEXT-DECORATION: underline
}
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="19">
<tr bgcolor="#f7f7ff">
<td height="24" width="88%"> <font size="2">
<? require ("../opendata.php") ?>
</font> <font size="2"> 你的位置:<a href="http://poorren.yeah.net">首页</a>->> <a href="/blog_article/download/action/show.html">软件下载</a>->>
<?
switch($type)
{
case 1:echo "密码破解";break;
case 2:echo "远程控制";break;
case 3:echo "端口扫描";break;
case 4:echo "字典工具";break;
case 5:echo "系统安全";break;
case 6:echo "各种炸弹";break;
case 7:echo "加密软件";break;
case 8:echo "源代码";break;
case 9:echo "其它软件";break;
default:echo "全部软件";
}
?>
</font></td>
<td height="24" width="12%">
<div align="center"><font size="2"><a href="/blog_article/download/action/publish.html">发布软件</a></font></div>
</td>
</tr>
</table>
<font size="2"> </font>
<table width="100%" border="1" cellspacing="0" cellpadding="0" height="20" bordercolor="#FFFFFF">
<tr bgcolor="#f0f0ff" bordercolor="#FFFFFF">
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/0/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">全部软件</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/1/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">密码破解</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/2/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">远程控制</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/3/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">端口扫描</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/4/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">字典工具</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/5/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">系统安全</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/6/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">各种炸弹</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><a href="/blog_article/download/action/show/amp;page/0/amp;type/7/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html"><font size="2">加密软件</font></a></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/8/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">源代码</a></font></div>
</td>
<td width="10%" height="21">
<div align="center"><font size="2"><a href="/blog_article/download/action/show/amp;page/0/amp;type/9/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;.html">其它软件</a></font></div>
</td>
</tr>
</table>
<?
$pagesize=10;
if($action=="show")
{
switch($sort)
{
case "1":$sortby="id";break;
case "2":$sortby="click";break;
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 "软件名称":$object="title";break;
case "作者":$object="author";break;
case "简介":$object="say";
}
if($isdesc=="1")
$temp_isdesc="";
else
$temp_isdesc="desc";
switch($sort)
{
case "1":$sortby="id";break;
case "2":$sortby="click";break;
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);
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="28">
<form action=download.php?action=search&page=0&sort=<?=$sort?>&isdesc=<?=$isdesc?> method="post">
<tr>
<td width="37%" height="35"><font size="2"> 符合你要求的软件总数:
<?=$max_page;?>
</font></td>
<td width="63%" height="35" bordercolor="#FFFFFF"> <font size="2"> 软件查找:
<input type="text" name="content" size="20" value="<?=$content?>">
查找对像
<select name="select">
<option><font size="2">软件名称</font></option>
<option><font size="2">简介</font></option>
</select>
<select name="type" >
<option value="0">全部软件</option>
<option selected value="<?=$type?>">当前类别</option>
</select>
<input type="submit" name="search" value="go">
</font> </td>
</tr> </form>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="38">
<tr>
<td width="66%"></td>
<td width="34%">
<form action="/blog_article/download/action/show/amp;type/lt;/$type/gt;.html" method="post">
<div align="right"><font size="2">排序按:</font>
<select name="sort">
<option <?if($sort==1) echo "selected";?> value="1">上传时间</option>
<option <?if($sort==2) echo "selected";?> value="2">下载次数</option>
<option <?if($sort==3) echo "selected";?> value="3">软件名称</option>
</select>
<select name="isdesc">
<option <?if($isdesc==2) echo "selected";?> value="2">降序</option>
<option <?if($isdesc==1) echo "selected";?> value="1">升序</option>
</select>
<input type="submit" value="go" name="submit" >
</div>
</form>
</td>
</tr>
</table>
<?
if($max_page==0&&$action!="publish")
echo "<p align=center><font size=4 color=red>对不起,没能找到你想要的记录</font></p><br>";
else
?>
<?if($action!="publish"){?>
<p align="right"><font size="2">
<?if($action=="search"){?>
<?if($page>=1){?>
<a href=/blog_article/download/page/0/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;第一页/lt;/a/gt;.html
<?}?>
<?if($page>=1){?>
<a href=/blog_article/download/page/lt;/$page-$pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;上一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$page $pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;下一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$max_page-$pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;最后页/lt;/a/gt;.html
<?}?>
<?}?>
<?if($action=="show"){?>
<?if($page>=1){?>
<a href=/blog_article/download/page/0/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;第一页/lt;/a/gt;.html
<?}?>
<?if($page>=1){?>
  <a href=/blog_article/download/page/lt;/$page-$pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;上一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$page $pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;下一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$max_page-$pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;最后页/lt;/a/gt;.html
<?}?>
<?}?>
</font></p>
<?if($max_page>0){?>
<table border="1" width="100%" height="58" cellspacing="0" cellpadding="0" bordercolor="#000000">
<tr bordercolor="#000000" bgcolor="#f0f0ff">
<td width="25" height="25">
<div align="center"><font size="2">编号</font></div>
</td>
<td width="41" height="25">
<div align="right"><font size="2">软件名</font></div>
</td>
<td width="539" height="25">
<div align="center"><font size="2">软件介绍</font></div>
</td>
<td width="31" height="25">
<div align="center"><font size="2">大小</font></div>
</td>
<td width="31" height="25">
<div align="center"><font size="2">下载次数</font></div>
</td>
<td width="82" height="25">
<div align="center"> <font size="2">上传时间</font> </div>
</td>
</tr>
<?
}
while ($rs=@mysql_fetch_array($result))
{
?>
<tr bordercolor="#000000">
<td width="25" height="25">
<?=$rs["id"];?>
<br>
<?if($session_power>=1)
{
?>
<a href="/blog_article/chang/step/1/amp;id/lt;/$rs[.html"id"];?>">更改</a>
<?}?>
</td>
<td width="41" height="25">
<div align="center"><font size="2"> <a href="/blog_article/sign/url/lt;/$rs[.html"url"]?>&action=download&id=<?=$rs["id"]?>" target=_blank>
<?=$rs["title"];?>
</a>
</font></div>
</td>
<td width="539" height="25">
<div align="left"><font size="2">
<?=$rs["say"];?>
<br>
<a href="/blog_article/sign/action/mail/amp;id/lt;/$rs[.html"id"]?>&title=<?=$rs["title"]?>&type=<?=$rs["type"]?>">如果该链接有问题,请点这里
</a></font></div>
</td>
<td width="31" height="25">
<div align="center"><font size="2">
<?=$rs["size"];?>
</font></div>
</td>
<td width="31" height="25">
<div align="center"><font size="2">
<?=$rs["click"];?>
</font> </div>
</td>
<td width="82" height="25">
<div align="center"><font size="2">
<?=$rs["ttime"];?>
</font> </div>
</td>
</tr>
<?}?>
</table>
<div align="right">
<p><font size="2">
<?if($action=="search"){?>
<?if($page>=1){?>
<a href=/blog_article/download/page/0/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;第一页/lt;/a/gt;.html
<?}?>
<?if($page>=1){?>
<a href=/blog_article/download/page/lt;/$page-$pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;上一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$page $pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;下一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$max_page-$pagesize;/gt;/amp;action/search/amp;content/lt;/$content/gt;/amp;type/lt;/$type/gt;/amp;select/lt;/$select/gt;/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;最后页/lt;/a/gt;.html
<?}?>
<?}?>
<?if($action=="show"){?>
<?if($page>=1){?>
<a href=/blog_article/download/page/0/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;第一页/lt;/a/gt;.html
<?}?>
<?if($page>=1){?>
  <a href=/blog_article/download/page/lt;/$page-$pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;上一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$page $pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;下一页/lt;/a/gt;.html
<?}?>
<?if($page<$max_page-$pagesize){?>
  <a href=/blog_article/download/page/lt;/$max_page-$pagesize;/gt;/amp;type/lt;/$type/gt;/amp;action/show/amp;sort/lt;/$sort/gt;/amp;isdesc/lt;/$isdesc/gt;/gt;最后页/lt;/a/gt;.html
<?}?>
<?}?>
</font></p>
</div>
<font size="2">
</font>
<?}?>
<?if($action=="publish"){?>
<form method="POST" action="/blog_article/sign/action/sign.html">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="155">
<tr>
<td height="20" width="28%"><font size="2">发布你的软件<br>
或你推荐软件 <br>
</font></td>
<td height="20" width="72%"> </td>
</tr>
<tr>
<td width="28%"><font size="2">软件名称:</font></td>
<td width="72%"> <font size="2">
<input type="text" name="title" size="20">
</font></td>
</tr>
<tr>
<td width="28%" height="24"><font size="2">软件大小:</font></td>
<td width="72%" height="24"><font size="2">
<input type="text" name="size" size="20">
</font></td>
</tr>
<tr>
<td width="28%"><font size="2">软件地址(<a href="mailto:hack99@163.net">如果没有,请打包给版主</a>)</font></td>
<td width="72%"><font size="2">
<input type="text" name="url" size="50">
</font></td>
</tr>
<tr>
<td width="28%" height="21"><font size="2">软件类型</font></td>
<td width="72%" height="21"><font size="2">
<select name="type">
<option value="1">密码破解</option>
<option value="2">远程控制</option>
<option value="3">端口扫描</option>
<option value="4">字典工具</option>
<option value="5">系统安全</option>
<option value="6">各种炸弹</option>
<option value="7">加密软件</option>
<option value="8">源代码</option>
<option selected value="9">其它软件</option>
</select>
</font></td>
</tr>
<tr>
<td width="28%"><font size="2">软件简介:</font></td>
<td width="72%" rowspan="2"> <font size="2">
<textarea rows="8" name="say" cols="50"></textarea>
</font></td>
</tr>
<tr>
<td width="28%"> </td>
</tr>
</table>
<p align="left"> <font size="2">
<input type="submit" value="提交" name="sign">
<input type="reset" value="重写" >
</font>
</form>
<?}?>
<div align="right"> <font size="2">
<br>
</font></div>
<p align="center"><font size="2"><br>
</font> </p>
<p align="right"> </p>
<p> </p>
</body>
</html>
最新技术文章: