equal
deleted
inserted
replaced
445 } |
445 } |
446 if($session->user_logged_in && $session->user_level >= $ul_admin) |
446 if($session->user_logged_in && $session->user_level >= $ul_admin) |
447 { |
447 { |
448 if(isset($_POST['login'])) |
448 if(isset($_POST['login'])) |
449 { |
449 { |
450 $session->login_without_crypto($_POST['username'], $_POST['password'], false, $ul_admin); |
450 $result = $session->login_without_crypto($_POST['username'], $_POST['password'], false, $ul_admin); |
451 if($session->sid_super) |
451 if($session->sid_super) |
452 { |
452 { |
453 header('Location: upgrade.php?mode=welcome&auth='.$session->sid_super); |
453 header('Location: upgrade.php?mode=welcome&auth='.$session->sid_super); |
454 exit; |
454 exit; |
455 } |
455 } |
462 <th colspan="2">You must re-authenticate to perform this upgrade.</th> |
462 <th colspan="2">You must re-authenticate to perform this upgrade.</th> |
463 </tr> |
463 </tr> |
464 <?php |
464 <?php |
465 if(isset($_POST['login'])) |
465 if(isset($_POST['login'])) |
466 { |
466 { |
467 echo '<tr><td colspan="2"><p style="color: red;">Login failed. Bad password?</p></td></tr>'; |
467 echo '<tr><td colspan="2"><p style="color: red;">Login failed: '. $result['error'] . '</p></td></tr>'; |
468 } |
468 } |
469 ?> |
469 ?> |
470 <tr> |
470 <tr> |
471 <td>Username:</td><td><input type="text" name="username" size="30" /></td> |
471 <td>Username:</td><td><input type="text" name="username" size="30" /></td> |
472 </tr> |
472 </tr> |