forked from LeroyVDotBe/MEOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
111 lines (92 loc) · 2.12 KB
/
config.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
//Version 1.2.4
ini_set("session.hash_function","sha512");
session_start();
ini_set("max_execution_time",500);
error_reporting(1);
// Meos database
$db_host = "localhost";
$db_user = "root";
$db_pass = "";
$db_data = "meos";
$con = new mysqli($db_host,$db_user,$db_pass,$db_data);
// Fivem ESX database
$dd = array(
"host" => "localhost",
"user" => "root",
"pass" => "",
"data" => "fivem"
);
$ddcon = new mysqli($dd['host'],$dd['user'],$dd['pass'],$dd['data']);
// Site name, title, footer and browser color
$site_name = "Los Santos";
$site_title = "Los Santos | MEOS Systeem";
$site_footer = "Copyright © Los Santos";
$browser_color = "#004682";
# Never touch this
require "GoogleAuthenticator.php";
$ga = new PHPGangsta_GoogleAuthenticator();
if (isset($_SESSION['id'])) {
$q = $con->query("SELECT status FROM users WHERE id = '".$_SESSION['id']."' AND status = 'active'");
if ($q->num_rows == 0) {
Header("Location: exit.php");
}
}
# Never touch this
if (isset($_POST)) {
$a = $_POST;
if (isset($a['password'])) {
$a['password'] = NULL;
}
if (isset($a['password1'])) {
$a['password1'] = NULL;
}
if (isset($a['password2'])) {
$a['password2'] = NULL;
}
}
# Never touch this
//Log
$data =
array(
"SERVER"=>$_SERVER,
"SESSION"=>$_SESSION,
"POST"=>$a,
"GET"=>$_GET
);
$con->query("INSERT INTO pagevisitlog (
uri,
ip,
_SERVER,
_SESSION,
_POST,
_GET)
VALUES
(
'".$_SERVER['REQUEST_URI']."',
'".$_SERVER['REMOTE_ADDR']."',
'".json_encode($data['SERVER'])."',
'".json_encode($data['SESSION'])."',
'".json_encode($data['POST'])."',
'".json_encode($data['GET'])."'
)");
$curl = curl_init();
curl_setopt($curl,CURLOPT_URL,"indexveh.php");
curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl,CURLOPT_HEADER, false);
curl_setopt($curl,CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
if (isset($_GET)) {
foreach($_GET as $key => $value) {
//$_GET[$key] = $con->real_escape_string($value);
}
reset($_GET);
}
if (isset($_POST)) {
foreach($_POST as $key => $value) {
//$_POST[$key] = $con->real_escape_string($value);
}
reset($_GET);
}
?>