public function OnSiteInit()
 {
     # check parameter
     if (isset($_GET['match']) and is_numeric($_GET['match'])) {
         $this->i_match_id = (int) $_GET['match'];
         $this->s_matches = 'match';
     } else {
         if (isset($_GET['team']) and is_numeric($_GET['team'])) {
             $this->i_team_id = (int) $_GET['team'];
             $this->s_matches = 'matches';
         } else {
             if (isset($_GET['season']) and is_numeric($_GET['season'])) {
                 $this->i_season_id = (int) $_GET['season'];
                 $this->s_matches = 'matches';
             } else {
                 if (isset($_GET['tournaments']) and $_GET['tournaments']) {
                     $this->tournament_player_type = preg_replace('/[^a-z]/', "", $_GET['tournaments']);
                 } else {
                     header('Location: /play/');
                     exit;
                 }
             }
         }
     }
     parent::OnSiteInit();
 }
 function OnSiteInit()
 {
     parent::OnSiteInit();
     # check parameter
     if (isset($_GET['season']) and is_numeric($_GET['season'])) {
         $this->i_season_id = (int) $_GET['season'];
     } else {
         if (isset($_POST['Season']) and is_numeric($_POST['Season'])) {
             $this->i_season_id = (int) $_POST['Season'];
         }
     }
     if (isset($_GET['type']) and is_numeric($_GET['type'])) {
         $this->i_match_type = (int) $_GET['type'];
     } else {
         if (isset($_POST['MatchType']) and is_numeric($_POST['MatchType'])) {
             $this->i_match_type = (int) $_POST['MatchType'];
         } else {
             $this->i_match_type = MatchType::FRIENDLY;
         }
     }
     if (isset($_GET['team']) and is_numeric($_GET['team'])) {
         $this->team = new Team($this->GetSettings());
         $this->team->SetId($_GET['team']);
     } else {
         if (isset($_POST['team']) and is_numeric($_POST['team'])) {
             $this->team = new Team($this->GetSettings());
             $this->team->SetId($_POST['team']);
         }
     }
     if (!isset($this->i_season_id) and !$this->team instanceof Team) {
         $this->Abort();
     }
 }
 function OnSiteInit()
 {
     parent::OnSiteInit();
     # check parameters
     if (isset($_GET['team']) and is_numeric($_GET['team'])) {
         $this->i_team_id = (int) $_GET['team'];
     } else {
         if (isset($_POST['team']) and is_numeric($_POST['team'])) {
             $this->i_team_id = (int) $_POST['team'];
         } else {
             if (isset($_GET['season']) and is_numeric($_GET['season'])) {
                 $this->i_season_id = (int) $_GET['season'];
             } else {
                 if (isset($_POST['season']) and is_numeric($_POST['season'])) {
                     $this->i_season_id = (int) $_POST['season'];
                 } else {
                     if (isset($_GET['tournament']) and is_numeric($_GET['tournament'])) {
                         $this->tournament_id = (int) $_GET['tournament'];
                     } else {
                         if (isset($_POST['tournament']) and is_numeric($_POST['tournament'])) {
                             $this->tournament_id = (int) $_POST['tournament'];
                         } else {
                             $this->Redirect();
                         }
                     }
                 }
             }
         }
     }
 }
 function OnSiteInit()
 {
     parent::OnSiteInit();
     if (!isset($_GET['item']) or !is_numeric($_GET['item'])) {
         $this->InvalidRequest();
     }
     if (!isset($_GET['type']) or !is_numeric($_GET['type'])) {
         $this->InvalidRequest();
     }
 }
 function OnSiteInit()
 {
     parent::OnSiteInit();
     # check parameter
     if (isset($_GET['season']) and is_numeric($_GET['season'])) {
         $this->season = new Season($this->GetSettings());
         $this->season->SetId((int) $_GET['season']);
     }
     if (isset($_GET['team']) and is_numeric($_GET['team'])) {
         $this->team = new Team($this->GetSettings());
         $this->team->SetId($_GET['team']);
     }
 }
 public function OnSiteInit()
 {
     $this->SetHasGoogleMap(true);
     parent::OnSiteInit();
 }