16 lines
551 B
PHP
16 lines
551 B
PHP
|
|
<?php
|
|||
|
|
//<2F>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>IP<49><50><EFBFBD><EFBFBD> sips.php?conn=user&table=members&field=uid,regip&uid=$uid
|
|||
|
|
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['table'] && $GG['field']){
|
|||
|
|
list($id,$ip)=explode(',',$GG['field']);
|
|||
|
|
$ipadd=convertip("../../",$db->getdy($ip,$table,$id."=".$GG[$id]));
|
|||
|
|
$db->update($table,"ipadd='".$ipadd."'",$id."=".$GG[$id]);
|
|||
|
|
echo "document.getElementById('sip".$GG[$id]."').innerHTML='".$ipadd."';";
|
|||
|
|
}
|
|||
|
|
$db->close();
|
|||
|
|
unset($GG,$db);
|
|||
|
|
?>
|