Browse Source

Removed quick check to see if users have cookies enabled. Violates the
string freeze and didn't work properly.

pallo 25 years ago
parent
commit
71e9c3e7ca
1 changed files with 0 additions and 18 deletions
  1. 0 18
      src/login.php

+ 0 - 18
src/login.php

@@ -47,18 +47,6 @@
    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);
@@ -110,12 +98,6 @@
    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";