工会web
This commit is contained in:
16
GonghuiWeb/www/adminxx/sips.php
Normal file
16
GonghuiWeb/www/adminxx/sips.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
//×Ô¶¯Ìí¼ÓIPµØÇø 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);
|
||||
?>
|
||||
Reference in New Issue
Block a user