if ( $n == "install" )
{
$db = 'blackdot';
$table = 'aht_trainers';
$dbuser = 'blackdot';
$dbpass = 't3r4rm30';
$link = mysql_connect( "localhost", $dbuser, $dbpass );
if (!$link) die("Could not connect to MySQL database! Contact Black Dot immediately, please!");
mysql_select_db($db) or die("ERROR: Can't access database!");
$r = mysql_query("CREATE TABLE `ahtnews` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`title` TEXT NOT NULL ,
`img` TEXT,
`message` LONGTEXT NOT NULL ,
`who` TEXT NOT NULL ,
`time` DOUBLE NOT NULL ,
PRIMARY KEY ( `id` )
) TYPE = MYISAM ;") or die("Install (ahtnews) ERROR!: ".mysql_error());
$r = mysql_query("CREATE TABLE `aht_trainers` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`time` DOUBLE NOT NULL ,
`who` TEXT NOT NULL ,
`title` TEXT NOT NULL ,
`description` LONGTEXT NOT NULL ,
`filename` TEXT NOT NULL ,
PRIMARY KEY ( `id` )
) TYPE = MYISAM ;") or die("Install (aht_trainers) ERROR!: ".mysql_error());
}
if ( $a == "howto" )
include('howto.php');
else if ( $a == "hacks" )
include('hacks.php');
else if ( $a == "links" )
include('links.php');
else if ( $a == "trainers" )
include('trainers.php');
else
include('main.php');
?>