Removed quick check to see if users have cookies enabled. Violates the
authorpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 13 Sep 2000 07:43:46 +0000 (07:43 +0000)
committerpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 13 Sep 2000 07:43:46 +0000 (07:43 +0000)
string freeze and didn't work properly.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@740 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/login.php

index 6da9abd..dc6447b 100644 (file)
    ereg ("(^.*/)[^/]+/[^/]+$", $PHP_SELF, $regs);
    $base_uri = $regs[1];
 
-   if ($testingcookie != 1){ 
-      setcookie("TestCookie", "Checking cookies", 0 , $base_uri);
-      header("Location: " . $base_uri . "src/login.php?testingcookie=1");
-   }
-   if(!isset($TestCookie)){
-      $no_cookies = true;
-   } else {
-      // Cookies are enabled... Deleting test cookie.
-      setcookie("TestCookie", "", 0, $base_uri);
-      $no_cookies = false;
-   }
-   
    setcookie("username", "", 0, $base_uri);
    setcookie("key", "", 0, $base_uri);
    setcookie("logged_in", 0, 0, $base_uri);
    echo "\"></CENTER>\n";
    echo "      </TD>\n";
    echo "   </TR>\n";
-   if ($no_cookies){
-     echo "   <TR><TD>\n";
-     echo "<FONT COLOR=\"FF0000\"><CENTER>It appears that your browser is not accepting cookies.".
-          " Please make sure you have cookies enabled before proceding.</CENTER></FONT>";
-     echo "   </TD></TR>\n";
-   } 
    echo "</TABLE>\n";
    echo "<input type=hidden name=just_logged_in value=1>\n";
    echo "</FORM>\n";