plugins/PrivateMessages.php
changeset 590 03a60844c7c5
parent 564 a1c450a911a6
child 593 4f9bec0d65c1
equal deleted inserted replaced
589:88d4ed0a2898 590:03a60844c7c5
    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', '
    27 $plugins->attachHook('session_started', 'PrivateMessages_paths_init();');
       
    28 
       
    29 function PrivateMessages_paths_init()
       
    30 {
    28   global $paths;
    31   global $paths;
    29     $paths->add_page(Array(
    32   $paths->add_page(Array(
    30       \'name\'=>\'specialpage_private_messages\',
    33       'name'=>'specialpage_private_messages',
    31       \'urlname\'=>\'PrivateMessages\',
    34       'urlname'=>'PrivateMessages',
    32       \'namespace\'=>\'Special\',
    35       'namespace'=>'Special',
    33       \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\',
    36       'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
    34       ));
    37     ));
    35     ');
    38 }
    36 
    39 
    37 function page_Special_PrivateMessages()
    40 function page_Special_PrivateMessages()
    38 {
    41 {
    39   global $db, $session, $paths, $template, $plugins; // Common objects
    42   global $db, $session, $paths, $template, $plugins; // Common objects
    40   global $lang;
    43   global $lang;