From 86148a427814fda15c6964317e3cbf5399ad4696 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 10 Dec 2007 08:51:33 +0000 Subject: re-added the edit users prefs mojo --- templates/show_preference_box.inc.php | 2 +- templates/show_user_preferences.inc.php | 59 +++++++++++++++++++++++++++++++++ templates/show_users.inc.php | 3 ++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 templates/show_user_preferences.inc.php (limited to 'templates') diff --git a/templates/show_preference_box.inc.php b/templates/show_preference_box.inc.php index c70f48d0..8d4fcb15 100644 --- a/templates/show_preference_box.inc.php +++ b/templates/show_preference_box.inc.php @@ -22,7 +22,7 @@ /* I'm cheating a little here, check to see if we want to show the * Apply to All button on this page */ -if (($GLOBALS['user']->has_access(100) OR !Config::get('use_auth')) AND $_REQUEST['action'] == 'admin') { +if ((Access::check('interface','100') OR !Config::get('use_auth')) AND $_REQUEST['action'] == 'admin') { $is_admin = true; } ?> diff --git a/templates/show_user_preferences.inc.php b/templates/show_user_preferences.inc.php new file mode 100644 index 00000000..23670067 --- /dev/null +++ b/templates/show_user_preferences.inc.php @@ -0,0 +1,59 @@ + +fullname . ' ' . _('preferences'),'box box_preferences'); ?> +
+ ++ + + + + + + + + + + + + + + + + +
+ +
+
+ + +
+
 
+
+ + diff --git a/templates/show_users.inc.php b/templates/show_users.inc.php index a27963ab..797c0b16 100644 --- a/templates/show_users.inc.php +++ b/templates/show_users.inc.php @@ -73,6 +73,9 @@ foreach ($object_ids as $user_id) { + + + disabled == '1') { -- cgit