PUN_MOD) message($lang_common['No permission']); // Zap a report if (isset($_POST['zap_id'])) { confirm_referrer('admin_reports.php'); $zap_id = intval(key($_POST['zap_id'])); $result = $db->query('SELECT zapped FROM '.$db->prefix.'reports WHERE id='.$zap_id) or error('Impossible de retrouver les informations de signalements', __FILE__, __LINE__, $db->error()); $zapped = $db->result($result); if ($zapped == '') $db->query('UPDATE '.$db->prefix.'reports SET zapped='.time().', zapped_by='.$pun_user['id'].' WHERE id='.$zap_id) or error('Impossible d\'ignorer le signalement', __FILE__, __LINE__, $db->error()); redirect('admin_reports.php', 'Signalement ignoré. Redirection ...'); } $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Signalements'; require PUN_ROOT.'header.php'; generate_admin_menu('reports'); ?>

Nouveaux signalements

query('SELECT r.id, r.post_id, r.topic_id, r.forum_id, r.reported_by, r.created, r.message, t.subject, f.forum_name, u.username AS reporter FROM '.$db->prefix.'reports AS r LEFT JOIN '.$db->prefix.'topics AS t ON r.topic_id=t.id LEFT JOIN '.$db->prefix.'forums AS f ON r.forum_id=f.id LEFT JOIN '.$db->prefix.'users AS u ON r.reported_by=u.id WHERE r.zapped IS NULL ORDER BY created DESC') or error('Impossible de retrouver la liste des signalements', __FILE__, __LINE__, $db->error()); if ($db->num_rows($result)) { while ($cur_report = $db->fetch_assoc($result)) { $reporter = ($cur_report['reporter'] != '') ? ''.pun_htmlspecialchars($cur_report['reporter']).'' : 'Utilisateur supprimé'; $forum = ($cur_report['forum_name'] != '') ? ''.pun_htmlspecialchars($cur_report['forum_name']).'' : 'Supprimé'; $topic = ($cur_report['subject'] != '') ? ''.pun_htmlspecialchars($cur_report['subject']).'' : 'Supprimé'; $post = ($cur_report['post_id'] != '') ? str_replace("\n", '
', pun_htmlspecialchars($cur_report['message'])) : 'Supprimé'; $postid = ($cur_report['post_id'] != '') ? 'Post #'.$cur_report['post_id'].'' : 'Supprimé'; ?>
Signalé le
Forum » Discussion » Message  »  » 
Signalé par
Il n\'y a pas de nouveaux signalements.

'."\n"; ?>

10 derniers signalements ignorés

query('SELECT r.id, r.post_id, r.topic_id, r.forum_id, r.reported_by, r.message, r.zapped, r.zapped_by AS zapped_by_id, t.subject, f.forum_name, u.username AS reporter, u2.username AS zapped_by FROM '.$db->prefix.'reports AS r LEFT JOIN '.$db->prefix.'topics AS t ON r.topic_id=t.id LEFT JOIN '.$db->prefix.'forums AS f ON r.forum_id=f.id LEFT JOIN '.$db->prefix.'users AS u ON r.reported_by=u.id LEFT JOIN '.$db->prefix.'users AS u2 ON r.zapped_by=u2.id WHERE r.zapped IS NOT NULL ORDER BY zapped DESC LIMIT 10') or error('Impossible de retrouver la liste des signalements', __FILE__, __LINE__, $db->error()); if ($db->num_rows($result)) { while ($cur_report = $db->fetch_assoc($result)) { $reporter = ($cur_report['reporter'] != '') ? ''.pun_htmlspecialchars($cur_report['reporter']).'' : 'Utilisateur supprimé'; $forum = ($cur_report['forum_name'] != '') ? ''.pun_htmlspecialchars($cur_report['forum_name']).'' : 'Supprimé'; $topic = ($cur_report['subject'] != '') ? ''.pun_htmlspecialchars($cur_report['subject']).'' : 'Supprimé'; $post = ($cur_report['post_id'] != '') ? str_replace("\n", '
', pun_htmlspecialchars($cur_report['message'])) : 'Supprimé'; $post_id = ($cur_report['post_id'] != '') ? 'Post #'.$cur_report['post_id'].'' : 'Supprimé'; $zapped_by = ($cur_report['zapped_by'] != '') ? ''.pun_htmlspecialchars($cur_report['zapped_by']).'' : 'N/A'; ?>
Zapped
Forum » Discussion » Message  »  » 
Signalé par
Ignoré par
Il n\'y a pas de signalement ignoré.

'."\n"; ?>