.
*/
include 'header.php';
//include 'includes/debug.php';
//require 'includes/sql.class.php';
include_once 'includes/common.class.php';
include_once 'includes/drills.class.php';
include_once 'includes/information.class.php';
define('BLOCK_RIGHT_DISABLE', true);
OpenContent();
echo "
";
class RUDI_Gateway extends RUDI_Common
{
protected $awards, $ranks, $drills;
public function __construct()
{
decho("Constructing " . get_class($this));
parent::__construct();
if(isset($_GET['admin']))
{
define('BLOCK_RIGHT_DISABLE','block_right_disable');
include 'admin/index.php';
return;
}
if(isset($_GET['info']))
{
$info = new RUDI_Information();
OpenTable();
echo "
\n";
include 'views/view.information.php';
echo " |
";
CloseTable();
return;
}
if(isset($_GET['profile']))
{
$this->Update();
OpenTable();
echo "\n";
include 'views/view.profile.php';
echo " |
";
CloseTable();
return;
}
elseif(isset($_GET['show']))
{
OpenTable();
echo "\n";
switch($_GET['show'])
{
case 'awards':
$this->awards = $this->getAwards();
include 'views/view.awards.php';
break;
case 'ranks':
$this->ranks = $this->getRanks();
include 'views/view.ranks.php';
break;
case 'drills':
//$this->drills = $this->getDrills($_GET['id']);
$drills = new RUDI_Drills($_GET['id']);
include 'views/view.drills.php';
break;
case 'points':
$this->Update();
include 'views/view.points.php';
break;
case 'weapons':
include 'views/view.weapons.php';
break;
}
echo " |
";
CloseTable();
return;
}
else
{
$this->Update(RUDI_PROFILE_SMALL);
$stats = $this->getCumulativeStats();
OpenTable();
echo "\n";
include 'views/view.roster.php';
echo " |
";
CloseTable();
return;
}
}
public function __destruct()
{
decho("Destructing " . get_class($this));
}
}
ob_start();
$rudi = new RUDI_Gateway();
ob_flush();
echo "";
echo "";
CloseContent();
//include 'footer.php';
//decho($test->foo[0]->member_id);
//$test1 = new Test();
//$test2 = new Test();
?>