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'); ?>