X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Flogin.php;h=4c4c41c3f0fa3c3115ba34c69f3f97cdc997fea1;hb=c3ccfa1912b4ca47279d259bb587ceb293ce5d83;hp=8ae5ea37d8cd8fa67c68f8bf7807fa909b04b8d3;hpb=eb5073496da0bcc9b07109f1c31f837ed90cf199;p=squirrelmail.git diff --git a/src/login.php b/src/login.php index 8ae5ea37..4c4c41c3 100644 --- a/src/login.php +++ b/src/login.php @@ -1,69 +1,161 @@ - - /** - ** 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 "