/***********************************************\ | Administrator's Toolbox | | ~~~~~~~~~~~~~~~~~~~~~~~~ | | This script allows members of a global Admin | | group to modify the global preferences, user | | profiles, global lists, global groups, pretty | | much everything global. | \***********************************************/ if (!defined('IN_FS')) { die('Do not access this file directly.'); } if (!$user->perms('is_admin')) { Flyspray::show_error(4); } $proj = new Project(0); $proj->setCookie(); $page->pushTpl('admin.menu.tpl'); switch ($area = Req::val('area', 'prefs')) { case 'users': $id = Flyspray::UserNameToId(Req::val('user_name')); if (!$id) { $id = Req::val('user_id'); } $theuser = new User($id, $proj); if ($theuser->isAnon()) { Flyspray::show_error(5, true, null, $_SESSION['prev_page']); } $page->assign('theuser', $theuser); case 'cat': case 'editgroup': // yeah, utterly stupid, is changed in 1.0 already
function _onsubmit() { global $fs, $db, $proj, $user; $proj = new Project(0); $proj->setCookie(); $action = Post::val('action'); list($type, $msg, $url) = $this->handle('action', $action); if ($type != NO_SUBMIT) { $fs = new Flyspray(); $user->get_perms(); } return array($type, $msg, $url); }