plugins/SpecialPageFuncs.php
changeset 682 9523cc7d767c
parent 648 082b7b47b859
child 685 17ebe24cdf85
equal deleted inserted replaced
681:424ea7aac0ca 682:9523cc7d767c
    85 {
    85 {
    86   global $db, $session, $paths, $template, $plugins; // Common objects
    86   global $db, $session, $paths, $template, $plugins; // Common objects
    87   global $lang;
    87   global $lang;
    88   
    88   
    89   $whitelist_ns = array('Article', 'User', 'Help', 'Template', 'Category', 'Project');
    89   $whitelist_ns = array('Article', 'User', 'Help', 'Template', 'Category', 'Project');
       
    90   if ( $session->user_level >= USER_LEVEL_ADMIN )
       
    91   {
       
    92     $whitelist_ns[] = 'System';
       
    93   }
    90   $code = $plugins->setHook('page_create_ns_whitelist');
    94   $code = $plugins->setHook('page_create_ns_whitelist');
    91   foreach ( $code as $cmd )
    95   foreach ( $code as $cmd )
    92   {
    96   {
    93     eval($cmd);
    97     eval($cmd);
    94   }
    98   }