plugins/SpecialAdmin.php
changeset 334 c72b545f1304
parent 329 0437a7cf1acc
child 335 67bd3121a12e
equal deleted inserted replaced
333:32429702305e 334:c72b545f1304
    20  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
    20  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
    21  */
    21  */
    22  
    22  
    23 global $db, $session, $paths, $template, $plugins; // Common objects
    23 global $db, $session, $paths, $template, $plugins; // Common objects
    24 
    24 
    25 $plugins->attachHook('base_classes_initted', '
    25 $plugins->attachHook('session_started', '
    26   global $paths;
    26   global $paths;
    27     $paths->add_page(Array(
    27     $paths->add_page(Array(
    28       \'name\'=>\'Administration\',
    28       \'name\'=>\'specialpage_administration\',
    29       \'urlname\'=>\'Administration\',
    29       \'urlname\'=>\'Administration\',
    30       \'namespace\'=>\'Special\',
    30       \'namespace\'=>\'Special\',
    31       \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\',
    31       \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\',
    32       ));
    32       ));
    33     
    33     
    34     $paths->add_page(Array(
    34     $paths->add_page(Array(
    35       \'name\'=>\'Manage the Sidebar\',
    35       \'name\'=>\'specialpage_manage_sidebar\',
    36       \'urlname\'=>\'EditSidebar\',
    36       \'urlname\'=>\'EditSidebar\',
    37       \'namespace\'=>\'Special\',
    37       \'namespace\'=>\'Special\',
    38       \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\',
    38       \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\',
    39       ));
    39       ));
    40   ');
    40   ');