plugins/SpecialGroups.php
changeset 590 03a60844c7c5
parent 573 43e7254afdb4
child 593 4f9bec0d65c1
equal deleted inserted replaced
589:88d4ed0a2898 590:03a60844c7c5
    20  *
    20  *
    21  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
    21  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
    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 $plugins->attachHook('session_started', '
    25 $plugins->attachHook('session_started', 'SpecialGroups_paths_init();');
       
    26 
       
    27 function SpecialGroups_paths_init()
       
    28 {
    26   global $paths;
    29   global $paths;
    27     $paths->add_page(Array(
    30   $paths->add_page(Array(
    28       \'name\'=>\'specialpage_groupcp\',
    31     'name'=>'specialpage_groupcp',
    29       \'urlname\'=>\'Usergroups\',
    32     'urlname'=>'Usergroups',
    30       \'namespace\'=>\'Special\',
    33     'namespace'=>'Special',
    31       \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\',
    34     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
    32       ));
    35     ));
    33     ');
    36 }
    34 
    37 
    35 function page_Special_Usergroups()
    38 function page_Special_Usergroups()
    36 {
    39 {
    37   global $db, $session, $paths, $template, $plugins; // Common objects
    40   global $db, $session, $paths, $template, $plugins; // Common objects
    38   global $email; // Import e-mail encryption functions
    41   global $email; // Import e-mail encryption functions