42 'namespace'=>'Special', |
42 'namespace'=>'Special', |
43 'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'', |
43 'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'', |
44 )); |
44 )); |
45 } |
45 } |
46 |
46 |
|
47 $plugins->attachHook('session_started', 'SpecialAdmin_theme_init();'); |
47 $plugins->attachHook('common_post', 'SpecialAdmin_include();'); |
48 $plugins->attachHook('common_post', 'SpecialAdmin_include();'); |
|
49 |
|
50 function SpecialAdmin_theme_init() |
|
51 { |
|
52 global $db, $session, $paths, $template, $plugins; // Common objects |
|
53 |
|
54 // Admin pages that were too enormous to be in this file were split off into the plugins/admin/ directory in 1.0.1. |
|
55 // Only load these files if we're looking to load the admin panel |
|
56 list($pid, $ns) = RenderMan::strToPageID($paths->get_pageid_from_url()); |
|
57 if ( $ns == 'Admin' || ( $pid == 'Administration' && $ns == 'Special' ) ) |
|
58 { |
|
59 // Set the theme |
|
60 $session->theme = 'admin'; |
|
61 $session->style = 'default'; |
|
62 |
|
63 $template->add_header('<script type="text/javascript" src="' . cdnPath . '/includes/clientside/static/admin-menu.js"></script>'); |
|
64 } |
|
65 } |
48 |
66 |
49 function SpecialAdmin_include() |
67 function SpecialAdmin_include() |
50 { |
68 { |
51 global $db, $session, $paths, $template, $plugins; // Common objects |
69 global $db, $session, $paths, $template, $plugins; // Common objects |
52 |
70 |
64 require(ENANO_ROOT . '/plugins/admin/UserRanks.php'); |
82 require(ENANO_ROOT . '/plugins/admin/UserRanks.php'); |
65 require(ENANO_ROOT . '/plugins/admin/LangManager.php'); |
83 require(ENANO_ROOT . '/plugins/admin/LangManager.php'); |
66 require(ENANO_ROOT . '/plugins/admin/ThemeManager.php'); |
84 require(ENANO_ROOT . '/plugins/admin/ThemeManager.php'); |
67 require(ENANO_ROOT . '/plugins/admin/PluginManager.php'); |
85 require(ENANO_ROOT . '/plugins/admin/PluginManager.php'); |
68 require(ENANO_ROOT . '/plugins/admin/CacheManager.php'); |
86 require(ENANO_ROOT . '/plugins/admin/CacheManager.php'); |
69 |
|
70 // Set the theme |
|
71 $session->theme = 'admin'; |
|
72 $session->style = 'default'; |
|
73 |
|
74 $template->add_header('<script type="text/javascript" src="' . cdnPath . '/includes/clientside/static/admin-menu.js"></script>'); |
|
75 } |
87 } |
76 } |
88 } |
77 |
89 |
78 // For convenience and nothing more. |
90 // For convenience and nothing more. |
79 function acp_start_form() |
91 function acp_start_form() |