<?php
//◆文字化け抑制◆//
//-- 関連サーバ村情報コントローラー --//
final class SharedRoomInfoController extends JinrouController {
  protected static function Load() {
    Loader::LoadRequest('shared_room');
  }

  protected static function Output() {
    if (0 < RQ::Get()->id && RQ::Get()->id <= count(SharedServerConfig::$server_list)) {
      InfoHTML::OutputSharedRoom(RQ::Get()->id);
    } else {
      InfoHTML::OutputHeader(SharedRoomInfoMessage::TITLE, 0, 'shared_room');
      InfoHTML::OutputSharedRoomList();
      HTML::OutputFooter();
    }
  }
}
