26 require_once(
"../class/config.php");
35 "id" => array (
"get",
"integer",
""),
40 if ( empty(
$id) && isset($_COOKIE[
"oldid"]) && !empty($_COOKIE[
"oldid"])) {
42 list($newuid,$passcheck)=explode(
"/",$_COOKIE[
"oldid"]);
43 $newuid=intval($newuid);
45 $msg->raise(
"ERROR",
"admin", _(
"Your authentication information are incorrect"));
50 $r=$admin->get($newuid);
51 if ($passcheck!=md5(
$r[
"pass"])) {
52 $msg->raise(
"INFO",
"admin", _(
"Your authentication information are incorrect"));
58 setcookie(
'oldid',
'',0,
'/');
59 unset($_COOKIE[
'oldid']);
62 if (!
$mem->setid($newuid)) {
67 include_once(
"adm_list.php");
73 if (!$admin->enabled) {
74 $msg->raise(
"ERROR",
"admin", _(
"This page is restricted to authorized staff"));
75 echo
$msg->msg_html_all();
82 $msg->raise(
"ERROR",
"admin", _(
"This page is restricted to authorized staff"));
83 echo
$msg->msg_html_all();
89 setcookie(
'oldid',
$oldid,0,
'/');
97 include_once(
"main.php");
102 include_once(
"head.php");
105 <h3><?php
__(
"Member login"); ?></h3>
107 echo
$msg->msg_html_all();
109 include_once(
"foot.php");
if(empty($id) &&isset($_COOKIE["oldid"]) &&!empty($_COOKIE["oldid"])) if(! $admin->enabled) $subadmin
$fields
Any ADMIN account can impersonate to any other account by using this page.
variable_get($name, $default=null, $createit_comment=null)
Return a persistent variable.
if(count($_POST) &&!defined("NOCSRF")) if(!defined('NOCHECK')) for($i=0; $i< count($classes); $i++) $oldid
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
if(!isset($is_include)) if(! $key &&! $crt) $id