<?php
$Hostname = "localhost";
$Database = "database";
$Username = "usename";
$Password = "password";
$IP = $_SERVER['REMOTE_ADDR'];
$DB = mysql_connect("$Hostname", "$Username", "$Password");
mysql_select_db("$Database", $DB);
$Name = $_POST['Name'];
$Email = $_POST['Email'];
$pPhone = $_POST['Phone1']."-".$_POST['Phone2']."-".$_POST['Phone3'];
$sPhone = $_POST['Phone4']."-".$_POST['Phone5']."-".$_POST['Phone6'];
$Date = $_POST['Month']."/".$_POST['Day'];
$Time = $_POST['Hour'].$_POST['Minute'].$_POST['AP'];
$Length = $_POST['Length1'].$_POST['Length1'];
$People = $_POST['People'];
$Note = $_POST['Note'];
$Confirm = $_POST["Confirm"];
if($Confirm){
$to = "MYEMAILHERE@hotmail.com";
$from = "From: ".$Name." (".$Email.")";
$subject = "LESSON REQUEST!";
$body = "A request for a lesson has been scheduled for ".$Date." at ".$Time." for ".$Length." hours, with ".$People." person(s) \n\n Message: \n".$Note;
if(mail($to,$subject, $body, $from)){
$Message="A request for this timeslot has been sent! You will recieve an email response as soon as I can! Thanks!";
}else{
$Message="Unable to send your request. Please check spelling of your Email Address and try again.";
}
}
$Query = mysql_query("SELECT * FROM Clients WHERE IP='$IP'", $DB);
$Data = mysql_fetch_array($Query);
$NumRecords = mysql_num_rows($Query);
if($NumRecords == 0){
$Query = mysql_query("INSERT INTO Clients (IP, Name, Email, $Phone) VALUES ('$IP', '$Name', '$Email', '$Phone')", $DB);
}else{
$Name = $Data["Name"];
$Email = $Data["Email"];
list($Phone1, $Phone2, $Phone3) = split('[-]', $Data["Phone"]);
}
?>
yup good points there zen-r
most people with static sites or fill-in-forms wil be fine.
its the forum software with lots of mods that "do things", chat servers, shout boxes, etc (and the other stuff Corey mentioned) that will cause the monitor is react.
No, i have only very basic stuff on my board.
Also i can't load Suspension page for unknown reason.
PHP:<?php $Hostname = "localhost"; $Database = "database"; $Username = "usename"; $Password = "password"; $IP = $_SERVER['REMOTE_ADDR']; $DB = mysql_connect("$Hostname", "$Username", "$Password"); mysql_select_db("$Database", $DB); $Name = $_POST['Name']; $Email = $_POST['Email']; $pPhone = $_POST['Phone1']."-".$_POST['Phone2']."-".$_POST['Phone3']; $sPhone = $_POST['Phone4']."-".$_POST['Phone5']."-".$_POST['Phone6']; $Date = $_POST['Month']."/".$_POST['Day']; $Time = $_POST['Hour'].$_POST['Minute'].$_POST['AP']; $Length = $_POST['Length1'].$_POST['Length1']; $People = $_POST['People']; $Note = $_POST['Note']; $Confirm = $_POST["Confirm"]; if($Confirm){ $to = "MYEMAILHERE@hotmail.com"; $from = "From: ".$Name." (".$Email.")"; $subject = "LESSON REQUEST!"; $body = "A request for a lesson has been scheduled for ".$Date." at ".$Time." for ".$Length." hours, with ".$People." person(s) \n\n Message: \n".$Note; if(mail($to,$subject, $body, $from)){ $Message="A request for this timeslot has been sent! You will recieve an email response as soon as I can! Thanks!"; }else{ $Message="Unable to send your request. Please check spelling of your Email Address and try again."; } } $Query = mysql_query("SELECT * FROM Clients WHERE IP='$IP'", $DB); $Data = mysql_fetch_array($Query); $NumRecords = mysql_num_rows($Query); if($NumRecords == 0){ $Query = mysql_query("INSERT INTO Clients (IP, Name, Email, $Phone) VALUES ('$IP', '$Name', '$Email', '$Phone')", $DB); }else{ $Name = $Data["Name"]; $Email = $Data["Email"]; list($Phone1, $Phone2, $Phone3) = split('[-]', $Data["Phone"]); } ?>
A history of all account suspensions will be listed below. If you find incorrect information here please open a support ticket so we can correct it.
type date reason for action
suspension Jun 23 You have been suspended for high system resource usage. Accounts are suspended for usage when they are detected to have consistently high cpu usage, memory usage, or process amounts. This is an automatic suspension, you're able to unsuspend yourself immediately. Warning 1 of 3
unsuspension Jun 23 not applicable
suspension 7:46 pm You have been suspended for high system resource usage. Accounts are suspended for usage when they are detected to have consistently high cpu usage, memory usage, or process amounts. This is an automatic suspension, you're able to unsuspend yourself immediately. Warning 1 of 3
Your hosting account is currently suspended. Follow the instructions below to resolve this issue.
if this suspension is not resolved within 14 days your hosting account may be terminated
pass the information below to any support staff if you're having difficulties with your account
your suspension reason code is SPND_RUSAGE1