install/upgrade.php
changeset 486 600a92aa34c7
parent 484 340c81fdd350
child 494 6c78cc456091
equal deleted inserted replaced
485:7134d4bf7a23 486:600a92aa34c7
    99   if ( isset($_POST['do_login']) )
    99   if ( isset($_POST['do_login']) )
   100   {
   100   {
   101     if ( !$session->user_logged_in )
   101     if ( !$session->user_logged_in )
   102     {
   102     {
   103       $result = $session->login_without_crypto($_POST['username'], $_POST['password'], false, USER_LEVEL_MEMBER);
   103       $result = $session->login_without_crypto($_POST['username'], $_POST['password'], false, USER_LEVEL_MEMBER);
   104       echo '<b>Session manager returned error:</b>' . '<pre>' . print_r($result, true) . '</pre>';
       
   105       exit();
       
   106     }
   104     }
   107     $result = $session->login_without_crypto($_POST['username'], $_POST['password'], false, USER_LEVEL_ADMIN);
   105     $result = $session->login_without_crypto($_POST['username'], $_POST['password'], false, USER_LEVEL_ADMIN);
   108     if ( $result['success'] )
   106     if ( $result['success'] )
   109     {
   107     {
   110       header('HTTP/1.1 302 Some kind of redirect with implied no content');
   108       header('HTTP/1.1 302 Some kind of redirect with implied no content');