GIF89a;
| Direktori : /home/serb/public_html/ |
| Current File : /home/serb/public_html/update_escortprofile.php |
<?
session_start();
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");
$date=date('Y-m-d');;
if(($_POST['monday_open']=='0') && ($_POST['monday_close']=='0'))
{
$Monday=$_POST["monoldtime"];
}
else{
$Monday=$_POST['monday_open'].':'.'00'.$_POST['monopenampm'].' - '.$_POST['monday_close'].':'.'00'.$_POST['monopenampm'];
}
if(($_POST['tuesday_open']=='0') && ($_POST['tuesday_close']=='0'))
{
$Tuesday=$_POST["tusoldtime"];
}
else{
$Tuesday=$_POST['tuesday_open'].':'.'00'.$_POST['tueopenampm'].' - '.$_POST['tuesday_close'].':'.'00'.$_POST['tuecloseampm'];
}
if(($_POST['wednesday_open']=='0') && ($_POST['wednesday_close']=='0'))
{
$Wednesday=$_POST["wedoldtime"];
}
else{
$Wednesday=$_POST['wednesday_open'].':'.'00'.$_POST['wedopenampm'].' - '.$_POST['wednesday_close'].':'.'00'.$_POST['wedcloseampm'];
}
if(($_POST['thrus_open']=='0') && ($_POST['thrusday_close']=='0'))
{
$Thursday=$_POST["thuoldtime"];
}
else{
$Thursday=$_POST['thrus_open'].':'.'00'.$_POST['thuopenampm'].' - '.$_POST['thrusday_close'].':'.'00'.$_POST['thucloseampm'];
}
if(($_POST['friday_open']=='0') && ($_POST['frinesday_close']=='0'))
{
$Friday=$_POST["frioldtime"];
}
else{
$Friday=$_POST['friday_open'].':'.'00'.$_POST['friopenampm'].' - '.$_POST['frinesday_close'].':'.'00'.$_POST['fricloseampm'];
}
if(($_POST['saturday_open']=='0') && ($_POST['saturday_close']=='0'))
{
$Saturday=$_POST["satoldtime"];
}
else{
$Saturday=$_POST['saturday_open'].':'.'00'.$_POST['sutopenampm'].' - '.$_POST['saturday_close'].':'.'00'.$_POST['satcloseampm'];
}
if(($_POST['sunday_open']=='0') && ($_POST['sunday_close']=='0'))
{
$Sunday=$_POST["sunoldtime"];
}
else{
$Sunday=$_POST['sunday_open'].':'.'00'.$_POST['sunopenampm'].' - '.$_POST['sunday_close'].':'.'00'.$_POST['suncloseampm'];
}
$fav="";
if($_POST['couple'])
{
$fav=$_POST['couple'].",";
}
if($_POST['cim'])
{
$fav=$fav.$_POST['cim'].",";
}
if($_POST['domination'])
{
$fav=$fav.$_POST['domination'].",";
}
if($_POST['cob'])
{
$fav=$fav.$_POST['cob'].",";
}
if($_POST['deep_throat'])
{
$fav=$fav.$_POST['deep_throat'].",";
}
if($_POST['facial'])
{
$fav=$fav.$_POST['facial'].",";
}
if($_POST['footFetish'])
{
$fav=$fav.$_POST['footFetish'].",";
}
if($_POST['frenchKiss'])
{
$fav=$fav.$_POST['frenchKiss'].",";
}
if($_POST['lapDance'])
{
$fav=$fav.$_POST['lapDance'].",";
}
if($_POST['massage'])
{
$fav=$fav.$_POST['massage'].",";
}
if($_POST['owo'])
{
$fav=$fav.$_POST['owo'].",";
}
if($_POST['reVerce'])
{
$fav=$fav.$_POST['reVerce'].",";
}
if($_POST['riming'])
{
$fav=$fav.$_POST['riming'].",";
}
if($_POST['rolePlay'])
{
$fav=$fav.$_POST['rolePlay'].",";
}
if($_POST['teaBagging'])
{
$fav=$fav.$_POST['teaBagging'].",";
}
if($_POST['uniform'])
{
$fav=$fav.$_POST['uniform'].",";
}
if($_FILES['avt_image']['tmp_name'])
{
$manu_imagename1=time().$_FILES['avt_image']['name'];
move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1);
}
else
{
$manu_imagename1=$_POST['ad_img1'];
}
if($_FILES['avt_image1']['tmp_name'])
{
$manu_imagename11=time().$_FILES['avt_image1']['name'];
move_uploaded_file($_FILES['avt_image1']['tmp_name'],'avtar/'.$manu_imagename11);
}
else
{
$manu_imagename11=$_POST['ad_img2'];
}
if($_FILES['avt_image2']['tmp_name'])
{
$manu_imagename12=time().$_FILES['avt_image2']['name'];
move_uploaded_file($_FILES['avt_image2']['tmp_name'],'avtar/'.$manu_imagename12);
}
else
{
$manu_imagename12=$_POST['ad_img3'];
}
if($_FILES['avt_image3']['tmp_name'])
{
$manu_imagename13=time().$_FILES['avt_image3']['name'];
move_uploaded_file($_FILES['avt_image3']['tmp_name'],'avtar/'.$manu_imagename13);
}
else
{
$manu_imagename13=$_POST['ad_img4'];
}
$sql_updatedt="SELECT * FROM escort_details where user_id='".$_GET['userid']."'";
$res_updatedate=execute_query($sql_updatedt);
$row_updatedate=mysql_fetch_array($res_updatedate);
if($row_updatedate['updatedate']!=$date)
{
$sql_rwdpoint="SELECT * FROM user_info WHERE userid='".$_GET['userid']."'";
$res_rwdpoint=execute_query($sql_rwdpoint);
$row_rwdpoint=mysql_fetch_array($res_rwdpoint);
$totrwd=$row_rwdpoint['rewards'] + 3;
$update_rwdpoint="UPDATE user_info SET rewards='$totrwd' WHERE userid='".$_GET['userid']."'";
execute_query($update_rwdpoint);
}
$descrip=addslashes($_POST['introduction']);
$sql_ind_escort="UPDATE escort_details SET name='".$_POST['esco_name']."',category='".$_POST['category_type']."',website='',
allow_email='',
address='".$_POST['escortAddrs']."',
service_type='".$_POST['service_type']."',
travel='".$_POST['traVel']."',couples='".$_POST['see_couples']."',
friendly='".$_POST['friendLy']."',
Showers='".$_POST['swrAvl']."',
drinks='".$_POST['drnkSuplid']."',
age='".$_POST['ageDtls']."',
ethencity='".$_POST['ethnicity']."',
experience='".$_POST['experience']."',
orientation='".$_POST['orientation']."',
duos='".$_POST['provide_duos']."',
submission='".$_POST['submissions']."',
dominition='".$_POST['dominations']."',
shaved='".$_POST['shaved']."',
smoking='".$_POST['smoking']."',
language='".$_POST['lanGuage']."',
height='".$_POST['height']."',
weight='".$_POST['weight']."',
body_type='".$_POST['body_type']."',
bust='".$_POST['bust_size']."',
cup='".$_POST['cup_size']."',
waist='".$_POST['waist_size']."',
hips='".$_POST['hips_size']."',
eye_color='".$_POST['eye_color']."',
hair_color='".$_POST['hair_color']."',
hair_style='".$_POST['hair_style']."',
tel_national='".$_POST['phone_national']."',
tel_international='".$_POST['phone_international']."',
description='$descrip',
faviorit='$fav',
thirty_in='".$_POST['thirtymin_incallrates']."',
thirty_out='".$_POST['thirtymin_outcallrates']."',
onehr_in='".$_POST['onehr_incallrates']."',
onehr_out='".$_POST['onehr_outcallrates']."',
twohr_in='".$_POST['twohrs_incallrates']."',
twohr_out='".$_POST['twohrs_outcallrates']."',
three_in='".$_POST['threehrs_incallrates']."',
three_out='".$_POST['threehrs_outcallrates']."',
four_in='".$_POST['fourhrs_incallrates']."',
four_out='".$_POST['fourhrs_outcallrates']."',
dinner_in='".$_POST['dinner_incallrates']."',
dinner_out='".$_POST['dinner_outcallrates']."',
overnight_in='".$_POST['overnight_incallrates']."',
overnight_out='".$_POST['overnight_outcallrates']."',
image1='$manu_imagename1',
image2='$manu_imagename11',
image3='$manu_imagename12',
image4='$manu_imagename13',
updatedate='$date' WHERE user_id='".$_GET['userid']."'";
$ind_res=execute_query($sql_ind_escort);
$sql_escorttimetable="UPDATE escort_timetable SET monday='$Monday',tuesday='$Tuesday',wednesday='$Wednesday',thursday='$Thursday',friday='$Friday',satarday='$Saturday',sunday='$Sunday' WHERE user_id='".$_GET['userid']."'";
execute_query($sql_escorttimetable);
?>
<script language="javascript">
location.href="my-account.php";
</script>