HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/baretube.com/contact.php
<?
session_start();
include('admin/db.php');
if($_POST[name] && $_POST[email] && eregi('@',$_POST[email]) && (strtolower($_POST[captchaaa]) == strtolower($_SESSION[captcha]))) {
	if(!$_SESSION[flood] || ($_SESSION[flood] != '' && time() > ($_SESSION[flood] + 600))) {
		$to = $admin_email; 
		$subject = "Contact Form - $sitename";
		$from = "From: $_POST[name] <$_POST[email]>"; 
		$message = strip_tags($_POST[content]); 
		if(mail($to,$subject,$message,$from)) {
			$_SESSION[flood] = time();
			$success = true;
		}
	}
	else {
		$flood_control = true;
	}
}
$title = 'Contact Us'; 
$headertitle = 'Contact Us';
if($isMobile) {
	include($basepath.'/templates/mobile.overall_header.php');
}
else {
	include($basepath.'/templates/template.overall_header.php');
}
?>
<? if($flood_control) { ?>
<p style='font-weight: bold;'>We're sorry, you can only send a message once every 10 minutes. Please try again in 
<? echo 10-(ceil((time()-$_SESSION[flood])/60)); ?> minute(s).</p>
<? } ?>
<? if($success) { ?>
		<p>Your message has been sent, and you should recieve a reply within 24 hours.</p>
<? } else { ?>
			<p>
				Please use this form to contact the <? echo $sitename; ?> administrator with any questions or concerns.</p>
			<p><strong>All fields are mandatory.</strong></p>
		  <form id="form1" name="form1" method="post" action="">
		    <table width="500" border="0" align="left">
              <tr>
                <td width="121">Name</td>
                <td width="369"><input name="name" type="text" id="name" style='width: 150px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;  margin-bottom: 5px;' value="<? echo $_SESSION[username]; ?>" maxlength="255" /></td>
              </tr>
              <tr>
                <td>Email Address</td>
                <td><input name="email" type="text" id="email" style='width: 150px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;  margin-bottom: 5px;' maxlength="255" /></td>
              </tr>
              <tr>
                <td>Message</td>
                <td><textarea style='width: 300px; height: 80px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; margin-bottom: 5px;' name="content" id="textfield3"></textarea></td>
              </tr>
              <tr>
            <td>Human?</td>
            <td><img src='/captcha.php' /><br />
            <input class='f02'  name="captchaaa" type="text" id="signup_email" size="10" maxlength="35" value='' /></td>
          </tr>  
                <tr>
                  <td colspan="2" align="center"><input type="submit" name="button" id="button" value="Send Message" /></td>
                </tr>
              </table>
          </form>
<? } ?>          
<? 
if($isMobile) {
	include($basepath.'/templates/mobile.overall_footer.php');
}
else {
	include($basepath.'/templates/template.overall_footer.php');
}
?>