plugins/SpecialAdmin.php
changeset 140 40f7fa5fd061
parent 133 af0f6ec48de3
child 142 ca9118d9c0f2
equal deleted inserted replaced
139:070ff1509cc2 140:40f7fa5fd061
    40   ');
    40   ');
    41 
    41 
    42 // Admin pages that were too enormous to be in this file were split off into the plugins/admin/ directory in 1.0.1
    42 // Admin pages that were too enormous to be in this file were split off into the plugins/admin/ directory in 1.0.1
    43 require(ENANO_ROOT . '/plugins/admin/PageGroups.php');
    43 require(ENANO_ROOT . '/plugins/admin/PageGroups.php');
    44 require(ENANO_ROOT . '/plugins/admin/SecurityLog.php');
    44 require(ENANO_ROOT . '/plugins/admin/SecurityLog.php');
       
    45 require(ENANO_ROOT . '/plugins/admin/UserManager.php');
    45 
    46 
    46 // function names are IMPORTANT!!! The name pattern is: page_<namespace ID>_<page URLname, without namespace>
    47 // function names are IMPORTANT!!! The name pattern is: page_<namespace ID>_<page URLname, without namespace>
    47 
    48 
    48 function page_Admin_Home() {
    49 function page_Admin_Home() {
    49   global $db, $session, $paths, $template, $plugins; // Common objects
    50   global $db, $session, $paths, $template, $plugins; // Common objects
   836   {/if}
   837   {/if}
   837 {/slider}</pre>
   838 {/slider}</pre>
   838   <?php
   839   <?php
   839 }
   840 }
   840 
   841 
       
   842 /*
   841 function page_Admin_UserManager() {
   843 function page_Admin_UserManager() {
   842   global $db, $session, $paths, $template, $plugins; // Common objects
   844   global $db, $session, $paths, $template, $plugins; // Common objects
   843   if ( $session->auth_level < USER_LEVEL_ADMIN || $session->user_level < USER_LEVEL_ADMIN )
   845   if ( $session->auth_level < USER_LEVEL_ADMIN || $session->user_level < USER_LEVEL_ADMIN )
   844   {
   846   {
   845     echo '<h3>Error: Not authenticated</h3><p>It looks like your administration session is invalid or you are not authorized to access this administration page. Please <a href="' . makeUrlNS('Special', 'Login/' . $paths->nslist['Special'] . 'Administration', 'level=' . USER_LEVEL_ADMIN, true) . '">re-authenticate</a> to continue.</p>';
   847     echo '<h3>Error: Not authenticated</h3><p>It looks like your administration session is invalid or you are not authorized to access this administration page. Please <a href="' . makeUrlNS('Special', 'Login/' . $paths->nslist['Special'] . 'Administration', 'level=' . USER_LEVEL_ADMIN, true) . '">re-authenticate</a> to continue.</p>';
  1103       echo '</table>';
  1105       echo '</table>';
  1104     }
  1106     }
  1105     $db->free_result();
  1107     $db->free_result();
  1106   }
  1108   }
  1107 }
  1109 }
       
  1110 */
  1108 
  1111 
  1109 function page_Admin_GroupManager()
  1112 function page_Admin_GroupManager()
  1110 {
  1113 {
  1111   global $db, $session, $paths, $template, $plugins; // Common objects
  1114   global $db, $session, $paths, $template, $plugins; // Common objects
  1112   if ( $session->auth_level < USER_LEVEL_ADMIN || $session->user_level < USER_LEVEL_ADMIN )
  1115   if ( $session->auth_level < USER_LEVEL_ADMIN || $session->user_level < USER_LEVEL_ADMIN )