fork download
  1. <?php
  2. $_SESSION["loginStatus"] = "passed";
  3. $_SESSION["username"] = $isPassed[0]["username"];
  4. $salt = "nx37ncn9384xmyx89YXYyxn9x*&#Yxn39yx9Y#bxywB^xb#&6(XB@74NXn9x3&nxN#*YNxn99#XNrnyx(#Yxn9xn3(xn93ynxYNxn#(Xn39Y3xn9y";
  5. setcookie("username", $isPassed[0]["username"], time() + 60 * 60 * 60 * 24);
  6. setcookie("cryptname", crypt($isPassed[0]["username"], $salt), time() + 60 * 60 * 60 * 24);
  7. header("Location: http://{$_SERVER['SERVER_NAME']}/chatbox/index.php");
  8. die();
Success #stdin #stdout #stderr 0.01s 20520KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined variable: isPassed in /home/YzsiH4/prog.php on line 3
PHP Notice:  Undefined variable: isPassed in /home/YzsiH4/prog.php on line 5
PHP Notice:  Undefined variable: isPassed in /home/YzsiH4/prog.php on line 6
PHP Notice:  Undefined index: SERVER_NAME in /home/YzsiH4/prog.php on line 7