From cba1e024cd1d623500ac40a430db6926a1083069 Mon Sep 17 00:00:00 2001 From: football Date: Wed, 7 Apr 2021 00:32:55 +0200 Subject: [PATCH] Version 0.9.9 - Code cleaning --- acp/all_bets_module.php | 2 +- acp/bank_module.php | 2 +- acp/bets_module.php | 2 +- acp/extra_module.php | 2 +- acp/ko_module.php | 2 +- acp/leagues_module.php | 2 +- acp/matchdays_module.php | 2 +- acp/matches_module.php | 2 +- acp/results_module.php | 2 +- acp/seasons_module.php | 2 +- acp/teams_module.php | 2 +- acp/update_module.php | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/acp/all_bets_module.php b/acp/all_bets_module.php index e349d41..13c1ecb 100644 --- a/acp/all_bets_module.php +++ b/acp/all_bets_module.php @@ -56,7 +56,7 @@ class all_bets_module $form_key = 'acp_football_all_bets'; add_form_key($form_key); - include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); + include_once($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); // Check and set some common vars $season = $this->request->variable('s', 0); diff --git a/acp/bank_module.php b/acp/bank_module.php index 10ffbda..274b3dc 100644 --- a/acp/bank_module.php +++ b/acp/bank_module.php @@ -73,7 +73,7 @@ class bank_module $form_key = 'acp_football_bank'; add_form_key($form_key); - include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); + include_once($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); // Check and set some common vars $action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['addmembers'])) ? 'addmembers' : $this->request->variable('action', '')); diff --git a/acp/bets_module.php b/acp/bets_module.php index 40951ad..1785379 100644 --- a/acp/bets_module.php +++ b/acp/bets_module.php @@ -66,7 +66,7 @@ class bets_module $form_key = 'acp_football_bets'; add_form_key($form_key); - include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); + include_once($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); // Check and set some common vars $action = (isset($_POST['bet'])) ? 'bet' : $this->request->variable('action', ''); diff --git a/acp/extra_module.php b/acp/extra_module.php index b3e7219..40b0172 100644 --- a/acp/extra_module.php +++ b/acp/extra_module.php @@ -56,7 +56,7 @@ class extra_module $form_key = 'acp_football_extra'; add_form_key($form_key); - include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); + include_once($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); // Check and set some common vars $action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['remove'])) ? 'remove' : $this->request->variable('action', '')); diff --git a/acp/ko_module.php b/acp/ko_module.php index 0bb3242..7753923 100644 --- a/acp/ko_module.php +++ b/acp/ko_module.php @@ -56,7 +56,7 @@ class ko_module $form_key = 'acp_football_ko'; add_form_key($form_key); - include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); + include_once($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); // Check and set some common vars $action = (isset($_POST['update'])) ? 'update' : $this->request->variable('action', ''); diff --git a/acp/leagues_module.php b/acp/leagues_module.php index 0919e0f..3f0804f 100644 --- a/acp/leagues_module.php +++ b/acp/leagues_module.php @@ -56,7 +56,7 @@ class leagues_module $form_key = 'acp_football_leagues'; add_form_key($form_key); - include($phpbb_root_path . 'includes/functions_user.' . $phpEx); + include_once($phpbb_root_path . 'includes/functions_user.' . $phpEx); // Check and set some common vars $action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['addmembers'])) ? 'addmembers' : $this->request->variable('action', '')); diff --git a/acp/matchdays_module.php b/acp/matchdays_module.php index 01f0035..62f2dce 100644 --- a/acp/matchdays_module.php +++ b/acp/matchdays_module.php @@ -56,7 +56,7 @@ class matchdays_module $form_key = 'acp_football_matchdays'; add_form_key($form_key); - include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); + include_once($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); // Check and set some common vars $action = (isset($_POST['add'])) ? 'add' : ''; diff --git a/acp/matches_module.php b/acp/matches_module.php index efd6a21..7fddeff 100644 --- a/acp/matches_module.php +++ b/acp/matches_module.php @@ -56,7 +56,7 @@ class matches_module $form_key = 'acp_football_matches'; add_form_key($form_key); - include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); + include_once($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); // Check and set some common vars $action = (isset($_POST['add'])) ? 'add' : $this->request->variable('action', ''); diff --git a/acp/results_module.php b/acp/results_module.php index 63e68af..2bfa3e0 100644 --- a/acp/results_module.php +++ b/acp/results_module.php @@ -60,7 +60,7 @@ class results_module $form_key = 'acp_football_results'; add_form_key($form_key); - include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); + include_once($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); // Check and set some common vars $action = (isset($_POST['edit'])) ? 'edit' : $this->request->variable('action', ''); diff --git a/acp/seasons_module.php b/acp/seasons_module.php index 1611a3e..5366b36 100644 --- a/acp/seasons_module.php +++ b/acp/seasons_module.php @@ -56,7 +56,7 @@ class seasons_module $form_key = 'acp_football_seasons'; add_form_key($form_key); - include($phpbb_root_path . 'includes/functions_user.' . $phpEx); + include_once($phpbb_root_path . 'includes/functions_user.' . $phpEx); // Check and set some common vars $action = (isset($_POST['add'])) ? 'add' : $this->request->variable('action', ''); diff --git a/acp/teams_module.php b/acp/teams_module.php index 5eb0ed4..c04bdc1 100644 --- a/acp/teams_module.php +++ b/acp/teams_module.php @@ -56,7 +56,7 @@ class teams_module $form_key = 'acp_football_teams'; add_form_key($form_key); - include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); + include_once($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); // Check and set some common vars $action = (isset($_POST['add'])) ? 'add' : $this->request->variable('action', ''); diff --git a/acp/update_module.php b/acp/update_module.php index 35602c9..db36904 100644 --- a/acp/update_module.php +++ b/acp/update_module.php @@ -107,7 +107,7 @@ class update_module $form_key = 'acp_football_update'; add_form_key($form_key); - include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); + include_once($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); // Check and set some common vars $action = (isset($_POST['load_xml_season'])) ? 'load_xml_season' : '';