Version 0.9.9

- Code cleaning
This commit is contained in:
football
2021-04-07 00:32:55 +02:00
parent 75c02e1eb8
commit cba1e024cd
12 changed files with 12 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ class all_bets_module
$form_key = 'acp_football_all_bets'; $form_key = 'acp_football_all_bets';
add_form_key($form_key); 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 // Check and set some common vars
$season = $this->request->variable('s', 0); $season = $this->request->variable('s', 0);

View File

@@ -73,7 +73,7 @@ class bank_module
$form_key = 'acp_football_bank'; $form_key = 'acp_football_bank';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['addmembers'])) ? 'addmembers' : $this->request->variable('action', '')); $action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['addmembers'])) ? 'addmembers' : $this->request->variable('action', ''));

View File

@@ -66,7 +66,7 @@ class bets_module
$form_key = 'acp_football_bets'; $form_key = 'acp_football_bets';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['bet'])) ? 'bet' : $this->request->variable('action', ''); $action = (isset($_POST['bet'])) ? 'bet' : $this->request->variable('action', '');

View File

@@ -56,7 +56,7 @@ class extra_module
$form_key = 'acp_football_extra'; $form_key = 'acp_football_extra';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['remove'])) ? 'remove' : $this->request->variable('action', '')); $action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['remove'])) ? 'remove' : $this->request->variable('action', ''));

View File

@@ -56,7 +56,7 @@ class ko_module
$form_key = 'acp_football_ko'; $form_key = 'acp_football_ko';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['update'])) ? 'update' : $this->request->variable('action', ''); $action = (isset($_POST['update'])) ? 'update' : $this->request->variable('action', '');

View File

@@ -56,7 +56,7 @@ class leagues_module
$form_key = 'acp_football_leagues'; $form_key = 'acp_football_leagues';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['addmembers'])) ? 'addmembers' : $this->request->variable('action', '')); $action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['addmembers'])) ? 'addmembers' : $this->request->variable('action', ''));

View File

@@ -56,7 +56,7 @@ class matchdays_module
$form_key = 'acp_football_matchdays'; $form_key = 'acp_football_matchdays';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['add'])) ? 'add' : ''; $action = (isset($_POST['add'])) ? 'add' : '';

View File

@@ -56,7 +56,7 @@ class matches_module
$form_key = 'acp_football_matches'; $form_key = 'acp_football_matches';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['add'])) ? 'add' : $this->request->variable('action', ''); $action = (isset($_POST['add'])) ? 'add' : $this->request->variable('action', '');

View File

@@ -60,7 +60,7 @@ class results_module
$form_key = 'acp_football_results'; $form_key = 'acp_football_results';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['edit'])) ? 'edit' : $this->request->variable('action', ''); $action = (isset($_POST['edit'])) ? 'edit' : $this->request->variable('action', '');

View File

@@ -56,7 +56,7 @@ class seasons_module
$form_key = 'acp_football_seasons'; $form_key = 'acp_football_seasons';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['add'])) ? 'add' : $this->request->variable('action', ''); $action = (isset($_POST['add'])) ? 'add' : $this->request->variable('action', '');

View File

@@ -56,7 +56,7 @@ class teams_module
$form_key = 'acp_football_teams'; $form_key = 'acp_football_teams';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['add'])) ? 'add' : $this->request->variable('action', ''); $action = (isset($_POST['add'])) ? 'add' : $this->request->variable('action', '');

View File

@@ -107,7 +107,7 @@ class update_module
$form_key = 'acp_football_update'; $form_key = 'acp_football_update';
add_form_key($form_key); 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 // Check and set some common vars
$action = (isset($_POST['load_xml_season'])) ? 'load_xml_season' : ''; $action = (isset($_POST['load_xml_season'])) ? 'load_xml_season' : '';