-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.php
72 lines (51 loc) · 1.32 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
<?php
error_reporting(E_ERROR);
if (basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
http_response_code(403);
die;
}
require './static/Medoo.php';
use Medoo\Medoo;
$db = new Medoo([
'type' => 'sqlite',
'database' => '.db.db'
// if using mysql instead of sqlite
/*
'type' => 'mysql',
'database' => 'test',
'username' => 'admin',
'password' => 'admin'
*/
]);
$crisp = "ID"; // crisp id
$goftino = "ID"; // $goftino id
$raychat = "ID"; // raychat id
$panels = [
[
"panel_url" => "https://panel.com:2020/",
"type" => "sanaei", // choose type between [sanaei,alireza,xpanel]
"user" => "admin",
"pass" => "admin",
"api-key" => '', // for xpanel only
],
/*
[
"panel_url" => "https://panel.com:2020/",
"type" => "sanaei", // choose type between [sanaei,alireza,xpanel]
"user" => "admin",
"pass" => "admin",
"api-key" => '', // for xpanel only
],
*/
// add a list just like this for multi panels
];
$db->create('user', [
'username' => 'TEXT',
'uuid' => 'TEXT',
'status' => 'BOOLEAN',
'total_traffic' => 'INT',
'download' => 'INT',
'upload' => 'INT',
'expire_time' => 'TIMESTAMP'
]);
$db->create('data_time', ['data_time' => 'TIMESTAMP']);