Advertisement
rawyon

Untitled

Mar 7th, 2011
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1.       if ($fail)  {
  2.  //         $login_message = $loginmsg ['fail'];
  3.           include "loginmall.php";          // Visa formulär
  4.           if ( isset ($_SESSION['login'] ) ) {
  5.                 unset($_SESSION[$_LOGIN]);
  6.                 }
  7.                 echo "Du har skrivit in fel lösenord/användarnamn, försök igen!";
  8.       }
  9.    else {
  10.         // Inloggnig lyckad!
  11.         session_regenerate_id();
  12.         $_SESSION['login'] = $_POST['username'];
  13.         define('adminReferEditor', true);
  14.         header("Location: ckeditorpage.php");
  15.         exit;
  16.         }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement