blob: 995c90d1580e59e2d3ea9dec92820730becf9820 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
<link rel="stylesheet" type="text/css" href="modules/rudi/includes/rudi.css" media="screen"/>
<?php
//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';
OpenContent();
echo "<div class=\"contentHeading\">RUDI: Realism Unit Data Interface</div>";
echo "<div class=\"content\">";
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 "<tr><td>\n";
include 'views/view.information.php';
echo "</tr></td>";
CloseTable();
return;
}
if(isset($_GET['profile']))
{
$this->Update();
OpenTable();
echo "<tr><td>\n";
include 'views/view.profile.php';
echo "</td></tr>";
CloseTable();
return;
}
elseif(isset($_GET['show']))
{
OpenTable();
echo "<tr><td>\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;
}
echo "</td></tr>";
CloseTable();
return;
}
else
{
$this->Update(RUDI_PROFILE_SMALL);
$stats = $this->getCumulativeStats();
OpenTable();
echo "<tr><td>\n";
include 'views/view.roster.php';
echo "</td></tr>";
CloseTable();
return;
}
}
public function __destruct()
{
decho("Destructing " . get_class($this));
}
}
ob_start();
$rudi = new RUDI_Gateway();
ob_flush();
echo "</div>";
echo "</div>";
CloseContent();
//include 'footer.php';
//decho($test->foo[0]->member_id);
//$test1 = new Test();
//$test2 = new Test();
?>
|