query("select lastip from membres where uid='$oldid';"); $db->next_record(); if ($db->f("lastip") != getenv("REMOTE_ADDR") ) { die('Error : bad IP address'); } if (!$mem->setid($oldid)) { $oldid=null; $error=$err->errstr(); include("index.php"); exit(); } $oldid=null; include_once("main.php"); exit(); } if (!$admin->enabled) { __("This page is restricted to authorized staff"); exit(); } $fields = array ( "id" => array ("request", "integer", 0), ); getFields($fields); $subadmin=variable_get("subadmin_restriction"); if ($subadmin==0 && !$admin->checkcreator($id)) { __("This page is restricted to authorized staff"); exit(); } if (!$r=$admin->get($id)) { $error=$err->errstr(); } else { setcookie('oldid',$cuid,0,'/admin/'); if (!$mem->setid($id)) { $error=$err->errstr(); include("index.php"); exit(); } include_once("main.php"); exit(); } include_once("head.php"); ?>
$error"; include_once("foot.php"); exit(); } ?>