X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/db5c05cc01e7874e0a7fc7518782ab37b39911a8..1394469c06e6908e6e77b48718ce6664db23407c:/admin.php diff --git a/admin.php b/admin.php index 87dbcea..bf61e6d 100755 --- a/admin.php +++ b/admin.php @@ -129,6 +129,18 @@ require (JIRAFEAU_ROOT . 'lib/template/header.php'); </tr> </form> <form action = "<?php echo basename(__FILE__); ?>" method = "post"> + <tr> + <input type = "hidden" name = "action" value = "clean_async"/> + <td class = "info"> + <?php echo t('Clean old unfinished transferts'); ?> + </td> + <td></td> + <td> + <input type = "submit" value = "<?php echo t('Clean'); ?>" /> + </td> + </tr> + </form> + <form action = "<?php echo basename(__FILE__); ?>" method = "post"> <tr> <input type = "hidden" name = "action" value = "list"/> <td class = "info"> @@ -201,6 +213,14 @@ if (isset ($_POST['action'])) echo t('Number of cleaned files') . ' : ' . $total; echo '</p></div>'; } + elseif (strcmp ($_POST['action'], 'clean_async') == 0) + { + $total = jirafeau_admin_clean_async (); + echo '<div class="message">' . NL; + echo '<p>'; + echo t('Number of cleaned files') . ' : ' . $total; + echo '</p></div>'; + } elseif (strcmp ($_POST['action'], 'list') == 0) { jirafeau_admin_list ("", "", "");