-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmember-profile.php
More file actions
55 lines (53 loc) · 1.81 KB
/
Copy pathmember-profile.php
File metadata and controls
55 lines (53 loc) · 1.81 KB
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
<?php
define("AUTH_REQUIRED", true);
require_once('includes/header.php');
// .:My Profile Information:.
//
//
// BitFields:
//
// -Expansions
// 0 = "Notum Wars"
// 1 = "Shadow Lands"
// 2 = "Shadow Lands Pre-Order"
// 3 = "Alien Invasion"
// 4 = "Alien Invasion Pre-Order"
// 5 = "Lost Eden"
// 6 = "Lost Eden Pre-Order"
// 7 = "Legacy of Xan"
// 8 = "Legacy of Xan Pre-Order"
// 9 = "Mail"
//10 = "PMV Obsidian Edition"
// 0=1, 1=2, 2=4, 3=8, 4=16, 5=32, 6=64, 7=128, 8=256, 9=512, 10 = 1024
// So if you want to give someone all expansions is 1+2+4+8+16+32+64+128+256+512+1024 = 2047
//
// -GM Levels
// 1-100
// 100=blackmanes statbuffer usable
$exp = $_SESSION['SESS_EXPANSIONS'];
$userExpansions = "";
$Expansions = array('NW', 'SL', 'SL Preorder', 'AI', 'AI Preorder', 'LE', 'LE Preorder', 'LoX', 'LoX Preorder', 'Mail', 'PMV Obsidian Edition');
for ($i = 0; $i < sizeof($Expansions); $i++) {
if ($exp & pow(2, $i)) {
$userExpansions .= $Expansions[$i] . ', ';
}
}
?>
<div class="indentedContent">
<?php
echo "My User ID: <b>".$_SESSION['SESS_ID']."<br></b>";
echo "Created on: <b>".$_SESSION['SESS_CREATIONDATE']."<br></b>";
echo "My Email: <b>".$_SESSION['SESS_EMAIL']."<br></b>";
echo "My User Name: <b>".$_SESSION['SESS_USER_NAME']."<br></b>";
echo "My Max Chars: <b>".$_SESSION['SESS_ALLOWED_CHARACTERS']."<br></b>";
echo "My Gen Flags: <b>".$_SESSION['SESS_FLAGS']."<br></b>";
echo "My Acnt Flags: <b>".$_SESSION['SESS_ACCOUNTFLAGS']."<br></b>";
echo "My Expansions: <b>(".$exp.") ".$userExpansions."<br></b>";
echo "My GM LvL: <b>".$_SESSION['SESS_GM']."<br></b>";
echo "My First Name: <b>".$_SESSION['SESS_FIRST_NAME']."<br></b>";
echo "My Last Name: <b>".$_SESSION['SESS_LAST_NAME']."<br></b>";
?>
</div>
<?php
require_once("includes/footer.php");
?>