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 |