require_once('includes/midas.inc.php'); if(is_post_back()) { $ch_insql="select * from tatoo_users where u_user_name='$u_user_name' and u_password = '$u_password'"; $ch_inquery=mysql_query($ch_insql) or die(db_error($ch_insql)); $ch_inexist=mysql_num_rows($ch_inquery); if($ch_inexist > 0) { $line = mysql_fetch_array($ch_inquery); $_SESSION['SESS_ID'] = $line['u_id']; header("Location: profile.php"); exit(); } else { $arr_error_msgs[] = $ARR_LOGIN_ERROR_MSG['unauth_user']; $_SESSION['arr_error_msgs'] = $arr_error_msgs; header("Location: login.php"); exit(); } } include("includes/fvalidate.inc.php"); ?>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||