equal
deleted
inserted
replaced
3 { |
3 { |
4 "Plugin Name" : "plugin_specialcss_title", |
4 "Plugin Name" : "plugin_specialcss_title", |
5 "Plugin URI" : "http://enanocms.org/", |
5 "Plugin URI" : "http://enanocms.org/", |
6 "Description" : "plugin_specialcss_desc", |
6 "Description" : "plugin_specialcss_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 /* |
22 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
22 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
23 */ |
23 */ |
24 |
24 |
25 global $db, $session, $paths, $template, $plugins; // Common objects |
25 global $db, $session, $paths, $template, $plugins; // Common objects |
26 |
26 |
27 // $plugins->attachHook('session_started', 'SpecialCSS_paths_init();'); |
|
28 |
|
29 function SpecialCSS_paths_init() |
27 function SpecialCSS_paths_init() |
30 { |
28 { |
31 global $paths; |
29 global $paths; |
32 $paths->add_page(Array( |
30 register_special_page('CSS', 'specialpage_css', false); |
33 'name'=>'specialpage_css', |
|
34 'urlname'=>'CSS', |
|
35 'namespace'=>'Special', |
|
36 'special'=>0,'visible'=>0,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'', |
|
37 )); |
|
38 } |
31 } |
39 |
32 |
40 // function names are IMPORTANT!!! The name pattern is: page_<namespace ID>_<page URLname, without namespace> |
33 // function names are IMPORTANT!!! The name pattern is: page_<namespace ID>_<page URLname, without namespace> |
41 |
34 |
42 function page_Special_CSS() |
35 function page_Special_CSS() |