-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUserInfo.php
59 lines (58 loc) · 2.36 KB
/
UserInfo.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
<?php include($_SERVER['DOCUMENT_ROOT'] . '/config.php');
//TO NOTE: studio's browser dosen't seem to unset the cookie properly.
//if we try to get rid of the cookie, it simply changes the value to "deleted".
//we have to check for this value and turn it into null so the entirety of the site dosent go apeshit.
switch(true){
case (isset($_COOKIE['ROBLOSECURITY'])):
$RBXTICKET = $_COOKIE['ROBLOSECURITY'];
switch ($RBXTICKET){case "deleted":$RBXTICKET = null;break;case (strpos($RBXTICKET, " ")):$RBXTICKET = null;break;}
break;
default:
$RBXTICKET = null;
break;
}
switch(true){
case ($RBXTICKET !== null):
$GetInfo = $MainDB->prepare("SELECT id, name, ticket, robux, nextrobuxgive, termtype, treason, tnote, tdate, email, emailverified, membership, friends, creationdate, admin, theme FROM users WHERE token = :token");
$GetInfo->execute([':token' => $RBXTICKET]);
$Info = $GetInfo->fetch(PDO::FETCH_ASSOC);
$id = ($Info['id'] ?? null);
$name = ($Info['name'] ?? null);
$ticket = ($Info['ticket'] ?? null);
$robux = ($Info['robux'] ?? null);
$termtype = ($Info['termtype'] ?? null);
$termreason = ($Info['treason'] ?? null);
$termnote = ($Info['tnote'] ?? null);
$termdate = ($Info['tdate'] ?? null);
$email = ($Info['email'] ?? null);
$reward = ($Info['nextrobuxgive'] ?? null);
$verified = ($Info['emailverified'] ?? null);
$membership = ($Info['membership'] ?? null);
$friendapi = ($Info['friends'] ?? null);
$birthdate = ($Info['creationdate'] ?? null);
$admin = ($Info['admin'] ?? null);
$theme = ($Info['theme'] ?? null);
switch(true){case($friendapi !== null):$friends = explode(';', $Info['friends']);break;default:$friends = array();break;}
switch(true){case ($name == null):header('Location: '. $baseUrl .'/Login/Logout.ashx?returnUrl=/');break;}
switch (true){case ($termtype !== null):switch ($CurrPage){case ($CurrPage !== "/IDE/NotApproved.aspx"):header("Location: ". $baseUrl . "/IDE/NotApproved.aspx");die();break;}break;}
break;
default:
$id = null;
$name = null;
$robux = null;
$reward = null;
$ticket = null;
$termtype = null;
$termreason = null;
$termnote = null;
$termdate = null;
$email = null;
$verified = null;
$membership = null;
$friends = null;
$birthdate = null;
$admin = null;
$theme = null;
break;
}
?>