X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Flogin.php;h=10584e2002ae24c2d419f776a0ed14886e2854bd;hb=f55b52031426145a6c26caa19bc4d1e72b341f15;hp=8ae5ea37d8cd8fa67c68f8bf7807fa909b04b8d3;hpb=eb5073496da0bcc9b07109f1c31f837ed90cf199;p=squirrelmail.git diff --git a/src/login.php b/src/login.php index 8ae5ea37..10584e20 100644 --- a/src/login.php +++ b/src/login.php @@ -1,69 +1,184 @@ - - /** - ** login.php - ** - ** Very simple login screen that clears the cookie every time it's loaded - ** - **/ - - setcookie("username", "", time(), "/"); - setcookie("key", "", time(), "/"); - setcookie("logged_in", 0, time(), "/"); -?> - - - include("../config/config.php"); - include("../functions/strings.php"); +\n"; +/** + * Find out the base URI to set cookies. + */ +if (!function_exists('sqm_baseuri')){ + require_once(SM_PATH . 'functions/display_messages.php'); +} +$base_uri = sqm_baseuri(); + +/* + * In case the last session was not terminated properly, make sure + * we get a new one. + */ + +sqsession_destroy(); - // let's check to see if they compiled with gettext support - if (!function_exists("_")) { - echo "