1
0

Refactor [su_ajax|admin_cmd|api_webhook] methods into single /api/ interface

This commit is contained in:
2019-12-28 22:42:25 +01:00
parent 75e53f2f52
commit d0aea4e4e7
39 changed files with 306 additions and 234 deletions

View File

@@ -0,0 +1,28 @@
<?php
require_once (__DIR__ . '/../internals/base.php');
require_once (__DIR__ . '/../internals/database.php');
require_once (__DIR__ . '/../internals/updateslog.php');
Database::connect();
?>
<div class="stripedtable_container" style="width: 100%;">
<table class="stripedtable">
<thead>
<tr>
<th>IP</th>
<th>Version</th>
<th>Timestamp</th>
</tr>
</thead>
<tbody>
<?php foreach (UpdatesLog::getEntries($_GET['ulname'], 512) as $entry): ?>
<tr>
<td><?php echo $entry['ip']; ?></td>
<td><?php echo $entry['version']; ?></td>
<td><?php echo $entry['date']; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>