1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Userclass display on log options

This commit is contained in:
e107steved
2007-12-29 22:32:58 +00:00
parent b2642bf3b3
commit ac7f0ddf36
2 changed files with 14 additions and 14 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/admin_log.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/admin_log.php,v $
| $Revision: 1.7 $ | $Revision: 1.8 $
| $Date: 2007-12-29 22:07:42 $ | $Date: 2007-12-29 22:32:58 $
| $Author: e107steved $ | $Author: e107steved $
| |
| Preferences: | Preferences:
@@ -375,11 +375,11 @@ $audit_checkboxes = array(
); );
//Uncomment once inherited user classes //Uncomment once inherited user classes
// if (!isset($e_userclass) && !is_object($e_userclass)) if (!isset($e_userclass) && !is_object($e_userclass))
// { {
require_once(e_HANDLER."userclass_class.php"); require_once(e_HANDLER."userclass_class.php");
// $e_userclass = new user_class; $e_userclass = new user_class;
// } }
$user_signup_opts = array_flip(explode(',',varset($pref['user_audit_opts'],''))); $user_signup_opts = array_flip(explode(',',varset($pref['user_audit_opts'],'')));
$text = "<div style='text-align:center'> $text = "<div style='text-align:center'>
@@ -390,10 +390,10 @@ $audit_checkboxes = array(
<td style='width:60%;vertical-align:top;' class='forumheader3'>"; <td style='width:60%;vertical-align:top;' class='forumheader3'>";
// Uncomment once inherited userclasses // Uncomment once inherited userclasses
// $text .= "<select name='class_select'>\n"; $text .= "<select class='tbox' name='class_select'>\n";
// $text .= $e_userclass->vetted_tree('user_audit_class',array($e_userclass,'select'), varset($pref['user_audit_class'],''),'force'); $text .= $e_userclass->vetted_tree('user_audit_class',array($e_userclass,'select'), varset($pref['user_audit_class'],''),'force');
// $text .= "</select>\n"; $text .= "</select>\n";
$text .= r_userclass('user_audit_class', varset($pref['user_audit_class'],''),'off','nobody,admin,user,classes'); // $text .= r_userclass('user_audit_class', varset($pref['user_audit_class'],''),'off','nobody,admin,user,classes');
$text .= "</td> $text .= "</td>
</tr> </tr>

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/userclass_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/userclass_class.php,v $
| $Revision: 1.6 $ | $Revision: 1.7 $
| $Date: 2007-12-22 12:39:24 $ | $Date: 2007-12-29 22:32:58 $
| $Author: e107steved $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -254,14 +254,14 @@ class user_class
// Do the 'fixed' classes next // Do the 'fixed' classes next
foreach ($this->text_class_link as $k => $v) foreach ($this->text_class_link as $k => $v)
{ {
if (isset($opt_arr[$k])) if (isset($opt_arr[$k]) || isset($opt_arr['force']))
{ {
$ret[$v] = $just_ids ? '1' : $this->fixed_classes[$v]; $ret[$v] = $just_ids ? '1' : $this->fixed_classes[$v];
} }
} }
// Now do the user-defined classes // Now do the user-defined classes
if (isset($opt_arr['classes'])) if (isset($opt_arr['classes']) || isset($opt_arr['force']))
{ // Display those classes the user is allowed to: { // Display those classes the user is allowed to:
// Main admin always sees the lot // Main admin always sees the lot
// a) Mask the 'fixed' user classes which have already been processed // a) Mask the 'fixed' user classes which have already been processed