예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->Update();
 }
예제 #2
0
 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;
             case 'points':
                 $this->Update();
                 include 'views/view.points.php';
                 break;
             case 'weapons':
                 include 'views/view.weapons.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;
     }
 }