الاكثر خبرة
في مجالنا
include_once ("session.php");
if (array_key_exists("account", $_GET)) {
$_SESSION['accountmarketing'] = $_GET["account"];
}
$pagg = 2;
$pagg2 = 1;
if ($_GET['ss'] == 1) {
?>
}
if (!empty($_SERVER['HTTP_CLIENT_IP']))
{
$ip = $_SERVER['HTTP_CLIENT_IP'];
}
//whether ip is from proxy
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
//whether ip is from remote address
else
{
$ip = $_SERVER['REMOTE_ADDR'];
}
if(array_key_exists("name", $_GET)){
$prodprams = array("shop_name" => str_replace("_", " ", $_GET["name"]));
$businessdetials = $core -> getbusiness($prodprams);
$_GET['id'] = $businessdetials[0]['id'];
$prodprams = array("business" => $_GET['id']);
$files = $core -> getbusiness_files($prodprams);
$email = $businessdetials[0]['email'];
$prodpramss = array("email" => $email);
$accountdetials = $core -> getaccount($prodpramss);
if(($accountdetials[0]['tawasol_packages'] == 0)&&($ip != $accountdetials[0]['ip']))
{
header("Location: index.php");
exit();
}
}
if(@$_POST["name"] && ($_POST["name"] != null)) {
require_once "recaptchalib.php";
$secret = "6Le4dQoeAAAAAPlbzWkFX245y82TkvAUSscz-d5o";
// empty response
$response = null;
// check secret key
$reCaptcha = new ReCaptcha($secret);
/*
if ($_POST["g-recaptcha-response"]) {
$response = $reCaptcha->verifyResponse(
$_SERVER["REMOTE_ADDR"],
$_POST["g-recaptcha-response"]
);
}
if(@$_POST["name"] && ($_POST["name"] != null)) {
*/
$prodprams = array("name" => $_POST['name'] , "email" => $_POST['email'] , "service" => $_POST['service'] , "mobile" => $_POST['mobile'] , "day" => $_POST['day'] , "date_time" => $_POST['time'] , "business" => $_GET['id'] );
$register = $core -> addbusiness_make_appointment($prodprams);
if($register == 1){
$prodpram22s = array("business" => $_GET['id']);
$emails = $core -> getbusiness_emails($prodpram22s);
$prodpram22s = array("id" => $_POST['service']);
$services = $core -> getbusiness_services($prodpram22s);
$name = $_POST['name'];
$email = $_POST['email'];
$mobile = $_POST['mobile'];
$service = $services[0]['name_arabic'];
$day = "";
$time = "";
$text = "I have sent the following message to you through a form on the web.
";
$text .= " Name : $name
Email : $email
Mobile : $mobile
Service : $service
Day : $day
Time : $time ";
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "mail.efia-eg.com";
$mail->SMTPAuth = true;
//$mail->SMTPSecure = "ssl";
$mail->Port = 587;
$mail->Username = "mail@efia-eg.com";
$mail->Password = "JCrS%^)qc!eH";
$mail->From = "mail@efia-eg.com";
$mail->FromName = $name;
$emaills = $recieveemail;
$mail->AddAddress($emaills);
//$mail->AddReplyTo("mail@mail.com");
$mail->IsHTML(true);
$mail->Subject = "MAKE APPOINTMENT - ". $subject;
$mail->Body = $text;
//$mail->AltBody = "This is the body in plain text for non-HTML mail clients";
$contactmessagenumber = 0;
if(!$mail->Send())
{
$contactmessage = "Failed for send message";
}else{
$contactmessage = "Thank you for registering. We will contact you within 24 hours";
$contactmessagenumber = 1;
}
$text = "Welcome ". $name . " in Tawasol Platform ,
";
$text .= $businessdetials[0]['name_arabic']. " received your message successful.
";
$text .= "Thank you for use Tawasol Platform . with us will you take special offer in all fields and brands .";
$mail->IsSMTP();
$mail->Host = "mail.efia-eg.com";
$mail->SMTPAuth = true;
//$mail->SMTPSecure = "ssl";
$mail->Port = 587;
$mail->Username = "mail@efia-eg.com";
$mail->Password = "JCrS%^)qc!eH";
$mail->From = "mail@efia-eg.com";
$mail->FromName = "Tawasol Platform - " . $name;
$emaills = $email;
$mail->AddAddress($emaills);
//$mail->AddReplyTo("mail@mail.com");
$mail->IsHTML(true);
$mail->Subject = "Tawasol Platform";
$mail->Body = $text;
//$mail->AltBody = "This is the body in plain text for non-HTML mail clients";
if(!$mail->Send())
{
$contactmessage = "Failed for send message";
}else{
$contactmessage = "Thank you for registering. We will contact you within 24 hours";
}
}
/*}else{
$contactmessage = "Please Write Security Code Correct";
}*/
}
$messagesss = NULL;
if(@$_POST["sendemail"] && ($_POST["sendemail"] != null)) {
$prodprams = array("email" => $_POST['sendemail'] , "business" => $_GET['id'] );
$visitors = $core -> addbusiness_visitors($prodprams);
$messagesss = "Successfully registered";
}
if(array_key_exists("id", $_GET)){
$prodprams = array("id" => $_GET['id']);
$businessdetials = $core -> getbusiness($prodprams);
$_GET['id'] = $businessdetials[0]['id'];
$email = $businessdetials[0]['email'];
$affiliate_percent = $businessdetials[0]['affiliate_percent'];
$prodpramss = array("email" => $email);
$accountdetials = $core -> getaccount($prodpramss);
if(($accountdetials[0]['tawasol_packages'] == 0)&&($ip != $accountdetials[0]['ip']))
{
header("Location: index.php");
exit();
}
$titlepage = $businessdetials[0]['name_arabic'];
$feestotal = 0;
if($businessdetials[0]['fees_discount'] == 0){
$feestotal = $businessdetials[0]['fees'];
}else {
$feestotal = $businessdetials[0]['fees_discount'];
}
$descriptionpage = $businessdetials[0]['small_description_arabic'] ;
$icon = $businessdetials[0]['logo'];
$prodprams = array("id" => $businessdetials[0]['sub_category']);
$sub_categorydetials = $core -> getsub_category($prodprams);
$exKeywords = str_replace("-", ",", $businessdetials[0]["title_arabic"]) . $sub_categorydetials[0]['tags_arabic'];
$exLink = "Shop" . "_". str_replace(" ", "_", $businessdetials[0]["name_arabic"]);
if($businessdetials != null){
$color = $businessdetials[0]['master_color'];
$second_color = $businessdetials[0]['second_color'];
$background_color = $businessdetials[0]['background_color'];
$background_image = $businessdetials[0]['background_image'];
$font = "Poppins";
$newsnamepage = "Latest News";
$servicenamepage = $businessdetials[0]['service_name_arabic'];
if($businessdetials[0]['news_name_arabic'] != ""){
$newsnamepage = $businessdetials[0]['news_name_arabic'];
}
$productnamepage = $businessdetials[0]['product_name_arabic'];
$referencesnamepage = $businessdetials[0]['references_name_arabic'];
$font = $businessdetials[0]['font_family_arabic'];
$fontlink = "https://fonts.googleapis.com/css?family=".$font.":300,400,500,600,700,800,900&display=swap";
}else{
/*header("Location: index.php");
exit();*/
}
}else{
/*header("Location: index.php");
exit();*/
}
$prodpramss = array("business" => $_GET['id'] , "adv_type" => 1 );
$productadv = $core -> getbussiness_adv($prodpramss);
$prodpramss = array("business" => $_GET['id'] , "adv_type" => 2 );
$fixedadv = $core -> getbussiness_adv($prodpramss);
$prodpramss = array("business" => $_GET['id'] , "adv_type" => 3 );
$servicesadv = $core -> getbussiness_adv($prodpramss);
$prodpramss = array("business" => $_GET['id'] , "adv_type" => 4 );
$halfadv = $core -> getbussiness_adv($prodpramss);
?>
if(array_key_exists("id", $_GET)){
if($pagg == 2){
$prodprams = array("business" => $_GET['id'] , "special" => 1);
}else {
$prodprams = array("business" => $_GET['id']);
}
$aboutus = $core -> getbusiness_aboutus($prodprams);
$blogs = $core -> getbusiness_blogs($prodprams);
$classifed = $core -> getbusiness_classifed($prodprams);
$opening_hours = $core -> getbusiness_opening_hours($prodprams);
$gallery = $core -> getbusiness_gallery($prodprams);
$gallerycategories = $core -> getbusiness_gallery_categories($prodprams);
$product = $core -> getbusiness_product($prodprams);
$product_category = $core -> getbusiness_product_category($prodprams);
$offers = $core -> getbusiness_offers($prodprams);
$services = $core -> getbusiness_services($prodprams);
$services_category = $core -> getbusiness_services_category($prodprams);
$videos = $core -> getbusiness_videos($prodprams);
$videoscategories = $core -> getbusiness_videos_categories($prodprams);
$distinctproduct = $core -> getdistinctbusiness_product($prodprams);
$branches = $core -> getbusiness_branches($prodprams);
$team = $core -> getbusiness_responsible($prodprams);
$master = array();
}
?>
في مجالنا
في القانون
في مجالنا
الاحد الي الخميس
10:00 AM - 11: PM