3 { |
3 { |
4 "Plugin Name" : "plugin_specialadmin_title", |
4 "Plugin Name" : "plugin_specialadmin_title", |
5 "Plugin URI" : "http://enanocms.org/", |
5 "Plugin URI" : "http://enanocms.org/", |
6 "Description" : "plugin_specialadmin_desc", |
6 "Description" : "plugin_specialadmin_desc", |
7 "Author" : "Dan Fuhry", |
7 "Author" : "Dan Fuhry", |
8 "Version" : "1.1.5", |
8 "Version" : "1.1.6", |
9 "Author URI" : "http://enanocms.org/" |
9 "Author URI" : "http://enanocms.org/" |
10 } |
10 } |
11 **!*/ |
11 **!*/ |
12 |
12 |
13 /* |
13 /* |
27 // $plugins->attachHook('session_started', 'SpecialAdmin_paths_init();'); |
27 // $plugins->attachHook('session_started', 'SpecialAdmin_paths_init();'); |
28 |
28 |
29 function SpecialAdmin_paths_init() |
29 function SpecialAdmin_paths_init() |
30 { |
30 { |
31 global $paths; |
31 global $paths; |
32 $paths->add_page(Array( |
32 |
33 'name'=>'specialpage_administration', |
33 register_special_page('Administration', 'specialpage_administration'); |
34 'urlname'=>'Administration', |
34 register_special_page('EditSidebar', 'specialpage_manage_sidebar'); |
35 'namespace'=>'Special', |
|
36 'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'', |
|
37 )); |
|
38 |
|
39 $paths->add_page(Array( |
|
40 'name'=>'specialpage_manage_sidebar', |
|
41 'urlname'=>'EditSidebar', |
|
42 'namespace'=>'Special', |
|
43 'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'', |
|
44 )); |
|
45 } |
35 } |
46 |
36 |
47 $plugins->attachHook('base_classes_initted', 'SpecialAdmin_include();'); |
37 $plugins->attachHook('base_classes_initted', 'SpecialAdmin_include();'); |
48 |
38 |
49 function SpecialAdmin_include() |
39 function SpecialAdmin_include() |