'; # EMAIL SUBJECT $Email_Subject = 'Elk Island Golf Course - Comment Submitted'; # EMAIL SUCCESS/FAILURE MESSAGE $Email_Success = 'Your Comment Has been Sent Successfully! Please allow up to 24 hours for us to respond to your request. Thanks.'; $Email_Failure = 'Your Comment Could not be sent at this time. Please use your own email program to send an email to: '.$Send_To; ########################################################################## # DO NOT EDIT THE PHP BELOW THIS LINE !!!! - YOU HAVE BEEN WARNED - BOO YA session_start(); if($_POST){ $Email_Message = $Email_Subject.' -- Sent on: '.date("M j, Y").' at '.date("g:ia").' Name: '.$_POST['Name'].' Phone: '.$_POST['Phone'].' Email: '.$_POST['Email'].' --- Comments: '.$_POST['Comment']; if(mail($Send_To, $Email_Subject, $Email_Message, $Send_From)){ header('location: contacts.php?message='.$Email_Success); } else { header('location: contacts.php?message='.$Email_Failure); } die(); } if($_GET['verifycaptcha']){ echo ''; die(); } if($_GET['image']){ $num_chars=6; session_start(); if(!isset($_SESSION['image_random_value'])) { $allowed = "A B C E F H J K M N P R S T X Y Z 2 3 4 5 6 8 9"; $alpha = explode(" ", $allowed); for($n=0;$n<$num_chars;$n++) { $string.=$alpha[rand(0,count($alpha)-1)]; } $_SESSION['image_random_value']=$string; } else { $string = $_SESSION['image_random_value']; } header("Content-type: image/png\n\n"); // Image header $im = imagecreate(140,26); $bg = imagecolorallocate($im, 255, 255, 255); $line = imagecolorallocate($im, 216,216,216); for($i=0;$i<=100;$i++) { imagelinethick($im, rand(1,170), rand(1,170), rand(1,100), rand(1,100),$line, rand(1,3)); } $text_color_array=array("255,51,0","0,0,0","51,0,204","204,51,102","102,102,102","0,153,0"); for($n=0;$n<$num_chars;$n++) { $text_color=$text_color_array[rand(0,count($text_color_array)-1)]; $text_color=explode(",", $text_color); $text = imagecolorallocate($im, $text_color[0], $text_color[1], $text_color[2]); // Text color imagestring($im, 5, 15+($n*18), rand(2,10), substr($string, $n, 1), $text); // Write the text } imagepng($im); imagedestroy($im); die(); } function imagelinethick($image, $x1, $y1, $x2, $y2, $color, $thick = 1) { /* this way it works well only for orthogonal lines imagesetthickness($image, $thick); return imageline($image, $x1, $y1, $x2, $y2, $color); */ if ($thick == 1) { return imageline($image, $x1, $y1, $x2, $y2, $color); } $t = $thick / 2 - 0.5; if ($x1 == $x2 || $y1 == $y2) { return imagefilledrectangle($image, round(min($x1, $x2) - $t), round(min($y1, $y2) - $t), round(max($x1, $x2) + $t), round(max($y1, $y2) + $t), $color); } $k = ($y2 - $y1) / ($x2 - $x1); //y = kx + q $a = $t / sqrt(1 + pow($k, 2)); $points = array( round($x1 - (1+$k)*$a), round($y1 + (1-$k)*$a), round($x1 - (1-$k)*$a), round($y1 - (1+$k)*$a), round($x2 + (1+$k)*$a), round($y2 - (1-$k)*$a), round($x2 + (1-$k)*$a), round($y2 + (1+$k)*$a), ); imagefilledpolygon($image, $points, 4, $color); return imagepolygon($image, $points, 4, $color); } # END PHP ########################################################################## # READ IN THE HEADER FILE include('./header.php'); ?>
Drop us a line...
Name:
Phone:
Email:
Comments:
Verification Image:
Enter Verification image:

Give us a call...
780.998.3161

Or fax us...
780.895.2111

alert(\''.addslashes($_GET['message']).'\');';} ?>