578

auth. System

cine vrea sa se uite la source poate sa aduge ceva ... sau sa gaseasca vreao greshala :) scrieti pe forumform_1();}if($page == 1) { $user=valid($_POST['user_f1'],false); if(!$user) kill($write_error_1); // $pass=valid($_POST['pass_f1'],true); if(!$pass) kill($write_error_1); $result=mysql_query("SELECT * FROM $db_table WHERE user='$user'",$db); $myrow=mysql_fetch_array($result); if(!$myrow) kill($write_error_3); if($myrow["user"] == $user && $myrow["pass"] == md5($pass)) { $datav1=$myrow["user"]."|".$myrow["mail"]; session_register("datav1"); } else kill($write_error_5); }if($page == 2) { $draw->form_2();}if($page == 3) { $user=valid($_POST['user_f2'],false); if(!$user) kill($write_error_1); // $pass=valid($_POST['pass_f2'],true); if(!$pass) kill($write_error_1); // $pass2=valid($_POST['pass_t_f2'],true); // $e_mail=valid($_POST['e_mail_f2'],false); if(!$e_mail) kill($write_error_1); // if($pass != $pass2 ) kill($write_error_2); if(strlen($pass)
login :
password :
"; } function form_2() { echo "
login :
password :
repeat password :
e-mail :
"; }}/* use this function to get the "username" & "e-mail"function session_view() { session_start(); $data=$_SESSION["datav1"]; $data=explode("|",$data); return $data;}*/?>
acesta e doar o parte ... am de gand sa mai adaug admin.php(pentru administrare) shi in citeva features !
0