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() |
2091 fontWeight: 'bold' |
2103 fontWeight: 'bold' |
2092 }, |
2104 }, |
2093 onclick: function() |
2105 onclick: function() |
2094 { |
2106 { |
2095 var tigraentry = document.getElementById('i_div0_0').parentNode; |
2107 var tigraentry = document.getElementById('i_div0_0').parentNode; |
2096 var tigraobj = $(tigraentry); |
2108 var tigraobj = $dynano(tigraentry); |
2097 var div = document.createElement('div'); |
2109 var div = document.createElement('div'); |
2098 div.style.backgroundColor = '#FFFFFF'; |
2110 div.style.backgroundColor = '#FFFFFF'; |
2099 domObjChangeOpac(70, div); |
2111 domObjChangeOpac(70, div); |
2100 div.style.position = 'absolute'; |
2112 div.style.position = 'absolute'; |
2101 var top = tigraobj.Top(); |
2113 var top = tigraobj.Top(); |