-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaccount.php
41 lines (31 loc) · 1.13 KB
/
account.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
<?
$html_title = "account";
$openTab = "account";
include("include_header.php");
if ($logged==0) {
if (sql_injection_check($_GET["page"])=="confirmchangepassword") {
$page = "confirmchangepassword";
$content_page = "confirmchangepassword";
} else {
$page = "login";
$content_page = "login";
}
} else {
$page = sql_injection_check($_GET["page"]);
switch ($page) {
case "buy": $content_page = "buy"; break;
case "buy_show": $content_page = "buy_show"; break;
case "payout": $content_page = "payout"; break;
case "transfers": $content_page = "transfers"; break;
case "messages": $content_page = "messages"; break;
case "results": $content_page = "results"; break;
case "points": $content_page = "points"; break;
case "friends": $content_page = "friends"; break;
case "changepassword": $content_page = "changepassword"; break;
case "confirmchangepassword": $content_page = "confirmchangepassword"; break;
case "change": $content_page = "change"; break;
default: $content_page = "main"; break;
}
}
include("account_$content_page.php");
include("include_bottom.php"); ?>