Follow up for commit
a12b04d2670d2916008e53b4f5a2cc5f158cb998.
Remove further form action targets, if these forms should be send
to the same page anyway. In this case we may safely omnit the
action attribute and safe some path constructions.
elseif ((!isset($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true)
&& empty($cfg['admin_http_auth_user'])) {
require(JIRAFEAU_ROOT . 'lib/template/header.php'); ?>
elseif ((!isset($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true)
&& empty($cfg['admin_http_auth_user'])) {
require(JIRAFEAU_ROOT . 'lib/template/header.php'); ?>
- <form action = "<?php echo basename(__FILE__); ?>" method = "post">
?><div id = "admin">
<fieldset><legend><?php echo t('Actions'); ?></legend>
<table>
?><div id = "admin">
<fieldset><legend><?php echo t('Actions'); ?></legend>
<table>
- <form action = "<?php echo basename(__FILE__); ?>" method = "post">
<tr>
<input type = "hidden" name = "action" value = "clean"/>
<td class = "info">
<tr>
<input type = "hidden" name = "action" value = "clean"/>
<td class = "info">
- <form action = "<?php echo basename(__FILE__); ?>" method = "post">
<tr>
<input type = "hidden" name = "action" value = "clean_async"/>
<td class = "info">
<tr>
<input type = "hidden" name = "action" value = "clean_async"/>
<td class = "info">
- <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">
- <form action = "<?php echo basename(__FILE__); ?>" method = "post">
<tr>
<input type = "hidden" name = "action" value = "search_by_name"/>
<td class = "info">
<tr>
<input type = "hidden" name = "action" value = "search_by_name"/>
<td class = "info">
- <form action = "<?php echo basename(__FILE__); ?>" method = "post">
<tr>
<input type = "hidden" name = "action" value = "search_by_file_hash"/>
<td class = "info">
<tr>
<input type = "hidden" name = "action" value = "search_by_file_hash"/>
<td class = "info">
- <form action = "<?php echo basename(__FILE__); ?>" method = "post">
<tr>
<input type = "hidden" name = "action" value = "search_link"/>
<td class = "info">
<tr>
<input type = "hidden" name = "action" value = "search_link"/>
<td class = "info">
- <form action = "<?php echo basename(__FILE__); ?>" method = "post">
<input type = "hidden" name = "action" value = "logout" />
<input type = "submit" value = "<?php echo t('Logout'); ?>" />
</form>
<input type = "hidden" name = "action" value = "logout" />
<input type = "submit" value = "<?php echo t('Logout'); ?>" />
</form>
/* Show auth page. */
if (!isset($_SESSION['upload_auth']) || $_SESSION['upload_auth'] != true) {
?>
/* Show auth page. */
if (!isset($_SESSION['upload_auth']) || $_SESSION['upload_auth'] != true) {
?>
- <form action = "<?php echo basename(__FILE__); ?>" method = "post">
?>
<div id="upload_finished">
<p><?php echo t('File uploaded !') ?></p>
?>
<div id="upload_finished">
<p><?php echo t('File uploaded !') ?></p>
<p><?php echo t('View link') ?>:</p>
<p><a id="preview_link" href=""></a></p>
</div>
<p><?php echo t('View link') ?>:</p>
<p><a id="preview_link" href=""></a></p>
</div>
} ?>
<div id="upload_direct_download">
} ?>
<div id="upload_direct_download">
<?php
if (jirafeau_has_upload_password($cfg)) {
?>
<?php
if (jirafeau_has_upload_password($cfg)) {
?>
- <form action = "<?php echo basename(__FILE__); ?>" method = "post">
<input type = "hidden" name = "action" value = "logout"/>
<input type = "submit" value = "<?php echo t('Logout'); ?>" />
</form>
<input type = "hidden" name = "action" value = "logout"/>
<input type = "submit" value = "<?php echo t('Logout'); ?>" />
</form>
echo '<td>' . strftime('%c', $l['upload_date']) . '</td>';
echo '<td>' . $l['ip'] . '</td>';
echo '<td>' .
echo '<td>' . strftime('%c', $l['upload_date']) . '</td>';
echo '<td>' . $l['ip'] . '</td>';
echo '<td>' .
- '<form action = "admin.php" method = "post">' .
+ '<form method="post">' .
'<input type = "hidden" name = "action" value = "download"/>' .
'<input type = "hidden" name = "link" value = "' . $node . '"/>' .
'<input type = "submit" value = "' . t('Download') . '" />' .
'</form>' .
'<input type = "hidden" name = "action" value = "download"/>' .
'<input type = "hidden" name = "link" value = "' . $node . '"/>' .
'<input type = "submit" value = "' . t('Download') . '" />' .
'</form>' .
- '<form action = "admin.php" method = "post">' .
+ '<form method="post">' .
'<input type = "hidden" name = "action" value = "delete_link"/>' .
'<input type = "hidden" name = "link" value = "' . $node . '"/>' .
'<input type = "submit" value = "' . t('Del link') . '" />' .
'</form>' .
'<input type = "hidden" name = "action" value = "delete_link"/>' .
'<input type = "hidden" name = "link" value = "' . $node . '"/>' .
'<input type = "submit" value = "' . t('Del link') . '" />' .
'</form>' .
- '<form action = "admin.php" method = "post">' .
+ '<form method="post">' .
'<input type = "hidden" name = "action" value = "delete_file"/>' .
'<input type = "hidden" name = "md5" value = "' . $l['md5'] . '"/>' .
'<input type = "submit" value = "' . t('Del file and links') . '" />' .
'<input type = "hidden" name = "action" value = "delete_file"/>' .
'<input type = "hidden" name = "md5" value = "' . $l['md5'] . '"/>' .
'<input type = "submit" value = "' . t('Del file and links') . '" />' .