|
@@ -56,17 +56,31 @@ function ModerationMain($dont_call = false)
|
|
|
'label' => $txt['moderation_center'],
|
|
|
'function' => 'ModerationHome',
|
|
|
),
|
|
|
- 'modlog' => array(
|
|
|
- 'label' => $txt['modlog_view'],
|
|
|
- 'enabled' => !empty($modSettings['modlog_enabled']) && $context['can_moderate_boards'],
|
|
|
- 'file' => 'Modlog.php',
|
|
|
- 'function' => 'ViewModlog',
|
|
|
+ 'settings' => array(
|
|
|
+ 'label' => $txt['mc_settings'],
|
|
|
+ 'function' => 'ModerationSettings',
|
|
|
+ ),
|
|
|
+ 'modlogoff' => array(
|
|
|
+ 'label' => $txt['mc_logoff'],
|
|
|
+ 'function' => 'ModEndSession',
|
|
|
+ 'enabled' => empty($modSettings['securityDisable_moderate']),
|
|
|
),
|
|
|
'notice' => array(
|
|
|
'file' => 'ModerationCenter.php',
|
|
|
'function' => 'ShowNotice',
|
|
|
'select' => 'index'
|
|
|
),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ 'logs' => array(
|
|
|
+ 'title' => $txt['mc_logs'],
|
|
|
+ 'areas' => array(
|
|
|
+ 'modlog' => array(
|
|
|
+ 'label' => $txt['modlog_view'],
|
|
|
+ 'enabled' => !empty($modSettings['modlog_enabled']) && $context['can_moderate_boards'],
|
|
|
+ 'file' => 'Modlog.php',
|
|
|
+ 'function' => 'ViewModlog',
|
|
|
+ ),
|
|
|
'warnings' => array(
|
|
|
'label' => $txt['mc_warnings'],
|
|
|
'enabled' => in_array('w', $context['admin_features']) && $modSettings['warning_settings'][0] == 1 && $context['can_moderate_boards'],
|
|
@@ -76,15 +90,6 @@ function ModerationMain($dont_call = false)
|
|
|
'templates' => array($txt['mc_warning_templates'], 'issue_warning'),
|
|
|
),
|
|
|
),
|
|
|
- 'userwatch' => array(
|
|
|
- 'label' => $txt['mc_watched_users_title'],
|
|
|
- 'enabled' => in_array('w', $context['admin_features']) && $modSettings['warning_settings'][0] == 1 && $context['can_moderate_boards'],
|
|
|
- 'function' => 'ViewWatchedUsers',
|
|
|
- 'subsections' => array(
|
|
|
- 'member' => array($txt['mc_watched_users_member']),
|
|
|
- 'post' => array($txt['mc_watched_users_post']),
|
|
|
- ),
|
|
|
- ),
|
|
|
),
|
|
|
),
|
|
|
'posts' => array(
|
|
@@ -125,6 +130,15 @@ function ModerationMain($dont_call = false)
|
|
|
'title' => $txt['mc_groups'],
|
|
|
'enabled' => $context['can_moderate_groups'],
|
|
|
'areas' => array(
|
|
|
+ 'userwatch' => array(
|
|
|
+ 'label' => $txt['mc_watched_users_title'],
|
|
|
+ 'enabled' => in_array('w', $context['admin_features']) && $modSettings['warning_settings'][0] == 1 && $context['can_moderate_boards'],
|
|
|
+ 'function' => 'ViewWatchedUsers',
|
|
|
+ 'subsections' => array(
|
|
|
+ 'member' => array($txt['mc_watched_users_member']),
|
|
|
+ 'post' => array($txt['mc_watched_users_post']),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
'groups' => array(
|
|
|
'label' => $txt['mc_group_requests'],
|
|
|
'file' => 'Groups.php',
|
|
@@ -138,20 +152,6 @@ function ModerationMain($dont_call = false)
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
- 'prefs' => array(
|
|
|
- 'title' => $txt['mc_prefs'],
|
|
|
- 'areas' => array(
|
|
|
- 'settings' => array(
|
|
|
- 'label' => $txt['mc_settings'],
|
|
|
- 'function' => 'ModerationSettings',
|
|
|
- ),
|
|
|
- 'modlogoff' => array(
|
|
|
- 'label' => $txt['mc_logoff'],
|
|
|
- 'function' => 'ModEndSession',
|
|
|
- 'enabled' => empty($modSettings['securityDisable_moderate']),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
);
|
|
|
|
|
|
// Any files to include for moderation?
|
|
@@ -1618,9 +1618,10 @@ function ViewWarningLog()
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
+/* Commented out because of an Assertion failed error and an undefined index (href)
|
|
|
'form' => array(
|
|
|
'token' => 'mod-wt',
|
|
|
- ),
|
|
|
+ ),*/
|
|
|
);
|
|
|
|
|
|
// Create the watched user list.
|