<?php
/************************************************************************/
/* Maximus CMS: Web Portal System                                       */
/* ==============================                                       */
/*                                                                      */
/* Copyright (c) 2002 - 2006                                            */
/* http://www.php-maximus.fr                                            */
/* dev@php-maximus.org                                                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Based on PHP-NUKE: Web Portal System                                 */
/************************************************************************/
if (!defined('MAXIMUS')) {
    Header("Location: index.php");
}

global $ab_config;
$sql = "SELECT * FROM `".TABLE_NSNST_BLOCKED_IPS."`";
if ( !($result = $GLOBALS['db']->sql_query($sql)) )
{ query_die(CORE_ERROR, 'Could not obtain _nsnst_blocked_ips', '', __LINE__, __FILE__, $sql);}
$total_ips = $GLOBALS['db']->sql_numrows($result);
if(!$total_ips) { $total_ips = 0; }
$content  = "<center><img src=\"images/nukesentinel/Sentinel_Large.png\" alt=\"You have been warned!\" title=\"You have been warned!\" /><br />We have caught $total_ips shameful hackers.</center>";
$content .= "<hr /><center><a href=\"http://www.nukescripts.net\">"._AB_NUKESENTINEL." ".$ab_config['version_number']."</a></center>\n";