Fork me on GitHub

Rapport de message :*
 

Re: je cherche un module qui répertorie

Titre du sujet : Re: je cherche un module qui répertorie
par eteop sur 07/06/2014 21:44:07

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 ) {
            while ( 
$new $xoopsDB -> fetchArray$new_array ) ) {
                
$lid intval$new['lid'] );
                
$rating number_format$new['rating'], );
                
$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>&nbsp;";
                
$icon .= "<a href='index.php?op=edit&lid=" $lid "'>" $imagearray['editimg'] . "</a>&nbsp;";
                
$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_HandleErrorE_USER_WARNING$sql__FILE____LINE__ );
                        return 
false;
                    }                     
                }

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

93 Personne(s) en ligne (74 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 93 | Plus ...