This repository has been archived by the owner on Nov 11, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmarkpaid.php
64 lines (55 loc) · 1.58 KB
/
markpaid.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php error_reporting(E_ALL);
ini_set('display_errors', '1');
require_once('auth.php');
// TODO: CHECK LOGIN SESSION
/*
require_once("auth.php");
if (!checkSimplePasskey("missingbytes", $_REQUEST['pass']))
{
header("location: login.php");
}
*/
require_once("connect.php");
$update = "UPDATE profile SET `paid` = 1 WHERE id =" .$_REQUEST['id'];
$r = mysql_query("SELECT * FROM `profile` WHERE `id` = ". $_REQUEST['id']);
$person = mysql_fetch_array($r);
$first = $person['firstname'];
$last = $person['lastname'];
$name = $first . " " . $last;
$email = $person['email'];
$box = $person['box'];
$body =
"
Dear $name,
Thank you for supporting the Wartburg Computer Club!
You may now check your current matches by logging in to date2knight.com.
The more people that take the survey the better your results will be, so be sure to tell your friends about this event.
We really hope you find a Valentine or a friend.
Sincerely,
Date 2 Knight Team 2012
Owen Johnson
Andrew Reisner
Brett Peterson
Matthew Dickman
Paul Masterson
Adam Kucera
Jon Juett
Aaron Schendel
Chuck Norris
Dr. John Zelle
Dr. Terry Letsche
You received this email because you took the Date 2 Knight survey and you purchased your results. (Or someone paid to send them to you!)
";
if(mysql_query($update))
{
$headers = "From: [email protected]";
mail($email,"Date 2 Knight",$body,$headers);
header("location: admin.php");
}
?><h1>SOMETHING WENT WRONG!</h1><p>There was an error marking as paid.</p><?php
mysql_error();
?><br><?php
print_r($_REQUEST);
?><br><?php
echo($sql);
?>