34 lines
1.2 KiB
PHP
34 lines
1.2 KiB
PHP
|
|
<?php
|
|||
|
|
//ˢ<><CBA2>IP<49><50><EFBFBD><EFBFBD>
|
|||
|
|
include_once("../../inc/admin.inc.php");
|
|||
|
|
include_once("../../inc/class.php");
|
|||
|
|
include_once("../../inc/ips.php");
|
|||
|
|
$db=new myConn;
|
|||
|
|
$db->links($GG['conn']);
|
|||
|
|
if($GG){
|
|||
|
|
list($id,$ip)=explode(',',$GG['field']);
|
|||
|
|
if($GG[$id]){
|
|||
|
|
$ipadd=convertip("../../",$db->getdy($ip,$table,$id."=".$GG[$id]));
|
|||
|
|
$db->update($table,"ipadd='".$ipadd."'",$id."=".$GG[$id]);
|
|||
|
|
$info="alls=document.getElementById('all').innerHTML;
|
|||
|
|
alls=alls-1;
|
|||
|
|
if(alls<=0 || !alls) alls='<font color=green><3E><><EFBFBD><EFBFBD></font>';
|
|||
|
|
document.getElementById('all').innerHTML=alls;";
|
|||
|
|
echo $info;
|
|||
|
|
echo "document.write('<font color=#777777> $table $id = ".$GG[$id]." $ip = $ipadd </font>');";
|
|||
|
|
//echo "window.scrollTo(0,document.body.scrollHeight);";
|
|||
|
|
}else{
|
|||
|
|
if(!$GG['all']) $where=" where ipadd=''";//ֻˢ<D6BB><CBA2>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>ݵĵ<DDB5><C4B5><EFBFBD>
|
|||
|
|
echo $Admintop;
|
|||
|
|
$rs=$db->query("select ".$GG['field']." from ".$table." $where");
|
|||
|
|
$s=$db->rscount($rs);
|
|||
|
|
echo "<br>ִ<><D6B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><b>".$s."</b> ʣ<>ࣺ<b><span id=all style='color:red;'>".$s."</span></b><br>";
|
|||
|
|
for($i=0;$i<$s;$i++){
|
|||
|
|
$row=$db->getfetch($rs);
|
|||
|
|
echo "<script src='sip.php?conn=".$GG['conn']."&table=".$GG['table']."&field=".$GG['field']."&".$id."=".$row[$id]."'></script><br>";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
$db->close();
|
|||
|
|
unset($GG,$db);
|
|||
|
|
?>
|