Exemplo n.º 1
0
<?php

session_start();
require "connect.php";
include "../function.php";
?>


<?php 
report_spam();
Exemplo n.º 2
0
         echo "<td class='tbl2'>&nbsp;</td>";
         echo "</tr>";
         if ($current_row == 1) {
             echo "<tr>\n<td colspan='2' class='tbl1' style='height:10px'></td>\n</tr>\n";
         }
     }
 }
 if ($current_row > 1) {
     echo "<tr>\n<td colspan='2' class='tbl1 forum_thread_post_space' style='height:10px'></td>\n</tr>\n";
 }
 echo "<tr>\n<td class='tbl2 forum_thread_user_name' style='width:140px'><!--forum_thread_user_name-->" . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "</td>\n";
 echo "<td class='tbl2 forum_thread_post_date'>\n";
 echo "<div style='float:right' class='small'><a href='#post_" . $data['post_id'] . "' name='post_" . $data['post_id'] . "' id='post_" . $data['post_id'] . "'>#" . ($current_row + $_GET['rowstart']) . "</a>";
 // Pimped: Report Spam mod
 if ($settings['forum_report'] && !$fdata['thread_locked'] && $can_reply && $data['user_level'] < nMODERATOR) {
     echo "&nbsp;" . report_spam($data['post_id']) . "\n";
 }
 echo "&nbsp;<a href='" . BASEDIR . "print.php?type=F&amp;thread=" . $_GET['thread_id'] . "&amp;post=" . $data['post_id'] . "&amp;nr=" . ($current_row + $_GET['rowstart']) . "'><img src='" . get_image("printer") . "' alt='" . $locale['519a'] . "' title='" . $locale['519a'] . "' style='border:0;vertical-align:middle' /></a></div>\n";
 echo "<div class='small'>" . $locale['505'] . showdate("forumdate", $data['post_datestamp']) . "</div>\n";
 echo "</td>\n";
 echo "</tr>\n<tr>\n<td valign='top' class='tbl2 forum_thread_user_info' style='width:140px'>\n";
 // Pimped: Avatars for banned or suspended Users
 $banned = array(1, 3, 4);
 $cancel = array(5, 6);
 if (!in_array($data['user_status'], $banned) && !in_array($data['user_status'], $cancel) && $data['user_avatar'] && file_exists(IMAGES . "avatars/" . $data['user_avatar'])) {
     echo "<img src='" . IMAGES . "avatars/" . $data['user_avatar'] . "' alt='" . $locale['567'] . "' /><br /><br />\n";
 } elseif (!in_array($data['user_status'], $banned) && file_exists(IMAGES . "avatars/noavatar.jpg")) {
     echo "<img src='" . IMAGES . "avatars/noavatar.jpg' alt='" . $locale['567'] . "' /><br /><br />\n";
 } elseif (file_exists(IMAGES . "avatars/banned.jpg")) {
     echo "<img src='" . IMAGES . "avatars/banned.jpg' alt='" . $locale['567'] . "' /><br /><br />\n";
 }
Exemplo n.º 3
0
require_once "./locale/{$display_language}/wblist.php";
$message = "";
switch ($type) {
    case "ham":
        //Ok, this isn't really "releasing", but the logic is the same.
        $reported = 0;
        $select = "SELECT maia_mail.id, maia_mail.sender_email " . "FROM maia_mail, maia_mail_recipients " . "WHERE maia_mail.id = maia_mail_recipients.mail_id " . "AND maia_mail_recipients.type = 'H' " . "AND maia_mail_recipients.token = ? " . "AND  SUBSTRING(maia_mail_recipients.token FROM 1 FOR 7) <> 'expired' " . "AND maia_mail_recipients.recipient_id = ?";
        $sth = $dbh->query($select, array($token, $euid));
        while ($row = $sth->fetchRow()) {
            $mail_id = $row["id"];
            $sender = $row["sender_email"];
            if (array_key_exists('wblist', $_GET)) {
                $message .= $lang[add_address_to_wb_list($euid, $sender, "B")];
                $message .= "<br>";
            }
            report_spam($euid, $mail_id);
            $reported++;
        }
        $sth->free();
        update_mail_stats($euid, "suspected_ham");
        if ($reported > 0) {
            $message .= sprintf($lang['text_spam_reported'], $reported) . ".<br>";
        }
        break;
    case "spam":
        $rescued = 0;
        $select = "SELECT maia_mail.id, maia_mail.sender_email " . "FROM maia_mail, maia_mail_recipients " . "WHERE maia_mail.id = maia_mail_recipients.mail_id " . "AND maia_mail_recipients.type IN ('S','P') " . "AND maia_mail_recipients.token = ? " . "AND  SUBSTRING(maia_mail_recipients.token FROM 1 FOR 7) <> 'expired' " . "AND maia_mail_recipients.recipient_id = ?";
        $sth = $dbh->query($select, array($token, $euid));
        while ($row = $sth->fetchRow()) {
            $mail_id = $row["id"];
            $sender = $row["sender_email"];