-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmm_reg.php~
executable file
·87 lines (60 loc) · 1.94 KB
/
mm_reg.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
#die('Registration is not yet open.');
$title = "Registered";
include '_top.php';
function adderror($arg1)
{
echo "<center><b>$arg1</b><p/></center>";
}
function quiterror($arg1)
{
adderror($arg1);
include '_bottom.php';
exit();
}
import_request_variables("gp", "url_");
if ($url_print == '') {
$url_print = "no";
}
if (($url_member1_email == '')||($url_member2_email == '')||($url_member3_email == '')) {
?>
<center><img src="images/register.jpg"></center>
<div id="content">
<center><b>Error: each team member must have have a valid e-mail address to register for MechMania.</b></center><p/>
</div>
<?php
} else {
$mm_to = "$url_member1_email, $url_member2_email, $url_member3_email";
$mm_fields = "
Member 1: $url_member1_first $url_member1_last <$url_member1_email>
Member 2: $url_member2_first $url_member2_last <$url_member2_email>
Member 3: $url_member3_first $url_member3_last <$url_member3_email>
Team name: $url_team_name
School: $url_school
Printed documentation? $url_print
Colors: $url_color1 and $url_color2
Alternate colors: $url_color3 and $url_color4
Note: $url_note
";
$mm_message = "
Members of $url_team_name,
Thank you for registering for MechMania XII. You will receive additional
information shortly.
The information you entered was:
";
mail("[email protected]", "MechMania registration", $mm_fields,
"From: [email protected]\r\n");
mail("[email protected]", "MechMania registration", $mm_fields,
"From: [email protected]\r\n");
#mail($mm_to, "MechMania registration", $mm_message.$mm_fields,
#"From: [email protected]\r\n");
?>
<center><img src="images/register.jpg"></center>
<div id="content">
<center><b>Thank you for your interest in MechMania.</b></center><p/>
<center><b>You will receive a confirmation email shortly.</b></center>
</div>
<?php
}
?>
<?php include '_bottom.php'; ?>