Floor Plan - Joyville Gurgaon Phase 2




if(@isset($_POST['Submit'])){ $time_offset=date_default_timezone_set ("Asia/Calcutta"); $time_a = ($time_offset * 120); $time = date("Y-m-d H:i:s",time() + $time_a); $ctocTime = explode(' ', $time); $start = "08:00:00"; $end = "20:00:00"; $now = $ctocTime[1]; $checkduplicate = CheckRedundencyData($conn,trim(@$_POST['name']),trim(@$_POST['email']),'Joyville Shapoorji Private Limited','Joyville Gurgaon Phase 2',trim(@$_POST['country']),trim(@$_POST['comment']),'',$_POST["phone"],$time); //echo $checkduplicate;die; if($checkduplicate=="exist"){ header('Location:thank-you.html'); }else{ if(strlen(trim(@$_POST['name'])) == 0 ) { $msg->add('e', 'Name is required!');} else if(strlen(trim(@$_POST['email'])) == 0 ){ $msg->add('e', 'Email ID is required!');} else if(!filter_var(trim(@$_POST['email']), FILTER_VALIDATE_EMAIL)) { $msg->add('e', 'Email ID is not valid!'); } else if(trim(@$_POST['country']) == 0 ) { $msg->add('e', 'Country is required!'); } else if(strlen(trim(@$_POST['comment'])) == 0 ) { $msg->add('e', 'message is required!'); } else if(strpos(@$_POST['comment'],"https")!==false || strpos(@$_POST['comment'],"www")!==false || strpos(@$_POST['comment'],"/")!==false) { $msg->add('e', 'Invalid message');} else if(checkEnquiryLimit($conn,@$_POST['email'],@$_POST["phone"],$time)>=4){$msg->add('e', 'Sorry.You have exceed the limit!'); @header('Location:'._BASEURL_.$url);exit();} else if( !$msg->hasErrors() ) { $user_os = getOS(); $user_browser = getBrowser(); if($user_os!='Unknown OS Platform' && $user_browser!='Unknown Browser'){ /*if($_POST['country'] == '2'){ $getLatest = GetLatestVersion($conn,$_POST['country']); $getExecutiveNum = getCurrentExecutive($conn,$getLatest); $nextExe = $getExecutiveNum['next_executive']; $Exemessage = 'Name : '.$_POST["name"].',contact : '.$_POST["phone"].',Email : '.$_POST["email"].',Project : Joyville Gurgaon Phase 2'; $debug = true; sendSms($getExecutiveNum['number'],$Exemessage,$debug,'1207161770320604914'); $Umessage = 'Thanks for your query. '.$getExecutiveNum['name'].'('.$getExecutiveNum['number'].') will assist you for this project.'; if($_POST["phone"]!=''){ sendSms($_POST["phone"],$Umessage,$debug,'1207161770654782467'); } if($now > $start AND $now < $end){ InitiateCallToClient($getExecutiveNum['number'],$_POST['phone'],'8048162390'); } $executiveName = $getExecutiveNum['name']; }else{ $nextExe = '0'; $executiveName = ''; }*/ $nextExe = '0'; $executiveName = ''; sendMail($conn,trim(@$_POST['name']),trim(@$_POST['email']),'Joyville Shapoorji Private Limited','Joyville Gurgaon Phase 2',trim(@$_POST['country']),trim(@$_POST['comment']),'Both',$_POST["phone"],$time,$nextExe,$executiveName); $country_n=country_fetch($conn,trim($_POST['country'])); sendToRemoteServer("www.joyvillegurgaon.co.in",'Joyville Gurgaon Phase 2',trim(@$_POST['name']),$_POST["phone"],trim(@$_POST['email']),trim($country_n),trim(@$_POST['comment']),trim($_POST['utm_source'])); mysqli_query($conn, "insert into actual_link set url='" . $_SESSION["actual_link"] . "', phone='" . $_POST["phone"] . "', client_ip='".$_SERVER['REMOTE_ADDR']."', created='".$time."'"); unset($_SESSION['actual_link']); } $msg->add('s', 'Enquiry sent successfully!'); @header('Location:thank-you.html'); exit(); } else { } } } ?>