
Hier ist jetzt Version wo das Löschen auch klappt^^
http://klasse-mn.de/temp/pranger_0_1_3b.zip
MfG
PS: Ich hab einen kleinen Fehler beim Senden der Request über GET gemacht, daher ging es nicht

Code: Alles auswählen
$www_delete = append_sid("mod_cp.$phpEx?action=delete&entry_id=" . $temp['entry_id']);
Code: Alles auswählen
$www_delete = append_sid("mod_cp.$phpEx?action=save&method=delete&entry_id=" . $temp['entry_id']);
Code: Alles auswählen
function delete_entry()
{
global $lang, $db;
Code: Alles auswählen
function delete_entry()
{
global $lang, $db, $phpEx;
Code: Alles auswählen
$post_subject = ( $postrow[$i]['post_subject'] != '' ) ? $postrow[$i]['post_subject'] : '';
require_once ( $phpbb_root_path . "includes/function_mcp.$phpEx" ); //careful, it must be include_once or require_once (require_once reports more errors)
load_lang("lang_mcp");
if ( $is_auth['auth_mod'] )
{
$tmp_url = append_sid("mod_cp.".$phpEx."?action=em&" . POST_USERS_URL . "=" . $poster_id . "&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$em_img = "<a href='" . $temp_url . "'><img title='" . $lang['mcp_em'] . "' alt='" . $lang['mcp_em'] . "' /></a>";
$em = "<a href='" . $tmp_url . "'>" . $lang['mcp_em'] . "</a>";
$tmp_url = append_sid("mod_cp.".$phpEx."?action=vw&" . POST_USERS_URL . "=" . $poster_id . "&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$vw_img = "<a href='" . $tmp_url . "'><img title='" . $lang['mcp_vw'] . "' alt='" . $lang['mcp_vw'] . "' /></a>";
$vw = "<a href='" . $tmp_url . "'>" . $lang['mcp_vw'] . "</a>";
}
else
{
$em_img = '';
$em = '';
$vw_img = '';
$vw = '';
}
Code: Alles auswählen
function ban_userid()
{
global $lang, $db, $phpEx;
check_request( array (
'user_id' => 'POST',
'ban_time' => 'POST'
), $lang['mcp_variables']);
$ban_time = ( $_POST['ban_time'] == -1 ) ? -1 : $_POST['ban_time']+time();
$sql = "INSERT INTO " . BANLIST_TABLE . " SET
`ban_userid` = '" . $_POST['user_id'] . "',
`ban_time` = '" . $ban_time . "'";
if ( !query($sql, 1) )
{
message_die(GENERAL_ERROR);
}
Code: Alles auswählen
$sql = 'DELETE FROM ' . SESSIONS_TABLE . "
WHERE session_user_id = ".$_POST['user_id']."";
if ( !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql);
}