upgrade.php
changeset 110 68e030f8dfa6
parent 95 1dac77b46f07
child 112 008b1c42be72
equal deleted inserted replaced
109:93ef7df77847 110:68e030f8dfa6
   395 }
   395 }
   396 
   396 
   397 switch($_GET['mode'])
   397 switch($_GET['mode'])
   398 {
   398 {
   399   case "login":
   399   case "login":
       
   400     if ( $session->user_logged_in && $session->user_level < $ul_admin )
       
   401     {
       
   402       $template->header();
       
   403       echo '<p>Your user account does not have permission to perform an upgrade of Enano. Return to the <a href="index.php">index page</a>.</p>';
       
   404       $template->footer();
       
   405       exit;
       
   406     }
   400     if($session->user_logged_in && $session->user_level >= $ul_admin)
   407     if($session->user_logged_in && $session->user_level >= $ul_admin)
   401     {
   408     {
   402       if(isset($_POST['login']))
   409       if(isset($_POST['login']))
   403       {
   410       {
   404         $session->login_without_crypto($_POST['username'], $_POST['password'], false, $ul_admin);
   411         $session->login_without_crypto($_POST['username'], $_POST['password'], false, $ul_admin);