git.p6c8.net
/
jirafeau_project.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix input sanitize in scripting interface
[jirafeau_project.git]
/
admin.php
diff --git
a/admin.php
b/admin.php
index 87dbcea1b2f04cd1ce5e202eb07a4c67dd3ca62f..bf61e6d5ee58e787244eb2d747ecfff3e345084e 100755
(executable)
--- 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>
</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">
<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>';
}
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 ("", "", "");
elseif (strcmp ($_POST['action'], 'list') == 0)
{
jirafeau_admin_list ("", "", "");
patrick-canterino.de