. // It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise. // You can get copies of the licenses here: // affero.org: Affero General Public License version 1 (AGPLv1) // AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING". include_once('../Smarty.class.php'); $main_smarty = new Smarty; include('../config.php'); include(mnminclude.'html1.php'); include(mnminclude.'user.php'); include(mnminclude.'smartyvariables.php'); include(mnminclude.'admin_config.php'); global $db;check_referrer(); force_authentication(); $canIhaveAccess = 0; $canIhaveAccess = $canIhaveAccess + checklevel('god'); if($canIhaveAccess == 0){ // $main_smarty->assign('tpl_center', '/admin/admin_access_denied'); // $main_smarty->display($template_dir . '/admin/admin.tpl'); header("Location: " . getmyurl('login', $_SERVER['REQUEST_URI'])); die();} // sidebar $main_smarty = do_sidebar($main_smarty); if(isset($_REQUEST['id'])){ $user_id = $_REQUEST['id']; if(is_numeric($user_id)){ $user = new User; $user->id=$user_id; $user->read(); $db->query(" UPDATE ".table_users." SET `user_modification` = NOW() , `user_lastlogin` = NOW() WHERE `user_id` =".$user_id." LIMIT 1 "); echo "
The user ".$user->username." is now Validated.

"; } else die; } // pagenamedefine('pagename', 'admin_user_validate'); $main_smarty->assign('pagename', pagename);?>