git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
b56d7a5
Branches
Tags
master
ticket
webinterface.git
modules
su
back_to_admin.php
back-to-admin feature
bernd
commited
b56d7a5
at 2008-09-22 19:56:03
back_to_admin.php
Blame
History
Raw
<?php require_once('inc/debug.php'); if (isset($_SESSION['admin_user']) ) { $admin_user = $_SESSION['admin_user']; $role = find_role($admin_user, '', True); if ($role & ROLE_SYSADMIN) { setup_session($role, $admin_user); unset($_SESSION['admin_user']); header('Location: '.$prefix.'go/su/su'); die(); } } system_failure('Unprivilleged action');