mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
the database. They're started with admin/maintenance/start/[task_name] which sends down some JS/HTML which regularly pings the task at admin/maintenance/start/[task_id] until its done. The UI is still very rough. It works, though!
31 lines
824 B
PHP
31 lines
824 B
PHP
<? defined("SYSPATH") or die("No direct script access."); ?>
|
|
<div id="gMaintenance">
|
|
<h1> <?= _("Maintenance Tasks") ?> </h1>
|
|
<p>
|
|
<?= _("Occasionally your Gallery will require some maintenance. Here are some tasks you can run to keep it running smoothly.") ?>
|
|
</p>
|
|
|
|
<div id="gAvailableTasks">
|
|
<h2> <?= _("Available Tasks") ?> </h2>
|
|
<table style="width: 400px">
|
|
<? foreach ($available_tasks as $task) ?>
|
|
<tr>
|
|
<td>
|
|
<?= $task->description ?>
|
|
</td>
|
|
<td>
|
|
<a href="<?= url::site("admin/maintenance/start/$task->name") ?>" class="gDialogLink">
|
|
<?= _("run") ?>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="gRunningTasks">
|
|
<h2> <?= _("Running Tasks") ?> </h2>
|
|
|
|
<i> Task list goes here </i>
|
|
</div>
|
|
</div>
|