One Hat Cyber Team
Your IP :
216.73.216.240
Server IP :
162.240.106.28
Server :
Linux server.ganesand.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
Server Software :
Apache
PHP Version :
7.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thoa
/
www
/
admin
/
support
/
View File Name :
leavemessage.php
<?php include "includes/base.php"; // fetch config $fetch = mysql_query("SELECT * FROM config "); $config = mysql_fetch_array($fetch); if(isset($_POST['send_email'])) { $output = ""; $errors = 0; if($_POST['email'] == "") { $errors = 1; $output = $output . "Please enter an email address<br />"; } if($_POST['name'] == "" ) { $errors = 1; $output = $output . "Please enter your name<br />"; } if($_POST['message'] == "" ) { $errors = 1; $output = $output . "Please enter your message<br />"; } if($errors == 0) { // send email $to = $config['email']; $subject = "Message From ".$_POST['name']." via live support"; $sender = $_POST['name']; $headers = 'From: ' . $sender . "\r\n" . 'Reply-To: ' . $_POST['email'] . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $sendMail = @mail($to, $subject, $_POST['message'], $headers); $output = '<div class="success"><p>Email Sent</p></div>'; $email_sent = "true"; } else { $output = '<div class="error"><p>' . $output . '</p></div>'; } if($email_sent = "true") { $date1=date("Y-m-d"); $name=$_POST['name']; $email=$_POST['email']; $message=$_POST['message']; $sql=mysql_query("insert into leads(name,email,transcript,date) values('$name','$email','$message','$date1')"); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Leave us a message</title> <link rel="stylesheet" type="text/css" media="all" href="css/client.css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="js/cufon-yui.js"></script> <script type="text/javascript" src="js/font_400.font.js"></script> <script type="text/javascript"> $(document).ready(function(){ Cufon.replace('h4,h3,h2,h1,label,a'); }); </script> </head> <body> <div class="container"> <h3><img src="images/icons/ls.png" alt="<?php echo $config['title'];?>" title="<?php echo $config['title'];?>" width="54" style="vertical-align:middle;"/> <?php echo $config['title'];?></h3> <p><?php echo $output;?></p> <?php if(isset($email_sent)) { ?> <p><?php echo $config['thankYouMessage'];?></p> <p><a href="#" onClick="window.close()"><span class="red">Close Window</span></a></p> <?php } else { ?> <p><?php echo $config['leaveAMessage'];?></p> <div class="centered_container pale_blue" style="width:300px; margin-top:20px;"> <form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>" > <label for="name">Your Name <span class="red">*</span></label><br> <input type="text" name="name" id="name" class="input_field thin" /><br> <label for="email">Your Email Address <span class="red">*</span></label><br> <input type="text" name="email" id="email" class="input_field thin"><br> <label for="message">Your Message<span class="red">*</span></label><br> <textarea name="message" id="message" class="input_field" rows="4" cols="40"></textarea><br> <input type="submit" name="send_email" id="send_email" class="input_field submit" value="Send Email" /> </form> </div> <?php } ?> </div><!--- END CONTAINER --> </body> </html> <?php ob_flush(); ?>