<?php
/********************************************************/
/* NukeSentinel(tm)                                     */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2005 by NukeScripts Network         */
/********************************************************/
defined('MAXIMUS') or Header("Location: ../../index.php");

$module_name = "Sentinel";

if(!isset($lang)) { $lang = $language; }
if (!stristr("$lang", ".") AND file_exists($lang_dir."language/nukesentinel/lang-$lang.php")) {
if (is_file($lang_dir."language/nukesentinel/lang-$lang.php")) {
  include_once($lang_dir."language/nukesentinel/lang-$lang.php");}
} else {
if (is_file($lang_dir."language/nukesentinel/lang-english.php")) {
	include_once($lang_dir."language/nukesentinel/lang-english.php");}
}


$index = 1;
$ab_config = abget_configs();
$checkrow = $db->sql_numrows($db->sql_query("SELECT * FROM `".$prefix."_nsnst_ip2country`"));
if($checkrow > 0) { $tableexist = 1; } else { $tableexist = 0; }
if($op == "STIP2C" AND $tableexist != 1) { $op = "STIndex"; }
if(!$op) { $op = "STIndex"; }
include_once("modules/$module_name/public/functions.php");
switch($op) {

  case "STIndex":include("modules/$module_name/public/STIndex.php");break;
  case "STIPS":include("modules/$module_name/public/STIPS.php");break;
  case "STRanges":include("modules/$module_name/public/STRanges.php");break;
  case "STReferers":include("modules/$module_name/public/STReferers.php");break;
  case "STIP2C":include("modules/$module_name/public/STIP2C.php");break;

}