getResult($SessionQuery); $UIid = $Uinfo[0]["Uid"]; $UIname = $Uinfo[0]["UserName"]; $UIrealname = $Uinfo[0]["UName"]; $UIcity = $Uinfo[0]["Ucity"]; $UIcountry = $Uinfo[0]["Ucountry"]; $UImobile = $Uinfo[0]["Umobile"]; $UIrdate = $Uinfo[0]["UregisterDate"]; $UIgroup = $Uinfo[0]["Ugroup"]; $UIstatus = $Uinfo[0]["Ustatus"]; $UIses = $Uinfo[0]["Usess"]; $UIsender = $Uinfo[0]["Usender"]; if($UIgroup == "S"){ $Credits = GetTotalCredits(); }else{ $Credits = $Uinfo[0]["Ucredits"]; } $UIemail = $Uinfo[0]["Uemail"]; $UIcityLocation = $Uinfo[0]["UcityLocation"]; $UIjob = $Uinfo[0]["Ujob"]; $UIage = $Uinfo[0]["Uage"]; $UIsex = $Uinfo[0]["Usex"]; $UIintrests = $Uinfo[0]["Uintrests"]; $Logged = "true"; } } ?> <? echo $asite_name; ?>

"; echo "


"; if($ToDo=="Edit" && $UIid !=""){ $reg_password = $_POST['reg_password']; $reg_RealName = $_POST['reg_RealName']; $reg_city = $_POST['reg_city']; $reg_country = $_POST['reg_country']; if($pass =="ON" && $reg_password !=""){ $passw=md5($reg_password); $update_pass = $db->query("UPDATE users SET Upassword='$passw' WHERE Uid='$UIid'"); } if($UIgroup =="S" || $UIgroup =="M"){ $update_Usender = $db->query("UPDATE users SET Usender='$reg_Sender' WHERE Uid='$UIid'"); } if($UIgroup =="U" && $UIstatus =="S"){ $update_Usender = $db->query("UPDATE users SET Usender='$reg_Sender' WHERE Uid='$UIid'"); } $do_update = $db->query("UPDATE users SET Uname='$reg_RealName', Uemail='$reg_email', Ucity = '$reg_city', Ucountry = '$reg_country', UcityLocation='$reg_cityLocation', Ujob='$reg_job', Uage='$reg_age', Usex='$reg_sex', Uintrests='$reg_intrests' WHERE Uid='$UIid'"); $redirection_msg="تم تحديث معلوماتك بنجاح "; echo "

$redirection_msg.

"; include("CheckLogin.php"); } if($UIid !=""){ ?> getResult("SELECT * FROM users where Uid='$UIid'"); echo $SMsg; include("templates/UserCp.php"); } echo ""; ?>