|
@@ -561,52 +561,6 @@ function AdminHome()
|
|
|
' . sprintf($txt['admin_main_welcome'], $txt['admin_center'], $txt['help'], $txt['help']),
|
|
|
);
|
|
|
|
|
|
-
|
|
|
- // The format of this array is: permission, action, title, description, icon.
|
|
|
- $quick_admin_tasks = array(
|
|
|
- array('', 'credits', 'support_credits_title', 'support_credits_info', 'support_and_credits.png'),
|
|
|
- array('admin_forum', 'featuresettings', 'modSettings_title', 'modSettings_info', 'features_and_options.png'),
|
|
|
- array('admin_forum', 'maintain', 'maintain_title', 'maintain_info', 'forum_maintenance.png'),
|
|
|
- array('manage_permissions', 'permissions', 'edit_permissions', 'edit_permissions_info', 'permissions_lg.png'),
|
|
|
- array('admin_forum', 'theme;sa=admin;' . $context['session_var'] . '=' . $context['session_id'], 'theme_admin', 'theme_admin_info', 'themes_and_layout.png'),
|
|
|
- array('admin_forum', 'packages', 'package', 'package_info', 'packages_lg.png'),
|
|
|
- array('manage_smileys', 'smileys', 'smileys_manage', 'smileys_manage_info', 'smilies_and_messageicons.png'),
|
|
|
- array('moderate_forum', 'viewmembers', 'admin_users', 'member_center_info', 'members_lg.png'),
|
|
|
- );
|
|
|
-
|
|
|
- $context['quick_admin_tasks'] = array();
|
|
|
- foreach ($quick_admin_tasks as $task)
|
|
|
- {
|
|
|
- if (!empty($task[0]) && !allowedTo($task[0]))
|
|
|
- continue;
|
|
|
-
|
|
|
- $context['quick_admin_tasks'][] = array(
|
|
|
- 'href' => $scripturl . '?action=admin;area=' . $task[1],
|
|
|
- 'link' => '<a href="' . $scripturl . '?action=admin;area=' . $task[1] . '">' . $txt[$task[2]] . '</a>',
|
|
|
- 'title' => $txt[$task[2]],
|
|
|
- 'description' => $txt[$task[3]],
|
|
|
- 'icon' => $task[4],
|
|
|
- 'is_last' => false
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- if (count($context['quick_admin_tasks']) % 2 == 1)
|
|
|
- {
|
|
|
- $context['quick_admin_tasks'][] = array(
|
|
|
- 'href' => '',
|
|
|
- 'link' => '',
|
|
|
- 'title' => '',
|
|
|
- 'description' => '',
|
|
|
- 'is_last' => true
|
|
|
- );
|
|
|
- $context['quick_admin_tasks'][count($context['quick_admin_tasks']) - 2]['is_last'] = true;
|
|
|
- }
|
|
|
- elseif (count($context['quick_admin_tasks']) != 0)
|
|
|
- {
|
|
|
- $context['quick_admin_tasks'][count($context['quick_admin_tasks']) - 1]['is_last'] = true;
|
|
|
- $context['quick_admin_tasks'][count($context['quick_admin_tasks']) - 2]['is_last'] = true;
|
|
|
- }
|
|
|
-
|
|
|
// Lastly, fill in the blanks in the support resources paragraphs.
|
|
|
$txt['support_resources_p1'] = sprintf($txt['support_resources_p1'],
|
|
|
'http://wiki.simplemachines.org/',
|