-
Notifications
You must be signed in to change notification settings - Fork 1
/
manager.php
57 lines (50 loc) · 1.68 KB
/
manager.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
<?php
# targets
if (!isset($targets)) {
require __DIR__ . '/modules/config.php';
$targets = readTargets();
}
# miscellaneous
require __DIR__ . '/frontend/install.php'; // install the front-end assets if needed
date_default_timezone_set("Asia/Tehran");
?><!DOCTYPE html>
<html lang="" dir="ltr">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#1DA1F2">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#222222">
<meta charset="UTF-8">
<title>Twitter Profile Exporter</title>
<link rel="icon" href="frontend/icons/twitter.svg" sizes="any" type="image/svg+xml">
<link href="frontend/bootstrap.min.css" rel="stylesheet">
<script src="frontend/jquery.min.js"></script>
<script src="frontend/bootstrap.bundle.min.js"></script>
<script src="frontend/bootstrap-auto-dark-mode.js"></script>
</head>
<body class="container border-start border-end px-0">
<table class="table">
<thead>
<tr>
<th>Username</th>
<th>Last Sync</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php foreach ($targets as $id => $u) : ?>
<tr data-id="<?= $id ?>">
<td><a href="viewer.php?t=<?= $id ?>" target="_blank"><?= $u['user'] ?></a></td>
<td><?= ($u['last'] != 0) ? date('Y/m/d H:i:s', $u['last']) : 'never' ?></td>
<td><a href="javascript:void(0)" class="delete">Delete</a></td>
</tr>
<?php endforeach; ?>
<tr>
<td><input type="text" id="newUser" placeholder="New User..."></td>
<td></td>
<td><a href="javascript:void(0)" id="put">Add</a></td>
</tr>
</tbody>
</table>
<script src="frontend/manager.js"></script>
</body>
</html>