plugins/PrivateMessages.php
changeset 960 e74741b8360b
parent 826 dcf5381ce8ba
child 1081 745200a9cc2a
equal deleted inserted replaced
959:68a91587271a 960:e74741b8360b
     3 {
     3 {
     4   "Plugin Name"  : "plugin_privatemessages_title",
     4   "Plugin Name"  : "plugin_privatemessages_title",
     5   "Plugin URI"   : "http://enanocms.org/",
     5   "Plugin URI"   : "http://enanocms.org/",
     6   "Description"  : "plugin_privatemessages_desc",
     6   "Description"  : "plugin_privatemessages_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 /*
    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', 'PrivateMessages_paths_init();');
       
    28 
       
    29 function PrivateMessages_paths_init()
    27 function PrivateMessages_paths_init()
    30 {
    28 {
    31   global $paths;
    29   register_special_page('PrivateMessages', 'specialpage_private_messages');
    32   $paths->add_page(Array(
       
    33       'name'=>'specialpage_private_messages',
       
    34       'urlname'=>'PrivateMessages',
       
    35       'namespace'=>'Special',
       
    36       'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
       
    37     ));
       
    38 }
    30 }
    39 
    31 
    40 function page_Special_PrivateMessages()
    32 function page_Special_PrivateMessages()
    41 {
    33 {
    42   global $db, $session, $paths, $template, $plugins; // Common objects
    34   global $db, $session, $paths, $template, $plugins; // Common objects