-
Notifications
You must be signed in to change notification settings - Fork 0
/
output_fns.php
87 lines (78 loc) · 2.02 KB
/
output_fns.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
function do_html_header($title)
{
?>
<html>
<head>
<title><?php echo "BamDing | $title"; ?></title>
</head>
<body>
<h1>BamDing</h1>
<?php
}
function display_site_info()
{
}
function display_login_form()
{
?>
<a href="register_form.php">Not a member?</a>
<form action="member.php" method="post">
E-mail: <input type="text" name="email"><br>
Password: <input type="password" name="password"><br>
<input type="submit" value="Log in">
</form>
<a href="">Forgot your password?</a>
<?php
}
function display_registration_form()
{
?>
<form action="register_new.php" method="post">
E-mail: <input type="text" name="email"><br>
Password: <input type="password" name="password"><br>
Confirm Password: <input type="password" name="password2"><br>
<input type="submit" value="Register">
</form>
<?php
}
function do_html_footer()
{
?>
</body>
</html>
<?php
}
function do_html_url($url, $text)
{
echo "<a href=\"$url\">$text</a>";
}
function display_payment_form()
{
?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="U2E5C8LRTY72G">
<table>
<tr><td><input type="hidden" name="on0" value=""></td></tr><tr><td><select name="os0">
<option value="Monthly">Monthly : $10.00 USD - monthly</option>
<option value="Yearly (3 Months Free)">Yearly (3 Months Free) : $90.00 USD - yearly</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<?php
}
function display_member_menu()
{
?>
<div id='member_menu'>
<form method="post" action="index.php">
<input type="hidden" name="logout" value="true">
<input type="submit" name="Submit" value="Log Out">
</form>
</div>
<?php
}