HEX
Server: Apache
System: Linux p3plzcpnl499979.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: vsga7hg9xjp3 (9283715)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/vsga7hg9xjp3/public_html/wp-content/themes/audi/functions.php
<?php 
function style_css(){
    wp_enqueue_style('bootstrapcss',get_template_directory_uri().'/css/bootstrap.min.css');

	wp_enqueue_style('mainstyle',get_template_directory_uri().'/css/style.min.css');
    
}
function style_js(){
wp_enqueue_script('jeq',get_template_directory_uri().'/js/jquery.min.js',array(),false,true);
wp_enqueue_script('boot',get_template_directory_uri().'/js/bootstrap.min.js',array(),false,true);

wp_enqueue_script('validate',get_template_directory_uri().'/js/jquery.validate.min.js',array(),false,true);

}
add_action('wp_enqueue_scripts','style_css');
add_action('wp_enqueue_scripts','style_js');

add_action('wp_ajax_sales', 'sales');
add_action('wp_ajax_nopriv_sales', 'sales');

function sales() {
    $fname = $_POST['fname'];
    $lname = $_POST['lname'];
    $email=$_POST['email'];
    $phone=$_POST['phone'];
    $titlee=$_POST['title'];
    //$address=$_POST['address'];
    $message=$_POST['message'];
    $model=$_POST['model'];
    
    $subject = "Contact Sales";
      $headers  = "MIME-Version: 1.0" . "\r\n";
      $headers .= "Content-type:text/html; charset=UTF-8" . "\r\n";
      $headers .= "From: <info@audiinquiries.com> \r\n";
      $headers .= "Reply-To: <noreplay> \r\n";
      $email_body="<br>name: ".$titlee." ".$fname." ".$lname.
                  "<br> email: ".$email.
                  "<br>Phone: ".$phone.
                  "<br> Model: ".$model.
                  "<br>message: ".$message;
                 
     
	  $mail = wp_mail('felopater.malak@eaec.com.eg,Ayten.omar@eaec.com.eg',$subject,$email_body,$headers);
	  
    die;
}

add_action('wp_ajax_suggest', 'suggest');
add_action('wp_ajax_nopriv_suggest', 'suggest');

function suggest() {
    $fname = $_POST['fname'];
    $lname = $_POST['lname'];
    $email=$_POST['email'];
    $phone=$_POST['phone'];
    $titlee=$_POST['title'];
    $chassi=$_POST['chassi'];
    $message=$_POST['message'];
    $type=$_POST['type'];
    // $owner=$_POST['owner'];
    $country=$_POST['country'];
    
    $subject = "Suggestions & Inquiries";
      $headers  = "MIME-Version: 1.0" . "\r\n";
      $headers .= "Content-type:text/html; charset=UTF-8" . "\r\n";
      $headers .= "From: <info@audiinquiries.com> \r\n";
      $headers .= "Reply-To: <noreplay> \r\n";
      $email_body="<br>name: ".$titlee." ".$fname." ".$lname.
                  "<br> email: ".$email.
                  "<br>Phone: ".$phone.
                  "<br>Country: ".$country;
                  // "<br>Audi Owner: ".$owner;
      //             if($owner == 'Yes'){
      // $email_body.= "<br>chassi Number: ".$chassi;
      //             }
      $email_body.="<br> Subject of Suggestion or inquiry: ".$type.
                   "<br>message: ".$message;
                 
     
	  $mail = wp_mail('Hanzada.elshihy@kayanegy.com,felopater.malak@eaec.com.eg',$subject,$email_body,$headers);
	  
    die;
}
add_action('wp_ajax_complaint', 'complaint');
add_action('wp_ajax_nopriv_complaint', 'complaint');

function complaint() {
    $fname = $_POST['fname'];
    $lname = $_POST['lname'];
    $email=$_POST['email'];
    $phone=$_POST['phone'];
    $country=$_POST['country'];
    $titlee=$_POST['title'];
    // $titlee=$_POST['title'];
    //$chassi=$_POST['chassi'];
    $message=$_POST['message'];
    $type=$_POST['type'];
    //$owner=$_POST['owner'];
    
    
    $subject = "Complaint";
      $headers  = "MIME-Version: 1.0" . "\r\n";
      $headers .= "Content-type:text/html; charset=UTF-8" . "\r\n";
      $headers .= "From: <info@audiinquiries.com> \r\n";
      $headers .= "Reply-To: <noreplay> \r\n";
      $email_body="<br>name: ".$titlee." ".$fname." ".$lname.
                  "<br> email: ".$email.
                  "<br>Phone: ".$phone.
                  "<br>Country: ".$country.
      $email_body.="<br>Subject of complain: ".$type.
                   "<br>message: ".$message;
                 
     
	  $mail = wp_mail('felopater.malak@eaec.com.eg,Rania.mohamed@audicentercairo.com',$subject,$email_body,$headers);
	  
    die;
}

add_action('wp_ajax_online', 'online');
add_action('wp_ajax_nopriv_online', 'online');

function online() {
    $fname = $_POST['fname'];
    $lname = $_POST['lname'];
    $email=$_POST['email'];
    $phone=$_POST['phone'];
    $titlee=$_POST['title'];
    $type=$_POST['type'];
    $message=$_POST['message'];
     
    
    $subject = "Online_Inquiry";
      $headers  = "MIME-Version: 1.0" . "\r\n";
      $headers .= "Content-type:text/html; charset=UTF-8" . "\r\n";
      $headers .= "From: <info@audiinquiries.com> \r\n";
      $headers .= "Reply-To: <noreply> \r\n";
      $email_body="<br>Name: ".$titlee." ".$fname." ".$lname.
                  "<br>Email: ".$email.
                  "<br>Phone: ".$phone.
				  "<br> Subject of Suggestion or inquiry: ".$type.
		  		  "<br>Message: ".$message;
                 
	  $mail = wp_mail('felopater.malak@eaec.com.eg,Ayten.omar@eaec.com.eg',$subject,$email_body,$headers);

    die;
}
add_action('wp_ajax_book', 'book');
add_action('wp_ajax_nopriv_book', 'book');

function book() {
    $fname = $_POST['fname'];
    $lname = $_POST['lname'];
    $email=$_POST['email'];
    $phone=$_POST['phone'];
    $titlee=$_POST['title'];
    $branches=$_POST['branches'];
    $model=$_POST['model'];
      
    
    $subject = "Test Drive";
      $headers  = "MIME-Version: 1.0" . "\r\n";
      $headers .= "Content-type:text/html; charset=UTF-8" . "\r\n";
      $headers .= "From: <info@audiinquiries.com> \r\n";
      $headers .= "Reply-To: <noreply> \r\n";
      $email_body="<br>Name: ".$titlee." ".$fname." ".$lname.
                  "<br>Email: ".$email.
                  "<br>Phone: ".$phone.
                  "<br>Model: ".$model.
                  "<br>Branches: ".$branches;              
	  $mail = wp_mail('felopater.malak@eaec.com.eg,Ayten.omar@eaec.com.eg',$subject,$email_body,$headers);
	  
    die;
}
add_action('wp_ajax_services', 'services');
add_action('wp_ajax_nopriv_services', 'services');

function services() {
    $fname = $_POST['fname'];
    $lname = $_POST['lname'];
    $email=$_POST['email'];
    $phone=$_POST['phone'];
    $titlee=$_POST['title'];
    $branches=$_POST['branches'];
    $services=$_POST['services'];
    $year=$_POST['year'];
    $model=$_POST['model'];
    $mileage=$_POST['mileage'];
    $vin=$_POST['vin'];
      
    
    $subject = "Servies";
      $headers  = "MIME-Version: 1.0" . "\r\n";
      $headers .= "Content-type:text/html; charset=UTF-8" . "\r\n";
      $headers .= "From: <info@audiinquiries.com> \r\n";
      $headers .= "Reply-To: <noreply> \r\n";
      $email_body="<br>Name: ".$titlee." ".$fname." ".$lname.
                  "<br>Email: ".$email.
                  "<br>Phone: ".$phone.
                  "<br>Model: ".$model.
                  "<br>Branches: ".$branches.            
                  "<br>Mileage: ".$mileage.             
                  "<br>Services: ".$services.              
                  "<br>Year: ".$year.              
                  "<br>Vin: ".$vin;              
     
	  $mail = wp_mail('felopater.malak@eaec.com.eg,Rania.mohamed@audicentercairo.com',$subject,$email_body,$headers);
	  
    die;
}


add_action('wp_head', function(){echo '';}, 1);