$userid = optional_param("userid", "", PARAM_ALPHANUMEXT);
            if ($userid != "") {
                $user = new User($userid);
                $user->updateStatus($CFG->USER_STATUS_ACTIVE);
            } else {
                array_push($errors, $LNG->SPAM_USER_ADMIN_ID_ERROR);
            }
        }
    }
}
$us = getUsersByStatus($CFG->USER_STATUS_REPORTED, 0, -1, 'name', 'ASC', 'long');
$users = $us->users;
$count = count($users);
for ($i = 0; $i < $count; $i++) {
    $user = $users[$i];
    $reporterid = getSpamReporter($user->userid);
    if ($reporterid != false) {
        $reporter = new User($reporterid);
        $reporter = $reporter->load();
        $user->reporter = $reporter;
    }
}
$us2 = getUsersByStatus($CFG->USER_STATUS_SUSPENDED, 0, -1, 'name', 'ASC', 'long');
$userssuspended = $us2->users;
?>

<script type="text/javascript">

	function init() {
		$('dialogheader').insert('<?php 
echo $LNG->SPAM_USER_ADMIN_TITLE;
예제 #2
0
    if (isset($_POST["restorenode"])) {
        $nodeid = optional_param("nodeid", "", PARAM_ALPHANUMEXT);
        if ($nodeid != "") {
            $node = new CNode($nodeid);
            $node->updateStatus($CFG->STATUS_ACTIVE);
        } else {
            array_push($errors, $LNG->SPAM_ADMIN_ID_ERROR);
        }
    }
}
$ns = getNodesByStatus($CFG->STATUS_SPAM, 0, -1, 'name', 'ASC', 'long');
$nodes = $ns->nodes;
$count = count($nodes);
for ($i = 0; $i < $count; $i++) {
    $node = $nodes[$i];
    $reporterid = getSpamReporter($node->nodeid);
    if ($reporterid != false) {
        $reporter = new User($reporterid);
        $reporter = $reporter->load();
        $node->reporter = $reporter;
    }
}
?>

<script type="text/javascript">

	function init() {
		$('dialogheader').insert('<?php 
echo $LNG->SPAM_ADMIN_TITLE;
?>
');