forked from ormestad/publications
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpubtrawl.php
69 lines (60 loc) · 1.93 KB
/
pubtrawl.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
<?php
require 'lib/global.php';
if($USER->auth>1) {
date_default_timezone_set('UTC');
$timestamp = time() - ($CONFIG['publications']['max_days'] * 86400);
$dt = date('Y-m-d\T00:00', $timestamp);
} else {
// Not authorized
header('Location:not_authorized.php');
}
// Render Page
//=================================================================================================
?>
<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $CONFIG['site']['name']; ?></title>
<link rel="stylesheet" href="css/foundation.css">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/icons/foundation-icons.css" />
</head>
<body>
<?php require '_menu.php'; ?>
<div class="row">
<br>
<div class="large-12 columns">
<div class="card">
<div class="card-divider">
Pubtrawl status
</div>
<div class="card-section">
<div class="button-group">
<span class="start_trawl button">Begin trawl</span>
<span class="pause_trawl warning button">Pause trawl</span>
</div>
<label for="trawldate">Trawl from:</label>
<input type="datetime-local" id="trawldate" value="<?php echo $dt; ?>">
</div>
<div class="card-section">
<div class="large-12 columns" id="trawlmeter">
<div class="progress" role="progressbar" tabindex="0" aria-valuenow="0" aria-valuemin="0" aria-valuemax="0">
<span id="trawlbar" class="progress-meter" style="width: 0%">
<p id="trawltext" class="progress-meter-text"></p>
</span>
</div>
</div>
<div id="trawl_labs" class="large-12 columns"></div>
</div>
</div>
</div>
</div>
<script src="js/vendor/jquery.js"></script>
<script src="js/vendor/what-input.js"></script>
<script src="js/vendor/foundation.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>