plugins/SpecialCSS.php
changeset 960 e74741b8360b
parent 801 eb8b23f11744
child 1081 745200a9cc2a
equal deleted inserted replaced
959:68a91587271a 960:e74741b8360b
     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()