= '4.3.0'){$string = mysql_real_escape_string($string);} else{$string = mysql_escape_string($string);} return $string; } $strip_user=ciscenje($user); $strip_pass=ciscenje($pass); $query = "SELECT * FROM `usersi` WHERE `username` = '$strip_user' AND `password` = '$strip_pass' "; $result = mysql_query($query); if (mysql_num_rows($result)==1){ $_SESSION["verified"]="ok"; $id=mysql_fetch_array($result); $ider = "$id[id]"; $ko = mysql_query("SELECT * FROM usersi WHERE id = '$ider' "); $data = mysql_fetch_array($ko); $_SESSION["name"]=$data['name']; $_SESSION["uid"]=$data['uid']; $_SESSION["email"]=$data['email']; $_SESSION["korisnicko"]=$data['username']; $_SESSION["sifra"]=$data['password']; }else{ $_SESSION["verified"]=""; $_SESSION["name"]=""; $_SESSION["uid"]=""; $_SESSION["email"]=""; $_SESSION["korisnicko"]=""; $_SESSION["sifra"]=""; } } ?> <? echo $naslov; ?>
Username: Password:
legal conditions
© NOVI SPA HOTELS & RESORT 51250 Novi Vinodolski CROATIA T +385 51 NOVI-00 F +385 51 NOVI-99 E info@hoteli-novi.hr