📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
198.5 KB
0644
🗑️
⬇️
✏️
🔒
📄
system.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
Editing: auction.php
<?php include"header.php"; ?> <main id="main"> <!-- ======= Track and Book Section ======= --> <section id="about" class="about"> <div class="container" data-aos="fade-up"> <div class="row content" align="center"> <div class="col-lg-12" style="padding:20px;"> <h3 data-aos="fade-up" style="color:#00CC00;"><br>PUT ITEM COLLECTIONS UP FOR AUCTION</h3> <p>Would you like to put up your items for auction while we help you market it to a wide public audience? Fill the form to apply.</p> <p> <form action="" method="post"> <input type="text" class="form-control" id="fname" name="firstname" placeholder="Company name.."><br> <input type="email" class="form-control" id="lname" name="mail" placeholder="Email"><br> <input type="tel" class="form-control" id="lname" name="numb" placeholder="Phone Number.."><br> <input type="text" class="form-control" id="lname" name="sub" placeholder="Subject"><br> <textarea id="subject" class="form-control" name="subj" placeholder="More Details.." style="height:200px"></textarea><br> <input type="submit" name="submit" class="form-control btn-buy" style="background-color:#00CC00 ; border:none; color:#FFFFFF;" 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@oshofree.ng"; $email_to = "admin@oshofree.ng"; $email_subject = "REQUEST FOR AUCTION BY ($name)"; $comments = " <center style='background-color:black; color:white;'><img src='https://ads.oshofree.ng/assets/img/logo.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>HEADER</td><td>$ject</td></tr> <tr><td>Company Name</td><td>$name</td></tr> <tr><td>Mobile Number </td><td>$num</td></tr> <tr><td>Email</td><td>$email</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"; $headers .= 'From: admin@oshofree.ng' . "\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////////////////////////////////////////////////////////////// ///////////////////////////////// Mail Function started////////////////////////////////////////////////////////////////// $comments = $email_to = $email_subject = $email_from = $msg = ""; $email_from="admin@oshofree.ng"; $email_to = "$email"; $email_subject = "REQUEST FOR AUCTION BY ($name)"; $comments = " <center style='background-color:black; color:white;'><img src='https://ads.oshofree.ng/assets/img/logo.png'><br><br><p>Your request details have been submitted successfully,here is a copy </p><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>HEADER</td><td>$ject</td></tr> <tr><td>Company Name</td><td>$name</td></tr> <tr><td>Mobile Number </td><td>$num</td></tr> <tr><td>Email</td><td>$email</td></tr> <tr><td>MORE DETAILS</td><td>$mess</td></tr> </table></center> "; $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"; $headers .= 'From: admin@oshofree.ng' . "\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////////////////////////////////////////////////////////////// header('location:done.php'); } ?> </p> </div> </div> </section><!-- Book Section --> </main><!-- End #main --> <?php include"footer.php"; ?>
💾 Save Changes