0){header ("location: ".$server."myaccount.php");return;} $redirect = getValue("redirect"); $chyby = ""; if ($_POST["frmload"] == "yes"){ $email = opravitpost($_POST["frmemail"]); $heslo = opravitpost($_POST["frmpwd"]); if ($email == ""){$chyby = $hlasky[err_noemail];} elseif(!valid_email($email)){$chyby = $hlasky[err_wrongemail];} if ($heslo == ""){$chyby = $hlasky[err_nopwd];} if ($chyby == ""){ $heslo = MD5($heslo); $dbnavrat = mysql_query("SELECT * FROM t_user WHERE email='$email' AND pwd='$heslo' LIMIT 1"); if (mysql_num_rows($dbnavrat) == 0){ $chyby = $hlasky[err_wronglogin]; }else{ $dbhodnota = mysql_fetch_array($dbnavrat); $id = $dbhodnota["id"]; $_SESSION["user_id"] = $id; $_SESSION["user_email"] = $email; $_SESSION["user_lang"] = $dbhodnota["lang"]; $kam = $server."myaccount.php"; if ($redirect == "checkout"){$kam = $server."checkout.php";} if ($redirect == "openshop"){$kam = $server."Open+Shop.php";} if ($redirect == "myshop"){$kam = $server."my_shop.php";} if ($redirect == "back"){$kam = $_SERVER["HTTP_REFERER"];} header("location: ".$kam); return; } } } $h1 = $hlasky[login]; $a = "$hlasky[home] » $hlasky[myaccount] » $hlasky[login]"; $page["title"] = $h1." | ".$page["title"]; $page["keywords"] = $h1.", ".$page["keywords"]; include "page_head.php"; echo "

$a

\n"; $lefttext = getpagedesc("login"); $lefttext = "

$hlasky[login]

".$lefttext."

"; include "linksnew.php"; echo "

$hlasky[login]

$hlasky[email]:
$hlasky[password]:

$hlasky[forgotten] $hlasky[register]

$chyby

".getbanner("login")."

"; include "page_foot.php"; ?>