1jjk's Blog1jjk.blog.chinaunix.net
1jjk
全部博文(99)
2009年(1)
2008年(5)
2007年(31)
2006年(58)
2005年(4)
45110739
hongge37
王建录
????
karl412
HELUN
wangfeng
T-bagwel
yjd333
cynthia
zhou1992
梁传琦
adonaiaa
kallytin
dunkboyc
mushroom
分类:
2007-04-05 16:57:45
//write code:1jjk
//name:index.php
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>..</title><script language="javascript">function check_login() { if(form1.sender.value=="") { alert("ddddddddd");form1.sender.focus(); form1.action="aaaa.php";form1.submit();// return (false); }}</script></head><body><form name="form1" action="search.php" method=post">Searching file in ftp filename or dirname:
">" name="Submit" onClick="check_login();"> " value="reset" name="B2
/***************************************************************/
/*
name:search.php
written by :1jjk
*/
?><?phpfunction db_connect(){ $mysql_address='localhost'; //..... $mysql_username='root'; //....... $mysql_passwd='lingjiujianke'; //........ $db=mysql_connect($mysql_address,$mysql_username,$mysql_passwd); //.....//........ if(!$db) { echo 'no'; } else { return $db; echo "$db"; echo "OK"; }}$id=$_REQUEST['sender'];//include('connect_mysql.php');$dbname= 'bknet_ftp';$conn=db_connect();$result=mysql_query("use $dbname");//$sql = "SELECT * FROM `bknet_ftplist` LIMIT 0 , 30 ";$sql = "SELECT * FROM `bknet_ftplist` where listname like '%$id%';";//mysql_query("use $dbname");$re=mysql_query($sql);while($row=mysql_fetch_row($re)){//echo "$row";$strlen=strlen($row[1]);//echo "$strlen\n";$str=substr($row[1],5,-1); ?> <html><head><title>...</title></head><body> <table border=0> <tr><td colspan=2><a href="ftp://hardware:123456789*!@192.168.5.188/=$str?>"><?=$str?></a></td></tr> </table> </form></body></html><? if($row=0){echo "aaaaaa";} }?>
上一篇:ftp内部文件搜索(二)……写入数据库
下一篇:ftp服务器的架设,双网卡,相同用户名
登录 注册