Beispiel #1
0
 public function ShowHolder($type = 'side', $server_prefix = '')
 {
     if (!ServerManager::getPageName($type)) {
         return false;
     }
     ob_start();
     $server_name = $this->name;
     $server_info = $this->info;
     // this->address - фактический адресс
     $server_id = $this->id;
     $server_pid = $server_prefix . $server_id;
     $server_numpl = $this->numpl;
     $server_slots = $this->slots;
     if ((int) $this->slots != -1) {
         $server_pl_inf = $this->numpl . '/' . $this->slots;
     } else {
         $server_pl_inf = $this->numpl;
     }
     switch ($type) {
         case 'mon':
         case 'side':
             include $this->GetView('serverstate_' . $type . '.html');
             break;
         case 'game':
             if ($this->online) {
                 include $this->GetView('serverstate_' . $type . '_online.html');
             } else {
                 include $this->GetView('serverstate_' . $type . '_offline.html');
             }
             break;
         default:
             return false;
             break;
     }
     return ob_get_clean();
 }