GIF89a;
| Direktori : /home/serb/www/ |
| Current File : /home/serb/www/hobbyistprofile-update.php |
<?
session_start();
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");
$date=date('Y-m-d');
$u_name=$_SESSION['user'];
if($_POST['updtphonetour'])
{
$upphonetour='Yes';
}
if($_POST['updtphoneescort'])
{
$upphoneescort='Yes';
}
if($_POST['updateemail'])
{
$upemail='Yes';
}
$desp=addslashes($_POST['aboutme']);
$wkcountry=addslashes($_POST['wrkcountry']);
if($_FILES['avt_image']['tmp_name'])
{
$manu_imagename1=time().$_FILES['avt_image']['name'];
move_uploaded_file($_FILES['avt_image']['tmp_name'],'profile_pic/'.$manu_imagename1);
}
else
{
$manu_imagename1=$_POST['agencylogo'];
}
$updateagency="UPDATE user_info set username='".$_POST['name']."',pic='$manu_imagename1', agency_ph='".$_POST['phnumber']."',instruction='".$_POST['instruction']."',email='".$_POST['email']."',skype='".$_POST['skype']."',msn='".$_POST['msn']."',agency_about='$desp',update_date='$date' WHERE userid='".$_SESSION['userid']."'";
$ind_res=execute_query($updateagency);
$pid=mysql_insert_id();
?>
<script language="javascript">
location.href="hobbyist-account.php";
</script>