-
Notifications
You must be signed in to change notification settings - Fork 1
/
support.php
50 lines (37 loc) · 1.52 KB
/
support.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Support service for <?php echo $id ?></title>
<link rel="stylesheet" href="/bootstrap/css/bootstrap.css">
</head>
<body>
<div class="container">
<div class="content">
<img alt="Webconverger logo" class="logo" height="70" src="https://webconverger.com/img/logo.svg" />
<h1>Apache logs</h1>
<p>Logs from when a configuration is fetched from config.webconverger.com</p>
<p>
<a href="/a/<?php echo $id;?>">Full log for <?php echo $id;?></a>
</p>
<pre>
<?php echo (`./taill.sh "$id"`); ?>
</pre>
<h1>Logs</h1>
<p>If the <code>support</code> API is enabled in your <a href="http://config.webconverger.com/clients/install-config/<?php echo $id; ?>">configuration</a>, logs should appear here.</p>
<ul>
<?php
foreach (glob("$logdir/$id/*", GLOB_ONLYDIR) as $filename) {
echo "<li><a href=/$filename/syslog>". date('c', intval(basename($filename))) . "</a></li>\n";
}
?>
</ul>
<hr>
<footer>
<p>Questions our <a href="http://config.webconverger.com/faq"><abbr title="Frequently Asked Questions">FAQ</abbr></a> didn't answer? Please email <a href="mailto:sales@webconverger.com">sales@webconverger.com</a>.</p>
<p>© Webconverger <?php echo date('Y'); ?></p>
</footer>
</div> <!-- container -->
</div> <!-- content -->
</body>
</html>