-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.php
45 lines (33 loc) · 1.91 KB
/
client.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
<?PHP
/**-------------- Copyright (C) 2013 - Mavericks Trynity -------------------------
| ### ### #### ## ## ######### ######## ## ###### ########
| ## # # ## ## ## ## ## ## ## ## ## ## ##
| ## # # ## ## ## ## ## ## ######## ## ## ##
| ## ## ## ## ## ## ## ######## ## ## ## ##
| ## ## ######## ## ## ## ### ## ## ##
| ## ## ## ## ## ## ## ## ## ## ## ##
| ## ## ## ## ## ######### ## ## ## ###### #######
* Author: |Lion (Kevin) - All rights reserved.
* This program is private: you can not redistribute it and/or modify
----------------------------------------------------------------------*/
Require 'Init.php';
if(!$users->LoginExist())
header("Location: ". PATH);
$Auth = Mavericks::MakeSSO();
$Database->Query('UPDATE users SET auth_ticket = "'. $Auth .'" WHERE username = "'. $_SESSION['username'] .'" LIMIT 1 ');
$Database->Query('UPDATE user_tickets SET sessionticket = "'. $Auth .'", ipaddress = "'. $_SERVER['REMOTE_ADDR'] .'" WHERE userid = "'.$users->Info('id').'" ');
$Ticket = $Database->Query('SELECT * FROM users WHERE username = "'. $_SESSION['username'] .'" ')->fetch_assoc();
/**
HCrazy cur'l host
*/
$data = array('username' => $_SESSION['username'],
'UserSSOticket' => $Ticket['auth_ticket'],
'userID' => $Ticket['id']);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://91.121.232.200/showgame.php');
curl_setopt($ch, CURLOPT_USERAGENT, "Mavericks::SYST3M::Input::HCRAZY");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$Response = curl_exec($ch);
curl_close($ch);
new CompressHtml($Response);