-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.php
70 lines (67 loc) · 2.45 KB
/
index.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
<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
if (version_compare(phpversion(), '8.2.0', '<')) {
die("PHP version should be 8.2 or higher! Change your PHP version and return.");
}
require_once __DIR__ . '/checkpassword.php';
require_once __DIR__ . '/classes/FbAccountSerializer.php';
require_once __DIR__ . '/classes/FbAccount.php';
require_once __DIR__ . '/classes/RemaskProxy.php';
$serializer = new FbAccountSerializer(ACCOUNTSFILENAME);
$accounts = $serializer->deserialize();
?>
<!DOCTYPE html>
<html lang="en">
<head class="text-center">
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=2, shrink-to-fit=no"/>
<link href="styles/bootstrap.min.css" rel="stylesheet"/>
<link href="styles/signin.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.0/css/all.min.css" rel="stylesheet">
<link rel="icon" type="image/png" href="styles/img/favicon.png">
<script src="styles/bootstrap.min.js"></script>
<title><?php include 'version.php' ?></title>
</head>
<body class="text-center">
<div class="form-group">
<?php include 'menu.php' ?>
<br/>
<b style="color:#c8ccd6">Statistics</b>
<br/>
<br/>
<select id="accNames" class="form-control" style="text-align:center;">
<option value="all">Load all</option>
<?php foreach ($accounts as $acc) { ?>
<option value="<?= $acc->name ?>"><?= $acc->name ?></option>
<?php } ?>
</select>
<select id="showParam" class='form-control'>
<option value='active'>Only active</option>
<option value='all'>Show All</option>
</select>
<select id='dateRange' class='form-control'>
<option value='today'>Today</option>
<option value='yesterday'>Yesterday</option>
<option value='lifetime'>Maximum</option>
<option value='last_7d'>Last 7 days</option>
<option value='last_month'>Last Month</option>
</select>
<button type="button" id="loadstats" class="btn btn-primary">
<i id="loadingIcon" class="fas fa-spinner fa-spin" style="display:none;"></i>
LOAD
</button>
<br/>
<br/>
</div>
<table class="table table-dark table-hover" style="font-size: 16px;">
<tbody id="statBody"></tbody>
</table>
<script src="scripts/index.js" type="module"></script>
<div id='message'></div>
<?= include 'copyright.php' ?>
<script>
</script>
</body>
</html>