sendmail.php changes
Produced: 8/25/2007 12:14:06 PM
   
Mode:  Differences with Context  
   
Left file: D:\phpfootball20\sendemail.php     Right file: D:\phpfootball20old\sendemail.php  
1 <?PHP = 1 <?PHP
2 //session_start(); <> 2 session_start();
3 //session_register('user');   3 session_register('user');
4   = 4  
5 //***************************************************************************   5 //***************************************************************************
6 //* ASP Football Pool                                                       *   6 //* ASP Football Pool                                                       *
7 //* Do not remove this notice.                                              *   7 //* Do not remove this notice.                                              *
8 //* Copyright 1999-2004 by Mike Hall                                        *   8 //* Copyright 1999-2004 by Mike Hall                                        *
9 //* Please see http://www.brainjar.com for documentation and terms of use.  *   9 //* Please see http://www.brainjar.com for documentation and terms of use.  *
 
17 //* Allows players to enter or update an entry for a given week's pool.     * = 17 //* Allows players to enter or update an entry for a given week's pool.     *
18 //***************************************************************************   18 //***************************************************************************
19     19  
20 $subtitle="Send Contact";   20 $subtitle="Send Contact";
21 //require("protect.php");   21 //require("protect.php");
22 require("header.php");   22 require("header.php");
23   <>    
24 ?> = 23 ?>
25 <html>   24 <html>
26 <head>   25 <head>
27 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   26 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
28 <title>Sendemail Script</title>   27 <title>Sendemail Script</title>
29 </head>   28 </head>
 
38 $ccx = ""; = 37 $ccx = "";
39 $visitormail = $_POST['visitormail'] ;   38 $visitormail = $_POST['visitormail'] ;
40 $visitor = $_POST['visitor'] ;   39 $visitor = $_POST['visitor'] ;
41 $attn = $_POST['attn'];   40 $attn = $_POST['attn'];
42 $notes = $_POST['notes'] ;   41 $notes = $_POST['notes'] ;
43 $ccopy = $_POST['ccopy'];   42 $ccopy = $_POST['ccopy'];
44 $verif_box = $_REQUEST["verif_box"]; +-    
45 $http_referrer = getenv( "HTTP_REFERER" ); = 43 $http_referrer = getenv( "HTTP_REFERER" );
46 $error="";   44 $error="";
47 if ($football->checkEmail($visitormail) != "TRUE")   45 if ($football->checkEmail($visitormail) != "TRUE")
48 {   46 {
49 $error="Y";   47 $error="Y";
50 echo "<h2>Use Back - Enter valid e-mail</h2>\n";   48 echo "<h2>Use Back - Enter valid e-mail</h2>\n";
 
52 } = 50 }
53 if(empty($visitor) || empty($visitormail) || empty($notes ))   51 if(empty($visitor) || empty($visitormail) || empty($notes ))
54 {   52 {
55 echo "<h2>Use Back - fill in all fields</h2>\n";   53 echo "<h2>Use Back - fill in all fields</h2>\n";
56 }   54 }
57 echo $badinput;   55 echo $badinput;
58 // check to see if verificaton code was correct <>    
59 if(md5($verif_box).'a4xn' != $_COOKIE['tntcon']){      
60         // if verification code was incorrect then return to contact page and show error      
61 //        header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&from=$from&message=$message&wrong_code=true");      
62 ?>      
63 <div style="border:1px solid #990000; background-color:#D70000; color:#FFFFFF; padding:4px; padding-left:6px;width:295px;">Wrong verification code</div><br />      
64        
65 <button onClick='javascript:history.back()'>Click here to return</button>      
66 <?      
67         exit;      
68 } else {      
69         // if verification code was correct send the message and show this page      
70 //      mail("you@email.com", 'Online Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");      
71         // delete the cookie so it cannot sent again by refreshing this page      
72 //        setcookie('tntcon','');      
73 }      
74        
75 if ($error != "Y") = 56 if ($error != "Y")
76 {   57 {
77 $todayis = date("l, F j, Y, g:i a") ;   58 $todayis = date("l, F j, Y, g:i a") ;
78     59  
79 $attn = $attn . "(" . $ccopy . ")" ;   60 $attn = $attn . "(" . $ccopy . ")" ;
80 $subject = $football->sitetitle;   61 $subject = $football->sitetitle;
 
124 echo $notesout; ?> = 105 echo $notesout; ?>
125 <br />   106 <br />
126     107  
127 </p>   108 </p>
128 <? } ?>   109 <? } ?>
129 </body>   110 </body>
130 <? require ("footer.php"); <> 111 <? require ("footer.php"); ?>
131 ?>      
132 </html> = 112 </html>