Expand on the maintenance code to make it more robust and give the

admin more control.  You can now track running tasks, resume stalled
tasks, cancel running tasks, and remove finished tasks.

Added graphics::compose() as a placeholder for future watermark
operations.

Added CSRF protection to maintenance urls.
This commit is contained in:
Bharat Mediratta
2008-12-28 23:48:15 +00:00
parent 1d76689e4b
commit ed8689f768
7 changed files with 303 additions and 34 deletions

View File

@@ -3,7 +3,7 @@
<script type="text/javascript">
update = function() {
$.ajax({
url: "<?= url::site("admin/maintenance/run/$task->id") ?>",
url: "<?= url::site("admin/maintenance/run/$task->id?csrf=$csrf") ?>",
dataType: "json",
success: function(data) {
$("#gStatus").html("" + data.task.status);