plugins/SpecialGroups.php
changeset 960 e74741b8360b
parent 801 eb8b23f11744
child 1081 745200a9cc2a
equal deleted inserted replaced
959:68a91587271a 960:e74741b8360b
     3 {
     3 {
     4   "Plugin Name"  : "plugin_specialgroups_title",
     4   "Plugin Name"  : "plugin_specialgroups_title",
     5   "Plugin URI"   : "http://enanocms.org/",
     5   "Plugin URI"   : "http://enanocms.org/",
     6   "Description"  : "plugin_specialgroups_desc",
     6   "Description"  : "plugin_specialgroups_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 /*
    24 
    24 
    25 // $plugins->attachHook('session_started', 'SpecialGroups_paths_init();');
    25 // $plugins->attachHook('session_started', 'SpecialGroups_paths_init();');
    26 
    26 
    27 function SpecialGroups_paths_init()
    27 function SpecialGroups_paths_init()
    28 {
    28 {
    29   global $paths;
    29   register_special_page('Usergroups', 'specialpage_groupcp');
    30   $paths->add_page(Array(
       
    31     'name'=>'specialpage_groupcp',
       
    32     'urlname'=>'Usergroups',
       
    33     'namespace'=>'Special',
       
    34     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
       
    35     ));
       
    36 }
    30 }
    37 
    31 
    38 function page_Special_Usergroups()
    32 function page_Special_Usergroups()
    39 {
    33 {
    40   global $db, $session, $paths, $template, $plugins; // Common objects
    34   global $db, $session, $paths, $template, $plugins; // Common objects