Bonjour
J'ai pu contourner le script les deux fichiers
newlinks.php et index.php
Afin de supprimer un lot de liens indesirables
echo "<form method='post' action='index.php'>n";
echo "<table width='100%' cellspacing='1' class='outer'>n";
echo "<tr style='text-align: center;'>n";
echo "<th width='3%'><input type='checkbox' id='selecctall'/></th>n";
echo "<th width='3%'>" . _AM_WFL_MINDEX_ID . "</th>n";
echo "<th style='text-align: left;' width='27%'>" . _AM_WFL_MINDEX_TITLE . "</th>n";
echo "<th width='15%'>" . _AM_WFL_MINDEX_POSTER . "</th>n";
echo "<th width='15%'>" . _AM_WFL_MINDEX_SUBMITTED . "</th>n";
echo "<th width='7%'>" . _AM_WFL_MINDEX_ACTION . "</th>n";
echo "</tr>n";
if ( $new_array_count > 0 ) {
while ( $new = $xoopsDB -> fetchArray( $new_array ) ) {
$lid = intval( $new['lid'] );
$rating = number_format( $new['rating'], 2 );
$title = $wfmyts -> htmlSpecialCharsStrip( $new['title'] );
$url = urldecode( $wfmyts -> htmlSpecialCharsStrip( $new['url'] ) );
$logourl = $wfmyts -> htmlSpecialCharsStrip( $new['screenshot'] );
$submitter = xoops_getLinkedUnameFromId( $new['submitter'] );
$datetime = formatTimestamp( $new['date'], $xoopsModuleConfig['dateformatadmin'] );
$icon = ( $new['published'] ) ? $approved : "<a href='newlinks.php?op=approve&lid=" . $lid . "'>" . $imagearray['approve'] . "</a> ";
$icon .= "<a href='index.php?op=edit&lid=" . $lid . "'>" . $imagearray['editimg'] . "</a> ";
$icon .= "<a href='index.php?op=delete&lid=" . $lid . "'>" . $imagearray['deleteimg'] . "</a>";
echo "<tr>n";
echo "<td class='head' style='text-align: center;'><input class='checkbox1' type='checkbox' name='check[]' value='$lid'></td>n";
echo "<td class='head' style='text-align: center;'>$lid</td>n";
echo "<td class='even' nowrap><a href='newlinks.php?op=edit&lid=" . $lid . "'>$title</a></td>n";
echo "<td class='even' style='text-align: center;' nowrap>$submitter</td>n";
echo "<td class='even' style='text-align: center;'>$datetime</td>n";
echo "<td class='even' style='text-align: center;' nowrap>$icon</td>n";
echo "</tr>n";
}
} else {
echo "<tr><td style='text-align: center;' class='head' colspan='6'>" . _AM_WFL_SUB_NOFILESWAITING . "</td></tr>";
}
echo "</table>n";
echo "<input type='hidden' name='op' value='delete'>n";
echo "<input type='hidden' name='confirm' value='1'>n";
echo "<input type='submit' id='confirm_submit' name='confirm_submit' value='Effacer' title='Effacer'>n";
echo "</form>n";
foreach($_POST['check'] as $item){
// delete link
$sql = "DELETE FROM " . $xoopsDB -> prefix( 'wflinks_links' ) . " WHERE lid=" . $item;
if ( !$result = $xoopsDB -> query( $sql ) ) {
XoopsErrorHandler_HandleError( E_USER_WARNING, $sql, __FILE__, __LINE__ );
return false;
}
}