<?php
$_SESSION["loginStatus"] = "passed";
$_SESSION["username"] = $isPassed[0]["username"];
$salt = "nx37ncn9384xmyx89YXYyxn9x*&#Yxn39yx9Y#bxywB^xb#&6(XB@74NXn9x3&nxN#*YNxn99#XNrnyx(#Yxn9xn3(xn93ynxYNxn#(Xn39Y3xn9y";
setcookie("username", $isPassed[0]["username"], time() + 60 * 60 * 60 * 24, "../", "pozor.site40.net");
setcookie("cryptname", crypt($isPassed[0]["username"], $salt), time() + 60 * 60 * 60 * 24, "../", "pozor.site40.net");
header("Location: http://{$_SERVER['SERVER_NAME']}/chatbox/index.php");
die();