diff --git a/.gitignore b/.gitignore index eef3883..8ddc748 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,6 @@ Icon /images/arrow_down.gif /images/arrow_up.gif /migrations/v099_beta1.php +/.buildpath +/.project +/.settings/ diff --git a/Readme - Update from MOD.txt b/Readme - Update from MOD.txt index bdb9a49..2f90cef 100644 --- a/Readme - Update from MOD.txt +++ b/Readme - Update from MOD.txt @@ -1,6 +1,6 @@ -Follow the phpBB instruction to the convert from 3.0 to 3.1. -Don't remove football MOD permissions, custom profile fields and football tables in database. -Please remove recursive the "football MOD Version 0.9.3" ACP Modules in ACP-SYSTEM-MODUL MANAGEMENT. - -Unzip Football Prediction League extension in folder ext/ -Activate the Football Prediction League extension in ACP. +Follow the phpBB instruction to the convert from 3.0 to 3.1. +Don't remove football MOD permissions, custom profile fields and football tables in database. +Please remove recursive the "football MOD Version 0.9.3" ACP Modules in ACP-SYSTEM-MODUL MANAGEMENT. + +Unzip Football Prediction League extension in folder ext/ +Activate the Football Prediction League extension in ACP. diff --git a/acp/all_bets_info.php b/acp/all_bets_info.php index c606e27..7664b91 100644 --- a/acp/all_bets_info.php +++ b/acp/all_bets_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\all_bets_module', - 'title' => 'ACP_FOOTBALL_ALL_BETS_MANAGEMENT', - 'version' => '0.9.4', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_ALL_BETS_VIEW', 'auth' => 'acl_a_football_editbets', 'cat' => array('ACP_FOOTBALL_ALL_BETS')), - ), - ); - } -} + '\football\football\acp\all_bets_module', + 'title' => 'ACP_FOOTBALL_ALL_BETS_MANAGEMENT', + 'version' => '0.9.4', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_ALL_BETS_VIEW', 'auth' => 'acl_a_football_editbets', 'cat' => array('ACP_FOOTBALL_ALL_BETS')), + ), + ); + } +} diff --git a/acp/all_bets_module.php b/acp/all_bets_module.php index 69a6276..e349d41 100644 --- a/acp/all_bets_module.php +++ b/acp/all_bets_module.php @@ -62,7 +62,7 @@ class all_bets_module $season = $this->request->variable('s', 0); $league = $this->request->variable('l', 0); $matchday = $this->request->variable('m', 0); - $start = $this->request->variable('start', 0); + $start = $this->request->variable('start', 0); // Grab current season if (!$season) @@ -118,11 +118,11 @@ class all_bets_module $league_options .= ''; if ($selected <> '') { - $league_matchdays = $row['matchdays']; - $matches_matchday = $row['matches_on_matchday']; - $league_name = $row['league_name']; - $league_type = $row['league_type']; - $ko_league = ($row['league_type'] == LEAGUE_KO) ? true : false; + $league_matchdays = $row['matchdays']; + $matches_matchday = $row['matches_on_matchday']; + $league_name = $row['league_name']; + $league_type = $row['league_type']; + $ko_league = ($row['league_type'] == LEAGUE_KO) ? true : false; } } $db->sql_freeresult($result); @@ -320,9 +320,9 @@ class all_bets_module $colorstyle_bet = color_style($user_bet['status']); $template->assign_block_vars('match_panel.user_row.bet', array( - 'BET' => $bet_home. ':'. $bet_guest, - 'COLOR_STYLE' => $colorstyle_bet, - 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], + 'BET' => $bet_home. ':'. $bet_guest, + 'COLOR_STYLE' => $colorstyle_bet, + 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], ) ); @@ -364,9 +364,9 @@ class all_bets_module } if (0 == $match['hid']) { - $home_info = get_team($season, $league, $match['match_no'], 'team_id_home', $match['formula_home']); - $home_in_array = explode("#",$home_info); - $homename = $home_in_array[3]; + $home_info = get_team($season, $league, $match['match_no'], 'team_id_home', $match['formula_home']); + $home_in_array = explode("#",$home_info); + $homename = $home_in_array[3]; } else { @@ -374,9 +374,9 @@ class all_bets_module } if (0 == $match['gid']) { - $guest_info = get_team($season, $league, $match['match_no'], 'team_id_guest', $match['formula_guest']); - $guest_in_array = explode("#",$guest_info); - $guestname = $guest_in_array[3]; + $guest_info = get_team($season, $league, $match['match_no'], 'team_id_guest', $match['formula_guest']); + $guest_in_array = explode("#",$guest_info); + $guestname = $guest_in_array[3]; } else { @@ -384,10 +384,10 @@ class all_bets_module } $colorstyle_match = color_style($match['status']); $template->assign_block_vars('match_panel.match', array( - 'HOME_NAME' => $homename, - 'GUEST_NAME' => $guestname, - 'RESULT' => $match['goals_home']. ':'.$match['goals_guest'], - 'COLOR_STYLE' => $colorstyle_match, + 'HOME_NAME' => $homename, + 'GUEST_NAME' => $guestname, + 'RESULT' => $match['goals_home']. ':'.$match['goals_guest'], + 'COLOR_STYLE' => $colorstyle_match, ) ); @@ -428,9 +428,9 @@ class all_bets_module $colorstyle_bet = color_style($user_bet['status']); $template->assign_block_vars('match_panel.user_row.bet', array( - 'BET' => $bet_home. ':'. $bet_guest, - 'COLOR_STYLE' => $colorstyle_bet, - 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], + 'BET' => $bet_home. ':'. $bet_guest, + 'COLOR_STYLE' => $colorstyle_bet, + 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], ) ); @@ -439,8 +439,8 @@ class all_bets_module $sum_total[$user_bet['username']] += $total; $matchday_sum_total += $total; $template->assign_block_vars('match_panel.user_row.points', array( - 'COLOR_STYLE' => $colorstyle_total, - 'POINTS_TOTAL' => $sum_total[$user_bet['username']], + 'COLOR_STYLE' => $colorstyle_total, + 'POINTS_TOTAL' => $sum_total[$user_bet['username']], ) ); $bet_index = 0; @@ -448,9 +448,9 @@ class all_bets_module } $template->assign_block_vars('match_panel.tendency_footer', array( - 'S_TOTAL' => true, - 'COLOR_STYLE' => $colorstyle_total, //currently ignored - 'SUMTOTAL' => $matchday_sum_total, + 'S_TOTAL' => true, + 'COLOR_STYLE' => $colorstyle_total, //currently ignored + 'SUMTOTAL' => $matchday_sum_total, ) ); foreach ($matches_tendency AS $match_tendency) @@ -521,12 +521,12 @@ class all_bets_module $extra_colorstyle = color_style($row['extra_status']); $template->assign_block_vars('extra_panel', array( - 'QUESTION' => $row['question'], - 'RESULT' => ($display_type == 1) ? $row['result_team'] : $row['result'], - 'POINTS' => $row['extra_points'], - 'EVALUATION' => ($row['matchday'] == $row['matchday_eval']) ? sprintf($user->lang['MATCHDAY']) : sprintf($user->lang['TOTAL']), - 'EVALUATION_TITLE' => $eval_title, - 'COLOR_STYLE' => $extra_colorstyle, + 'QUESTION' => $row['question'], + 'RESULT' => ($display_type == 1) ? $row['result_team'] : $row['result'], + 'POINTS' => $row['extra_points'], + 'EVALUATION' => ($row['matchday'] == $row['matchday_eval']) ? sprintf($user->lang['MATCHDAY']) : sprintf($user->lang['TOTAL']), + 'EVALUATION_TITLE' => $eval_title, + 'COLOR_STYLE' => $extra_colorstyle, ) ); @@ -564,11 +564,11 @@ class all_bets_module $template->assign_block_vars('extra_panel.user_row', array( - 'ROW_CLASS' => $row_class, - 'USER_NAME' => $user_row['username'], - 'BET' => ($display_type == 1) ? $bet_team : $bet, - 'BET_POINTS' => $user_row['bet_points'], - 'COLOR_STYLE' => $extra_colorstyle, + 'ROW_CLASS' => $row_class, + 'USER_NAME' => $user_row['username'], + 'BET' => ($display_type == 1) ? $bet_team : $bet, + 'BET_POINTS' => $user_row['bet_points'], + 'COLOR_STYLE' => $extra_colorstyle, ) ); } @@ -579,21 +579,20 @@ class all_bets_module $legend = delivery($season, $league, $matchday); $template->assign_vars(array( - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'all_bets', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'all_bets', 's' => $season, 'l' => $league, 'm' => $matchday)), 'S_SEASON' => $season, 'S_LEAGUE' => $league, 'S_MATCHDAY' => $matchday, 'S_SEASON_OPTIONS' => $season_options, 'S_LEAGUE_OPTIONS' => $league_options, 'S_MATCHDAY_OPTIONS' => $matchday_options, - 'S_DISPLAY_ALL_BETS' => true, - 'S_MATCHES_ON_MATCHDAY' => $matches_on_matchday, - 'S_SPALTEN' => ($count_matches * 2)+2, + 'S_DISPLAY_ALL_BETS' => true, + 'S_MATCHES_ON_MATCHDAY' => $matches_on_matchday, + 'S_SPALTEN' => ($count_matches * 2)+2, 'S_VERSION_NO' => $this->config['football_version'], 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), - 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), + 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), ) ); } } -?> \ No newline at end of file diff --git a/acp/bank_info.php b/acp/bank_info.php index ad26a4e..804c543 100644 --- a/acp/bank_info.php +++ b/acp/bank_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\bank_module', - 'title' => 'ACP_FOOTBALL_BANK_MANAGEMENT', - 'version' => '0.9.2', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_BANK_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_BANK')), - ), - ); - } -} + '\football\football\acp\bank_module', + 'title' => 'ACP_FOOTBALL_BANK_MANAGEMENT', + 'version' => '0.9.2', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_BANK_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_BANK')), + ), + ); + } +} diff --git a/acp/bank_module.php b/acp/bank_module.php index 35db83a..10ffbda 100644 --- a/acp/bank_module.php +++ b/acp/bank_module.php @@ -555,7 +555,7 @@ class bank_module 'POINTS' => $this->config['points_name'], 'TARGET' => $target, 'ACTUAL' => $actual, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bank', 's' => $season, 'l' => $league)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bank', 's' => $season, 'l' => $league)), 'U_ACTION' => $this->u_action . "&s=$season&l=$league", 'U_BACK' => $this->u_action. "&s=$season&l=$league", ) @@ -593,7 +593,7 @@ class bank_module { $template->assign_block_vars('member', array( 'U_USER_EDIT' => append_sid("{$phpbb_admin_path}index.$phpEx", "i=users&action=edit&u={$row['user_id']}"), - 'U_USER_BANK' => $helper->route('football_main_controller',array('side' => 'bank', 's' => $season, 'l' => $league, 'u' => $row['user_id'])), + 'U_USER_BANK' => $helper->route('football_football_controller',array('side' => 'bank', 's' => $season, 'l' => $league, 'u' => $row['user_id'])), 'USERNAME' => $row['username'], 'POINTS' => $functions_points->number_format_points($row['user_points']), 'TARGET' => $functions_points->number_format_points($row['target']), @@ -619,7 +619,7 @@ class bank_module $template->assign_vars(array( 'U_ACTION' => $this->u_action, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bank', 's' => $season)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bank', 's' => $season)), 'U_DLOAD_BANK_OPEN' => $helper->route('football_football_download',array('downside' => 'dload_bank_open', 's' => $season)), 'S_SEASON' => $season, 'S_LIST_DEPOSITED' => ($this->config['football_ult_points'] == UP_POINTS) ? false : true, @@ -645,7 +645,7 @@ class bank_module LEFT JOIN ' . FOOTB_POINTS . " AS p ON (p.season = $season AND p.league = l.league) WHERE l.season = $season GROUP BY l.league - ORDER BY league ASC"; + ORDER BY l.league ASC"; $result = $db->sql_query($sql); $rows_leagues = $db->sql_fetchrowset($result); $db->sql_freeresult($result); @@ -670,5 +670,3 @@ class bank_module } } } - -?> \ No newline at end of file diff --git a/acp/bets_info.php b/acp/bets_info.php index b04da6c..2eadbf4 100644 --- a/acp/bets_info.php +++ b/acp/bets_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\bets_module', - 'title' => 'ACP_FOOTBALL_BETS_MANAGEMENT', - 'version' => '0.9.4', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_BETS_MANAGE', 'auth' => 'acl_a_football_editbets', 'cat' => array('ACP_FOOTBALL_BETS')), - ), - ); - } -} + '\football\football\acp\bets_module', + 'title' => 'ACP_FOOTBALL_BETS_MANAGEMENT', + 'version' => '0.9.4', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_BETS_MANAGE', 'auth' => 'acl_a_football_editbets', 'cat' => array('ACP_FOOTBALL_BETS')), + ), + ); + } +} diff --git a/acp/bets_module.php b/acp/bets_module.php index f2b26e1..40951ad 100644 --- a/acp/bets_module.php +++ b/acp/bets_module.php @@ -583,7 +583,7 @@ class bets_module ) ); } - $db->sql_freeresult($resultopen); + $db->sql_freeresult($result); // Calculate extra bets of matchday // Start select team @@ -730,7 +730,7 @@ class bets_module $legend = delivery($season, $league, $matchday); $template->assign_vars(array( - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday)), 'S_LEGEND' => $legend, 'S_SUCCESS' => (sizeof($success)) ? true : false, 'SUCCESS_MSG' => (sizeof($success)) ? implode('
', $success) : '', @@ -750,4 +750,3 @@ class bets_module ); } } -?> \ No newline at end of file diff --git a/acp/extra_info.php b/acp/extra_info.php index 2be5d55..90e7b46 100644 --- a/acp/extra_info.php +++ b/acp/extra_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\extra_module', - 'title' => 'ACP_FOOTBALL_EXTRA_MANAGEMENT', - 'version' => '0.9.4', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_EXTRA_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_EXTRA')), - ), - ); - } -} + '\football\football\acp\extra_module', + 'title' => 'ACP_FOOTBALL_EXTRA_MANAGEMENT', + 'version' => '0.9.4', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_EXTRA_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_EXTRA')), + ), + ); + } +} diff --git a/acp/extra_module.php b/acp/extra_module.php index d07a2e7..b3e7219 100644 --- a/acp/extra_module.php +++ b/acp/extra_module.php @@ -415,7 +415,7 @@ class extra_module $template->assign_vars(array( 'U_ACTION' => $this->u_action, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet', 's' => $season, 'l' => $league)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet', 's' => $season, 'l' => $league)), 'S_SEASON' => $season, 'S_LEAGUE' => $league, 'S_SEASON_OPTIONS' => $season_options, @@ -456,4 +456,3 @@ class extra_module } } } -?> \ No newline at end of file diff --git a/acp/football_info.php b/acp/football_info.php index cdf4b54..c9cf553 100644 --- a/acp/football_info.php +++ b/acp/football_info.php @@ -1,28 +1,28 @@ - '\football\football\acp\football_module', - 'title' => 'ACP_FOOTBALL_MANAGEMENT', - 'version' => '0.9.4', - 'modes' => array( - 'settings' => array('title' => 'ACP_FOOTBALL_SETTINGS', 'auth' => 'acl_a_football_config', 'cat' => array('ACP_FOOTBALL_CONFIGURATION')), - 'features' => array('title' => 'ACP_FOOTBALL_FEATURES', 'auth' => 'acl_a_football_config', 'cat' => array('ACP_FOOTBALL_CONFIGURATION')), - 'menu' => array('title' => 'ACP_FOOTBALL_MENU', 'auth' => 'acl_a_football_config', 'cat' => array('ACP_FOOTBALL_CONFIGURATION')), - 'userguide' => array('title' => 'ACP_FOOTBALL_USERGUIDE','auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_CONFIGURATION')), - ), - ); - } -} + '\football\football\acp\football_module', + 'title' => 'ACP_FOOTBALL_MANAGEMENT', + 'version' => '0.9.4', + 'modes' => array( + 'settings' => array('title' => 'ACP_FOOTBALL_SETTINGS', 'auth' => 'acl_a_football_config', 'cat' => array('ACP_FOOTBALL_CONFIGURATION')), + 'features' => array('title' => 'ACP_FOOTBALL_FEATURES', 'auth' => 'acl_a_football_config', 'cat' => array('ACP_FOOTBALL_CONFIGURATION')), + 'menu' => array('title' => 'ACP_FOOTBALL_MENU', 'auth' => 'acl_a_football_config', 'cat' => array('ACP_FOOTBALL_CONFIGURATION')), + 'userguide' => array('title' => 'ACP_FOOTBALL_USERGUIDE','auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_CONFIGURATION')), + ), + ); + } +} diff --git a/acp/football_module.php b/acp/football_module.php index 935cf55..4145a39 100644 --- a/acp/football_module.php +++ b/acp/football_module.php @@ -65,12 +65,12 @@ class football_module switch ($mode) { case 'userguide': - $this->page_title = 'ACP_FOOTBALL_USERGUIDE'; + $this->page_title = 'ACP_FOOTBALL_USERGUIDE'; $this->tpl_name = 'acp_football_userguide'; $template->assign_vars(array( 'S_IN_FOOTBALL_USERGUIDE' => true, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet')), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet')), 'L_BACK_TO_TOP' => $user->lang['BACK_TO_TOP'], 'ICON_BACK_TO_TOP' => '' . $user->lang['BACK_TO_TOP'] . '', 'S_VERSION_NO' => $this->config['football_version'], @@ -242,7 +242,7 @@ class football_module $this->page_title = $display_vars['title']; $template->assign_vars(array( - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet')), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet')), 'L_TITLE' => $user->lang[$display_vars['title']], 'L_TITLE_EXPLAIN' => $user->lang[$display_vars['title'] . '_EXPLAIN'], 'S_ERROR' => (sizeof($error)) ? true : false, @@ -434,5 +434,3 @@ class football_module } } - -?> \ No newline at end of file diff --git a/acp/ko_info.php b/acp/ko_info.php index 4b31bfd..8302e9e 100644 --- a/acp/ko_info.php +++ b/acp/ko_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\ko_module', - 'title' => 'ACP_FOOTBALL_KO_MANAGEMENT', - 'version' => '0.9.4', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_KO_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_KO')), - ), - ); - } -} + '\football\football\acp\ko_module', + 'title' => 'ACP_FOOTBALL_KO_MANAGEMENT', + 'version' => '0.9.4', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_KO_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_KO')), + ), + ); + } +} diff --git a/acp/ko_module.php b/acp/ko_module.php index 5b5f41e..0bb3242 100644 --- a/acp/ko_module.php +++ b/acp/ko_module.php @@ -230,7 +230,7 @@ class ko_module $template->assign_vars(array( 'U_ACTION' => $this->u_action, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet', 's' => $season, 'l' => $league)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet', 's' => $season, 'l' => $league)), 'S_ERROR' => (sizeof($error)) ? true : false, 'ERROR_MSG' => (sizeof($error)) ? implode('
', $error) : '', 'S_SUCCESS' => (sizeof($success)) ? true : false, @@ -252,4 +252,3 @@ class ko_module ); } } -?> \ No newline at end of file diff --git a/acp/leagues_info.php b/acp/leagues_info.php index 5e4ff18..55937b5 100644 --- a/acp/leagues_info.php +++ b/acp/leagues_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\leagues_module', - 'title' => 'ACP_FOOTBALL_LEAGUES_MANAGEMENT', - 'version' => '0.9.4', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_LEAGUES_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_LEAGUES')), - ), - ); - } -} + '\football\football\acp\leagues_module', + 'title' => 'ACP_FOOTBALL_LEAGUES_MANAGEMENT', + 'version' => '0.9.4', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_LEAGUES_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_LEAGUES')), + ), + ); + } +} diff --git a/acp/leagues_module.php b/acp/leagues_module.php index 5312f1c..0919e0f 100644 --- a/acp/leagues_module.php +++ b/acp/leagues_module.php @@ -672,7 +672,7 @@ class leagues_module $template->assign_vars(array( 'U_ACTION' => $this->u_action, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet', 's' => $season)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet', 's' => $season)), 'S_SEASON' => $season, 'S_SEASON_OPTIONS' => $season_options, 'S_LEAGUE_ADD' => true, @@ -690,8 +690,8 @@ class leagues_module FROM ' . FOOTB_LEAGUES . ' AS l LEFT JOIN ' . FOOTB_BETS . " AS b ON (b.season = l.season AND b.league = l.league) WHERE l.season = $season - GROUP BY league - ORDER BY league ASC"; + GROUP BY l.league + ORDER BY l.league ASC"; $result = $db->sql_query($sql); $rows_leagues = $db->sql_fetchrowset($result); $db->sql_freeresult($result); @@ -730,4 +730,3 @@ class leagues_module } } } -?> \ No newline at end of file diff --git a/acp/matchdays_info.php b/acp/matchdays_info.php index 2cb70db..e98b07b 100644 --- a/acp/matchdays_info.php +++ b/acp/matchdays_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\matchdays_module', - 'title' => 'ACP_FOOTBALL_MATCHDAYS_MANAGEMENT', - 'version' => '0.9.4', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_MATCHDAYS_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_MATCHDAYS')), - ), - ); - } -} + '\football\football\acp\matchdays_module', + 'title' => 'ACP_FOOTBALL_MATCHDAYS_MANAGEMENT', + 'version' => '0.9.4', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_MATCHDAYS_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_MATCHDAYS')), + ), + ); + } +} diff --git a/acp/matchdays_module.php b/acp/matchdays_module.php index 0895fb5..01f0035 100644 --- a/acp/matchdays_module.php +++ b/acp/matchdays_module.php @@ -216,7 +216,7 @@ class matchdays_module $show_delivery_select = false; $show_delivery = true; $lang_dates = $user->lang['datetime']; - $sql = "(SELECT md.matchday, + $sql = "(SELECT md.matchday AS matchday, 1 AS number, md.delivery_date, CASE DATE_FORMAT(md.delivery_date,'%w') @@ -251,7 +251,7 @@ class matchdays_module AND md.league = agg.league AND md.matchday = agg.matchday) UNION - (SELECT md2.matchday, + (SELECT md2.matchday AS matchday, 2 AS number, md2.delivery_date_2 AS delivery_date, CASE DATE_FORMAT(md2.delivery_date_2,'%w') @@ -286,7 +286,7 @@ class matchdays_module AND md2.league = agg2.league AND md2.matchday = agg2.matchday) UNION - (SELECT md3.matchday, + (SELECT md3.matchday AS matchday, 3 AS number, md3.delivery_date_3 AS delivery_date, CASE DATE_FORMAT(md3.delivery_date_3,'%w') @@ -1090,7 +1090,7 @@ class matchdays_module $template->assign_vars(array( 'U_ACTION' => $this->u_action, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet', 's' => $season, 'l' => $league)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet', 's' => $season, 'l' => $league)), 'S_SEASON' => $season, 'S_LEAGUE' => $league, 'S_SEASON_OPTIONS' => $season_options, @@ -1131,4 +1131,3 @@ class matchdays_module } } } -?> \ No newline at end of file diff --git a/acp/matches_info.php b/acp/matches_info.php index 4707081..e04d1df 100644 --- a/acp/matches_info.php +++ b/acp/matches_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\matches_module', - 'title' => 'ACP_FOOTBALL_MATCHES_MANAGEMENT', - 'version' => '0.9.4', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_MATCHES_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_MATCHES')), - ), - ); - } -} + '\football\football\acp\matches_module', + 'title' => 'ACP_FOOTBALL_MATCHES_MANAGEMENT', + 'version' => '0.9.4', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_MATCHES_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_MATCHES')), + ), + ); + } +} diff --git a/acp/matches_module.php b/acp/matches_module.php index 3ecd9fe..efd6a21 100644 --- a/acp/matches_module.php +++ b/acp/matches_module.php @@ -124,12 +124,12 @@ class matches_module $league_options .= ''; if ($selected <> '') { - $league_info = $row; - $league_matchdays = $row['matchdays']; - $matches_matchday = $row['matches_on_matchday']; - $league_name = $row['league_name']; - $league_type = $row['league_type']; - $ko_league = ($row['league_type'] == LEAGUE_KO) ? true : false; + $league_info = $row; + $league_matchdays = $row['matchdays']; + $matches_matchday = $row['matches_on_matchday']; + $league_name = $row['league_name']; + $league_type = $row['league_type']; + $ko_league = ($row['league_type'] == LEAGUE_KO) ? true : false; } } $db->sql_freeresult($result); @@ -387,17 +387,17 @@ class matches_module trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action . "&s=$season&l=$league&m=$matchday"), E_USER_WARNING); } - $match_row['status'] = utf8_normalize_nfc($this->request->variable('match_status', '', true)); - $match_row['odd_1'] = round($this->request->variable('odd_1', $match_row['odd_1']),2); - $match_row['odd_x'] = round($this->request->variable('odd_x', $match_row['odd_x']),2); - $match_row['odd_2'] = round($this->request->variable('odd_2', $match_row['odd_2']),2); - $match_row['rating'] = round($this->request->variable('rating', $match_row['rating']),2); - $match_row['team_id_home'] = utf8_normalize_nfc($this->request->variable('team_home', '', true)); + $match_row['status'] = utf8_normalize_nfc($this->request->variable('match_status', '', true)); + $match_row['odd_1'] = round($this->request->variable('odd_1', $match_row['odd_1']),2); + $match_row['odd_x'] = round($this->request->variable('odd_x', $match_row['odd_x']),2); + $match_row['odd_2'] = round($this->request->variable('odd_2', $match_row['odd_2']),2); + $match_row['rating'] = round($this->request->variable('rating', $match_row['rating']),2); + $match_row['team_id_home'] = utf8_normalize_nfc($this->request->variable('team_home', '', true)); $match_row['team_id_guest'] = utf8_normalize_nfc($this->request->variable('team_guest', '', true)); - $match_row['formula_home'] = utf8_normalize_nfc($this->request->variable('formula_home', '', true)); + $match_row['formula_home'] = utf8_normalize_nfc($this->request->variable('formula_home', '', true)); $match_row['formula_guest'] = utf8_normalize_nfc($this->request->variable('formula_guest', '', true)); - $match_row['ko_match'] = $this->request->variable('match_ko', false); - $match_row['group_id'] = ($this->request->variable('group_match', false)) ? utf8_normalize_nfc($this->request->variable('match_group', '', true)) : ''; + $match_row['ko_match'] = $this->request->variable('match_ko', false); + $match_row['group_id'] = ($this->request->variable('group_match', false)) ? utf8_normalize_nfc($this->request->variable('match_group', '', true)) : ''; if ($match_row['team_id_home'] <> '') { @@ -717,7 +717,7 @@ class matches_module $template->assign_vars(array( 'U_ACTION' => $this->u_action, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday)), 'S_SEASON' => $season, 'S_LEAGUE' => $league, 'S_KO_LEAGUE' => $ko_league, @@ -761,5 +761,3 @@ class matches_module } } } - -?> \ No newline at end of file diff --git a/acp/results_info.php b/acp/results_info.php index a8b0bbf..878bb60 100644 --- a/acp/results_info.php +++ b/acp/results_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\results_module', - 'title' => 'ACP_FOOTBALL_RESULTS_MANAGEMENT', - 'version' => '1.0.0', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_RESULTS_MANAGE', 'auth' => 'acl_a_football_results', 'cat' => array('ACP_FOOTBALL_RESULTS')), - ), - ); - } -} + '\football\football\acp\results_module', + 'title' => 'ACP_FOOTBALL_RESULTS_MANAGEMENT', + 'version' => '1.0.0', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_RESULTS_MANAGE', 'auth' => 'acl_a_football_results', 'cat' => array('ACP_FOOTBALL_RESULTS')), + ), + ); + } +} diff --git a/acp/results_module.php b/acp/results_module.php index 976733d..63e68af 100644 --- a/acp/results_module.php +++ b/acp/results_module.php @@ -793,7 +793,7 @@ class results_module $template->assign_vars(array( 'U_ACTION' => $this->u_action, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'results', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'results', 's' => $season, 'l' => $league, 'm' => $matchday)), 'S_LEGEND' => $legend, 'S_SUCCESS' => (sizeof($success)) ? true : false, 'SUCCESS_MSG' => (sizeof($success)) ? implode('
', $success) : '', @@ -815,5 +815,3 @@ class results_module ); } } - -?> \ No newline at end of file diff --git a/acp/seasons_module.php b/acp/seasons_module.php index 33f84a4..1611a3e 100644 --- a/acp/seasons_module.php +++ b/acp/seasons_module.php @@ -335,6 +335,7 @@ class seasons_module 'SEASON_SHORT' => $season_row['season_name_short'], 'U_BACK' => $u_back, 'U_ACTION' => "{$this->u_action}&action=$action&s=$season", + 'S_VERSION_NO' => $this->config['football_version'], ) ); return; @@ -343,7 +344,7 @@ class seasons_module $template->assign_vars(array( 'U_ACTION' => $this->u_action, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet')), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet')), 'S_SEASON_ADD' => true, ) ); @@ -356,8 +357,8 @@ class seasons_module COUNT(l.league) AS leagues FROM ' . FOOTB_SEASONS . ' s LEFT JOIN ' . FOOTB_LEAGUES . ' l on l.season = s.season - GROUP BY season - ORDER BY season DESC'; + GROUP BY s.season + ORDER BY s.season DESC'; $result = $db->sql_query($sql); $rows_seasons = $db->sql_fetchrowset($result); $db->sql_freeresult($result); @@ -390,5 +391,3 @@ class seasons_module } } } - -?> \ No newline at end of file diff --git a/acp/teams_info.php b/acp/teams_info.php index 8768e0c..7426531 100644 --- a/acp/teams_info.php +++ b/acp/teams_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\teams_module', - 'title' => 'ACP_FOOTBALL_TEAMS_MANAGEMENT', - 'version' => '0.9.4', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_TEAMS_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_TEAMS')), - ), - ); - } -} + '\football\football\acp\teams_module', + 'title' => 'ACP_FOOTBALL_TEAMS_MANAGEMENT', + 'version' => '0.9.4', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_TEAMS_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_TEAMS')), + ), + ); + } +} diff --git a/acp/teams_module.php b/acp/teams_module.php index 3004db9..5eb0ed4 100644 --- a/acp/teams_module.php +++ b/acp/teams_module.php @@ -177,7 +177,7 @@ class teams_module $folder = $this->ext_football_path . 'images/flags/'; $directory = opendir($folder); $files = array(); - while($file = readdir($directory)) + while($file = readdir($directory)) { if( !(bool) preg_match('/.+\.(?:jpe?g|gif|png)$/i', $file) ) { @@ -309,7 +309,7 @@ class teams_module $folder = $this->ext_football_path . 'images/flags/'; $directory = opendir($folder); $files = array(); - while($file = readdir($directory)) + while($file = readdir($directory)) { if( !(bool) preg_match('/.+\.(?:jpe?g|gif|png)$/i', $file) ) { @@ -589,7 +589,7 @@ class teams_module $template->assign_vars(array( 'U_ACTION' => $this->u_action, - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet', 's' => $season, 'l' => $league)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet', 's' => $season, 'l' => $league)), 'S_SEASON' => $season, 'S_LEAGUE' => $league, 'S_KO_LEAGUE' => $ko_league, @@ -597,6 +597,7 @@ class teams_module 'S_LEAGUE_OPTIONS' => $league_options, 'S_TEAM_OPTIONS' => $team_options, 'S_TEAM_ADD' => true, + 'S_VERSION_NO' => $this->config['football_version'], ) ); @@ -609,7 +610,7 @@ class teams_module WHERE t.season = $season AND t.league = $league GROUP BY t.team_id - ORDER BY team_id ASC"; + ORDER BY t.team_id ASC"; $result = $db->sql_query($sql); $rows_teams = $db->sql_fetchrowset($result); $db->sql_freeresult($result); @@ -654,4 +655,3 @@ class teams_module ); } } -?> \ No newline at end of file diff --git a/acp/update_info.php b/acp/update_info.php index c517250..608d277 100644 --- a/acp/update_info.php +++ b/acp/update_info.php @@ -1,25 +1,25 @@ - '\football\football\acp\update_module', - 'title' => 'ACP_FOOTBALL_UPDATE_MANAGEMENT', - 'version' => '0.9.4', - 'modes' => array( - 'manage' => array('title' => 'ACP_FOOTBALL_UPDATE_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_UPDATE')), - ), - ); - } -} + '\football\football\acp\update_module', + 'title' => 'ACP_FOOTBALL_UPDATE_MANAGEMENT', + 'version' => '0.9.4', + 'modes' => array( + 'manage' => array('title' => 'ACP_FOOTBALL_UPDATE_MANAGE', 'auth' => 'acl_a_football_plan', 'cat' => array('ACP_FOOTBALL_UPDATE')), + ), + ); + } +} diff --git a/acp/update_module.php b/acp/update_module.php index e8ca43a..35602c9 100644 --- a/acp/update_module.php +++ b/acp/update_module.php @@ -131,7 +131,7 @@ class update_module $insert_season = $this->request->variable('insert_season', false); $insert_league = $this->request->variable('insert_league', false); $list = $this->request->variable('list', false); - $this->xml_ary = unserialize(urldecode($this->request->variable('xml_ary', ''))); + $this->xml_ary = json_decode(urldecode($this->request->variable('xml_ary', '')),true); $display_team_mapping = false; // Clear some vars $error = array(); @@ -730,7 +730,7 @@ class update_module $template->assign_vars(array( 'U_ACTION' => $this->u_action, 'U_CHOOSE_ACTION' => $this->u_action . "&action=choose", - 'U_FOOTBALL' => $helper->route('football_main_controller',array('side' => 'bet', 's' => $season, 'l' => $league)), + 'U_FOOTBALL' => $helper->route('football_football_controller',array('side' => 'bet', 's' => $season, 'l' => $league)), 'S_ERROR' => (sizeof($error)) ? true : false, 'ERROR_MSG' => (sizeof($error)) ? implode('
', $error) : '', 'S_SUCCESS' => (sizeof($success)) ? true : false, @@ -750,7 +750,7 @@ class update_module 'DO_MATCHES' => ($insert_league) ? sprintf($user->lang['INSERT_MATCHES']) : sprintf($user->lang['UPDATE_MATCHES']), 'XML_SEASON_URL' => $xml_season_url, 'XML_LEAGUE_URL' => $xml_league_url, - 'XML_ARY' => (sizeof($this->xml_ary)) ? urlencode(serialize($this->xml_ary)) : '', + 'XML_ARY' => (is_array($this->xml_ary) && sizeof($this->xml_ary)) ? urlencode(json_encode($this->xml_ary)) : '', 'S_XSEASON_OPTIONS' => $xseason_options, 'S_XLEAGUE_OPTIONS' => $xleague_options, 'S_XSEASON' => $xseason, @@ -851,7 +851,7 @@ class update_module { $this->xml_ary['footb_teams'][$key]['team_id'] = $team_id_map_ary[$xml_team['team_id']]; } - usort($this->xml_ary['footb_teams'], 'sort_teams'); + usort($this->xml_ary['footb_teams'], array($this, 'sort_teams')); foreach ($this->xml_ary['footb_matches'] AS $key => $xml_team) { @@ -1144,7 +1144,7 @@ class update_module { if (sizeof($table_row)) { - $tpl .= ''; + $tpl .= ''; // match status update and database if (substr($id, 0, 13) == 'FOOTB_MATCHES') { @@ -1160,7 +1160,7 @@ class update_module else { // Insert team - $tpl .= ''; + $tpl .= ''; } } @@ -1171,7 +1171,7 @@ class update_module { if (sizeof($table_row)) { - $color_open = '* '; + $color_open = '* '; $color_close = ''; } else @@ -1188,8 +1188,8 @@ class update_module if (sizeof($order)) { $value = (substr($key, 0, 7) == 'team_id') ? $value . ' ' . $this->team_ary[$value] : $value; - $tpl_ary[$order[$key]] = ($order[$key] % 2) ? $color_open . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . $color_close . ' ' : - '' . $color_open . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . $color_close . '
'; + $tpl_ary[$order[$key]] = ($order[$key] % 2) ? $color_open . utf8_htmlspecialchars($value) . $color_close . ' ' : + '' . $color_open . utf8_htmlspecialchars($value) . $color_close . '
'; } else { @@ -1198,14 +1198,14 @@ class update_module // Write table fields if (sizeof($table_row)) { - $tpl .= '' . - $color_open . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . $color_close . + $tpl .= '' . + $color_open . utf8_htmlspecialchars($value) . $color_close . ''; } else { $tpl .= '' . - $color_open . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . $color_close . + $color_open . utf8_htmlspecialchars($value) . $color_close . ''; } } @@ -1245,15 +1245,15 @@ class update_module if (sizeof($order)) { $value = (substr($key, 0, 7) == 'team_id') ? $value . ' ' . $this->team_ary[$value] : $value; - $tpl_ary[$order[$key]] = ($order[$key] % 2) ? htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . ' ' : - '' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '
'; + $tpl_ary[$order[$key]] = ($order[$key] % 2) ? utf8_htmlspecialchars($value) . ' ' : + '' . utf8_htmlspecialchars($value) . '
'; } else { if ($key <> 'season' and $key <> 'league') { // Write XML-table fields - $tpl .= '' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . ''; + $tpl .= '' . utf8_htmlspecialchars($value) . ''; } } } @@ -1322,7 +1322,7 @@ class update_module if ($this->request->variable($table . '_' . $row['index_field'], false)) { - $diff_ary = unserialize(urldecode($this->request->variable('row_' . $table . '_' . $row['index_field'], ''))); + $diff_ary = json_decode(urldecode($this->request->variable('row_' . $table . '_' . $row['index_field'], '')),true); $sql_ary = array_intersect_ukey($diff_ary, $selected_fields, 'self::key_compare_func'); if ($table == 'FOOTB_MATCHES') { @@ -1407,7 +1407,7 @@ class update_module } foreach ($insert_ary AS $insert) { - $sql_ary = unserialize(urldecode($insert)); + $sql_ary = json_decode(urldecode($insert),true); $sql = 'INSERT INTO ' . $table_name . ' ' . $db->sql_build_array('INSERT', $sql_ary); $db->sql_query($sql); if ($db->sql_affectedrows()) @@ -1461,4 +1461,3 @@ class update_module return $selected_fields; } } -?> \ No newline at end of file diff --git a/adm/style/acp_football.html b/adm/style/acp_football.html index 676b526..b98fa82 100644 --- a/adm/style/acp_football.html +++ b/adm/style/acp_football.html @@ -1,65 +1,65 @@ - - - - -« {L_PREDICTION_LEAGUE} -

{L_TITLE}

-

{L_TITLE_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - - -
- {L_FOOTBALL_VERSION_CHECK} -

{mods.UP_TO_DATE}

-
-
-
{mods.CURRENT_VERSION}
-
-
-
-
{mods.LATEST_VERSION}
-
- -
-
-
{L_DOWNLOAD} {mods.TITLE} {mods.LATEST_VERSION}
-
-
-
-
{L_RELEASE_ANNOUNCEMENT}
-
- -
- -
- - - - - - -
- {options.LEGEND} - -
-

{options.TITLE_EXPLAIN}
-
{options.CONTENT}
-
- - -

-   - -

- {S_FORM_TOKEN} -
-
-
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + +« {L_PREDICTION_LEAGUE} +

{L_TITLE}

+

{L_TITLE_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + + +
+ {L_FOOTBALL_VERSION_CHECK} +

{mods.UP_TO_DATE}

+
+
+
{mods.CURRENT_VERSION}
+
+
+
+
{mods.LATEST_VERSION}
+
+ +
+
+
{L_DOWNLOAD} {mods.TITLE} {mods.LATEST_VERSION}
+
+
+
+
{L_RELEASE_ANNOUNCEMENT}
+
+ +
+ +
+ + + + + + +
+ {options.LEGEND} + +
+

{options.TITLE_EXPLAIN}
+
{options.CONTENT}
+
+ + +

+   + +

+ {S_FORM_TOKEN} +
+
+
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_all_bets.html b/adm/style/acp_football_all_bets.html index 7f6d7ac..9845f09 100644 --- a/adm/style/acp_football_all_bets.html +++ b/adm/style/acp_football_all_bets.html @@ -1,151 +1,151 @@ - - - - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_ALL_BETS_VIEW}

-

{L_ACP_FOOTBALL_ALL_BETS_VIEW_EXPLAIN}

- -

{L_SELECT_MATCHDAY}:

-
-
- - {S_FORM_TOKEN} -
-
-
-
- - - {S_FORM_TOKEN} -
-
-
-
- - - - {S_FORM_TOKEN} -
-
- -
- {S_LEGEND} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

{match_panel.match.HOME_NAME}-
{match_panel.match.GUEST_NAME}
{L_RESULT}{match_panel.match.RESULT}{L_TOTAL}
{L_TENDENCY} - {match_panel.tendency_footer.tendency.MATCH_ENTRY} - {match_panel.tendency_footer.tendency.TENDENCY} - - {L_POINTS_TOTAL} - {match_panel.tendency_footer.SUMTOTAL} -
{match_panel.user_row.USER_NAME}{match_panel.user_row.bet.BET}{match_panel.user_row.bet.POINTS}{match_panel.user_row.points.POINTS_TOTAL}
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_EXTRA_BET}{extra_panel.QUESTION}{L_EVALUATION}{L_POINTS}
{L_RESULT}{extra_panel.RESULT}{extra_panel.EVALUATION}{extra_panel.POINTS}
{extra_panel.user_row.USER_NAME}{extra_panel.user_row.BET} {extra_panel.user_row.POINTS}
- -
- - - - - - - -
-
{L_NO_MATCHES_ON_MATCHDAY}
-
- -
-
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_ALL_BETS_VIEW}

+

{L_ACP_FOOTBALL_ALL_BETS_VIEW_EXPLAIN}

+ +

{L_SELECT_MATCHDAY}:

+
+
+ + {S_FORM_TOKEN} +
+
+
+
+ + + {S_FORM_TOKEN} +
+
+
+
+ + + + {S_FORM_TOKEN} +
+
+ +
+ {S_LEGEND} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

{match_panel.match.HOME_NAME}-
{match_panel.match.GUEST_NAME}
{L_RESULT}{match_panel.match.RESULT}{L_TOTAL}
{L_TENDENCY} + {match_panel.tendency_footer.tendency.MATCH_ENTRY} + {match_panel.tendency_footer.tendency.TENDENCY} + + {L_POINTS_TOTAL} + {match_panel.tendency_footer.SUMTOTAL} +
{match_panel.user_row.USER_NAME}{match_panel.user_row.bet.BET}{match_panel.user_row.bet.POINTS}{match_panel.user_row.points.POINTS_TOTAL}
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_EXTRA_BET}{extra_panel.QUESTION}{L_EVALUATION}{L_POINTS}
{L_RESULT}{extra_panel.RESULT}{extra_panel.EVALUATION}{extra_panel.POINTS}
{extra_panel.user_row.USER_NAME}{extra_panel.user_row.BET} {extra_panel.user_row.POINTS}
+ +
+ + + + + + + +
+
{L_NO_MATCHES_ON_MATCHDAY}
+
+ +
+
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_bank.html b/adm/style/acp_football_bank.html index ec9d65f..6d58716 100644 --- a/adm/style/acp_football_bank.html +++ b/adm/style/acp_football_bank.html @@ -1,160 +1,160 @@ - - - - - - « {L_BACK} -

{PAGE_TYPE} :: {LEAGUE_NAME}

-

{PAGE_TYPE_EXPLAIN}

- -
-

- {L_SET_DEPOSITS} • - {L_MARK_ALL} • - {L_UNMARK_ALL}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_USERNAME}{POINTS}{TARGET}{ACTUAL}{L_BOOK}{L_MARK}
{member.USERNAME}{member.POINTS}{member.TARGET}{member.ACTUAL}
- - {L_CASH_POINTS} - - {L_MATCHDAY}: - {S_MATCHDAY} - - - - -
- - - - - - -
- - {S_FORM_TOKEN} -
- - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_BANK_MANAGE}

-

{L_ACP_FOOTBALL_BANK_MANAGE_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -
-
-

{L_SELECT_SEASON}:

- - {S_FORM_TOKEN} -
-
- -

{L_LEAGUE_BANK}

- -

{L_LEAGUE_BANK_EXPLAIN}

-

Offene Posten bis einschließlich dieser Saison

-
-
-

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_LEAGUE}{L_LEAGUE_NAME}{L_BET_POINTS}{L_DEPOSITED}{L_WINS}{L_PAID}{L_MARK}
{leagues.LEAGUE}{leagues.LEAGUE_NAME}{leagues.BET_POINTS} - - {leagues.DEPOSITED} - {leagues.WINS} - - {leagues.PAID} -
{L_NO_LEAGUES_CREATED}
- - {L_CASH_POINTS} - -
- - - -
- - {S_FORM_TOKEN} -
-
-
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + + « {L_BACK} +

{PAGE_TYPE} :: {LEAGUE_NAME}

+

{PAGE_TYPE_EXPLAIN}

+ +
+

+ {L_SET_DEPOSITS} • + {L_MARK_ALL} • + {L_UNMARK_ALL}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_USERNAME}{POINTS}{TARGET}{ACTUAL}{L_BOOK}{L_MARK}
{member.USERNAME}{member.POINTS}{member.TARGET}{member.ACTUAL}
+ + {L_CASH_POINTS} + + {L_MATCHDAY}: + {S_MATCHDAY} + + + + +
+ + + + + + +
+ + {S_FORM_TOKEN} +
+ + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_BANK_MANAGE}

+

{L_ACP_FOOTBALL_BANK_MANAGE_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +
+
+

{L_SELECT_SEASON}:

+ + {S_FORM_TOKEN} +
+
+ +

{L_LEAGUE_BANK}

+ +

{L_LEAGUE_BANK_EXPLAIN}

+

Offene Posten bis einschließlich dieser Saison

+
+
+

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_LEAGUE}{L_LEAGUE_NAME}{L_BET_POINTS}{L_DEPOSITED}{L_WINS}{L_PAID}{L_MARK}
{leagues.LEAGUE}{leagues.LEAGUE_NAME}{leagues.BET_POINTS} + + {leagues.DEPOSITED} + {leagues.WINS} + + {leagues.PAID} +
{L_NO_LEAGUES_CREATED}
+ + {L_CASH_POINTS} + +
+ + + +
+ + {S_FORM_TOKEN} +
+
+
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_bets.html b/adm/style/acp_football_bets.html index f0c9b7e..f05e874 100644 --- a/adm/style/acp_football_bets.html +++ b/adm/style/acp_football_bets.html @@ -1,155 +1,155 @@ - - - - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_BETS_MANAGE}

- -

{L_ACP_FOOTBALL_BETS_MANAGE_EXPLAIN}

- -

{L_SELECT_MATCHDAY}:

-
-
- - {S_FORM_TOKEN} -
-
-
-
- - - {S_FORM_TOKEN} -
-
-
-
- - - - {S_FORM_TOKEN} -
-
- -
-
- - - - - {S_FORM_TOKEN} -
-
- - - -
-

{L_ADVICE}

-

{SUCCESS_MSG}

-
- - - -
-
- {S_LEGEND} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_DATE}{L_NR}{L_GR}{L_HOME}{L_GUEST}{L_GOALS_HOME}{L_GOALS_GUEST}{L_BET_TIME}
{bet_edit.MATCH_TIME}{bet_edit.MATCH_NUMBER}{bet_edit.GROUP}{bet_edit.LOGO_HOME} {bet_edit.HOME_NAME}:{bet_edit.LOGO_GUEST} {bet_edit.GUEST_NAME}:{bet_edit.BET_TIME}
- - -
- - - - - - - - - - - - - - - - - - - -
{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_BET_OF}
{extra_edit.QUESTION}{extra_edit.EXTRA_POINTS}{extra_edit.EVALUATION} - - - - - - -
- - {L_CASH_POINTS} - -
-   - - {S_FORM_TOKEN} -
-
-
- -
- {S_LEGEND} -
-
{L_NO_MATCHES_ON_MATCHDAY}{L_NO_USERS}
-
-
- -
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_BETS_MANAGE}

+ +

{L_ACP_FOOTBALL_BETS_MANAGE_EXPLAIN}

+ +

{L_SELECT_MATCHDAY}:

+
+
+ + {S_FORM_TOKEN} +
+
+
+
+ + + {S_FORM_TOKEN} +
+
+
+
+ + + + {S_FORM_TOKEN} +
+
+ +
+
+ + + + + {S_FORM_TOKEN} +
+
+ + + +
+

{L_ADVICE}

+

{SUCCESS_MSG}

+
+ + + +
+
+ {S_LEGEND} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_DATE}{L_NR}{L_GR}{L_HOME}{L_GUEST}{L_GOALS_HOME}{L_GOALS_GUEST}{L_BET_TIME}
{bet_edit.MATCH_TIME}{bet_edit.MATCH_NUMBER}{bet_edit.GROUP}{bet_edit.LOGO_HOME} {bet_edit.HOME_NAME}:{bet_edit.LOGO_GUEST} {bet_edit.GUEST_NAME}:{bet_edit.BET_TIME}
+ + +
+ + + + + + + + + + + + + + + + + + + +
{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_BET_OF}
{extra_edit.QUESTION}{extra_edit.EXTRA_POINTS}{extra_edit.EVALUATION} + + + + + + +
+ + {L_CASH_POINTS} + +
+   + + {S_FORM_TOKEN} +
+
+
+ +
+ {S_LEGEND} +
+
{L_NO_MATCHES_ON_MATCHDAY}{L_NO_USERS}
+
+
+ +
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_extra.html b/adm/style/acp_football_extra.html index 8bbad97..1cfc302 100644 --- a/adm/style/acp_football_extra.html +++ b/adm/style/acp_football_extra.html @@ -1,149 +1,149 @@ - - - - - - « {L_BACK} -

{L_ACP_FOOTBALL_EXTRA_MANAGE}

-

{L_MATCHDAY_EDIT_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -
- -
- {L_EXTRA_DETAILS} -
-
-
{SEASON_NAME}
-
-
-
-
{LEAGUE_NAME}
-
-
-
-
{EXTRA_NO}
-
-
-

{L_EXTRA_QUESTION_TYPE_EXPLAIN}
-
-
-
-

{L_EXTRA_QUESTION_EXPLAIN}
-
-
-
-

{L_EXTRA_MATCHDAY_EXPLAIN}
-
-
-
-

{L_EXTRA_MATCHDAY_EVAL_EXPLAIN}
-
-
-
-

{L_EXTRA_POINTS_EXPLAIN}
-
-
-
-

{L_EXTRA_STATUS_EXPLAIN}
-
-
-
- -
- {L_SUBMIT} -   - - {S_FORM_TOKEN} -
-
- - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_EXTRA_MANAGE}

-

{L_ACP_FOOTBALL_EXTRA_MANAGE_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -

{L_SELECT_LEAGUE}:

-
-
- - {S_FORM_TOKEN} -
-
- -
-
- - - {S_FORM_TOKEN} -
-
- -
-
- - - - - - - {S_FORM_TOKEN} -
-
-

{L_EXTRA_DEF}

- -

{L_EXTRA_DEF_EXPLAIN}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_EXTRA_NO}{L_QUESTION_TYPE}{L_EXTRA_QUESTION}{L_EXTRA_MATCHDAY}{L_EXTRA_MATCHDAY_EVAL}{L_EXTRA_POINTS}{L_STATUS}{L_OPTIONS}{L_ACTION}
{extras.EXTRA_NO}{extras.QUESTION_TYPE}{extras.QUESTION}{extras.MATCHDAY}{extras.MATCHDAY_EVAL}{extras.EXTRA_POINTS}{extras.EXTRA_STATUS}{L_SETTINGS}{L_DELETE}{L_DELETE}
{L_NO_EXTRA_CREATED}
- - -
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + + « {L_BACK} +

{L_ACP_FOOTBALL_EXTRA_MANAGE}

+

{L_MATCHDAY_EDIT_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +
+ +
+ {L_EXTRA_DETAILS} +
+
+
{SEASON_NAME}
+
+
+
+
{LEAGUE_NAME}
+
+
+
+
{EXTRA_NO}
+
+
+

{L_EXTRA_QUESTION_TYPE_EXPLAIN}
+
+
+
+

{L_EXTRA_QUESTION_EXPLAIN}
+
+
+
+

{L_EXTRA_MATCHDAY_EXPLAIN}
+
+
+
+

{L_EXTRA_MATCHDAY_EVAL_EXPLAIN}
+
+
+
+

{L_EXTRA_POINTS_EXPLAIN}
+
+
+
+

{L_EXTRA_STATUS_EXPLAIN}
+
+
+
+ +
+ {L_SUBMIT} +   + + {S_FORM_TOKEN} +
+
+ + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_EXTRA_MANAGE}

+

{L_ACP_FOOTBALL_EXTRA_MANAGE_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +

{L_SELECT_LEAGUE}:

+
+
+ + {S_FORM_TOKEN} +
+
+ +
+
+ + + {S_FORM_TOKEN} +
+
+ +
+
+ + + + + + + {S_FORM_TOKEN} +
+
+

{L_EXTRA_DEF}

+ +

{L_EXTRA_DEF_EXPLAIN}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_EXTRA_NO}{L_QUESTION_TYPE}{L_EXTRA_QUESTION}{L_EXTRA_MATCHDAY}{L_EXTRA_MATCHDAY_EVAL}{L_EXTRA_POINTS}{L_STATUS}{L_OPTIONS}{L_ACTION}
{extras.EXTRA_NO}{extras.QUESTION_TYPE}{extras.QUESTION}{extras.MATCHDAY}{extras.MATCHDAY_EVAL}{extras.EXTRA_POINTS}{extras.EXTRA_STATUS}{L_SETTINGS}{L_DELETE}{L_DELETE}
{L_NO_EXTRA_CREATED}
+ + +
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_ko.html b/adm/style/acp_football_ko.html index ab6e4c6..67fadf7 100644 --- a/adm/style/acp_football_ko.html +++ b/adm/style/acp_football_ko.html @@ -1,85 +1,85 @@ - - - - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_KO_MANAGE}

-

{L_ACP_FOOTBALL_KO_MANAGE_EXPLAIN}

- -

{L_SELECT_LEAGUE}:

-
-
- - {S_FORM_TOKEN} -
-
-
-
- - - {S_FORM_TOKEN} -
-
- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -
- -
- {L_KO_MATCHDAYS} -
-
-
-
-
-
-
-
- - -
- -
- {L_MATCHDAY_TARGET} -
-
-
-
-
- -
- {L_KO_GROUP} -
-
-
checked="checked" />
-
-
-

{L_GROUP_RANK_EXPLAIN}
-
-
-
-

{L_MOVE_RANK_EXPLAIN}
-
- {L_MOVE_LEAGUE} - - {L_MATCHDAY} - -
-
-
- -
- {L_SUBMIT} -   - - {S_FORM_TOKEN} -
-
-
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_KO_MANAGE}

+

{L_ACP_FOOTBALL_KO_MANAGE_EXPLAIN}

+ +

{L_SELECT_LEAGUE}:

+
+
+ + {S_FORM_TOKEN} +
+
+
+
+ + + {S_FORM_TOKEN} +
+
+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +
+ +
+ {L_KO_MATCHDAYS} +
+
+
+
+
+
+
+
+ + +
+ +
+ {L_MATCHDAY_TARGET} +
+
+
+
+
+ +
+ {L_KO_GROUP} +
+
+
checked="checked" />
+
+
+

{L_GROUP_RANK_EXPLAIN}
+
+
+
+

{L_MOVE_RANK_EXPLAIN}
+
+ {L_MOVE_LEAGUE} + + {L_MATCHDAY} + +
+
+
+ +
+ {L_SUBMIT} +   + + {S_FORM_TOKEN} +
+
+
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_leagues.html b/adm/style/acp_football_leagues.html index 5aeb9c0..110723f 100644 --- a/adm/style/acp_football_leagues.html +++ b/adm/style/acp_football_leagues.html @@ -1,321 +1,321 @@ - - - - - - « {L_BACK} -

{L_ACP_FOOTBALL_LEAGUES_MANAGE}

-

{L_LEAGUE_EDIT_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -
- -
- {L_LEAGUE_DETAILS} -
-
-
{SEASON}
-
-
-
-
- - {LEAGUE} - - -
-
-
-
-
-
-
-

{L_LEAGUE_SHORT_EXPLAIN}
-
-
-
-

{L_LEAGUE_TYPE_EXPLAIN}
-
- - -
-
-
-

{L_BET_TYPE_KO_EXPLAIN}
-
- - - -
-
-
-

{L_LEAGUE_MATCHDAYS_EXPLAIN}
-
-
-
-

{L_LEAGUE_MATCHES_EXPLAIN}
-
- - - - {LEAGUE_MATCHES} - -
-
-
-

{L_LEAGUE_RULES_POST_ID_EXPLAIN}
-
-
-
-

{L_LEAGUE_JOIN_BY_USER_EXPLAIN}
-
- - - -
-
-
-

{L_LEAGUE_JOIN_IN_SEASON_EXPLAIN}
-
- - - -
-
- -
-

{L_LEAGUE_BET_IN_TIME_EXPLAIN}
-
- - - -
-
- -
- -
- {L_LEAGUE_POINTS} -
-

{L_LEAGUE_POINTS_MODE_EXPLAIN}
-
-
-
-

{L_LEAGUE_POINTS_HIT_EXPLAIN}
-
-
-
-

{L_LEAGUE_POINTS_TENDENCY_EXPLAIN}
-
-
-
-

{L_LEAGUE_POINTS_DIFF_EXPLAIN}
-
-
-
-

{L_LEAGUE_POINTS_LAST_EXPLAIN}
-
- - - -
-
-
- -
- {L_LEAGUE_WINS} -
-

{L_BET_POINTS_EXPLAIN}
-
-
-
-

{L_LEAGUE_WIN_HITS_EXPLAIN}
-
-
-
-

{L_LEAGUE_WIN_HITS_AWAY_EXPLAIN}
-
-
-
-

{L_LEAGUE_WIN_EXPLAIN}
-
-
-
-

{L_LEAGUE_WIN_MATCHDAYS_EXPLAIN}
-
-
-
-

{L_LEAGUE_WIN_SEASON_EXPLAIN}
-
-
-
- -
- {L_SUBMIT} -   - - - - - - {S_FORM_TOKEN} -
-
- - « {L_BACK} -

{L_LEAGUE_MEMBERS} :: {LEAGUE_NAME}

-

{L_MEMBER_EXPLAIN}

- -
- -
- » {L_MEMBER_ALL} -
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_USERNAME}{L_JOINED}{L_MARK}
{member.USERNAME}{member.JOINED}
{L_LEAGUE_NO_MEMBER}
- - - - -
- - -

{L_MARK_ALL} • - {L_UNMARK_ALL}

-
- -

{L_ADD_USERS}

- -

{L_ADD_USERS_EXPLAIN}

- -
- {L_ADD_USERS} -
-
-
-
-
-

{L_USERNAMES_EXPLAIN}
-
-
[ {L_FIND_USERNAME} ]
-
- -

- -

- {S_FORM_TOKEN} -
-
- - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_LEAGUES_MANAGE}

-

{L_ACP_FOOTBALL_LEAGUES_MANAGE_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -
-
-

{L_SELECT_SEASON}:

- - {S_FORM_TOKEN} -
-
- -
- -
- - - {L_CREATE_LEAGUE}: - - - {S_FORM_TOKEN} -
-
-

{L_LEAGUE_DEF}

- -

{L_LEAGUE_DEF_EXPLAIN}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_SEASON}{L_LEAGUE}{L_LEAGUE_NAME}{L_MEMBER}{L_OPTIONS}{L_ACTION}
{leagues.SEASON}{leagues.LEAGUE}{leagues.LEAGUE_NAME}{leagues.LEAGUE_SHORT}{leagues.MEMBERS}{L_SETTINGS}{L_MEMBER}{L_MEMBER}{L_DELETE}{L_DELETE}
{L_NO_LEAGUES_CREATED}
- -
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + + « {L_BACK} +

{L_ACP_FOOTBALL_LEAGUES_MANAGE}

+

{L_LEAGUE_EDIT_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +
+ +
+ {L_LEAGUE_DETAILS} +
+
+
{SEASON}
+
+
+
+
+ + {LEAGUE} + + +
+
+
+
+
+
+
+

{L_LEAGUE_SHORT_EXPLAIN}
+
+
+
+

{L_LEAGUE_TYPE_EXPLAIN}
+
+ + +
+
+
+

{L_BET_TYPE_KO_EXPLAIN}
+
+ + + +
+
+
+

{L_LEAGUE_MATCHDAYS_EXPLAIN}
+
+
+
+

{L_LEAGUE_MATCHES_EXPLAIN}
+
+ + + + {LEAGUE_MATCHES} + +
+
+
+

{L_LEAGUE_RULES_POST_ID_EXPLAIN}
+
+
+
+

{L_LEAGUE_JOIN_BY_USER_EXPLAIN}
+
+ + + +
+
+
+

{L_LEAGUE_JOIN_IN_SEASON_EXPLAIN}
+
+ + + +
+
+ +
+

{L_LEAGUE_BET_IN_TIME_EXPLAIN}
+
+ + + +
+
+ +
+ +
+ {L_LEAGUE_POINTS} +
+

{L_LEAGUE_POINTS_MODE_EXPLAIN}
+
+
+
+

{L_LEAGUE_POINTS_HIT_EXPLAIN}
+
+
+
+

{L_LEAGUE_POINTS_TENDENCY_EXPLAIN}
+
+
+
+

{L_LEAGUE_POINTS_DIFF_EXPLAIN}
+
+
+
+

{L_LEAGUE_POINTS_LAST_EXPLAIN}
+
+ + + +
+
+
+ +
+ {L_LEAGUE_WINS} +
+

{L_BET_POINTS_EXPLAIN}
+
+
+
+

{L_LEAGUE_WIN_HITS_EXPLAIN}
+
+
+
+

{L_LEAGUE_WIN_HITS_AWAY_EXPLAIN}
+
+
+
+

{L_LEAGUE_WIN_EXPLAIN}
+
+
+
+

{L_LEAGUE_WIN_MATCHDAYS_EXPLAIN}
+
+
+
+

{L_LEAGUE_WIN_SEASON_EXPLAIN}
+
+
+
+ +
+ {L_SUBMIT} +   + + + + + + {S_FORM_TOKEN} +
+
+ + « {L_BACK} +

{L_LEAGUE_MEMBERS} :: {LEAGUE_NAME}

+

{L_MEMBER_EXPLAIN}

+ +
+ +
+ » {L_MEMBER_ALL} +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_USERNAME}{L_JOINED}{L_MARK}
{member.USERNAME}{member.JOINED}
{L_LEAGUE_NO_MEMBER}
+ + + + +
+ + +

{L_MARK_ALL} • + {L_UNMARK_ALL}

+
+ +

{L_ADD_USERS}

+ +

{L_ADD_USERS_EXPLAIN}

+ +
+ {L_ADD_USERS} +
+
+
+
+
+

{L_USERNAMES_EXPLAIN}
+
+
[ {L_FIND_USERNAME} ]
+
+ +

+ +

+ {S_FORM_TOKEN} +
+
+ + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_LEAGUES_MANAGE}

+

{L_ACP_FOOTBALL_LEAGUES_MANAGE_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +
+
+

{L_SELECT_SEASON}:

+ + {S_FORM_TOKEN} +
+
+ +
+ +
+ + + {L_CREATE_LEAGUE}: + + + {S_FORM_TOKEN} +
+
+

{L_LEAGUE_DEF}

+ +

{L_LEAGUE_DEF_EXPLAIN}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_SEASON}{L_LEAGUE}{L_LEAGUE_NAME}{L_MEMBER}{L_OPTIONS}{L_ACTION}
{leagues.SEASON}{leagues.LEAGUE}{leagues.LEAGUE_NAME}{leagues.LEAGUE_SHORT}{leagues.MEMBERS}{L_SETTINGS}{L_MEMBER}{L_MEMBER}{L_DELETE}{L_DELETE}
{L_NO_LEAGUES_CREATED}
+ +
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_matchdays.html b/adm/style/acp_football_matchdays.html index c52854f..377fbd1 100644 --- a/adm/style/acp_football_matchdays.html +++ b/adm/style/acp_football_matchdays.html @@ -1,285 +1,285 @@ - - - - - - « {L_BACK} -

{L_ACP_FOOTBALL_MATCHDAYS_MANAGE}

-

{L_MATCHDAY_EDIT_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -
- -
- {L_MATCHDAY_DETAILS} -
-
-
{SEASON_NAME}
-
-
-
-
{LEAGUE_NAME}
-
-
-
-
{MATCHDAY}
-
-
-
-
-
-
-

{L_MATCHDAY_STATUS_EXPLAIN}
-
{MATCHDAY_STATUS}
-
- -
-

{L_MATCHDAY_DELIVERY_EXPLAIN}
-
{L_DAY}: - {L_MONTH}: - {L_YEAR}:     - {L_TIME}: : - -
-
-
-

{L_MATCHDAY_DELIVERY2_EXPLAIN}
-
{L_DAY}: - {L_MONTH}: - {L_YEAR}:     - {L_TIME}: : - -
-
-
-

{L_MATCHDAY_DELIVERY3_EXPLAIN}
-
{L_DAY}: - {L_MONTH}: - {L_YEAR}:     - {L_TIME}: : - -
-
- -
-

{L_MATCHDAY_DELIVERY_EXPLAIN}
-
- {MATCHDAY_DEL1} -
-
-
-

{L_MATCHDAY_DELIVERY2_EXPLAIN}
-
- {MATCHDAY_DEL2} -
-
-
-

{L_MATCHDAY_DELIVERY3_EXPLAIN}
-
- {MATCHDAY_DEL3} -
-
- - -
-

{L_MATCHDAY_MATCHES_EXPLAIN}
-
- - - - {MATCHDAY_MATCHES} - -
-
- - -
- -
- {L_SUBMIT} -   - - {S_FORM_TOKEN} -
-
- - - « {L_BACK} -

{L_CHANGE_DELIVERY}

-

{L_CHANGE_DELIVERY_EXPLAIN}

- -
- - -
- {L_DELIVERY_SET_TIME} -
-

{L_BACKWARD_DELIVERY_EXPLAIN}
-
{L_DAYS}:   - {L_HOURS}:   - {L_MINUTES}: -
-
-
- - -

{L_UPDATE_DELIVERY}

- -

{L_UPDATE_DELIVERY_EXPLAIN}

-

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- - - - - - - - - - - - - - - - - - - - - -
{L_MATCHDAY}{L_DELIVERY_NUMBER}{L_DELIVERY}{L_NEW_DELIVERY}{L_SELECT}
{delivery.MATCHDAY}{delivery.NUMBER}{delivery.DELIVERY_DATE_DAY} - - {delivery.DELIVERY_DATE} - - {delivery.NEW_DELIVERY_DAY} {delivery.NEW_DELIVERY} - - - checked="checked" /> -
-

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- - -
- {L_SUBMIT} - -   - -   - - {S_FORM_TOKEN} -
-
- - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_MATCHDAYS_MANAGE}

-

{L_ACP_FOOTBALL_MATCHDAYS_MANAGE_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -

{L_SELECT_LEAGUE}:

-
-
- - {S_FORM_TOKEN} -
-
- -
-
- - - {S_FORM_TOKEN} -
-
- -
-
- - - - - - - - - - - - - - {S_FORM_TOKEN} -
-
- -
-
- - - - - - - {S_FORM_TOKEN} -
-
- -

{L_MATCHDAY_DEF}

- -

{L_MATCHDAY_DEF_EXPLAIN}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_MATCHDAY}{L_MATCHDAY_NAME}{L_MATCHDAY_STATUS}{L_MATCHDAY_DELIVERY}{L_MATCHDAY_DELIVERY} 2{L_MATCHDAY_DELIVERY} 3{L_OPTIONS}{L_ACTION}
{matchdays.MATCHDAY}{matchdays.MATCHDAY_NAME}{matchdays.MATCHDAY_STATUS}{matchdays.MATCHDAY_DELIVERY}{matchdays.MATCHDAY_DELIVERY_2}{matchdays.MATCHDAY_DELIVERY_3}{L_SETTINGS}{L_DELETE}{L_DELETE}
{L_NO_MATCHDAYS_CREATED}
- -
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + + « {L_BACK} +

{L_ACP_FOOTBALL_MATCHDAYS_MANAGE}

+

{L_MATCHDAY_EDIT_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +
+ +
+ {L_MATCHDAY_DETAILS} +
+
+
{SEASON_NAME}
+
+
+
+
{LEAGUE_NAME}
+
+
+
+
{MATCHDAY}
+
+
+
+
+
+
+

{L_MATCHDAY_STATUS_EXPLAIN}
+
{MATCHDAY_STATUS}
+
+ +
+

{L_MATCHDAY_DELIVERY_EXPLAIN}
+
{L_DAY}: + {L_MONTH}: + {L_YEAR}:     + {L_TIME}: : + +
+
+
+

{L_MATCHDAY_DELIVERY2_EXPLAIN}
+
{L_DAY}: + {L_MONTH}: + {L_YEAR}:     + {L_TIME}: : + +
+
+
+

{L_MATCHDAY_DELIVERY3_EXPLAIN}
+
{L_DAY}: + {L_MONTH}: + {L_YEAR}:     + {L_TIME}: : + +
+
+ +
+

{L_MATCHDAY_DELIVERY_EXPLAIN}
+
+ {MATCHDAY_DEL1} +
+
+
+

{L_MATCHDAY_DELIVERY2_EXPLAIN}
+
+ {MATCHDAY_DEL2} +
+
+
+

{L_MATCHDAY_DELIVERY3_EXPLAIN}
+
+ {MATCHDAY_DEL3} +
+
+ + +
+

{L_MATCHDAY_MATCHES_EXPLAIN}
+
+ + + + {MATCHDAY_MATCHES} + +
+
+ + +
+ +
+ {L_SUBMIT} +   + + {S_FORM_TOKEN} +
+
+ + + « {L_BACK} +

{L_CHANGE_DELIVERY}

+

{L_CHANGE_DELIVERY_EXPLAIN}

+ +
+ + +
+ {L_DELIVERY_SET_TIME} +
+

{L_BACKWARD_DELIVERY_EXPLAIN}
+
{L_DAYS}:   + {L_HOURS}:   + {L_MINUTES}: +
+
+
+ + +

{L_UPDATE_DELIVERY}

+ +

{L_UPDATE_DELIVERY_EXPLAIN}

+

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ + + + + + + + + + + + + + + + + + + + + +
{L_MATCHDAY}{L_DELIVERY_NUMBER}{L_DELIVERY}{L_NEW_DELIVERY}{L_SELECT}
{delivery.MATCHDAY}{delivery.NUMBER}{delivery.DELIVERY_DATE_DAY} + + {delivery.DELIVERY_DATE} + + {delivery.NEW_DELIVERY_DAY} {delivery.NEW_DELIVERY} + + + checked="checked" /> +
+

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ + +
+ {L_SUBMIT} + +   + +   + + {S_FORM_TOKEN} +
+
+ + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_MATCHDAYS_MANAGE}

+

{L_ACP_FOOTBALL_MATCHDAYS_MANAGE_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +

{L_SELECT_LEAGUE}:

+
+
+ + {S_FORM_TOKEN} +
+
+ +
+
+ + + {S_FORM_TOKEN} +
+
+ +
+
+ + + + + + + + + + + + + + {S_FORM_TOKEN} +
+
+ +
+
+ + + + + + + {S_FORM_TOKEN} +
+
+ +

{L_MATCHDAY_DEF}

+ +

{L_MATCHDAY_DEF_EXPLAIN}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_MATCHDAY}{L_MATCHDAY_NAME}{L_MATCHDAY_STATUS}{L_MATCHDAY_DELIVERY}{L_MATCHDAY_DELIVERY} 2{L_MATCHDAY_DELIVERY} 3{L_OPTIONS}{L_ACTION}
{matchdays.MATCHDAY}{matchdays.MATCHDAY_NAME}{matchdays.MATCHDAY_STATUS}{matchdays.MATCHDAY_DELIVERY}{matchdays.MATCHDAY_DELIVERY_2}{matchdays.MATCHDAY_DELIVERY_3}{L_SETTINGS}{L_DELETE}{L_DELETE}
{L_NO_MATCHDAYS_CREATED}
+ +
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_matches.html b/adm/style/acp_football_matches.html index 7a1cdef..4644e17 100644 --- a/adm/style/acp_football_matches.html +++ b/adm/style/acp_football_matches.html @@ -1,205 +1,205 @@ - - - - - - « {L_BACK} -

{L_ACP_FOOTBALL_MATCHES_MANAGE}

-

{L_MATCH_EDIT_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -
- -
- {L_MATCH_DETAILS} -
-
-
{SEASON_NAME}
-
-
-
-
{LEAGUE_NAME}
-
-
-
-
{MATCHDAY_NAME}
-
-
-
-
{MATCH_NUMBER}
-
-
-
-
{L_DAY}: - {L_MONTH}: - {L_YEAR}:     - {L_TIME}: : - -
-
-
-

{L_MATCH_STATUS_EXPLAIN}
-
- - - {MATCH_STATUS} - -
-
-
-
-
{L_ODD_1}:    - {L_ODD_x}:    - {L_ODD_2}: -
-
-
-
-
-
- -
-
-
checked="checked" /> -  
-
-
-

{L_MATCH_KO_EXPLAIN}
-
checked="checked" />
-
- -
-
-
-
- -
-

{L_FORMULA_HOME_EXPLAIN}
-
-
- -
-
-
-
- -
-

{L_FORMULA_GUEST_EXPLAIN}
-
-
- - -
- -
- {L_SUBMIT} -   - - {S_FORM_TOKEN} -
-
- - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_MATCHES_MANAGE}

-

{L_ACP_FOOTBALL_MATCHES_MANAGE_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -

{L_SELECT_MATCHDAY}:

-
-
- - {S_FORM_TOKEN} -
-
-
-
- - - {S_FORM_TOKEN} -
-
-
-
- - - - {S_FORM_TOKEN} -
-
- -
-
- - - - - - - - - {S_FORM_TOKEN} -
-
-

{L_MATCHES_DEF}

- -

{L_MATCHES_DEF_EXPLAIN}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_MATCH_NUMBER}{L_MATCH_BEGIN}{L_MATCH_STATUS}{L_GROUP}{L_KO}{L_MATCH_HOME}{L_MATCH_GUEST}{L_OPTIONS}{L_ACTION}
{match.MATCH_NUMBER}{match.MATCH_BEGIN}{match.MATCH_STATUS}{match.MATCH_GROUP}{match.MATCH_KO}{match.MATCH_HOME}{match.MATCH_GUEST}{L_SETTINGS}{L_DELETE}{L_DELETE}
{L_NO_MATCHES_CREATED}
- - -
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + + « {L_BACK} +

{L_ACP_FOOTBALL_MATCHES_MANAGE}

+

{L_MATCH_EDIT_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +
+ +
+ {L_MATCH_DETAILS} +
+
+
{SEASON_NAME}
+
+
+
+
{LEAGUE_NAME}
+
+
+
+
{MATCHDAY_NAME}
+
+
+
+
{MATCH_NUMBER}
+
+
+
+
{L_DAY}: + {L_MONTH}: + {L_YEAR}:     + {L_TIME}: : + +
+
+
+

{L_MATCH_STATUS_EXPLAIN}
+
+ + + {MATCH_STATUS} + +
+
+
+
+
{L_ODD_1}:    + {L_ODD_x}:    + {L_ODD_2}: +
+
+
+
+
+
+ +
+
+
checked="checked" /> +  
+
+
+

{L_MATCH_KO_EXPLAIN}
+
checked="checked" />
+
+ +
+
+
+
+ +
+

{L_FORMULA_HOME_EXPLAIN}
+
+
+ +
+
+
+
+ +
+

{L_FORMULA_GUEST_EXPLAIN}
+
+
+ + +
+ +
+ {L_SUBMIT} +   + + {S_FORM_TOKEN} +
+
+ + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_MATCHES_MANAGE}

+

{L_ACP_FOOTBALL_MATCHES_MANAGE_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +

{L_SELECT_MATCHDAY}:

+
+
+ + {S_FORM_TOKEN} +
+
+
+
+ + + {S_FORM_TOKEN} +
+
+
+
+ + + + {S_FORM_TOKEN} +
+
+ +
+
+ + + + + + + + + {S_FORM_TOKEN} +
+
+

{L_MATCHES_DEF}

+ +

{L_MATCHES_DEF_EXPLAIN}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_MATCH_NUMBER}{L_MATCH_BEGIN}{L_MATCH_STATUS}{L_GROUP}{L_KO}{L_MATCH_HOME}{L_MATCH_GUEST}{L_OPTIONS}{L_ACTION}
{match.MATCH_NUMBER}{match.MATCH_BEGIN}{match.MATCH_STATUS}{match.MATCH_GROUP}{match.MATCH_KO}{match.MATCH_HOME}{match.MATCH_GUEST}{L_SETTINGS}{L_DELETE}{L_DELETE}
{L_NO_MATCHES_CREATED}
+ + +
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_results.html b/adm/style/acp_football_results.html index d4c21d9..91faa6c 100644 --- a/adm/style/acp_football_results.html +++ b/adm/style/acp_football_results.html @@ -1,223 +1,223 @@ - - - - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_RESULTS_MANAGE}

-

{L_ACP_FOOTBALL_RESULTS_MANAGE_EXPLAIN}

- -

{L_SELECT_MATCHDAY}:

-
-
- - {S_FORM_TOKEN} -
-
-
-
- - - {S_FORM_TOKEN} -
-
-
-
- - - - {S_FORM_TOKEN} -
-
- - -
-

{L_ADVICE}

-

{SUCCESS_MSG}

-
- - -
-
- {S_LEGEND} -

{S_TIME}

- - - -

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_SELECT}{L_MATCH_BEGIN}{L_VS}{L_RESULT} ({RESULT_EXPLAIN}){LABEL_FINALRESULT}{L_STATUS} {L_NO_VALUATION}{L_DELETE}
- - checked="checked" /> - -   - - {match.BEGIN}{match.HOME_NAME}:{match.GUEST_NAME} - - - - {match.GOALS_HOME} - - : - - - - {match.GOALS_GUEST} - - - - - - - {match.OVERTIME_HOME} - - - : - - - - - {match.OVERTIME_GUEST} - - - {match.STATUS_COLOR} - checked="checked" - onchange="document.getElementById('select_{match.NUMBER}').checked = true;" /> - - -
-

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- - -
- - - - - - - - - - - - - - - - - - - - - - - -
{L_SELECT}{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_RESULT}{L_STATUS}
- - - -   - - {extra_result.QUESTION}{extra_result.EXTRA_POINTS}{extra_result.EVALUATION} - - - - - - _{extra_result.RESULT}_ - - - - - - - _{extra_result.RESULT}_ - - - - {extra_result.RESULT} - - {extra_result.STATUS_COLOR}
- - {L_CASH_POINTS} checked="checked" /> - -
-
- {L_SUBMIT} -   - - {S_FORM_TOKEN} -
-
- - - {L_NO_MATCHES} - - - - -
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
- + + + + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_RESULTS_MANAGE}

+

{L_ACP_FOOTBALL_RESULTS_MANAGE_EXPLAIN}

+ +

{L_SELECT_MATCHDAY}:

+
+
+ + {S_FORM_TOKEN} +
+
+
+
+ + + {S_FORM_TOKEN} +
+
+
+
+ + + + {S_FORM_TOKEN} +
+
+ + +
+

{L_ADVICE}

+

{SUCCESS_MSG}

+
+ + +
+
+ {S_LEGEND} +

{S_TIME}

+ + + +

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_SELECT}{L_MATCH_BEGIN}{L_VS}{L_RESULT} ({RESULT_EXPLAIN}){LABEL_FINALRESULT}{L_STATUS} {L_NO_VALUATION}{L_DELETE}
+ + checked="checked" /> + +   + + {match.BEGIN}{match.HOME_NAME}:{match.GUEST_NAME} + + + + {match.GOALS_HOME} + + : + + + + {match.GOALS_GUEST} + + + + + + + {match.OVERTIME_HOME} + + + : + + + + + {match.OVERTIME_GUEST} + + + {match.STATUS_COLOR} + checked="checked" + onchange="document.getElementById('select_{match.NUMBER}').checked = true;" /> + + +
+

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +
{L_SELECT}{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_RESULT}{L_STATUS}
+ + + +   + + {extra_result.QUESTION}{extra_result.EXTRA_POINTS}{extra_result.EVALUATION} + + + + + + _{extra_result.RESULT}_ + + + + + + + _{extra_result.RESULT}_ + + + + {extra_result.RESULT} + + {extra_result.STATUS_COLOR}
+ + {L_CASH_POINTS} checked="checked" /> + +
+
+ {L_SUBMIT} +   + + {S_FORM_TOKEN} +
+
+ + + {L_NO_MATCHES} + + + + +
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ \ No newline at end of file diff --git a/adm/style/acp_football_seasons.html b/adm/style/acp_football_seasons.html index 3160256..14dfa4a 100644 --- a/adm/style/acp_football_seasons.html +++ b/adm/style/acp_football_seasons.html @@ -1,105 +1,105 @@ - - - - - - « {L_BACK} -

{L_ACP_FOOTBALL_SEASONS_MANAGE}

-

{L_SEASON_EDIT_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -
- -
- {L_SEASON_DETAILS} -
-
-
{SEASON} -
-
-
-

{L_SEASON_NAME_EXPLAIN}
-
-
-
-

{L_SEASON_SHORT_EXPLAIN}
-
-
-
- -
- {L_SUBMIT} -   - - - - - - {S_FORM_TOKEN} -
-
- - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_SEASONS_MANAGE}

-

{L_ACP_FOOTBALL_SEASONS_MANAGE_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -
-
- - {L_CREATE_SEASON}: - - - {S_FORM_TOKEN} -
-
-

{L_SEASON_DEF}

- -

{L_SEASON_DEF_EXPLAIN}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_SEASON}{L_SEASON_NAME}{L_SEASON_SHORT}{L_LEAGUES}{L_OPTIONS}{L_ACTION}
{seasons.SEASON}{seasons.SEASON_NAME}{seasons.SEASON_SHORT}{seasons.LEAGUES}{L_SETTINGS}{L_DELETE}{L_DELETE}
{L_NO_SEASONS_CREATED}
- -
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + + « {L_BACK} +

{L_ACP_FOOTBALL_SEASONS_MANAGE}

+

{L_SEASON_EDIT_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +
+ +
+ {L_SEASON_DETAILS} +
+
+
{SEASON} +
+
+
+

{L_SEASON_NAME_EXPLAIN}
+
+
+
+

{L_SEASON_SHORT_EXPLAIN}
+
+
+
+ +
+ {L_SUBMIT} +   + + + + + + {S_FORM_TOKEN} +
+
+ + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_SEASONS_MANAGE}

+

{L_ACP_FOOTBALL_SEASONS_MANAGE_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +
+
+ + {L_CREATE_SEASON}: + + + {S_FORM_TOKEN} +
+
+

{L_SEASON_DEF}

+ +

{L_SEASON_DEF_EXPLAIN}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_SEASON}{L_SEASON_NAME}{L_SEASON_SHORT}{L_LEAGUES}{L_OPTIONS}{L_ACTION}
{seasons.SEASON}{seasons.SEASON_NAME}{seasons.SEASON_SHORT}{seasons.LEAGUES}{L_SETTINGS}{L_DELETE}{L_DELETE}
{L_NO_SEASONS_CREATED}
+ +
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_teams.html b/adm/style/acp_football_teams.html index f76c89b..9d7f435 100644 --- a/adm/style/acp_football_teams.html +++ b/adm/style/acp_football_teams.html @@ -1,164 +1,164 @@ - - - - - - « {L_BACK} -

{L_ACP_FOOTBALL_TEAMS_MANAGE}

-

{L_TEAM_EDIT_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -
- -
- {L_TEAM_DETAILS} -
-
-
{SEASON_NAME}
-
-
-
-
{LEAGUE_NAME}
-
-
-
-
{TEAM} -
-
-
-
-
-
-
-

{L_TEAM_SHORT_EXPLAIN}
-
-
-
-

{L_TEAM_SYMBOL_EXPLAIN}
-
-    {TEAM_NAME}
-
- -
-

{L_TEAM_GROUP_EXPLAIN}
-
-
-
-

{L_TEAM_ROUND_EXPLAIN}
-
-
- - -
- -
- {L_SUBMIT} -   - - - - - - {S_FORM_TOKEN} -
-
- - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_TEAMS_MANAGE}

-

{L_ACP_FOOTBALL_TEAMS_MANAGE_EXPLAIN}

- - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -

{L_SELECT_LEAGUE}:

-
-
- - {S_FORM_TOKEN} -
-
- -
-
- - - {S_FORM_TOKEN} -
-
- -
-
- - - - - {L_ADD_TEAM}: - - - {S_FORM_TOKEN} -
-
-

{L_TEAM_DEF} {S_TEAMS}

- -

{L_TEAM_DEF_EXPLAIN}

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_TEAM}{L_TEAM_NAME}{L_TEAM_MATCHES}{L_TEAM_AWAY}{L_GROUP}{L_MATCHDAY}{L_OPTIONS}{L_ACTION}
{teams.TEAM}{teams.TEAM_NAME}{teams.TEAM_NAME}{teams.TEAM_SHORT}{teams.TEAM_MATCHES}{teams.TEAM_HOME}{teams.TEAM_GROUP}{teams.TEAM_ROUND}{L_SETTINGS}{L_DELETE}{L_DELETE}
{L_NO_TEAMS_CREATED}
- {S_MATCHES} {L_TEAM_MATCHES} - -
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + + « {L_BACK} +

{L_ACP_FOOTBALL_TEAMS_MANAGE}

+

{L_TEAM_EDIT_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +
+ +
+ {L_TEAM_DETAILS} +
+
+
{SEASON_NAME}
+
+
+
+
{LEAGUE_NAME}
+
+
+
+
{TEAM} +
+
+
+
+
+
+
+

{L_TEAM_SHORT_EXPLAIN}
+
+
+
+

{L_TEAM_SYMBOL_EXPLAIN}
+
+    {TEAM_NAME}
+
+ +
+

{L_TEAM_GROUP_EXPLAIN}
+
+
+
+

{L_TEAM_ROUND_EXPLAIN}
+
+
+ + +
+ +
+ {L_SUBMIT} +   + + + + + + {S_FORM_TOKEN} +
+
+ + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_TEAMS_MANAGE}

+

{L_ACP_FOOTBALL_TEAMS_MANAGE_EXPLAIN}

+ + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +

{L_SELECT_LEAGUE}:

+
+
+ + {S_FORM_TOKEN} +
+
+ +
+
+ + + {S_FORM_TOKEN} +
+
+ +
+
+ + + + + {L_ADD_TEAM}: + + + {S_FORM_TOKEN} +
+
+

{L_TEAM_DEF} {S_TEAMS}

+ +

{L_TEAM_DEF_EXPLAIN}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_TEAM}{L_TEAM_NAME}{L_TEAM_MATCHES}{L_TEAM_AWAY}{L_GROUP}{L_MATCHDAY}{L_OPTIONS}{L_ACTION}
{teams.TEAM}{teams.TEAM_NAME}{teams.TEAM_NAME}{teams.TEAM_SHORT}{teams.TEAM_MATCHES}{teams.TEAM_HOME}{teams.TEAM_GROUP}{teams.TEAM_ROUND}{L_SETTINGS}{L_DELETE}{L_DELETE}
{L_NO_TEAMS_CREATED}
+ {S_MATCHES} {L_TEAM_MATCHES} + +
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_update.html b/adm/style/acp_football_update.html index 8f3045d..6cde73a 100644 --- a/adm/style/acp_football_update.html +++ b/adm/style/acp_football_update.html @@ -1,430 +1,430 @@ - - - - - « {L_PREDICTION_LEAGUE} -

{L_ACP_FOOTBALL_UPDATE_MANAGE}

-

{L_ACP_FOOTBALL_UPDATE_MANAGE_EXPLAIN}

- - -
-

{L_ADVICE}

-

{SUCCESS_MSG}

-
- - -
-
- {L_SOURCE} -
-

{L_XML_SEASON_URL_EXPLAIN}
-
- DISABLED /> -   - -
{L_ALLOW_URL_FOPEN} - -
-
-
-
- - - -
-
- {L_CHOOSE_LEAGUES} -
-
-
-
- - - - -
-
- -
-
-
-
-
-
-
- -
-
- -
-
- -
-
-
- -
-
- {L_SUBMIT} - -   - -   - - {S_FORM_TOKEN} -
-
- - - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - - -
- -
- {L_TEAM_MAPPING} - {S_MISSING_TEAMS} - - - - - - - - - - - - - - - - - - - -
{L_TEAM}{L_TEAM_NAME}{L_TEAM_NAME_SHORT}{L_TEAM_MAPPING}
{teams.TEAM_ID_XML}{teams.TEAM_NAME_XML}    - {teams.TEAM_NAME_XML} - {teams.TEAM_NAME_SHORT_XML}title="{L_DUPLICATE_TEAM}" bgcolor=#ECD5D8> - -
-
-
- {L_SUBMIT} - - - - - - - - -   -   - {S_FORM_TOKEN} -
-
- - - -
-

{L_INSERT_LEAGUE}

{L_UPDATE_LEAGUE}

-
-
-
-
{S_SEASON}
-
-
-
-
{S_LEAGUE}
-
-
-
-
{S_LEAGUE_NAME}
-
-
- -
- {L_INSERT_SEASON} - - - - - - - - - - - {footb_seasons.TPL} - - -
{L_SEASON}{L_SEASON_NAME}{L_SEASON_SHORT}
-
- - - -
- {L_INSERT_LEAGUE} - - - - - - - - - - - - - - - - - {footb_leagues.TPL} - - -
{L_LEAGUE_NAME}{L_LEAGUE_SHORTCUT}{L_LEAGUE_TYPE}{L_LEAGUE_MATCHDAYS}{L_LEAGUE_MATCHES}{L_LEAGUE_POINTS_MODE}{L_LEAGUE_BET_IN_TIME}{L_BET_TYPE_KO}{L_OTHER_FIELDS}
-
- - - -
- {DO_MATCHDAYS} - -

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- - - - - - - - - - - - - - - - - - - {footb_matchdays.TPL} - - -
{L_MATCHDAY}{L_MATCHDAY_STATUS} - - - - {L_MATCHDAY_DELIVERY} - - - - {L_MATCHDAY_DELIVERY} 2 - - - - {L_MATCHDAY_DELIVERY} 3 - - - - {L_MATCHDAY_NAME} - - - - {L_MATCHES} - - - - {L_SELECT}
- -

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- -
- - - -
- {DO_TEAMS} - -

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- - - - - - - - - - - - - - - - - - {footb_teams.TPL} - - -
{L_TEAM}{L_TEAM_NAME} - - - - {L_TEAM_NAME_SHORT} - - - - {L_TEAM_SYMBOL} - - - - {L_GROUP} - - - - {L_MATCHDAY} - - - - {L_SELECT}
- -

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- -
- - - -
- {DO_MATCHES} - -

{L_UPDATE_NEG_STATUS}

-

{L_UPDATE_SAME_STATUS}

-

{L_UPDATE_ONLY_FINAL}

- -

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- - - - - - - - - - - - - - - - - - - {footb_matches.TPL} - - -
{L_MATCHDAY} - - -
- {L_MATCH_NUMBER} -
{L_MATCH_BEGIN} - - -
- {L_MATCH_OF_GROUP} - - - -
{L_MATCH_HOME} - - -
- {L_MATCH_GUEST} - - - -
{L_RESULT} - - -
-   -
{L_EXTRATIME_SHORT} - - -
-   -
{L_FORMULA} - - -
-   -
{L_STATUS} - - -
- {L_KO} -
{L_SELECT}
-   -
- -

- {L_MARK_ALL} • - {L_UNMARK_ALL} -

- -
- - - -
- {L_SUBMIT} - - - - - - -   - -   - - {S_FORM_TOKEN} -
- -
-

{L_ADVICE}

-

{L_NO_DIFFERENCES}

-
- -
- -
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + « {L_PREDICTION_LEAGUE} +

{L_ACP_FOOTBALL_UPDATE_MANAGE}

+

{L_ACP_FOOTBALL_UPDATE_MANAGE_EXPLAIN}

+ + +
+

{L_ADVICE}

+

{SUCCESS_MSG}

+
+ + +
+
+ {L_SOURCE} +
+

{L_XML_SEASON_URL_EXPLAIN}
+
+ DISABLED /> +   + +
{L_ALLOW_URL_FOPEN} + +
+
+
+
+ + + +
+
+ {L_CHOOSE_LEAGUES} +
+
+
+
+ + + + +
+
+ +
+
+
+
+
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ {L_SUBMIT} + +   + +   + + {S_FORM_TOKEN} +
+
+ + + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + + +
+ +
+ {L_TEAM_MAPPING} + {S_MISSING_TEAMS} + + + + + + + + + + + + + + + + + + + +
{L_TEAM}{L_TEAM_NAME}{L_TEAM_NAME_SHORT}{L_TEAM_MAPPING}
{teams.TEAM_ID_XML}{teams.TEAM_NAME_XML}    + {teams.TEAM_NAME_XML} + {teams.TEAM_NAME_SHORT_XML}title="{L_DUPLICATE_TEAM}" bgcolor=#ECD5D8> + +
+
+
+ {L_SUBMIT} + + + + + + + + +   +   + {S_FORM_TOKEN} +
+
+ + + +
+

{L_INSERT_LEAGUE}

{L_UPDATE_LEAGUE}

+
+
+
+
{S_SEASON}
+
+
+
+
{S_LEAGUE}
+
+
+
+
{S_LEAGUE_NAME}
+
+
+ +
+ {L_INSERT_SEASON} + + + + + + + + + + + {footb_seasons.TPL} + + +
{L_SEASON}{L_SEASON_NAME}{L_SEASON_SHORT}
+
+ + + +
+ {L_INSERT_LEAGUE} + + + + + + + + + + + + + + + + + {footb_leagues.TPL} + + +
{L_LEAGUE_NAME}{L_LEAGUE_SHORTCUT}{L_LEAGUE_TYPE}{L_LEAGUE_MATCHDAYS}{L_LEAGUE_MATCHES}{L_LEAGUE_POINTS_MODE}{L_LEAGUE_BET_IN_TIME}{L_BET_TYPE_KO}{L_OTHER_FIELDS}
+
+ + + +
+ {DO_MATCHDAYS} + +

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ + + + + + + + + + + + + + + + + + + {footb_matchdays.TPL} + + +
{L_MATCHDAY}{L_MATCHDAY_STATUS} + + + + {L_MATCHDAY_DELIVERY} + + + + {L_MATCHDAY_DELIVERY} 2 + + + + {L_MATCHDAY_DELIVERY} 3 + + + + {L_MATCHDAY_NAME} + + + + {L_MATCHES} + + + + {L_SELECT}
+ +

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ +
+ + + +
+ {DO_TEAMS} + +

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ + + + + + + + + + + + + + + + + + {footb_teams.TPL} + + +
{L_TEAM}{L_TEAM_NAME} + + + + {L_TEAM_NAME_SHORT} + + + + {L_TEAM_SYMBOL} + + + + {L_GROUP} + + + + {L_MATCHDAY} + + + + {L_SELECT}
+ +

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ +
+ + + +
+ {DO_MATCHES} + +

{L_UPDATE_NEG_STATUS}

+

{L_UPDATE_SAME_STATUS}

+

{L_UPDATE_ONLY_FINAL}

+ +

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ + + + + + + + + + + + + + + + + + + {footb_matches.TPL} + + +
{L_MATCHDAY} + + +
+ {L_MATCH_NUMBER} +
{L_MATCH_BEGIN} + + +
+ {L_MATCH_OF_GROUP} + + + +
{L_MATCH_HOME} + + +
+ {L_MATCH_GUEST} + + + +
{L_RESULT} + + +
+   +
{L_EXTRATIME_SHORT} + + +
+   +
{L_FORMULA} + + +
+   +
{L_STATUS} + + +
+ {L_KO} +
{L_SELECT}
+   +
+ +

+ {L_MARK_ALL} • + {L_UNMARK_ALL} +

+ +
+ + + +
+ {L_SUBMIT} + + + + + + +   + +   + + {S_FORM_TOKEN} +
+ +
+

{L_ADVICE}

+

{L_NO_DIFFERENCES}

+
+ +
+ +
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/acp_football_userguide.html b/adm/style/acp_football_userguide.html index dfb1282..9c7a410 100644 --- a/adm/style/acp_football_userguide.html +++ b/adm/style/acp_football_userguide.html @@ -1,44 +1,44 @@ - - - - - - « {L_PREDICTION_LEAGUE} - -
-

{L_WARNING}

-

{ERROR_MSG}

-
- - -

{L_ACP_FOOTBALL} - {L_ACP_FOOTBALL_USERGUIDE}

-

{L_ACP_FOOTBALL_USERGUIDE_EXPLAIN}

- - - - -
-

{userguide_block.BLOCK_TITLE}

- -
- - {userguide_block.userguide_row.USERGUIDE_QUESTION}
- {userguide_block.userguide_row.USERGUIDE_ANSWER}

- {ICON_BACK_TO_TOP} {L_BACK_TO_TOP} -
-
- -
- - -
-
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
+ + + + + + « {L_PREDICTION_LEAGUE} + +
+

{L_WARNING}

+

{ERROR_MSG}

+
+ + +

{L_ACP_FOOTBALL} - {L_ACP_FOOTBALL_USERGUIDE}

+

{L_ACP_FOOTBALL_USERGUIDE_EXPLAIN}

+ + + + +
+

{userguide_block.BLOCK_TITLE}

+ +
+ + {userguide_block.userguide_row.USERGUIDE_QUESTION}
+ {userguide_block.userguide_row.USERGUIDE_ANSWER}

+ {ICON_BACK_TO_TOP} {L_BACK_TO_TOP} +
+
+ +
+ + +
+
phpBB Extension - Football Prediction League - Version {S_VERSION_NO} © 2016 football
\ No newline at end of file diff --git a/adm/style/css/football_acp.css b/adm/style/css/football_acp.css index b18556a..e4fabf9 100644 --- a/adm/style/css/football_acp.css +++ b/adm/style/css/football_acp.css @@ -1,87 +1,87 @@ -/* ----------------------------------------------------------------------------------------- - * @package phpBB Extension - Football Football - * @copyright (c) 2016 football (http://football.bplaced.net) - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 - * ----------------------------------------------------------------------------------------- */ -/* Table for football data */ -/* Specific column styles */ -table.type_f thead th { font-weight:normal; text-transform:uppercase; line-height:1.3em; padding:0 4px 2px 4px; } -table.type_f thead th span { padding-left:7px; } -table.type_f tfoot td { - padding: 3px 4px; - color: #FFFFFF; - background: #70AED3 url("../images/gradient2b.gif") bottom left repeat-x; - border-bottom: 1px solid #6DACD2; - border-top: 1px solid #327AA5; - text-align: left; - font-size: 0.75em; - text-transform: uppercase; -} - -table.type_f tbody tr:hover, -table.type_f tbody tr.hover { - background-color: #FFFFFF; color: #000000; -} -table.type_f body td { padding: 1px 2px; border-top: 1px solid #FAFAFA; } -table.type_f tbody th { padding:1px 2px; border-top: 1px solid #000000; background-color: #BFC1CF; } -table.type_f tbody tr { border: 1px solid #cfcfcf; } -th.td_tendency { text-align: center; padding: 4px 2px 0 2px; font-weight: bold; } -th.td_pts_total { text-align: right; padding: 4px 4px 0 2px; } -td.td_rank { text-align: right; } -td.td_group { text-align: center; } -td.td_hits { text-align: center; } -td.td_wins { text-align: right; padding: 0 2px 0 4px; } -td.td_match_no { text-align: right; } -td.td_logo { text-align: center; } -td.td_team { text-align: left; padding: 0 1em 0 2px; } -td.td_team_home { text-align: right; width: 155px; } -td.td_team_guest { text-align: left; width: 155px; } -td.td_vs { text-align: center; max-width: 1em; padding: 0; } -td.td_goals_home { text-align: right; max-width: 3em; padding: 0;} -td.td_goals_guest { text-align: left; max-width: 3em; padding: 0; white-space: nowrap;} -td.td_pts { text-align: right; padding: 0 2px 0 2px; } -td.td_button { text-align: right; padding-right: 4px; } -td.td_result { text-align: center; } -td.td_season { text-align: center; } -td.td_league { text-align: center; } -td.td_pts_total { text-align: right; padding: 0 4px 0 2px; } -td.td_points { text-align: right; padding: 0 2em 0 2px; } -td.td_fp { text-align: center; } -td.td_matches { text-align: center; } -td.td_diff { text-align: right; } -td.td_counter { text-align: right; } -td.td_name { text-align: left; } - -table.rank td.color_finally, table.football .color_finally, .color_finally , table.football .match_win, .match_win { - font-weight: bold; - color: #00AA00; -} - -table.rank td.color_provisionally, table.football .color_provisionally, .color_provisionally , table.football .match_lost, .match_lost { - font-weight: bold; - color: #AA0000; -} - -table.football .match_draw, .match_draw { - font-weight: bold; - color: #6A6A6A; -} - -table.rank td.color_not_rated, table.football .color_not_rated, .color_not_rated { - font-weight: bold; - color: purple; -} - -/* Background colors where the tables iterate between two colors or mark user*/ -.row_light { background-color: #e1ebf2; } -.row_dark { background-color: #cadceb; } -.row_user { background-color: #99CC99; } -.row_group td { background-color: #12A3EB; color: #FFFFFF !important; } -.row_result { background-color: #BFC1CF; } -.row_result td { padding: 1px 2px; } - - -.message { - font-weight: bold; - color: #AA0000; -} +/* ----------------------------------------------------------------------------------------- + * @package phpBB Extension - Football Football + * @copyright (c) 2016 football (http://football.bplaced.net) + * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 + * ----------------------------------------------------------------------------------------- */ +/* Table for football data */ +/* Specific column styles */ +table.type_f thead th { font-weight:normal; text-transform:uppercase; line-height:1.3em; padding:0 4px 2px 4px; } +table.type_f thead th span { padding-left:7px; } +table.type_f tfoot td { + padding: 3px 4px; + color: #FFFFFF; + background: #70AED3 url("../images/gradient2b.gif") bottom left repeat-x; + border-bottom: 1px solid #6DACD2; + border-top: 1px solid #327AA5; + text-align: left; + font-size: 0.75em; + text-transform: uppercase; +} + +table.type_f tbody tr:hover, +table.type_f tbody tr.hover { + background-color: #FFFFFF; color: #000000; +} +table.type_f body td { padding: 1px 2px; border-top: 1px solid #FAFAFA; } +table.type_f tbody th { padding:1px 2px; border-top: 1px solid #000000; background-color: #BFC1CF; } +table.type_f tbody tr { border: 1px solid #cfcfcf; } +th.td_tendency { text-align: center; padding: 4px 2px 0 2px; font-weight: bold; } +th.td_pts_total { text-align: right; padding: 4px 4px 0 2px; } +td.td_rank { text-align: right; } +td.td_group { text-align: center; } +td.td_hits { text-align: center; } +td.td_wins { text-align: right; padding: 0 2px 0 4px; } +td.td_match_no { text-align: right; } +td.td_logo { text-align: center; } +td.td_team { text-align: left; padding: 0 1em 0 2px; } +td.td_team_home { text-align: right; width: 155px; } +td.td_team_guest { text-align: left; width: 155px; } +td.td_vs { text-align: center; max-width: 1em; padding: 0; } +td.td_goals_home { text-align: right; max-width: 3em; padding: 0;} +td.td_goals_guest { text-align: left; max-width: 3em; padding: 0; white-space: nowrap;} +td.td_pts { text-align: right; padding: 0 2px 0 2px; } +td.td_button { text-align: right; padding-right: 4px; } +td.td_result { text-align: center; } +td.td_season { text-align: center; } +td.td_league { text-align: center; } +td.td_pts_total { text-align: right; padding: 0 4px 0 2px; } +td.td_points { text-align: right; padding: 0 2em 0 2px; } +td.td_fp { text-align: center; } +td.td_matches { text-align: center; } +td.td_diff { text-align: right; } +td.td_counter { text-align: right; } +td.td_name { text-align: left; } + +table.rank td.color_finally, table.football .color_finally, .color_finally , table.football .match_win, .match_win { + font-weight: bold; + color: #00AA00; +} + +table.rank td.color_provisionally, table.football .color_provisionally, .color_provisionally , table.football .match_lost, .match_lost { + font-weight: bold; + color: #AA0000; +} + +table.football .match_draw, .match_draw { + font-weight: bold; + color: #6A6A6A; +} + +table.rank td.color_not_rated, table.football .color_not_rated, .color_not_rated { + font-weight: bold; + color: purple; +} + +/* Background colors where the tables iterate between two colors or mark user*/ +.row_light { background-color: #e1ebf2; } +.row_dark { background-color: #cadceb; } +.row_user { background-color: #99CC99; } +.row_group td { background-color: #12A3EB; color: #FFFFFF !important; } +.row_result { background-color: #BFC1CF; } +.row_result td { padding: 1px 2px; } + + +.message { + font-weight: bold; + color: #AA0000; +} diff --git a/adm/style/frame_results.html b/adm/style/frame_results.html index 79a8292..f1bd90d 100644 --- a/adm/style/frame_results.html +++ b/adm/style/frame_results.html @@ -1,13 +1,13 @@ - -Diese Datei existiert doppelt: Einmal im fooball\football\styles\prsilver\template und einmal im fooball\football\adm\style Ordner -Mit Hilfe dieser Datei werden Fussballergebnisse zum Abgleich und schnelleren Erfassung von externen Seiten, -wie z.B. den Weltfussball.de Torverteiler, eingebunden. -Wenn ihr einen Weltfussball.de Account habt, könnt ihr dort in der Community einen Torverteiler erstellen und den Code hier -unter der entsprechenden Liganummer reinhängen (also 999999 mit der Liganummer bzw. wfb_tv_id ersetzen). -Der Frame wird dann bei der Ergebnisseingabe in der Liga angezeigt, wenn der Spieltag editierbar ist. - - - -
Der Torverteiler - präsentiert von weltfussball.de 
Alles über Fußball oder direkt zur Bundesliga 
- - + +Diese Datei existiert doppelt: Einmal im fooball\football\styles\prsilver\template und einmal im fooball\football\adm\style Ordner +Mit Hilfe dieser Datei werden Fussballergebnisse zum Abgleich und schnelleren Erfassung von externen Seiten, +wie z.B. den Weltfussball.de Torverteiler, eingebunden. +Wenn ihr einen Weltfussball.de Account habt, könnt ihr dort in der Community einen Torverteiler erstellen und den Code hier +unter der entsprechenden Liganummer reinhängen (also 999999 mit der Liganummer bzw. wfb_tv_id ersetzen). +Der Frame wird dann bei der Ergebnisseingabe in der Liga angezeigt, wenn der Spieltag editierbar ist. + + + +
Der Torverteiler - präsentiert von weltfussball.de 
Alles über Fußball oder direkt zur Bundesliga 
+ + diff --git a/block/all_bets.php b/block/all_bets.php index edc3445..49b2f13 100644 --- a/block/all_bets.php +++ b/block/all_bets.php @@ -1,495 +1,494 @@ -request->variable('start', 0); -$matches_on_matchday = false; - -$sql = 'SELECT COUNT(DISTINCT user_id) AS num_users - FROM ' . FOOTB_BETS . " - WHERE season = $season AND league = $league"; - -$result = $db->sql_query($sql); -$total_users = (int) $db->sql_fetchfield('num_users'); -$db->sql_freeresult($result); - -$sql = "SELECT - m.match_no, - m.status, - m.formula_home, - m.formula_guest, - t1.team_name_short AS home_name, - t2.team_name_short AS guest_name, - t1.team_id AS home_id, - t2.team_id AS guest_id, - m.goals_home, - m.goals_guest, - SUM(IF(b.goals_home + 0 > b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS home, - SUM(IF(b.goals_home = b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS draw, - SUM(IF(b.goals_home + 0 < b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS guest - FROM " . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_TEAMS . ' AS t1 ON (t1.season = m.season AND t1.league = m.league AND t1.team_id = m.team_id_home) - LEFT JOIN ' . FOOTB_TEAMS . ' AS t2 ON (t2.season = m.season AND t2.league = m.league AND t2.team_id = m.team_id_guest) - LEFT JOIN ' . FOOTB_BETS . " AS b ON(b.season = m.season AND b.league = m.league AND b.match_no = m.match_no) - WHERE m.season = $season - AND m.league = $league - AND m.matchday = $matchday - GROUP BY m.match_no - ORDER BY m.match_datetime ASC, m.match_no ASC"; - -$result = $db->sql_query($sql); -$matches = $db->sql_fetchrowset($result); -$db->sql_freeresult($result); -$count_matches = sizeof($matches); - -if ($user->data['football_mobile']) -{ - if ($count_matches > 3) - { - $split_after = 3; - $splits = ceil($count_matches / 3); - } - else - { - $split_after = $count_matches; - $splits = 1; - } -} -else -{ - if ($count_matches > 11) - { - $split_after = 8; - $splits = ceil($count_matches / 8); - } - else - { - $split_after = $count_matches; - $splits = 1; - } -} - -// Make sure $start is set to the last page if it exceeds the amount -if ($start < 0 || $start >= $total_users) -{ - $start = ($start < 0) ? 0 : floor(($total_users - 1) / $config['football_users_per_page']) * $config['football_users_per_page']; -} -else -{ - $start = floor($start / $config['football_users_per_page']) * $config['football_users_per_page']; -} - -$sql_start = $start * $count_matches; -$sql_limit = $config['football_users_per_page'] * $count_matches; - -// If we've got a hightlight set pass it on to pagination. -// handle pagination. -$base_url = $this->helper->route('football_main_controller', array('side' => 'all_bets', 's' => $season, 'l' => $league, 'm' => $matchday)); -$pagination = $phpbb_container->get('pagination'); -if ($user->data['football_mobile']) -{ - $sql_start = 0; - $sql_limit = 99999; - - $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $sql_limit, $start); -} -else -{ - $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); -} - -$bet_line = array(); -if ($count_matches > 0) -{ - $matches_on_matchday = true; - - $sql = "SELECT - u.user_id, - u.username, - m.status, - b.goals_home AS bet_home, - b.goals_guest AS bet_guest, - " . select_points() . ' - FROM ' . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_BETS . ' AS b ON (b.season = m.season AND b.league = m.league AND b.match_no = m.match_no) - LEFT JOIN ' . USERS_TABLE . " AS u ON (u.user_id = b.user_id) - WHERE m.season = $season - AND m.league = $league - AND m.matchday = $matchday - ORDER BY LOWER(u.username) ASC, m.match_datetime ASC, m.match_no ASC"; - - $result = $db->sql_query_limit($sql, $sql_limit, $sql_start); - $user_bets = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - $bet_index = 0; - $split_index = 0; - foreach ($user_bets AS $user_bet) - { - if ($bet_index == $count_matches) - { - $bet_index = 0; - $split_index = 0; - } - if (!($bet_index % $split_after)) - { - $split_index++; - } - $sum_total[$user_bet['username']] = 0; - $bet_line[$split_index][] = $user_bet; - $bet_index++; - } -} -$match_index = 0; -$last_match_index = 0; -$split_index = 0; -$matchday_sum_total = 0; -$colorstyle_total = ' color_finally'; -foreach ($matches AS $match) -{ - if (!($match_index % $split_after)) - { - if ($match_index > 0) - { - $total = 0; - $count_user = 0; - $bet_index = 0; - $last_match_index = 0; - foreach ($bet_line[$split_index] AS $user_bet) - { - if ($bet_index == 0) - { - $count_user++; - $row_class = (!($count_user % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - if ($user_bet['user_id'] == $user->data['user_id']) - { - $row_class = 'bg3 row_user'; - } - $template->assign_block_vars('match_panel.user_row', array( - 'ROW_CLASS' => $row_class, - 'USER_NAME' => $user_bet['username'], - ) - ); - $total = 0; - } - $bet_index++; - $total += ($user_bet['points'] == '') ? 0 : $user_bet['points']; - if ($user_bet['status'] < 3) - { - $colorstyle_total = ' color_provisionally'; - } - if ($user_bet['status'] < 1 && !$config['football_view_bets']) - { - // hide bets - $bet_home = ($user_bet['bet_home'] == '') ? ' ' : '?'; - $bet_guest = ($user_bet['bet_guest'] == '') ? ' ' : '?'; - } - else - { - $bet_home = $user_bet['bet_home']; - $bet_guest = $user_bet['bet_guest']; - } - - $colorstyle_bet = color_style($user_bet['status']); - $template->assign_block_vars('match_panel.user_row.bet', array( - 'BET' => $bet_home. ':'. $bet_guest, - 'COLOR_STYLE' => $colorstyle_bet, - 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], - ) - ); - - if ($bet_index == $split_after) - { - $sum_total[$user_bet['username']] += $total; - $matchday_sum_total += $total; - $bet_index = 0; - } - } - - $template->assign_block_vars('match_panel.tendency_footer', array( - 'S_TOTAL' => false, - ) - ); - foreach ($matches_tendency AS $match_tendency) - { - $template->assign_block_vars('match_panel.tendency_footer.tendency', array( - 'TENDENCY' => $match_tendency, - ) - ); - } - } - $matches_tendency = array(); - $split_index++; - if ($split_index == $splits) - { - $display_total = true; - } - else - { - $display_total = false; - } - $template->assign_block_vars('match_panel', array( - 'S_TOTAL' => $display_total, - ) - ); - } - if (0 == $match['home_id']) - { - $home_info = get_team($season, $league, $match['match_no'], 'team_id_home', $match['formula_home']); - $home_in_array = explode("#",$home_info); - $homename = $home_in_array[3]; - } - else - { - $homename = $match['home_name']; - } - if (0 == $match['guest_id']) - { - $guest_info = get_team($season, $league, $match['match_no'], 'team_id_guest', $match['formula_guest']); - $guest_in_array = explode("#",$guest_info); - $guestname = $guest_in_array[3]; - } - else - { - $guestname = $match['guest_name']; - } - $colorstyle_match = color_style($match['status']); - $template->assign_block_vars('match_panel.match_entry', array( - 'HOME_NAME' => $homename, - 'GUEST_NAME' => $guestname, - 'RESULT' => $match['goals_home']. ':'.$match['goals_guest'], - 'COLOR_STYLE' => $colorstyle_match, - ) - ); - if ($match['status'] < 1 && !$config['football_view_tendencies']) - { - // hide tendencies - $matches_tendency[] = '?-?-?'; - } - else - { - $matches_tendency[] = $match['home']. '-'.$match['draw']. '-'.$match['guest']; - } - $match_index++; - $last_match_index++; -} -if ($count_matches > 0) -{ - $total = 0; - $count_user = 0; - $bet_index = 0; - foreach ($bet_line[$split_index] AS $user_bet) - { - if ($bet_index == 0) - { - $count_user++; - $row_class = (!($count_user % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - if ($user_bet['user_id'] == $user->data['user_id']) - { - $row_class = 'bg3 row_user'; - } - $template->assign_block_vars('match_panel.user_row', array( - 'ROW_CLASS' => $row_class, - 'USER_NAME' => $user_bet['username'], - ) - ); - $total = 0; - } - $bet_index++; - $total += ($user_bet['points'] == '') ? 0 : $user_bet['points']; - if ($user_bet['status'] < 3) - { - $colorstyle_total = ' color_provisionally'; - } - if ($user_bet['status'] < 1 && !$config['football_view_bets']) - { - // hide bets - $bet_home = ($user_bet['bet_home'] == '') ? '' : '?'; - $bet_guest = ($user_bet['bet_guest'] == '') ? '' : '?'; - } - else - { - $bet_home = $user_bet['bet_home']; - $bet_guest = $user_bet['bet_guest']; - } - - $colorstyle_bet = color_style($user_bet['status']); - $template->assign_block_vars('match_panel.user_row.bet', array( - 'BET' => $bet_home. ':'. $bet_guest, - 'COLOR_STYLE' => $colorstyle_bet, - 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], - ) - ); - - if ($bet_index == $last_match_index) - { - $sum_total[$user_bet['username']] += $total; - $matchday_sum_total += $total; - $template->assign_block_vars('match_panel.user_row.points', array( - 'COLOR_STYLE' => $colorstyle_total, - 'POINTS_TOTAL' => $sum_total[$user_bet['username']], - ) - ); - $bet_index = 0; - } - } - - $template->assign_block_vars('match_panel.tendency_footer', array( - 'S_TOTAL' => true, - 'COLOR_STYLE' => $colorstyle_total, //currently ignored - 'SUMTOTAL' => $matchday_sum_total, - ) - ); - foreach ($matches_tendency AS $match_tendency) - { - $template->assign_block_vars('match_panel.tendency_footer.tendency', array( - 'TENDENCY' => $match_tendency, - ) - ); - } -} - -//extra bets -// Calculate extra bets of matchday -$sql_start = $start; -$sql_limit = $config['football_users_per_page']; -$sql = "SELECT e.*, - t1.team_name AS result_team - FROM " . FOOTB_EXTRA . ' AS e - LEFT JOIN ' . FOOTB_TEAMS . " AS t1 ON (t1.season = e.season AND t1.league = e.league AND t1.team_id = e.result) - WHERE e.season = $season - AND e.league = $league - AND (e.matchday = $matchday OR e.matchday_eval = $matchday) - ORDER BY e.extra_no ASC"; - -$result = $db->sql_query($sql); -while ($row = $db->sql_fetchrow($result)) -{ - $extra_no = $row['extra_no']; - switch($row['question_type']) - { - case '1': - { - $display_type = 1; - $eval_title = sprintf($user->lang['EXTRA_HIT']); - } - break; - case '2': - { - $display_type = 1; - $eval_title = sprintf($user->lang['EXTRA_MULTI_HIT']); - } - break; - case '3': - { - $display_type = 2; - $eval_title = sprintf($user->lang['EXTRA_HIT']); - } - break; - case '4': - { - $display_type = 2; - $eval_title = sprintf($user->lang['EXTRA_MULTI_HIT']); - } - break; - case '5': - { - $display_type = 2; - $eval_title = sprintf($user->lang['EXTRA_DIFFERENCE']); - } - break; - default : - { - $display_type = 2; - $eval_title = ''; - } - break; - } - $extra_colorstyle = color_style($row['extra_status']); - - $template->assign_block_vars('extra_panel', array( - 'QUESTION' => $row['question'], - 'RESULT' => ($display_type == 1) ? $row['result_team'] : $row['result'], - 'POINTS' => $row['extra_points'], - 'EVALUATION' => ($row['matchday'] == $row['matchday_eval']) ? sprintf($user->lang['MATCHDAY']) : sprintf($user->lang['TOTAL']), - 'EVALUATION_TITLE' => $eval_title, - 'COLOR_STYLE' => $extra_colorstyle, - ) - ); - - // Get all extra bets of matchday - $bet_number = 0; - $sql = "SELECT u.user_id, - u.username, - e.*, - eb.bet, - eb.bet_points, - t2.team_name AS bet_team - FROM " . FOOTB_BETS . ' AS b - LEFT JOIN ' . USERS_TABLE . ' AS u ON (u.user_id = b.user_id) - LEFT JOIN ' . FOOTB_EXTRA . " AS e ON (e.season = b.season AND e.league = b.league AND (e.matchday = $matchday OR e.matchday_eval = $matchday) AND e.extra_no = $extra_no) - LEFT JOIN " . FOOTB_EXTRA_BETS . " AS eb ON (eb.season = b.season AND eb.league = b.league AND eb.extra_no = $extra_no AND eb.user_id = b.user_id) - LEFT JOIN " . FOOTB_TEAMS . " AS t2 ON (t2.season = b.season AND t2.league = b.league AND t2.team_id = eb.bet) - WHERE b.season = $season - AND b.league = $league - AND b.match_no = 1 - GROUP by b.user_id - ORDER BY LOWER(u.username) ASC"; - - $result_bet = $db->sql_query_limit($sql, $sql_limit, $sql_start); - - while ($user_row = $db->sql_fetchrow($result_bet)) - { - $bet_number++ ; - $row_class = (!($bet_number % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - if ($user_row['user_id'] == $user->data['user_id']) - { - $row_class = 'bg3 row_user'; - } - - if ($user_row['extra_status'] < 1 && !$config['football_view_bets']) - { - // hide bets - $bet = ($user_row['bet'] == '') ? ' ' : '?'; - $bet_team = ($user_row['bet_team'] == NULL) ? ' ' : '?'; - } - else - { - $bet = ($user_row['bet'] == '') ? ' ' : $user_row['bet']; - $bet_team = ($user_row['bet_team'] == NULL) ? ' ' : $user_row['bet_team']; - } - - - $template->assign_block_vars('extra_panel.user_row', array( - 'ROW_CLASS' => $row_class, - 'USER_NAME' => $user_row['username'], - 'BET' => ($display_type == 1) ? $bet_team : $bet, - 'BET_POINTS' => $user_row['bet_points'], - 'COLOR_STYLE' => $extra_colorstyle, - ) - ); - } - $db->sql_freeresult($result_bet); -} -$db->sql_freeresult($result); - -$sidename = sprintf($user->lang['ALL_BETS']); -$template->assign_vars(array( - 'S_DISPLAY_ALL_BETS' => true, - 'S_SIDENAME' => $sidename, - 'S_MATCHES_ON_MATCHDAY' => $matches_on_matchday, - 'S_SPALTEN' => ($count_matches * 2) + 2, - 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), - 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), - ) -); -?> \ No newline at end of file +request->variable('start', 0); +$matches_on_matchday = false; + +$sql = 'SELECT COUNT(DISTINCT user_id) AS num_users + FROM ' . FOOTB_BETS . " + WHERE season = $season AND league = $league"; + +$result = $db->sql_query($sql); +$total_users = (int) $db->sql_fetchfield('num_users'); +$db->sql_freeresult($result); + +$sql = "SELECT + m.match_no, + m.status, + m.formula_home, + m.formula_guest, + t1.team_name_short AS home_name, + t2.team_name_short AS guest_name, + t1.team_id AS home_id, + t2.team_id AS guest_id, + m.goals_home, + m.goals_guest, + SUM(IF(b.goals_home + 0 > b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS home, + SUM(IF(b.goals_home = b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS draw, + SUM(IF(b.goals_home + 0 < b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS guest + FROM " . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_TEAMS . ' AS t1 ON (t1.season = m.season AND t1.league = m.league AND t1.team_id = m.team_id_home) + LEFT JOIN ' . FOOTB_TEAMS . ' AS t2 ON (t2.season = m.season AND t2.league = m.league AND t2.team_id = m.team_id_guest) + LEFT JOIN ' . FOOTB_BETS . " AS b ON(b.season = m.season AND b.league = m.league AND b.match_no = m.match_no) + WHERE m.season = $season + AND m.league = $league + AND m.matchday = $matchday + GROUP BY m.match_no + ORDER BY m.match_datetime ASC, m.match_no ASC"; + +$result = $db->sql_query($sql); +$matches = $db->sql_fetchrowset($result); +$db->sql_freeresult($result); +$count_matches = sizeof($matches); + +if ($user->data['football_mobile']) +{ + if ($count_matches > 3) + { + $split_after = 3; + $splits = ceil($count_matches / 3); + } + else + { + $split_after = $count_matches; + $splits = 1; + } +} +else +{ + if ($count_matches > 11) + { + $split_after = 8; + $splits = ceil($count_matches / 8); + } + else + { + $split_after = $count_matches; + $splits = 1; + } +} + +// Make sure $start is set to the last page if it exceeds the amount +if ($start < 0 || $start >= $total_users) +{ + $start = ($start < 0) ? 0 : floor(($total_users - 1) / $config['football_users_per_page']) * $config['football_users_per_page']; +} +else +{ + $start = floor($start / $config['football_users_per_page']) * $config['football_users_per_page']; +} + +$sql_start = $start * $count_matches; +$sql_limit = $config['football_users_per_page'] * $count_matches; + +// If we've got a hightlight set pass it on to pagination. +// handle pagination. +$base_url = $this->helper->route('football_football_controller', array('side' => 'all_bets', 's' => $season, 'l' => $league, 'm' => $matchday)); +$pagination = $phpbb_container->get('pagination'); +if ($user->data['football_mobile']) +{ + $sql_start = 0; + $sql_limit = 99999; + + $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $sql_limit, $start); +} +else +{ + $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); +} + +$bet_line = array(); +if ($count_matches > 0) +{ + $matches_on_matchday = true; + + $sql = "SELECT + u.user_id, + u.username, + m.status, + b.goals_home AS bet_home, + b.goals_guest AS bet_guest, + " . select_points() . ' + FROM ' . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_BETS . ' AS b ON (b.season = m.season AND b.league = m.league AND b.match_no = m.match_no) + LEFT JOIN ' . USERS_TABLE . " AS u ON (u.user_id = b.user_id) + WHERE m.season = $season + AND m.league = $league + AND m.matchday = $matchday + ORDER BY LOWER(u.username) ASC, m.match_datetime ASC, m.match_no ASC"; + + $result = $db->sql_query_limit($sql, $sql_limit, $sql_start); + $user_bets = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + $bet_index = 0; + $split_index = 0; + foreach ($user_bets AS $user_bet) + { + if ($bet_index == $count_matches) + { + $bet_index = 0; + $split_index = 0; + } + if (!($bet_index % $split_after)) + { + $split_index++; + } + $sum_total[$user_bet['username']] = 0; + $bet_line[$split_index][] = $user_bet; + $bet_index++; + } +} +$match_index = 0; +$last_match_index = 0; +$split_index = 0; +$matchday_sum_total = 0; +$colorstyle_total = ' color_finally'; +foreach ($matches AS $match) +{ + if (!($match_index % $split_after)) + { + if ($match_index > 0) + { + $total = 0; + $count_user = 0; + $bet_index = 0; + $last_match_index = 0; + foreach ($bet_line[$split_index] AS $user_bet) + { + if ($bet_index == 0) + { + $count_user++; + $row_class = (!($count_user % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + if ($user_bet['user_id'] == $user->data['user_id']) + { + $row_class = 'bg3 row_user'; + } + $template->assign_block_vars('match_panel.user_row', array( + 'ROW_CLASS' => $row_class, + 'USER_NAME' => $user_bet['username'], + ) + ); + $total = 0; + } + $bet_index++; + $total += ($user_bet['points'] == '') ? 0 : $user_bet['points']; + if ($user_bet['status'] < 3) + { + $colorstyle_total = ' color_provisionally'; + } + if ($user_bet['status'] < 1 && !$config['football_view_bets']) + { + // hide bets + $bet_home = ($user_bet['bet_home'] == '') ? ' ' : '?'; + $bet_guest = ($user_bet['bet_guest'] == '') ? ' ' : '?'; + } + else + { + $bet_home = $user_bet['bet_home']; + $bet_guest = $user_bet['bet_guest']; + } + + $colorstyle_bet = color_style($user_bet['status']); + $template->assign_block_vars('match_panel.user_row.bet', array( + 'BET' => $bet_home. ':'. $bet_guest, + 'COLOR_STYLE' => $colorstyle_bet, + 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], + ) + ); + + if ($bet_index == $split_after) + { + $sum_total[$user_bet['username']] += $total; + $matchday_sum_total += $total; + $bet_index = 0; + } + } + + $template->assign_block_vars('match_panel.tendency_footer', array( + 'S_TOTAL' => false, + ) + ); + foreach ($matches_tendency AS $match_tendency) + { + $template->assign_block_vars('match_panel.tendency_footer.tendency', array( + 'TENDENCY' => $match_tendency, + ) + ); + } + } + $matches_tendency = array(); + $split_index++; + if ($split_index == $splits) + { + $display_total = true; + } + else + { + $display_total = false; + } + $template->assign_block_vars('match_panel', array( + 'S_TOTAL' => $display_total, + ) + ); + } + if (0 == $match['home_id']) + { + $home_info = get_team($season, $league, $match['match_no'], 'team_id_home', $match['formula_home']); + $home_in_array = explode("#",$home_info); + $homename = $home_in_array[3]; + } + else + { + $homename = $match['home_name']; + } + if (0 == $match['guest_id']) + { + $guest_info = get_team($season, $league, $match['match_no'], 'team_id_guest', $match['formula_guest']); + $guest_in_array = explode("#",$guest_info); + $guestname = $guest_in_array[3]; + } + else + { + $guestname = $match['guest_name']; + } + $colorstyle_match = color_style($match['status']); + $template->assign_block_vars('match_panel.match_entry', array( + 'HOME_NAME' => $homename, + 'GUEST_NAME' => $guestname, + 'RESULT' => $match['goals_home']. ':'.$match['goals_guest'], + 'COLOR_STYLE' => $colorstyle_match, + ) + ); + if ($match['status'] < 1 && !$config['football_view_tendencies']) + { + // hide tendencies + $matches_tendency[] = '?-?-?'; + } + else + { + $matches_tendency[] = $match['home']. '-'.$match['draw']. '-'.$match['guest']; + } + $match_index++; + $last_match_index++; +} +if ($count_matches > 0) +{ + $total = 0; + $count_user = 0; + $bet_index = 0; + foreach ($bet_line[$split_index] AS $user_bet) + { + if ($bet_index == 0) + { + $count_user++; + $row_class = (!($count_user % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + if ($user_bet['user_id'] == $user->data['user_id']) + { + $row_class = 'bg3 row_user'; + } + $template->assign_block_vars('match_panel.user_row', array( + 'ROW_CLASS' => $row_class, + 'USER_NAME' => $user_bet['username'], + ) + ); + $total = 0; + } + $bet_index++; + $total += ($user_bet['points'] == '') ? 0 : $user_bet['points']; + if ($user_bet['status'] < 3) + { + $colorstyle_total = ' color_provisionally'; + } + if ($user_bet['status'] < 1 && !$config['football_view_bets']) + { + // hide bets + $bet_home = ($user_bet['bet_home'] == '') ? '' : '?'; + $bet_guest = ($user_bet['bet_guest'] == '') ? '' : '?'; + } + else + { + $bet_home = $user_bet['bet_home']; + $bet_guest = $user_bet['bet_guest']; + } + + $colorstyle_bet = color_style($user_bet['status']); + $template->assign_block_vars('match_panel.user_row.bet', array( + 'BET' => $bet_home. ':'. $bet_guest, + 'COLOR_STYLE' => $colorstyle_bet, + 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], + ) + ); + + if ($bet_index == $last_match_index) + { + $sum_total[$user_bet['username']] += $total; + $matchday_sum_total += $total; + $template->assign_block_vars('match_panel.user_row.points', array( + 'COLOR_STYLE' => $colorstyle_total, + 'POINTS_TOTAL' => $sum_total[$user_bet['username']], + ) + ); + $bet_index = 0; + } + } + + $template->assign_block_vars('match_panel.tendency_footer', array( + 'S_TOTAL' => true, + 'COLOR_STYLE' => $colorstyle_total, //currently ignored + 'SUMTOTAL' => $matchday_sum_total, + ) + ); + foreach ($matches_tendency AS $match_tendency) + { + $template->assign_block_vars('match_panel.tendency_footer.tendency', array( + 'TENDENCY' => $match_tendency, + ) + ); + } +} + +//extra bets +// Calculate extra bets of matchday +$sql_start = $start; +$sql_limit = $config['football_users_per_page']; +$sql = "SELECT e.*, + t1.team_name AS result_team + FROM " . FOOTB_EXTRA . ' AS e + LEFT JOIN ' . FOOTB_TEAMS . " AS t1 ON (t1.season = e.season AND t1.league = e.league AND t1.team_id = e.result) + WHERE e.season = $season + AND e.league = $league + AND (e.matchday = $matchday OR e.matchday_eval = $matchday) + ORDER BY e.extra_no ASC"; + +$result = $db->sql_query($sql); +while ($row = $db->sql_fetchrow($result)) +{ + $extra_no = $row['extra_no']; + switch($row['question_type']) + { + case '1': + { + $display_type = 1; + $eval_title = sprintf($user->lang['EXTRA_HIT']); + } + break; + case '2': + { + $display_type = 1; + $eval_title = sprintf($user->lang['EXTRA_MULTI_HIT']); + } + break; + case '3': + { + $display_type = 2; + $eval_title = sprintf($user->lang['EXTRA_HIT']); + } + break; + case '4': + { + $display_type = 2; + $eval_title = sprintf($user->lang['EXTRA_MULTI_HIT']); + } + break; + case '5': + { + $display_type = 2; + $eval_title = sprintf($user->lang['EXTRA_DIFFERENCE']); + } + break; + default : + { + $display_type = 2; + $eval_title = ''; + } + break; + } + $extra_colorstyle = color_style($row['extra_status']); + + $template->assign_block_vars('extra_panel', array( + 'QUESTION' => $row['question'], + 'RESULT' => ($display_type == 1) ? $row['result_team'] : $row['result'], + 'POINTS' => $row['extra_points'], + 'EVALUATION' => ($row['matchday'] == $row['matchday_eval']) ? sprintf($user->lang['MATCHDAY']) : sprintf($user->lang['TOTAL']), + 'EVALUATION_TITLE' => $eval_title, + 'COLOR_STYLE' => $extra_colorstyle, + ) + ); + + // Get all extra bets of matchday + $bet_number = 0; + $sql = "SELECT u.user_id, + u.username, + e.*, + eb.bet, + eb.bet_points, + t2.team_name AS bet_team + FROM " . FOOTB_BETS . ' AS b + LEFT JOIN ' . USERS_TABLE . ' AS u ON (u.user_id = b.user_id) + LEFT JOIN ' . FOOTB_EXTRA . " AS e ON (e.season = b.season AND e.league = b.league AND (e.matchday = $matchday OR e.matchday_eval = $matchday) AND e.extra_no = $extra_no) + LEFT JOIN " . FOOTB_EXTRA_BETS . " AS eb ON (eb.season = b.season AND eb.league = b.league AND eb.extra_no = $extra_no AND eb.user_id = b.user_id) + LEFT JOIN " . FOOTB_TEAMS . " AS t2 ON (t2.season = b.season AND t2.league = b.league AND t2.team_id = eb.bet) + WHERE b.season = $season + AND b.league = $league + AND b.match_no = 1 + GROUP by b.user_id + ORDER BY LOWER(u.username) ASC"; + + $result_bet = $db->sql_query_limit($sql, $sql_limit, $sql_start); + + while ($user_row = $db->sql_fetchrow($result_bet)) + { + $bet_number++ ; + $row_class = (!($bet_number % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + if ($user_row['user_id'] == $user->data['user_id']) + { + $row_class = 'bg3 row_user'; + } + + if ($user_row['extra_status'] < 1 && !$config['football_view_bets']) + { + // hide bets + $bet = ($user_row['bet'] == '') ? ' ' : '?'; + $bet_team = ($user_row['bet_team'] == NULL) ? ' ' : '?'; + } + else + { + $bet = ($user_row['bet'] == '') ? ' ' : $user_row['bet']; + $bet_team = ($user_row['bet_team'] == NULL) ? ' ' : $user_row['bet_team']; + } + + + $template->assign_block_vars('extra_panel.user_row', array( + 'ROW_CLASS' => $row_class, + 'USER_NAME' => $user_row['username'], + 'BET' => ($display_type == 1) ? $bet_team : $bet, + 'BET_POINTS' => $user_row['bet_points'], + 'COLOR_STYLE' => $extra_colorstyle, + ) + ); + } + $db->sql_freeresult($result_bet); +} +$db->sql_freeresult($result); + +$sidename = sprintf($user->lang['ALL_BETS']); +$template->assign_vars(array( + 'S_DISPLAY_ALL_BETS' => true, + 'S_SIDENAME' => $sidename, + 'S_MATCHES_ON_MATCHDAY' => $matches_on_matchday, + 'S_SPALTEN' => ($count_matches * 2) + 2, + 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), + 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), + ) +); diff --git a/block/bet.php b/block/bet.php index 56124e9..644f9e9 100644 --- a/block/bet.php +++ b/block/bet.php @@ -508,8 +508,8 @@ $template->assign_vars(array( 'S_SIDENAME' => $sidename, 'BET_EXPLAIN' => $bet_explain, 'JOIN_LEAGUE' => ($link_rules == '') ? '' : sprintf($user->lang['JOIN_LEAGUE'], $link_rules), - 'S_FORM_ACTION_BET' => $this->helper->route('football_main_controller', array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday, 'action' => 'bet')), - 'S_FORM_ACTION_JOIN' => $this->helper->route('football_main_controller', array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday, 'action' => 'join')), + 'S_FORM_ACTION_BET' => $this->helper->route('football_football_controller', array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday, 'action' => 'bet')), + 'S_FORM_ACTION_JOIN' => $this->helper->route('football_football_controller', array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday, 'action' => 'join')), 'S_USER_IS_MEMBER' => $user_is_member, 'S_DATA_BET' => $data_bet, 'S_DATA_GROUP' => $data_group, diff --git a/block/delivery.php b/block/delivery.php index 7ce3dfa..fa74e02 100644 --- a/block/delivery.php +++ b/block/delivery.php @@ -43,8 +43,8 @@ $sql = "SELECT LEFT JOIN " . FOOTB_EXTRA . " AS e ON (e.season = m.season AND e.league = m.league AND e.matchday = m.matchday AND e.extra_status = 0) LEFT JOIN " . FOOTB_EXTRA_BETS . " AS eb ON (eb.season = m.season AND eb.league = m.league AND eb.extra_no = e.extra_no AND eb.user_id = $user_id) WHERE m.status <= 0 - GROUP BY delivery, m.league - ORDER BY delivery, m.league"; + GROUP BY m.season, m.league, m.matchday, l.league_name_short, matchday_name, delivery + ORDER BY delivery, m.season, m.league"; $result = $db->sql_query($sql); while($row = $db->sql_fetchrow($result) AND $index < 11) @@ -55,7 +55,7 @@ while($row = $db->sql_fetchrow($result) AND $index < 11) $template->assign_block_vars('delivery', array( 'ROW_CLASS' => $row_class, - 'U_BET_LINK' => $this->helper->route('football_main_controller', array('side' => 'bet', 's' => $row['season'], 'l' => $row['league'], 'm' => $row['matchday'])), + 'U_BET_LINK' => $this->helper->route('football_football_controller', array('side' => 'bet', 's' => $row['season'], 'l' => $row['league'], 'm' => $row['matchday'])), 'LEAGUE_SHORT' => $row['league_name_short'], 'MATCHDAY_NAME' => $row['matchday_name'], 'COLOR' => ($row['bets_count'] == $row['matches_count'] && $row['extra_bets_count'] == $row['extra_count']) ? 'green' : 'red', diff --git a/block/dload_bank.php b/block/dload_bank.php index 715ac24..669ac0d 100644 --- a/block/dload_bank.php +++ b/block/dload_bank.php @@ -20,7 +20,7 @@ $action=''; if (!$season OR !$league) { - redirect($this->helper->route('football_main_controller', array('side' => 'bank', 's' => $season, 'l' => $league))); + redirect($this->helper->route('football_football_controller', array('side' => 'bank', 's' => $season, 'l' => $league))); } else { diff --git a/block/dload_bank_open.php b/block/dload_bank_open.php index 502969a..207421d 100644 --- a/block/dload_bank_open.php +++ b/block/dload_bank_open.php @@ -19,7 +19,7 @@ $action=''; if (!$season) { - redirect($this->helper->route('football_main_controller', array('side' => 'bank', 's' => $season))); + redirect($this->helper->route('football_football_controller', array('side' => 'bank', 's' => $season))); } else { diff --git a/block/dload_export.php b/block/dload_export.php index 8465686..df11c12 100644 --- a/block/dload_export.php +++ b/block/dload_export.php @@ -1,52 +1,50 @@ -auth->acl_get('u_use_football') ) -{ - trigger_error('NO_AUTH_VIEW'); -} - -$action=''; - -if (!$season OR !$league) -{ - redirect($this->helper->route('football_main_controller', array('side' => 'bet'))); -} -else -{ - if (user_is_member($user->data['user_id'], $season, $league)) - { - $season_info = season_info($season); - if (!sizeof($season_info)) - { - $error_message = sprintf($user->lang['NO_SEASON']); - trigger_error($error_message); - } - else - { - $league_info = league_info($season, $league); - if (!sizeof($league_info)) - { - $error_message = sprintf($user->lang['NO_LEAGUE']); - trigger_error($error_message); - } - else - { - include($this->football_includes_path . 'export.' . $this->php_ext); - } - } - } - else - { - redirect($this->helper->route('football_main_controller', array('side' => 'bet'))); - } -} - -?> +auth->acl_get('u_use_football') ) +{ + trigger_error('NO_AUTH_VIEW'); +} + +$action=''; + +if (!$season OR !$league) +{ + redirect($this->helper->route('football_football_controller', array('side' => 'bet'))); +} +else +{ + if (user_is_member($user->data['user_id'], $season, $league)) + { + $season_info = season_info($season); + if (!sizeof($season_info)) + { + $error_message = sprintf($user->lang['NO_SEASON']); + trigger_error($error_message); + } + else + { + $league_info = league_info($season, $league); + if (!sizeof($league_info)) + { + $error_message = sprintf($user->lang['NO_LEAGUE']); + trigger_error($error_message); + } + else + { + include($this->football_includes_path . 'export.' . $this->php_ext); + } + } + } + else + { + redirect($this->helper->route('football_football_controller', array('side' => 'bet'))); + } +} diff --git a/block/hist_popup.php b/block/hist_popup.php index 732d782..ea53df7 100644 --- a/block/hist_popup.php +++ b/block/hist_popup.php @@ -1,1345 +1,1345 @@ -data['user_id'] == ANONYMOUS) - { - trigger_error('NO_GUEST_VIEW'); - } -} -if (!$config['football_user_view']) -{ - // Only Prediction League member should see this page - // Check Prediction League authorisation - if ( !$this->auth->acl_get('u_use_football') ) - { - trigger_error('NO_AUTH_VIEW'); - } -} - -//Football disabled? -if ($config['football_disable']) -{ - $message = (!empty($config['football_disable_msg'])) ? $config['football_disable_msg'] : 'FOOTBALL_DISABLED'; - trigger_error($message); -} - -$home_id = $this->request->variable('hid', 0); -$guest_id = $this->request->variable('gid', 0); -$season = $this->request->variable('s', 0); -$league = $this->request->variable('l', 0); -$matchday = $this->request->variable('m', 0); -$matchnumber = $this->request->variable('mn', 0); -$group_id = $this->request->variable('gr', ''); - - -// Check parms -$error_message = ''; -$data_history = false; -if (!$home_id OR !$guest_id OR !$season OR !$league OR !$matchday OR !$matchnumber) -{ - $data_history = false; - if (!$home_id) - { - $error_message .= sprintf($user->lang['NO_HOMETEAM']) . '
'; - } - if (!$guest_id) - { - $error_message .= sprintf($user->lang['NO_GUESTTEAM']) . '
'; - } - if (!$season) - { - $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; - } - if (!$league) - { - $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; - } - if (!$matchday) - { - $error_message .= sprintf($user->lang['NO_MATCHDAY']) . '
'; - } - if (!$matchnumber) - { - $error_message .= sprintf($user->lang['NO_MATCH']) . '
'; - } -} -else -{ - $season_info = season_info($season); - if (sizeof($season_info)) - { - $league_info = league_info($season, $league); - if (sizeof($league_info)) - { - $data_history = true; - $data_hist = false; - $data_home =false; - $data_guest = false; - $data_last_home = false; - $data_last_away = false; - $form_from = $matchday-5; - $percent_home = 0; - $percent_draw = 0; - $percent_guest = 0; - $stat_hist = ''; - $value_h = 0; - $value_g = 0; - $value_hg = 0; - $value_gg = 0; - $ext_path = $this->phpbb_path_helper->update_web_root_path($this->phpbb_extension_manager->get_extension_path('football/football', true)); - - $sql = 'SELECT * - FROM ' . FOOTB_TEAMS . " - WHERE season = $season - AND league = $league - AND team_id = $home_id"; - - $result = $db->sql_query($sql); - if ($row = $db->sql_fetchrow($result)) - { - $home_name = $row['team_name']; - if ($row['team_symbol'] <> '') - { - $logo[$home_id] = "\""" ; - } - else - { - $logo[$home_id] = "\"\"" ; - } - } - else - { - $error_message .= sprintf($user->lang['NO_HOMETEAM']) . '
'; - $data_history = false; - } - $db->sql_freeresult($result); - - $sql = 'SELECT * - FROM ' . FOOTB_TEAMS . " - WHERE season = $season - AND league = $league - AND team_id = $guest_id"; - - $result = $db->sql_query($sql); - if ($row = $db->sql_fetchrow($result)) - { - $guest_name = $row['team_name']; - if ($row['team_symbol'] <> '') - { - $logo[$guest_id] = "\""" ; - } - else - { - $logo[$guest_id] = "\"\"" ; - } - } - else - { - $error_message .= sprintf($user->lang['NO_GUESTTEAM']) . '
'; - $data_history = false; - } - $db->sql_freeresult($result); - - - // Match history - $sql = "SELECT - IF(mh.team_id_home = $home_id, - IF(mh.goals_home + 0 > mh.goals_guest, '+0', IF(mh.goals_home = mh.goals_guest, '30', '-0')), - IF(mh.goals_home + 0 < mh.goals_guest, '+90', IF(mh.goals_home = mh.goals_guest, '60', '-90'))) AS chart_points, - mh.match_date AS season, - mh.match_type AS league, - mh.team_id_home AS home_id, - mh.team_id_guest AS guest_id, - th.team_name AS home_name, - tg.team_name AS guest_name, - mh.goals_home, - mh.goals_guest - FROM " . FOOTB_MATCHES_HIST . ' AS mh - LEFT JOIN ' . FOOTB_TEAMS . " AS th ON (th.season = $season AND th.league = $league AND th.team_id = mh.team_id_home) - LEFT JOIN " . FOOTB_TEAMS . " AS tg ON (tg.season = $season AND tg.league = $league AND tg.team_id = mh.team_id_guest) - WHERE ((mh.team_id_home = $home_id AND mh.team_id_guest = $guest_id) - OR (mh.team_id_home = $guest_id AND mh.team_id_guest = $home_id)) - ORDER BY mh.match_date ASC"; - - $result = $db->sql_query($sql); - $history = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - $history_count = sizeof($history); - // Match history - $sql = "SELECT - IF(m.team_id_home = $home_id, - IF(m.goals_home + 0 > m.goals_guest, '+0', IF(m.goals_home = m.goals_guest, '30', '-0')), - IF(m.goals_home + 0 < m.goals_guest, '+90', IF(m.goals_home = m.goals_guest, '60', '-90'))) AS chart_points, - m.season, - m.league, - m.team_id_home AS home_id, - m.team_id_guest AS guest_id, - th.team_name AS home_name, - tg.team_name AS guest_name, - m.goals_home, - m.goals_guest - FROM " . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_TEAMS . " AS th ON (th.season = $season AND th.league = $league AND th.team_id = m.team_id_home) - LEFT JOIN " . FOOTB_TEAMS . " AS tg ON (tg.season = $season AND tg.league = $league AND tg.team_id = m.team_id_guest) - WHERE ((m.team_id_home = $home_id AND m.team_id_guest = $guest_id) OR (m.team_id_home = $guest_id AND m.team_id_guest = $home_id)) - AND m.status IN (3,6) - AND (m.season <> $season OR m.league <> $league OR m.match_no < $matchnumber) - ORDER BY m.season ASC, m.matchday ASC"; - - $result = $db->sql_query($sql); - if ($history_count != 0) - { - $history = array_merge($history, $db->sql_fetchrowset($result)); - } - else - { - $history = $db->sql_fetchrowset($result); - } - $db->sql_freeresult($result); - $history_count = sizeof($history); - if ($history_count != 0) - { - $chart_points = ''; - $data_hist = true; - $rank = 0; - $map_total_coords = array(); - $map_total_titles = array(); - foreach ($history as $row) - { - $chart_points = $chart_points . $row['chart_points'] . ','; - $coord_start = $start + ($rank * $vert); - $coord_end = $end + ($rank * $vert); - if (abs($row['chart_points']) > 45) - { - $coords = $coord_start . ",45," . $coord_end . "," . abs($row['chart_points']); - } - else - { - $coords = $coord_start . "," . abs($row['chart_points']) . "," . $coord_end . ",45"; - } - $map_total_coords[] = $coords; - $map_total_titles[] = $row['home_name'] . ' - ' . $row['guest_name'] . ' ' . $row['goals_home'] . ':' . $row['goals_guest']; - $rank++ ; - $row_class = (!($rank % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - $template->assign_block_vars('historie', array( - 'ROW_CLASS' => $row_class, - 'SEASON' => $row['season'], - 'LEAGUE' => $row['league'], - 'HLOGO' => $logo[$row['home_id']], - 'HNAME' => $row['home_name'], - 'GLOGO' => $logo[$row['guest_id']], - 'GNAME' => $row['guest_name'], - 'GOALS_HOME' => $row['goals_home'], - 'GOALS_GUEST' => $row['goals_guest'], - ) - ); - } - - // Statistic and forecast-points for historie - $sql = "SELECT - SUM(IF(team_id_home = $home_id, goals_home , goals_guest)) AS hg, - SUM(IF(team_id_home = $guest_id, goals_home , goals_guest)) AS gg, - SUM(IF(team_id_home = $home_id, IF(goals_home + 0 > goals_guest AND goals_home <> '' AND goals_guest <> '', 1 ,0), 0)) AS hw, - SUM(IF(team_id_home = $home_id, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1 ,0), 0)) AS hd, - SUM(IF(team_id_home = $home_id, IF(goals_home + 0 < goals_guest AND goals_home <> '' AND goals_guest <> '', 1 ,0), 0)) AS hl, - SUM(IF(team_id_home = $home_id, IF(goals_home + 0 > goals_guest, 1 ,0), IF(goals_home + 0 < goals_guest,1,0))) AS gw, - SUM(IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '',1,0)) AS gd, - SUM(IF(team_id_home = $home_id, IF(goals_home + 0 < goals_guest, 1 ,0), IF(goals_home + 0 > goals_guest,1,0))) AS gl, - SUM(IF(team_id_home = $home_id, - IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest, 1, 0)), - IF(goals_home + 0 < goals_guest, 4, IF(goals_home = goals_guest, 2, 0)) - ) - ) AS value_h, - SUM(IF(team_id_home = $guest_id, - IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest, 1, 0)), - IF(goals_home + 0 < goals_guest, 4, IF(goals_home = goals_guest, 2, 0)) - ) - ) AS value_g - FROM " . FOOTB_MATCHES_HIST . " - WHERE ((team_id_home = $home_id AND team_id_guest = $guest_id) - OR (team_id_home = $guest_id AND team_id_guest = $home_id))"; - - $result = $db->sql_query($sql); - $row_hist = $db->sql_fetchrow($result); - $db->sql_freeresult($result); - - $sql = "SELECT - SUM(IF(team_id_home = $home_id, goals_home , goals_guest)) AS hg, - SUM(IF(team_id_home = $guest_id, goals_home , goals_guest)) AS gg, - SUM(IF(team_id_home = $home_id, IF(goals_home + 0 > goals_guest, 1 ,0), 0)) AS hw, - SUM(IF(team_id_home = $home_id, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1 ,0), 0)) AS hd, - SUM(IF(team_id_home = $home_id, IF(goals_home + 0 < goals_guest, 1 ,0), 0)) AS hl, - SUM(IF(team_id_home = $home_id, IF(goals_home + 0 > goals_guest, 1 ,0), IF(goals_home + 0 < goals_guest, 1, 0))) AS gw, - SUM(IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)) AS gd, - SUM(IF(team_id_home = $home_id, IF(goals_home + 0 < goals_guest, 1 ,0), IF(goals_home + 0 > goals_guest, 1, 0))) AS gl, - SUM(IF(team_id_home = $home_id, - IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)), - IF(goals_home + 0 < goals_guest, 4, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 2, 0)) - ) - ) AS value_h, - SUM(IF(team_id_home = $guest_id, - IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '',1,0)), - IF(goals_home + 0 < goals_guest,4, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '',2,0)) - ) - ) AS value_g - FROM " . FOOTB_MATCHES . " - WHERE ((team_id_home = $home_id AND team_id_guest = $guest_id) OR (team_id_home = $guest_id AND team_id_guest = $home_id)) - AND status IN (3,6) - AND (season <> $season OR league <> $league OR match_no < $matchnumber)"; - - $result = $db->sql_query($sql); - $row = $db->sql_fetchrow($result); - if (sizeof($row_hist)) - { - if (sizeof($row)) - { - $row['hg'] += $row_hist['hg']; - $row['gg'] += $row_hist['gg']; - $row['hw'] += $row_hist['hw']; - $row['hd'] += $row_hist['hd']; - $row['hl'] += $row_hist['hl']; - $row['gw'] += $row_hist['gw']; - $row['gd'] += $row_hist['gd']; - $row['gl'] += $row_hist['gl']; - $row['value_h'] += $row_hist['value_h']; - $row['value_g'] += $row_hist['value_g']; - } - else - { - $row = $row_hist; - } - } - - if (sizeof($row)) - { - if ($history_count <= 2) - { - // $history_count = 1 => draws * 1/4 - // $history_count = 2 => draws * 1/6 - $percent_draw = round($row['gd'] / ((2 * $history_count) + 2),2); - } - else - { - // $history_count > 2 => draws * 1/2 - $percent_draw = round($row['gd'] / ($history_count * 2),2); - } - $value_h = round($row['value_h'] / ($history_count * 2),2); - $value_g = round($row['value_g'] / ($history_count * 2),2); - - $stat_hist = sprintf($user->lang['THIS_MATCH']) . ': ' . $row['hw'] . '/' . $row['hd'] . '/'. $row['hl'] . '   ' . - sprintf($user->lang['TOTAL']) . ': ' . $row['gw'] . '/'. $row['gd'] . '/' . $row['gl'] . '   ' . - sprintf($user->lang['GOALS']) . ': ' . $row['hg'] . ':'. $row['gg'] . '   ' . - sprintf($user->lang['FORECAST_PTS']) . ': ' . $value_h . ':' . $value_g; - - $template->assign_vars(array( - 'STAT_HIST' => $stat_hist, - ) - ); - } - $db->sql_freeresult($result); - - //Charts history - $chart_points = substr($chart_points, 0, strlen($chart_points) - 1); - $chart= "football_root_path - . "includes/chart_hist.php?v1=$chart_points' alt='" . sprintf($user->lang['TOTAL']) . "' usemap='#map_total'/>"; - $template->assign_block_vars('chart_hist_total', array( - 'CHARTIMAGE' => $chart, - ) - ); - for ($i = 0; $i < sizeof($map_total_coords); $i++) - { - $template->assign_block_vars('chart_hist_total.map_total', array( - 'COORDS' => $map_total_coords[$i], - 'TITLE' => $map_total_titles[$i], - ) - ); - } - } - - - // Table total - - if ($group_id == '' OR $group_id == '??') - { - $where_group = ''; - } - else - { - $where_group = " AND m.group_id = '" . $db->sql_escape($group_id) . "'"; - } - $sql = "SELECT - t.*, - SUM(1) AS matches, - SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 > goals_guest, 1, 0), IF(goals_home + 0 < goals_guest, 1, 0))) AS wins, - SUM(IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)) AS draws, - SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 < goals_guest, 1, 0), IF(goals_home + 0 > goals_guest, 1, 0))) AS lost, - SUM(IF(m.team_id_home = t.team_id, - IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)), - IF(goals_home + 0 < goals_guest, 3, IF(goals_home = goals_guest, 1, 0)) - ) - ) AS points, - SUM(IF(m.team_id_home = t.team_id, goals_home - goals_guest, goals_guest - goals_home)) AS gdiff, - SUM(IF(m.team_id_home = t.team_id, goals_home, goals_guest)) AS goals, - SUM(IF(m.team_id_home = t.team_id, goals_guest, goals_home)) AS goals_against - FROM " . FOOTB_TEAMS . " AS t - LEFT JOIN " . FOOTB_MATCHES . " AS m ON (m.season = t.season AND m.league = t.league AND (m.team_id_home = t.team_id OR m.team_id_guest = t.team_id)) - WHERE t.season = $season - AND t.league = $league - AND (m.matchday < $matchday) - AND (m.status IN (3,6)) $where_group - GROUP BY t.team_id - ORDER BY points DESC, gdiff DESC, goals DESC"; - - $result = $db->sql_query($sql); - $rank = 0; - $current_rank = 0; - $last_goals = 0; - $last_goals_againts = 0; - $last_points = 0; - while ($row = $db->sql_fetchrow($result)) - { - $rank++; - if ($last_points <> $row['points'] OR $last_goals <> $row['goals'] OR $last_goals_againts <> $row['goals_against']) - { - $current_rank = $rank; - } - $last_points = $row['points']; - $last_goals = $row['goals']; - $last_goals_againts = $row['goals_against']; - if ($home_id == $row['team_id']) - { - $data_home = true; - $value_h += round($row['points'] / ($row['matches'] * 3), 2); - $plfp = $current_rank . '(' . round($row['points'] / ($row['matches'] * 3), 2) . ')'; - $template->assign_block_vars('table_hometeam', array( - 'ROW_CLASS' => 'bg2 row_dark', - 'TABLE' => sprintf($user->lang['TABLE_TOTAL']), - 'PLFP' => $plfp, - 'MATCHES' => $row['matches'], - 'WINS' => $row['wins'], - 'DRAW' => $row['draws'], - 'LOST' => $row['lost'], - 'GOALS_HOME' => $row['goals'], - 'GOALS_GUEST' => $row['goals_against'], - 'GDIFF' => $row['gdiff'], - 'POINTS' => $row['points'], - ) - ); - } - if ($guest_id == $row['team_id']) - { - $data_guest = true; - $value_g += round($row['points'] / ($row['matches'] * 3),2); - $plfp = $current_rank . '(' . round($row['points'] / ($row['matches'] * 3), 2) . ')'; - $template->assign_block_vars('table_guestteam', array( - 'ROW_CLASS' => 'bg2 row_dark', - 'TABLE' => sprintf($user->lang['TABLE_TOTAL']), - 'PLFP' => $plfp, - 'MATCHES' => $row['matches'], - 'WINS' => $row['wins'], - 'DRAW' => $row['draws'], - 'LOST' => $row['lost'], - 'GOALS_HOME' => $row['goals'], - 'GOALS_GUEST' => $row['goals_against'], - 'GDIFF' => $row['gdiff'], - 'POINTS' => $row['points'], - ) - ); - } - } - $db->sql_freeresult($result); - - // Hometable hometeam - if ($data_home) - { - $sql = "SELECT - t.*, - SUM(1) AS matches, - SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 > goals_guest, 1, 0), IF(goals_home + 0 < goals_guest, 1, 0))) AS wins, - SUM(IF(goals_home = goals_guest, 1, 0)) AS draws, - SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 < goals_guest, 1, 0), IF(goals_home + 0 > goals_guest, 1, 0))) AS lost, - SUM(IF(m.team_id_home = t.team_id, - IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)), - IF(goals_home + 0 < goals_guest, 3, IF(goals_home = goals_guest, 1, 0)) - ) - ) AS points, - SUM(IF(m.team_id_home = t.team_id, goals_home - goals_guest , goals_guest - goals_home)) AS gdiff, - SUM(IF(m.team_id_home = t.team_id, goals_home , goals_guest)) AS goals, - SUM(IF(m.team_id_home = t.team_id, goals_guest , goals_home)) AS goals_against - FROM " . FOOTB_TEAMS . ' AS t - LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = t.season AND m.league = t.league AND m.team_id_home = t.team_id) - WHERE t.season = $season - AND t.league = $league - AND m.matchday < $matchday - AND m.status IN (3,6) - GROUP BY t.team_id - ORDER BY points DESC, gdiff DESC, goals DESC"; - - $result = $db->sql_query($sql); - $rank = 0; - $current_rank = 0; - $last_goals = 0; - $last_goals_againts = 0; - $last_points = 0; - while ($row = $db->sql_fetchrow($result)) - { - $data_home = true; - $rank++; - if ($last_points <> $row['points'] OR $last_goals <> $row['goals'] OR $last_goals_againts <> $row['goals_against']) - { - $current_rank = $rank; - } - $last_points = $row['points']; - $last_goals = $row['goals']; - $last_goals_againts = $row['goals_against']; - if ($home_id == $row['team_id']) - { - $win = $row['wins']; - $draw = $row['draws']; - $lost = $row['lost']; - $value_hg = round(((($win * 3) + $draw) / ($win + $draw + $lost)),2); - $value_h += $value_hg; - $plfp = $current_rank . '(' . $value_hg . ')'; - $template->assign_block_vars('table_hometeam', array( - 'ROW_CLASS' => 'bg1 row_light', - 'TABLE' => sprintf($user->lang['TABLE_HOME']), - 'PLFP' => $plfp, - 'MATCHES' => $row['matches'], - 'WINS' => $row['wins'], - 'DRAW' => $row['draws'], - 'LOST' => $row['lost'], - 'GOALS_HOME' => $row['goals'], - 'GOALS_GUEST' => $row['goals_against'], - 'GDIFF' => $row['gdiff'], - 'POINTS' => $row['points'], - ) - ); - } - } - $db->sql_freeresult($result); - } - - //Away-Table guestteam - if ($data_guest) - { - $sql = "SELECT - t.*, - SUM(1) AS matches, - SUM(IF((m.team_id_home = t.team_id), IF(m.goals_home + 0 > m.goals_guest, 1, 0), IF(m.goals_home + 0 < m.goals_guest, 1, 0))) AS wins, - SUM(IF(m.goals_home = m.goals_guest AND goals_home <> '' AND goals_guest <> '',1,0)) AS draws, - SUM(IF((m.team_id_home = t.team_id), IF(m.goals_home + 0 < m.goals_guest, 1, 0), IF(m.goals_home + 0 > m.goals_guest, 1, 0))) AS lost, - SUM(IF(m.team_id_home = t.team_id, - IF(m.goals_home + 0 > m.goals_guest, 3, IF(m.goals_home = m.goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)), - IF(m.goals_home + 0 < m.goals_guest, 3, IF(m.goals_home = m.goals_guest, 1, 0)) - ) - ) AS points, - SUM(IF(m.team_id_home = t.team_id,m.goals_home - m.goals_guest , m.goals_guest - m.goals_home)) AS gdiff, - SUM(IF(m.team_id_home = t.team_id,m.goals_home , m.goals_guest)) AS goals, - SUM(IF(m.team_id_home = t.team_id,m.goals_guest , m.goals_home)) AS goals_against - FROM " . FOOTB_TEAMS . ' AS t - LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = t.season AND m.league = t.league AND m.team_id_guest = t.team_id) - WHERE t.season = $season - AND t.league = $league - AND m.matchday < $matchday - AND m.status IN (3,6) - GROUP BY t.team_id - ORDER BY points DESC, gdiff DESC, goals DESC"; - - $result = $db->sql_query($sql); - $rank = 0; - $current_rank = 0; - $last_goals = 0; - $last_goals_againts = 0; - $last_points = 0; - while ($row = $db->sql_fetchrow($result)) - { - $rank++; - if ($last_points <> $row['points'] OR $last_goals <> $row['goals'] OR $last_goals_againts <> $row['goals_against']) - { - $current_rank = $rank; - } - $last_points = $row['points']; - $last_goals = $row['goals']; - $last_goals_againts = $row['goals_against']; - if ($guest_id == $row['team_id']) - { - $data_guest = true; - $win = $row['wins']; - $draw = $row['draws']; - $lost = $row['lost']; - $value_gg = round(((($win * 4) + ($draw * 2)) / ($win + $draw + $lost)),2); - $value_g += $value_gg; - $plfp = $current_rank . '(' . $value_gg . ')'; - $template->assign_block_vars('table_guestteam', array( - 'ROW_CLASS' => 'bg1 row_light', - 'TABLE' => sprintf($user->lang['TABLE_AWAY']), - 'PLFP' => $plfp, - 'MATCHES' => $row['matches'], - 'WINS' => $row['wins'], - 'DRAW' => $row['draws'], - 'LOST' => $row['lost'], - 'GOALS_HOME' => $row['goals'], - 'GOALS_GUEST' => $row['goals_against'], - 'GDIFF' => $row['gdiff'], - 'POINTS' => $row['points'], - ) - ); - } - } - $db->sql_freeresult($result); - } - - // Form-Table - $points_home = 0; - $points_guest = 0; - $form_matches = 0; - if ($data_home or $data_guest) - { - $sql = "SELECT - t.*, - SUM(1) AS matches, - SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 > goals_guest, 1, 0), IF(goals_home + 0 < goals_guest, 1, 0))) AS wins, - SUM(IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)) AS draws, - SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 < goals_guest, 1, 0), IF(goals_home + 0 > goals_guest, 1, 0))) AS lost, - SUM(IF(m.team_id_home = t.team_id, - IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)), - IF(goals_home + 0 < goals_guest, 3, IF(goals_home = goals_guest, 1, 0)) - ) - ) AS points, - SUM(IF(m.team_id_home = t.team_id, goals_home - goals_guest , goals_guest - goals_home)) AS gdiff, - SUM(IF(m.team_id_home = t.team_id, goals_home , goals_guest)) AS goals, - SUM(IF(m.team_id_home = t.team_id, goals_guest , goals_home)) AS goals_against - FROM " . FOOTB_TEAMS . ' AS t - LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = t.season AND m.league = t.league AND ((m.team_id_home = t.team_id) OR (m.team_id_guest = t.team_id))) - WHERE t.season = $season - AND t.league = $league - AND m.matchday >= $form_from - AND m.matchday < $matchday - AND m.status IN (3,6) - GROUP BY t.team_id - ORDER BY points DESC, gdiff DESC, goals DESC"; - - $result = $db->sql_query($sql); - $rank = 0; - $current_rank = 0; - $last_goals = 0; - $last_goals_againts = 0; - $last_points = 0; - while ($row = $db->sql_fetchrow($result)) - { - $rank++; - if ($last_points <> $row['points'] OR $last_goals <> $row['goals'] OR $last_goals_againts <> $row['goals_against']) - { - $current_rank = $rank; - } - $last_points = $row['points']; - $last_goals = $row['goals']; - $last_goals_againts = $row['goals_against']; - if ($home_id == $row['team_id']) - { - $points_home = $row['points']; - if ($row['matches'] > $form_matches) - { - $form_matches = $row['matches']; - } - $data_home = true; - $win = $row['wins']; - $draw = $row['draws']; - $lost = $row['lost']; - $value_hg = round(((($win * 2) + $draw) / ($win + $draw + $lost)),2); - $value_h += $value_hg; - $plfp = $current_rank . '(' . $value_hg . ')'; - $template->assign_block_vars('table_hometeam', array( - 'ROW_CLASS' => 'bg2 row_dark', - 'TABLE' => sprintf($user->lang['TABLE_FORM']), - 'PLFP' => $plfp, - 'MATCHES' => $row['matches'], - 'WINS' => $row['wins'], - 'DRAW' => $row['draws'], - 'LOST' => $row['lost'], - 'GOALS_HOME' => $row['goals'], - 'GOALS_GUEST' => $row['goals_against'], - 'GDIFF' => $row['gdiff'], - 'POINTS' => $row['points'], - ) - ); - } - if ($guest_id == $row['team_id']) - { - $points_guest = $row['points']; - if ($row['matches'] > $form_matches) - { - $form_matches = $row['matches']; - } - $data_guest = true; - $win = $row['wins']; - $draw = $row['draws']; - $lost = $row['lost']; - $value_gg = round(((($win * 2) + $draw) / ($win + $draw + $lost)),2); - $value_g += $value_gg; - $plfp = $current_rank . '(' . $value_gg . ')'; - $template->assign_block_vars('table_guestteam', array( - 'ROW_CLASS' => 'bg2 row_dark', - 'TABLE' => sprintf($user->lang['TABLE_FORM']), - 'PLFP' => $plfp, - 'MATCHES' => $row['matches'], - 'WINS' => $row['wins'], - 'DRAW' => $row['draws'], - 'LOST' => $row['lost'], - 'GOALS_HOME' => $row['goals'], - 'GOALS_GUEST' => $row['goals_against'], - 'GDIFF' => $row['gdiff'], - 'POINTS' => $row['points'], - ) - ); - } - } - $db->sql_freeresult($result); - } - - $matches_played = 0; - $draws_home = 0; - $draws_guest = 0; - - // Chart hometeam - if ($data_home) - { - $sql = "SELECT - IF(m.team_id_home = t.team_id, - IF(goals_home + 0 > goals_guest, '+0', IF(goals_home = goals_guest, '30', '-0')), - IF(goals_home + 0 < goals_guest, '+90', IF(goals_home = goals_guest, '60', '-90'))) AS chart_points, - th.team_name AS home_name, - tg.team_name AS guest_name, - m.goals_home, - m.goals_guest - FROM " . FOOTB_TEAMS . ' AS t - LEFT JOIN ' . FOOTB_MATCHES . ' AS m ON (m.season = t.season AND m.league = t.league - AND (m.team_id_home = t.team_id OR m.team_id_guest = t.team_id)) - LEFT JOIN ' . FOOTB_TEAMS . " AS th ON (th.season = $season AND th.league = $league AND th.team_id = m.team_id_home) - LEFT JOIN " . FOOTB_TEAMS . " AS tg ON (tg.season = $season AND tg.league = $league AND tg.team_id = m.team_id_guest) - WHERE t.season = $season - AND t.league = $league - AND m.matchday <= $matchday - AND m.match_no <> $matchnumber - AND m.status IN (3,6) - AND t.team_id=$home_id - ORDER BY m.match_datetime ASC"; - - $result = $db->sql_query($sql); - $trend = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - $trend_count = sizeof($trend); - $chart_points = ''; - $map_home_coords = array(); - $map_home_titles = array(); - $rank = 0; - foreach ($trend as $row) - { - if ($row['chart_points'] == '30' or $row['chart_points'] == '60') - { - $draws_home += 1; - } - $chart_points = $chart_points . $row['chart_points']. ','; - $coord_start = $start + ($rank * $vert); - $coord_end = $end + ($rank * $vert); - if (abs($row['chart_points']) > 45) - { - $coords = $coord_start . ",45," . $coord_end . "," . abs($row['chart_points']); - } - else - { - $coords = $coord_start . "," . abs($row['chart_points']) . "," . $coord_end . ",45"; - } - $map_home_coords[] = $coords; - $map_home_titles[] = $row['home_name'] . ' - ' . $row['guest_name'] . ' ' . $row['goals_home'] . ':' . $row['goals_guest']; - $rank++; - } - $chart_points = substr($chart_points, 0, strlen($chart_points) - 1); - $chart= "football_root_path - . "includes/chart_hist.php?v1=$chart_points' alt='" . sprintf($user->lang['HIST_CHART']) . "' usemap='#map_home'/>"; - $template->assign_block_vars('chart_home', array( - 'CHARTIMAGE' => $chart, - ) - ); - for ($i = 0; $i < sizeof($map_home_coords); $i++) - { - $template->assign_block_vars('chart_home.map_home', array( - 'COORDS' => $map_home_coords[$i], - 'TITLE' => $map_home_titles[$i], - ) - ); - } - $matches_played = sizeof($map_home_coords); - } - - //Chart guestteam - if ($data_guest) - { - $sql = "SELECT - IF(m.team_id_home = t.team_id, - IF(goals_home + 0 > goals_guest, '+0', IF(goals_home = goals_guest, '30', '-0')), - IF(goals_home + 0 < goals_guest, '+90', IF(goals_home = goals_guest, '60', '-90') - ) - ) AS chart_points, - th.team_name AS home_name, - tg.team_name AS guest_name, - m.goals_home, - m.goals_guest - FROM " . FOOTB_TEAMS . ' AS t - LEFT JOIN ' . FOOTB_MATCHES . ' AS m ON (m.season = t.season AND m.league = t.league - AND (m.team_id_home = t.team_id OR m.team_id_guest = t.team_id)) - LEFT JOIN ' . FOOTB_TEAMS . " AS th ON (th.season = $season AND th.league = $league AND th.team_id = m.team_id_home) - LEFT JOIN " . FOOTB_TEAMS . " AS tg ON (tg.season = $season AND tg.league = $league AND tg.team_id = m.team_id_guest) - WHERE t.season = $season - AND t.league = $league - AND m.matchday <= $matchday - AND m.match_no <> $matchnumber - AND m.status IN (3,6) - AND t.team_id=$guest_id - ORDER BY m.match_datetime ASC"; - - $result = $db->sql_query($sql); - $trend = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - $trend_count = sizeof($trend); - $chart_points = ''; - $map_guest_coords = array(); - $map_guest_titles = array(); - $rank = 0; - foreach ($trend as $row) - { - if ($row['chart_points'] == '30' or $row['chart_points'] == '60') - { - $draws_guest += 1; - } - $chart_points = $chart_points . $row['chart_points']. ','; - $coord_start = $start + ($rank * $vert); - $coord_end = $end + ($rank * $vert); - if (abs($row['chart_points']) > 45) - { - $coords = $coord_start . ",45," . $coord_end . "," . abs($row['chart_points']); - } - else - { - $coords = $coord_start . "," . abs($row['chart_points']) . "," . $coord_end . ",45"; - } - $map_guest_coords[] = $coords; - $map_guest_titles[] = $row['home_name'] . ' - ' . $row['guest_name'] . ' ' . $row['goals_home'] . ':' . $row['goals_guest']; - $rank++; - } - $chart_points = substr($chart_points, 0, strlen($chart_points) - 1); - $chart= "football_root_path - . "includes/chart_hist.php?v1=$chart_points' alt='" . sprintf($user->lang['HIST_CHART']) . "' usemap='#map_guest'/>"; - $template->assign_block_vars('chart_guest', array( - 'CHARTIMAGE' => $chart, - ) - ); - for ($i = 0; $i < sizeof($map_guest_coords); $i++) - { - $template->assign_block_vars('chart_guest.map_guest', array( - 'COORDS' => $map_guest_coords[$i], - 'TITLE' => $map_guest_titles[$i], - ) - ); - } - $matches_played = $matches_played + sizeof($map_guest_coords); - } - - if ($data_home and $data_guest) - { - $percent_draws_season = round(($draws_home + $draws_guest) / $matches_played, 2); - } - else - { - $percent_draws_season = 0.0; - $form_matches = 0; - } - if ($history_count <= 2) - { - switch($form_matches) - { - case 0: - $percent_draw += (2 - $history_count) * 0.1; - break; - case 1: - $percent_draw += (2 - $history_count) * 0.1 + round($percent_draws_season / 4, 2); - break; - default: - $percent_draw += (2 - $history_count) * 0.1 + round($percent_draws_season / 2, 2); - break; - } - } - else - { - if (abs($points_home - $points_guest) < 3) - { - $equal_form_factor = 1.1; - } - else - { - $equal_form_factor = 1.0; - } - switch($form_matches) - { - case 0: - $percent_draw = round($percent_draw * 1.5, 2); - break; - case 1: - $percent_draw = round(($percent_draw * 1.5) + ($percent_draws_season / 8), 2); - break; - case 2: - case 3: - case 4: - $percent_draw = round(($percent_draw * $equal_form_factor) + ($percent_draws_season / 4), 2); - break; - default: - $percent_draw = round(($percent_draw * $equal_form_factor) + ($percent_draws_season / 2), 2); - if ($percent_draw > 1.0) - { - $percent_draw = 1.0; - } - //$percent_draw = ($percent_draw * $equal_form_factor) + ($percent_draws_season / 2) ; - break; - } - } - $percent_draw = $percent_draw; - - // last matches hometeam - $sql = "(SELECT - match_date AS matchtime, - IF(mh.team_id_home = $home_id, 'H', 'A') AS match_place, - IF(mh.team_id_home = $home_id, tgh.team_name, thh.team_name) AS against, - mh.goals_home, - mh.goals_guest, - IF(mh.team_id_home = $home_id, - IF(mh.goals_home + 0 > mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2)), - IF(mh.goals_home + 0 < mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2) - ) - ) AS match_res - FROM " . FOOTB_MATCHES_HIST . ' AS mh - LEFT JOIN ' . FOOTB_TEAMS_HIST . ' AS thh ON thh.team_id = mh.team_id_home - LEFT JOIN ' . FOOTB_TEAMS_HIST . " AS tgh ON tgh.team_id = mh.team_id_guest - WHERE (mh.team_id_home = $home_id - OR mh.team_id_guest = $home_id) - ) - UNION - (SELECT - match_datetime AS matchtime, - IF(m.team_id_home = $home_id, 'H', 'A') AS match_place, - IF(m.team_id_home = $home_id, tg.team_name, th.team_name) AS against, - m.goals_home, - m.goals_guest, - IF(m.team_id_home = $home_id, - IF(m.goals_home + 0 > m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2)), - IF(m.goals_home + 0 < m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2) - ) - ) AS match_res - FROM " . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_TEAMS . ' AS th ON (th.season = m.season AND th.league = m.league AND th.team_id = team_id_home) - LEFT JOIN ' . FOOTB_TEAMS . " AS tg ON (tg.season = m.season AND tg.league = m.league AND tg.team_id = team_id_guest) - WHERE m.season = $season - AND m.league = $league - AND m.matchday <= $matchday - AND m.match_no <> $matchnumber - AND (m.team_id_home = $home_id OR m.team_id_guest = $home_id) - AND m.status IN(3,6) - ) - ORDER BY matchtime"; - - $result = $db->sql_query($sql); - $lastmatches = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - $numb_matches = sizeof($lastmatches); - - - if ($numb_matches > 10) - $start = $numb_matches - 10; - else - $start = 0; - $rank = 0; - foreach ($lastmatches as $row) - { - $rank++; - if ($rank > $start) - { - $row_class = (!($rank % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - $match_res_style=''; - switch($row['match_res']) - { - case 0: - $match_res_style = 'match_draw'; - break; - case 1: - $match_res_style = 'match_win'; - break; - case 2: - $match_res_style = 'match_lost'; - break; - } - $template->assign_block_vars('last_hometeam', array( - 'ROW_CLASS' => $row_class, - 'MATCH_RESULT' => $match_res_style, - 'PLACE' => $row['match_place'], - 'AGAINST' => $row['against'], - 'GOALS_HOME' => $row['goals_home'], - 'GOALS_GUEST' => $row['goals_guest'], - ) - ); - } - } - - //last matches home hometeam - $sql = '(SELECT - match_date AS matchtime, - th.team_name AS against, - mh.goals_home, - mh.goals_guest, - IF(mh.goals_home + 0 > mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2)) AS match_res - FROM ' . FOOTB_MATCHES_HIST . ' AS mh - LEFT JOIN ' . FOOTB_TEAMS_HIST . " AS th ON th.team_id = mh.team_id_guest - WHERE mh.team_id_home = $home_id - ) - UNION - (SELECT - match_datetime AS matchtime, - t.team_name AS against, - m.goals_home, - m.goals_guest, - IF(m.goals_home + 0 > m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2)) AS match_res - FROM " . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_TEAMS . " AS t ON (t.season = m.season AND t.league = m.league AND t.team_id = m.team_id_guest) - WHERE m.season = $season - AND m.league = $league - AND m.matchday <= $matchday - AND m.match_no <> $matchnumber - AND m.team_id_home = $home_id - AND m.status IN (3,6) - ) - ORDER BY matchtime"; - - $result = $db->sql_query($sql); - $lastmatches = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - $numb_matches = sizeof($lastmatches); - - if ($numb_matches > 5) - $start = $numb_matches - 5; - else - $start = 0; - $rank = 0; - foreach ($lastmatches as $row) - { - $data_last_home = true; - $rank++; - if ($rank > $start) - { - $row_class = (!(($rank-$start) % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - $match_res_style=''; - switch($row['match_res']) - { - case 0: - $match_res_style = 'match_draw'; - break; - case 1: - $match_res_style = 'match_win'; - break; - case 2: - $match_res_style = 'match_lost'; - break; - } - $template->assign_block_vars('lasthome_hometeam', array( - 'ROW_CLASS' => $row_class, - 'MATCH_RESULT' => $match_res_style, - 'AGAINST' => $row['against'], - 'GOALS_HOME' => $row['goals_home'], - 'GOALS_GUEST' => $row['goals_guest'], - ) - ); - } - } - - //last game guestteam - $sql = "(SELECT - match_date AS matchtime, - IF(mh.team_id_home = $guest_id, 'H', 'A') AS match_place, - IF(mh.team_id_home = $guest_id, tgh.team_name, thh.team_name) AS against, - mh.goals_home, - mh.goals_guest, - IF(mh.team_id_home = $guest_id, - IF(mh.goals_home + 0 > mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2)), - IF(mh.goals_home + 0 < mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2) - ) - ) AS match_res - FROM " . FOOTB_MATCHES_HIST . ' AS mh - LEFT JOIN ' . FOOTB_TEAMS_HIST . ' AS thh ON thh.team_id = mh.team_id_home - LEFT JOIN ' . FOOTB_TEAMS_HIST . " AS tgh ON tgh.team_id = mh.team_id_guest - WHERE mh.team_id_home = $guest_id - OR mh.team_id_guest = $guest_id - ) - UNION - (SELECT - match_datetime AS matchtime, - IF(m.team_id_home = $guest_id, 'H', 'A') AS match_place, - IF(m.team_id_home = $guest_id, tg.team_name, th.team_name) AS against, - m.goals_home, - m.goals_guest, - IF(m.team_id_home = $guest_id, - IF(m.goals_home + 0 > m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2)), - IF(m.goals_home + 0 < m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2) - ) - ) AS match_res - FROM " . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_TEAMS . ' AS th ON (th.season = m.season AND th.league = m.league AND th.team_id = team_id_home) - LEFT JOIN ' . FOOTB_TEAMS . " AS tg ON (tg.season = m.season AND tg.league = m.league AND tg.team_id = team_id_guest) - WHERE m.season = $season - AND m.league = $league - AND m.matchday <= $matchday - AND m.match_no <> $matchnumber - AND (m.team_id_home = $guest_id OR m.team_id_guest = $guest_id) - AND m.status IN(3,6) - ) - ORDER BY matchtime"; - - $result = $db->sql_query($sql); - $lastmatches = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - $numb_matches = sizeof($lastmatches); - - if ($numb_matches > 10) - $start = $numb_matches - 10; - else - $start = 0; - $rank = 0; - foreach ($lastmatches as $row) - { - $rank++; - if ($rank > $start) - { - $row_class = (!($rank % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - $match_res_style=''; - switch($row['match_res']) - { - case 0: - $match_res_style = 'match_draw'; - break; - case 1: - $match_res_style = 'match_win'; - break; - case 2: - $match_res_style = 'match_lost'; - break; - } - $template->assign_block_vars('last_guestteam', array( - 'ROW_CLASS' => $row_class, - 'MATCH_RESULT' => $match_res_style, - 'PLACE' => $row['match_place'], - 'AGAINST' => $row['against'], - 'GOALS_HOME' => $row['goals_home'], - 'GOALS_GUEST' => $row['goals_guest'], - ) - ); - } - } - - //last matches away guestteam - $sql = '(SELECT - match_date AS matchtime, - th.team_name AS against, - mh.goals_home AS goals_home, - mh.goals_guest, - IF(mh.goals_home + 0 < mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2)) AS match_res - FROM ' . FOOTB_MATCHES_HIST . ' As mh - LEFT JOIN ' . FOOTB_TEAMS_HIST . " AS th ON th.team_id = mh.team_id_home - WHERE mh.team_id_guest = $guest_id - ) - UNION - (SELECT - match_datetime AS matchtime, - t.team_name AS against, - m.goals_home AS goals_home, - m.goals_guest, - IF(m.goals_home + 0 < m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2)) AS match_res - FROM " . FOOTB_MATCHES . ' As m - LEFT JOIN ' . FOOTB_TEAMS . " AS t ON (t.season = m.season AND t.league = m.league AND t.team_id = m.team_id_home) - WHERE m.season = $season AND m.league = $league AND m.matchday <= $matchday AND m.match_no <> $matchnumber - AND m.team_id_guest = $guest_id - AND m.status IN (3,6) - ) - ORDER BY matchtime"; - - $result = $db->sql_query($sql); - $lastmatches = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - $numb_matches = sizeof($lastmatches); - - if ($numb_matches > 5) - $start = $numb_matches - 5; - else - $start = 0; - $rank = 0; - foreach ($lastmatches as $row) - { - $data_last_away = true; - $rank++; - if ($rank > $start) - { - $row_class = (!(($rank-$start) % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - $match_res_style=''; - switch($row['match_res']) - { - case 0: - $match_res_style = 'match_draw'; - break; - case 1: - $match_res_style = 'match_win'; - break; - case 2: - $match_res_style = 'match_lost'; - break; - } - $template->assign_block_vars('lastaway_guestteam', array( - 'ROW_CLASS' => $row_class, - 'MATCH_RESULT' => $match_res_style, - 'AGAINST' => $row['against'], - 'GOALS_HOME' => $row['goals_home'], - 'GOALS_GUEST' => $row['goals_guest'], - ) - ); - } - } - - if ($history_count == 0 and !($data_home and $data_guest)) - { - $percent_draw = 0; - $percent_home = 0; - $percent_guest = 0; - } - else - { - if ($value_h + $value_g == 0) - { - $percent_draw = 0; - $percent_home = 0; - $percent_guest = 0; - } - else - { - $percent_draw = round(($percent_draw * 100),0); - $rest = 100 - $percent_draw; - if ($rest > 0) - { - $percent_home = round(($rest * $value_h) / ($value_h + $value_g),0); - $percent_guest = $rest - $percent_home; - } - else - { - $percent_home = 0; - $percent_guest = 0; - } - } - } - - $sql_ary = array( - 'trend' => $percent_home . '|' . $percent_draw. '|' . $percent_guest, - ); - - $sql = 'UPDATE ' . FOOTB_MATCHES . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND match_no = $matchnumber"; - $result = $db->sql_query($sql); - $db->sql_freeresult($result); - - - $forecast_value = 0; - $forecast_quote = sprintf($user->lang['FORECAST_PTS']) . ': '. $value_h. ' : '. $value_g; - $forecast_value = $value_h - $value_g; - if($forecast_value >= -0.5 && $forecast_value <= 0.5) - { - $forecast = sprintf($user->lang['TENDENCY']) . ': '. sprintf($user->lang['DRAW']); - } - else if($forecast_value > 0.5) - { - $forecast = sprintf($user->lang['TENDENCY']) . ': '. sprintf($user->lang['WIN_FOR']) . ' '. $logo[$home_id]. ' '. $home_name; - } - else - { - $forecast = sprintf($user->lang['TENDENCY']) . ': '. sprintf($user->lang['WIN_FOR']) . ' '. $logo[$guest_id]. ' '. $guest_name;; - } - } - else - { - $data_history = false; - $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; - } - } - else - { - $data_history = false; - $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; - } -} - -if ($data_history) -{ - $main_title = $logo[$home_id]. ' '. $home_name. ' : '. $guest_name. ' '. $logo[$guest_id]; - $template->assign_vars(array( - 'MAIN_TITLE' => $main_title, - 'TEAM_HOME' => $logo[$home_id]. ' '. $home_name, - 'TEAM_GUEST' => $logo[$guest_id]. ' '. $guest_name, - 'FORECAST_QUOTE' => $forecast_quote, - 'FORECAST' => $forecast, - 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), - 'S_ERROR_MESSAGE' => $error_message, - 'S_DATA_HISTORY' => $data_history, - 'S_DATA_HIST' => $data_hist, - 'S_DATA_HOME' => $data_home, - 'S_DATA_GUEST' => $data_guest, - 'S_DATA_LASTHOME' => $data_last_home, - 'S_DATA_LASTAWAY' => $data_last_away, - ) - ); - - // output page - page_header(sprintf($user->lang['MATCH_STATS'])); -} -else -{ - $template->assign_vars(array( - 'MAIN_TITLE' => '', - 'TEAM_HOME' => '', - 'TEAM_GUEST' => '', - 'FORECAST_QUOTE' => '', - 'FORECAST' => '', - 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), - 'S_ERROR_MESSAGE' => $error_message, - 'S_DATA_HISTORY' => $data_history, - 'S_DATA_HIST' => false, - 'S_DATA_HOME' => false, - 'S_DATA_GUEST' => false, - 'S_DATA_LASTHOME' => false, - 'S_DATA_LASTAWAY' => false, - ) - ); - - // output page - page_header(sprintf($user->lang['MATCH_STATS'])); -} - -$template->set_filenames(array( - 'body' => 'hist_popup.html') -); - -page_footer(); +data['user_id'] == ANONYMOUS) + { + trigger_error('NO_GUEST_VIEW'); + } +} +if (!$config['football_user_view']) +{ + // Only Prediction League member should see this page + // Check Prediction League authorisation + if ( !$this->auth->acl_get('u_use_football') ) + { + trigger_error('NO_AUTH_VIEW'); + } +} + +//Football disabled? +if ($config['football_disable']) +{ + $message = (!empty($config['football_disable_msg'])) ? $config['football_disable_msg'] : 'FOOTBALL_DISABLED'; + trigger_error($message); +} + +$home_id = $this->request->variable('hid', 0); +$guest_id = $this->request->variable('gid', 0); +$season = $this->request->variable('s', 0); +$league = $this->request->variable('l', 0); +$matchday = $this->request->variable('m', 0); +$matchnumber = $this->request->variable('mn', 0); +$group_id = $this->request->variable('gr', ''); + + +// Check parms +$error_message = ''; +$data_history = false; +if (!$home_id OR !$guest_id OR !$season OR !$league OR !$matchday OR !$matchnumber) +{ + $data_history = false; + if (!$home_id) + { + $error_message .= sprintf($user->lang['NO_HOMETEAM']) . '
'; + } + if (!$guest_id) + { + $error_message .= sprintf($user->lang['NO_GUESTTEAM']) . '
'; + } + if (!$season) + { + $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; + } + if (!$league) + { + $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; + } + if (!$matchday) + { + $error_message .= sprintf($user->lang['NO_MATCHDAY']) . '
'; + } + if (!$matchnumber) + { + $error_message .= sprintf($user->lang['NO_MATCH']) . '
'; + } +} +else +{ + $season_info = season_info($season); + if (sizeof($season_info)) + { + $league_info = league_info($season, $league); + if (sizeof($league_info)) + { + $data_history = true; + $data_hist = false; + $data_home =false; + $data_guest = false; + $data_last_home = false; + $data_last_away = false; + $form_from = $matchday-5; + $percent_home = 0; + $percent_draw = 0; + $percent_guest = 0; + $stat_hist = ''; + $value_h = 0; + $value_g = 0; + $value_hg = 0; + $value_gg = 0; + $ext_path = $this->phpbb_path_helper->update_web_root_path($this->phpbb_extension_manager->get_extension_path('football/football', true)); + + $sql = 'SELECT * + FROM ' . FOOTB_TEAMS . " + WHERE season = $season + AND league = $league + AND team_id = $home_id"; + + $result = $db->sql_query($sql); + if ($row = $db->sql_fetchrow($result)) + { + $home_name = $row['team_name']; + if ($row['team_symbol'] <> '') + { + $logo[$home_id] = "\""" ; + } + else + { + $logo[$home_id] = "\"\"" ; + } + } + else + { + $error_message .= sprintf($user->lang['NO_HOMETEAM']) . '
'; + $data_history = false; + } + $db->sql_freeresult($result); + + $sql = 'SELECT * + FROM ' . FOOTB_TEAMS . " + WHERE season = $season + AND league = $league + AND team_id = $guest_id"; + + $result = $db->sql_query($sql); + if ($row = $db->sql_fetchrow($result)) + { + $guest_name = $row['team_name']; + if ($row['team_symbol'] <> '') + { + $logo[$guest_id] = "\""" ; + } + else + { + $logo[$guest_id] = "\"\"" ; + } + } + else + { + $error_message .= sprintf($user->lang['NO_GUESTTEAM']) . '
'; + $data_history = false; + } + $db->sql_freeresult($result); + + + // Match history + $sql = "SELECT + IF(mh.team_id_home = $home_id, + IF(mh.goals_home + 0 > mh.goals_guest, '+0', IF(mh.goals_home = mh.goals_guest, '30', '-0')), + IF(mh.goals_home + 0 < mh.goals_guest, '+90', IF(mh.goals_home = mh.goals_guest, '60', '-90'))) AS chart_points, + mh.match_date AS season, + mh.match_type AS league, + mh.team_id_home AS home_id, + mh.team_id_guest AS guest_id, + th.team_name AS home_name, + tg.team_name AS guest_name, + mh.goals_home, + mh.goals_guest + FROM " . FOOTB_MATCHES_HIST . ' AS mh + LEFT JOIN ' . FOOTB_TEAMS . " AS th ON (th.season = $season AND th.league = $league AND th.team_id = mh.team_id_home) + LEFT JOIN " . FOOTB_TEAMS . " AS tg ON (tg.season = $season AND tg.league = $league AND tg.team_id = mh.team_id_guest) + WHERE ((mh.team_id_home = $home_id AND mh.team_id_guest = $guest_id) + OR (mh.team_id_home = $guest_id AND mh.team_id_guest = $home_id)) + ORDER BY mh.match_date ASC"; + + $result = $db->sql_query($sql); + $history = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + $history_count = sizeof($history); + // Match history + $sql = "SELECT + IF(m.team_id_home = $home_id, + IF(m.goals_home + 0 > m.goals_guest, '+0', IF(m.goals_home = m.goals_guest, '30', '-0')), + IF(m.goals_home + 0 < m.goals_guest, '+90', IF(m.goals_home = m.goals_guest, '60', '-90'))) AS chart_points, + m.season, + m.league, + m.team_id_home AS home_id, + m.team_id_guest AS guest_id, + th.team_name AS home_name, + tg.team_name AS guest_name, + m.goals_home, + m.goals_guest + FROM " . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_TEAMS . " AS th ON (th.season = $season AND th.league = $league AND th.team_id = m.team_id_home) + LEFT JOIN " . FOOTB_TEAMS . " AS tg ON (tg.season = $season AND tg.league = $league AND tg.team_id = m.team_id_guest) + WHERE ((m.team_id_home = $home_id AND m.team_id_guest = $guest_id) OR (m.team_id_home = $guest_id AND m.team_id_guest = $home_id)) + AND m.status IN (3,6) + AND (m.season <> $season OR m.league <> $league OR m.match_no < $matchnumber) + ORDER BY m.season ASC, m.matchday ASC"; + + $result = $db->sql_query($sql); + if ($history_count != 0) + { + $history = array_merge($history, $db->sql_fetchrowset($result)); + } + else + { + $history = $db->sql_fetchrowset($result); + } + $db->sql_freeresult($result); + $history_count = sizeof($history); + if ($history_count != 0) + { + $chart_points = ''; + $data_hist = true; + $rank = 0; + $map_total_coords = array(); + $map_total_titles = array(); + foreach ($history as $row) + { + $chart_points = $chart_points . $row['chart_points'] . ','; + $coord_start = $start + ($rank * $vert); + $coord_end = $end + ($rank * $vert); + if (abs($row['chart_points']) > 45) + { + $coords = $coord_start . ",45," . $coord_end . "," . abs($row['chart_points']); + } + else + { + $coords = $coord_start . "," . abs($row['chart_points']) . "," . $coord_end . ",45"; + } + $map_total_coords[] = $coords; + $map_total_titles[] = $row['home_name'] . ' - ' . $row['guest_name'] . ' ' . $row['goals_home'] . ':' . $row['goals_guest']; + $rank++ ; + $row_class = (!($rank % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + $template->assign_block_vars('historie', array( + 'ROW_CLASS' => $row_class, + 'SEASON' => $row['season'], + 'LEAGUE' => $row['league'], + 'HLOGO' => $logo[$row['home_id']], + 'HNAME' => $row['home_name'], + 'GLOGO' => $logo[$row['guest_id']], + 'GNAME' => $row['guest_name'], + 'GOALS_HOME' => $row['goals_home'], + 'GOALS_GUEST' => $row['goals_guest'], + ) + ); + } + + // Statistic and forecast-points for historie + $sql = "SELECT + SUM(IF(team_id_home = $home_id, goals_home , goals_guest)) AS hg, + SUM(IF(team_id_home = $guest_id, goals_home , goals_guest)) AS gg, + SUM(IF(team_id_home = $home_id, IF(goals_home + 0 > goals_guest AND goals_home <> '' AND goals_guest <> '', 1 ,0), 0)) AS hw, + SUM(IF(team_id_home = $home_id, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1 ,0), 0)) AS hd, + SUM(IF(team_id_home = $home_id, IF(goals_home + 0 < goals_guest AND goals_home <> '' AND goals_guest <> '', 1 ,0), 0)) AS hl, + SUM(IF(team_id_home = $home_id, IF(goals_home + 0 > goals_guest, 1 ,0), IF(goals_home + 0 < goals_guest,1,0))) AS gw, + SUM(IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '',1,0)) AS gd, + SUM(IF(team_id_home = $home_id, IF(goals_home + 0 < goals_guest, 1 ,0), IF(goals_home + 0 > goals_guest,1,0))) AS gl, + SUM(IF(team_id_home = $home_id, + IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest, 1, 0)), + IF(goals_home + 0 < goals_guest, 4, IF(goals_home = goals_guest, 2, 0)) + ) + ) AS value_h, + SUM(IF(team_id_home = $guest_id, + IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest, 1, 0)), + IF(goals_home + 0 < goals_guest, 4, IF(goals_home = goals_guest, 2, 0)) + ) + ) AS value_g + FROM " . FOOTB_MATCHES_HIST . " + WHERE ((team_id_home = $home_id AND team_id_guest = $guest_id) + OR (team_id_home = $guest_id AND team_id_guest = $home_id))"; + + $result = $db->sql_query($sql); + $row_hist = $db->sql_fetchrow($result); + $db->sql_freeresult($result); + + $sql = "SELECT + SUM(IF(team_id_home = $home_id, goals_home , goals_guest)) AS hg, + SUM(IF(team_id_home = $guest_id, goals_home , goals_guest)) AS gg, + SUM(IF(team_id_home = $home_id, IF(goals_home + 0 > goals_guest, 1 ,0), 0)) AS hw, + SUM(IF(team_id_home = $home_id, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1 ,0), 0)) AS hd, + SUM(IF(team_id_home = $home_id, IF(goals_home + 0 < goals_guest, 1 ,0), 0)) AS hl, + SUM(IF(team_id_home = $home_id, IF(goals_home + 0 > goals_guest, 1 ,0), IF(goals_home + 0 < goals_guest, 1, 0))) AS gw, + SUM(IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)) AS gd, + SUM(IF(team_id_home = $home_id, IF(goals_home + 0 < goals_guest, 1 ,0), IF(goals_home + 0 > goals_guest, 1, 0))) AS gl, + SUM(IF(team_id_home = $home_id, + IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)), + IF(goals_home + 0 < goals_guest, 4, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 2, 0)) + ) + ) AS value_h, + SUM(IF(team_id_home = $guest_id, + IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '',1,0)), + IF(goals_home + 0 < goals_guest,4, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '',2,0)) + ) + ) AS value_g + FROM " . FOOTB_MATCHES . " + WHERE ((team_id_home = $home_id AND team_id_guest = $guest_id) OR (team_id_home = $guest_id AND team_id_guest = $home_id)) + AND status IN (3,6) + AND (season <> $season OR league <> $league OR match_no < $matchnumber)"; + + $result = $db->sql_query($sql); + $row = $db->sql_fetchrow($result); + if (sizeof($row_hist)) + { + if (sizeof($row)) + { + $row['hg'] += $row_hist['hg']; + $row['gg'] += $row_hist['gg']; + $row['hw'] += $row_hist['hw']; + $row['hd'] += $row_hist['hd']; + $row['hl'] += $row_hist['hl']; + $row['gw'] += $row_hist['gw']; + $row['gd'] += $row_hist['gd']; + $row['gl'] += $row_hist['gl']; + $row['value_h'] += $row_hist['value_h']; + $row['value_g'] += $row_hist['value_g']; + } + else + { + $row = $row_hist; + } + } + + if (sizeof($row)) + { + if ($history_count <= 2) + { + // $history_count = 1 => draws * 1/4 + // $history_count = 2 => draws * 1/6 + $percent_draw = round($row['gd'] / ((2 * $history_count) + 2),2); + } + else + { + // $history_count > 2 => draws * 1/2 + $percent_draw = round($row['gd'] / ($history_count * 2),2); + } + $value_h = round($row['value_h'] / ($history_count * 2),2); + $value_g = round($row['value_g'] / ($history_count * 2),2); + + $stat_hist = sprintf($user->lang['THIS_MATCH']) . ': ' . $row['hw'] . '/' . $row['hd'] . '/'. $row['hl'] . '   ' . + sprintf($user->lang['TOTAL']) . ': ' . $row['gw'] . '/'. $row['gd'] . '/' . $row['gl'] . '   ' . + sprintf($user->lang['GOALS']) . ': ' . $row['hg'] . ':'. $row['gg'] . '   ' . + sprintf($user->lang['FORECAST_PTS']) . ': ' . $value_h . ':' . $value_g; + + $template->assign_vars(array( + 'STAT_HIST' => $stat_hist, + ) + ); + } + $db->sql_freeresult($result); + + //Charts history + $chart_points = substr($chart_points, 0, strlen($chart_points) - 1); + $chart= "football_root_path + . "includes/chart_hist.php?v1=$chart_points' alt='" . sprintf($user->lang['TOTAL']) . "' usemap='#map_total'/>"; + $template->assign_block_vars('chart_hist_total', array( + 'CHARTIMAGE' => $chart, + ) + ); + for ($i = 0; $i < sizeof($map_total_coords); $i++) + { + $template->assign_block_vars('chart_hist_total.map_total', array( + 'COORDS' => $map_total_coords[$i], + 'TITLE' => $map_total_titles[$i], + ) + ); + } + } + + + // Table total + + if ($group_id == '' OR $group_id == '??') + { + $where_group = ''; + } + else + { + $where_group = " AND m.group_id = '" . $db->sql_escape($group_id) . "'"; + } + $sql = "SELECT + t.*, + SUM(1) AS matches, + SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 > goals_guest, 1, 0), IF(goals_home + 0 < goals_guest, 1, 0))) AS wins, + SUM(IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)) AS draws, + SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 < goals_guest, 1, 0), IF(goals_home + 0 > goals_guest, 1, 0))) AS lost, + SUM(IF(m.team_id_home = t.team_id, + IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)), + IF(goals_home + 0 < goals_guest, 3, IF(goals_home = goals_guest, 1, 0)) + ) + ) AS points, + SUM(IF(m.team_id_home = t.team_id, goals_home - goals_guest, goals_guest - goals_home)) AS gdiff, + SUM(IF(m.team_id_home = t.team_id, goals_home, goals_guest)) AS goals, + SUM(IF(m.team_id_home = t.team_id, goals_guest, goals_home)) AS goals_against + FROM " . FOOTB_TEAMS . " AS t + LEFT JOIN " . FOOTB_MATCHES . " AS m ON (m.season = t.season AND m.league = t.league AND (m.team_id_home = t.team_id OR m.team_id_guest = t.team_id)) + WHERE t.season = $season + AND t.league = $league + AND (m.matchday < $matchday) + AND (m.status IN (3,6)) $where_group + GROUP BY t.team_id + ORDER BY points DESC, gdiff DESC, goals DESC"; + + $result = $db->sql_query($sql); + $rank = 0; + $current_rank = 0; + $last_goals = 0; + $last_goals_againts = 0; + $last_points = 0; + while ($row = $db->sql_fetchrow($result)) + { + $rank++; + if ($last_points <> $row['points'] OR $last_goals <> $row['goals'] OR $last_goals_againts <> $row['goals_against']) + { + $current_rank = $rank; + } + $last_points = $row['points']; + $last_goals = $row['goals']; + $last_goals_againts = $row['goals_against']; + if ($home_id == $row['team_id']) + { + $data_home = true; + $value_h += round($row['points'] / ($row['matches'] * 3), 2); + $plfp = $current_rank . '(' . round($row['points'] / ($row['matches'] * 3), 2) . ')'; + $template->assign_block_vars('table_hometeam', array( + 'ROW_CLASS' => 'bg2 row_dark', + 'TABLE' => sprintf($user->lang['TABLE_TOTAL']), + 'PLFP' => $plfp, + 'MATCHES' => $row['matches'], + 'WINS' => $row['wins'], + 'DRAW' => $row['draws'], + 'LOST' => $row['lost'], + 'GOALS_HOME' => $row['goals'], + 'GOALS_GUEST' => $row['goals_against'], + 'GDIFF' => $row['gdiff'], + 'POINTS' => $row['points'], + ) + ); + } + if ($guest_id == $row['team_id']) + { + $data_guest = true; + $value_g += round($row['points'] / ($row['matches'] * 3),2); + $plfp = $current_rank . '(' . round($row['points'] / ($row['matches'] * 3), 2) . ')'; + $template->assign_block_vars('table_guestteam', array( + 'ROW_CLASS' => 'bg2 row_dark', + 'TABLE' => sprintf($user->lang['TABLE_TOTAL']), + 'PLFP' => $plfp, + 'MATCHES' => $row['matches'], + 'WINS' => $row['wins'], + 'DRAW' => $row['draws'], + 'LOST' => $row['lost'], + 'GOALS_HOME' => $row['goals'], + 'GOALS_GUEST' => $row['goals_against'], + 'GDIFF' => $row['gdiff'], + 'POINTS' => $row['points'], + ) + ); + } + } + $db->sql_freeresult($result); + + // Hometable hometeam + if ($data_home) + { + $sql = "SELECT + t.*, + SUM(1) AS matches, + SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 > goals_guest, 1, 0), IF(goals_home + 0 < goals_guest, 1, 0))) AS wins, + SUM(IF(goals_home = goals_guest, 1, 0)) AS draws, + SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 < goals_guest, 1, 0), IF(goals_home + 0 > goals_guest, 1, 0))) AS lost, + SUM(IF(m.team_id_home = t.team_id, + IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)), + IF(goals_home + 0 < goals_guest, 3, IF(goals_home = goals_guest, 1, 0)) + ) + ) AS points, + SUM(IF(m.team_id_home = t.team_id, goals_home - goals_guest , goals_guest - goals_home)) AS gdiff, + SUM(IF(m.team_id_home = t.team_id, goals_home , goals_guest)) AS goals, + SUM(IF(m.team_id_home = t.team_id, goals_guest , goals_home)) AS goals_against + FROM " . FOOTB_TEAMS . ' AS t + LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = t.season AND m.league = t.league AND m.team_id_home = t.team_id) + WHERE t.season = $season + AND t.league = $league + AND m.matchday < $matchday + AND m.status IN (3,6) + GROUP BY t.team_id + ORDER BY points DESC, gdiff DESC, goals DESC"; + + $result = $db->sql_query($sql); + $rank = 0; + $current_rank = 0; + $last_goals = 0; + $last_goals_againts = 0; + $last_points = 0; + while ($row = $db->sql_fetchrow($result)) + { + $data_home = true; + $rank++; + if ($last_points <> $row['points'] OR $last_goals <> $row['goals'] OR $last_goals_againts <> $row['goals_against']) + { + $current_rank = $rank; + } + $last_points = $row['points']; + $last_goals = $row['goals']; + $last_goals_againts = $row['goals_against']; + if ($home_id == $row['team_id']) + { + $win = $row['wins']; + $draw = $row['draws']; + $lost = $row['lost']; + $value_hg = round(((($win * 3) + $draw) / ($win + $draw + $lost)),2); + $value_h += $value_hg; + $plfp = $current_rank . '(' . $value_hg . ')'; + $template->assign_block_vars('table_hometeam', array( + 'ROW_CLASS' => 'bg1 row_light', + 'TABLE' => sprintf($user->lang['TABLE_HOME']), + 'PLFP' => $plfp, + 'MATCHES' => $row['matches'], + 'WINS' => $row['wins'], + 'DRAW' => $row['draws'], + 'LOST' => $row['lost'], + 'GOALS_HOME' => $row['goals'], + 'GOALS_GUEST' => $row['goals_against'], + 'GDIFF' => $row['gdiff'], + 'POINTS' => $row['points'], + ) + ); + } + } + $db->sql_freeresult($result); + } + + //Away-Table guestteam + if ($data_guest) + { + $sql = "SELECT + t.*, + SUM(1) AS matches, + SUM(IF((m.team_id_home = t.team_id), IF(m.goals_home + 0 > m.goals_guest, 1, 0), IF(m.goals_home + 0 < m.goals_guest, 1, 0))) AS wins, + SUM(IF(m.goals_home = m.goals_guest AND goals_home <> '' AND goals_guest <> '',1,0)) AS draws, + SUM(IF((m.team_id_home = t.team_id), IF(m.goals_home + 0 < m.goals_guest, 1, 0), IF(m.goals_home + 0 > m.goals_guest, 1, 0))) AS lost, + SUM(IF(m.team_id_home = t.team_id, + IF(m.goals_home + 0 > m.goals_guest, 3, IF(m.goals_home = m.goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)), + IF(m.goals_home + 0 < m.goals_guest, 3, IF(m.goals_home = m.goals_guest, 1, 0)) + ) + ) AS points, + SUM(IF(m.team_id_home = t.team_id,m.goals_home - m.goals_guest , m.goals_guest - m.goals_home)) AS gdiff, + SUM(IF(m.team_id_home = t.team_id,m.goals_home , m.goals_guest)) AS goals, + SUM(IF(m.team_id_home = t.team_id,m.goals_guest , m.goals_home)) AS goals_against + FROM " . FOOTB_TEAMS . ' AS t + LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = t.season AND m.league = t.league AND m.team_id_guest = t.team_id) + WHERE t.season = $season + AND t.league = $league + AND m.matchday < $matchday + AND m.status IN (3,6) + GROUP BY t.team_id + ORDER BY points DESC, gdiff DESC, goals DESC"; + + $result = $db->sql_query($sql); + $rank = 0; + $current_rank = 0; + $last_goals = 0; + $last_goals_againts = 0; + $last_points = 0; + while ($row = $db->sql_fetchrow($result)) + { + $rank++; + if ($last_points <> $row['points'] OR $last_goals <> $row['goals'] OR $last_goals_againts <> $row['goals_against']) + { + $current_rank = $rank; + } + $last_points = $row['points']; + $last_goals = $row['goals']; + $last_goals_againts = $row['goals_against']; + if ($guest_id == $row['team_id']) + { + $data_guest = true; + $win = $row['wins']; + $draw = $row['draws']; + $lost = $row['lost']; + $value_gg = round(((($win * 4) + ($draw * 2)) / ($win + $draw + $lost)),2); + $value_g += $value_gg; + $plfp = $current_rank . '(' . $value_gg . ')'; + $template->assign_block_vars('table_guestteam', array( + 'ROW_CLASS' => 'bg1 row_light', + 'TABLE' => sprintf($user->lang['TABLE_AWAY']), + 'PLFP' => $plfp, + 'MATCHES' => $row['matches'], + 'WINS' => $row['wins'], + 'DRAW' => $row['draws'], + 'LOST' => $row['lost'], + 'GOALS_HOME' => $row['goals'], + 'GOALS_GUEST' => $row['goals_against'], + 'GDIFF' => $row['gdiff'], + 'POINTS' => $row['points'], + ) + ); + } + } + $db->sql_freeresult($result); + } + + // Form-Table + $points_home = 0; + $points_guest = 0; + $form_matches = 0; + if ($data_home or $data_guest) + { + $sql = "SELECT + t.*, + SUM(1) AS matches, + SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 > goals_guest, 1, 0), IF(goals_home + 0 < goals_guest, 1, 0))) AS wins, + SUM(IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)) AS draws, + SUM(IF((m.team_id_home = t.team_id), IF(goals_home + 0 < goals_guest, 1, 0), IF(goals_home + 0 > goals_guest, 1, 0))) AS lost, + SUM(IF(m.team_id_home = t.team_id, + IF(goals_home + 0 > goals_guest, 3, IF(goals_home = goals_guest AND goals_home <> '' AND goals_guest <> '', 1, 0)), + IF(goals_home + 0 < goals_guest, 3, IF(goals_home = goals_guest, 1, 0)) + ) + ) AS points, + SUM(IF(m.team_id_home = t.team_id, goals_home - goals_guest , goals_guest - goals_home)) AS gdiff, + SUM(IF(m.team_id_home = t.team_id, goals_home , goals_guest)) AS goals, + SUM(IF(m.team_id_home = t.team_id, goals_guest , goals_home)) AS goals_against + FROM " . FOOTB_TEAMS . ' AS t + LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = t.season AND m.league = t.league AND ((m.team_id_home = t.team_id) OR (m.team_id_guest = t.team_id))) + WHERE t.season = $season + AND t.league = $league + AND m.matchday >= $form_from + AND m.matchday < $matchday + AND m.status IN (3,6) + GROUP BY t.team_id + ORDER BY points DESC, gdiff DESC, goals DESC"; + + $result = $db->sql_query($sql); + $rank = 0; + $current_rank = 0; + $last_goals = 0; + $last_goals_againts = 0; + $last_points = 0; + while ($row = $db->sql_fetchrow($result)) + { + $rank++; + if ($last_points <> $row['points'] OR $last_goals <> $row['goals'] OR $last_goals_againts <> $row['goals_against']) + { + $current_rank = $rank; + } + $last_points = $row['points']; + $last_goals = $row['goals']; + $last_goals_againts = $row['goals_against']; + if ($home_id == $row['team_id']) + { + $points_home = $row['points']; + if ($row['matches'] > $form_matches) + { + $form_matches = $row['matches']; + } + $data_home = true; + $win = $row['wins']; + $draw = $row['draws']; + $lost = $row['lost']; + $value_hg = round(((($win * 2) + $draw) / ($win + $draw + $lost)),2); + $value_h += $value_hg; + $plfp = $current_rank . '(' . $value_hg . ')'; + $template->assign_block_vars('table_hometeam', array( + 'ROW_CLASS' => 'bg2 row_dark', + 'TABLE' => sprintf($user->lang['TABLE_FORM']), + 'PLFP' => $plfp, + 'MATCHES' => $row['matches'], + 'WINS' => $row['wins'], + 'DRAW' => $row['draws'], + 'LOST' => $row['lost'], + 'GOALS_HOME' => $row['goals'], + 'GOALS_GUEST' => $row['goals_against'], + 'GDIFF' => $row['gdiff'], + 'POINTS' => $row['points'], + ) + ); + } + if ($guest_id == $row['team_id']) + { + $points_guest = $row['points']; + if ($row['matches'] > $form_matches) + { + $form_matches = $row['matches']; + } + $data_guest = true; + $win = $row['wins']; + $draw = $row['draws']; + $lost = $row['lost']; + $value_gg = round(((($win * 2) + $draw) / ($win + $draw + $lost)),2); + $value_g += $value_gg; + $plfp = $current_rank . '(' . $value_gg . ')'; + $template->assign_block_vars('table_guestteam', array( + 'ROW_CLASS' => 'bg2 row_dark', + 'TABLE' => sprintf($user->lang['TABLE_FORM']), + 'PLFP' => $plfp, + 'MATCHES' => $row['matches'], + 'WINS' => $row['wins'], + 'DRAW' => $row['draws'], + 'LOST' => $row['lost'], + 'GOALS_HOME' => $row['goals'], + 'GOALS_GUEST' => $row['goals_against'], + 'GDIFF' => $row['gdiff'], + 'POINTS' => $row['points'], + ) + ); + } + } + $db->sql_freeresult($result); + } + + $matches_played = 0; + $draws_home = 0; + $draws_guest = 0; + + // Chart hometeam + if ($data_home) + { + $sql = "SELECT + IF(m.team_id_home = t.team_id, + IF(goals_home + 0 > goals_guest, '+0', IF(goals_home = goals_guest, '30', '-0')), + IF(goals_home + 0 < goals_guest, '+90', IF(goals_home = goals_guest, '60', '-90'))) AS chart_points, + th.team_name AS home_name, + tg.team_name AS guest_name, + m.goals_home, + m.goals_guest + FROM " . FOOTB_TEAMS . ' AS t + LEFT JOIN ' . FOOTB_MATCHES . ' AS m ON (m.season = t.season AND m.league = t.league + AND (m.team_id_home = t.team_id OR m.team_id_guest = t.team_id)) + LEFT JOIN ' . FOOTB_TEAMS . " AS th ON (th.season = $season AND th.league = $league AND th.team_id = m.team_id_home) + LEFT JOIN " . FOOTB_TEAMS . " AS tg ON (tg.season = $season AND tg.league = $league AND tg.team_id = m.team_id_guest) + WHERE t.season = $season + AND t.league = $league + AND m.matchday <= $matchday + AND m.match_no <> $matchnumber + AND m.status IN (3,6) + AND t.team_id=$home_id + ORDER BY m.match_datetime ASC"; + + $result = $db->sql_query($sql); + $trend = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + $trend_count = sizeof($trend); + $chart_points = ''; + $map_home_coords = array(); + $map_home_titles = array(); + $rank = 0; + foreach ($trend as $row) + { + if ($row['chart_points'] == '30' or $row['chart_points'] == '60') + { + $draws_home += 1; + } + $chart_points = $chart_points . $row['chart_points']. ','; + $coord_start = $start + ($rank * $vert); + $coord_end = $end + ($rank * $vert); + if (abs($row['chart_points']) > 45) + { + $coords = $coord_start . ",45," . $coord_end . "," . abs($row['chart_points']); + } + else + { + $coords = $coord_start . "," . abs($row['chart_points']) . "," . $coord_end . ",45"; + } + $map_home_coords[] = $coords; + $map_home_titles[] = $row['home_name'] . ' - ' . $row['guest_name'] . ' ' . $row['goals_home'] . ':' . $row['goals_guest']; + $rank++; + } + $chart_points = substr($chart_points, 0, strlen($chart_points) - 1); + $chart= "football_root_path + . "includes/chart_hist.php?v1=$chart_points' alt='" . sprintf($user->lang['HIST_CHART']) . "' usemap='#map_home'/>"; + $template->assign_block_vars('chart_home', array( + 'CHARTIMAGE' => $chart, + ) + ); + for ($i = 0; $i < sizeof($map_home_coords); $i++) + { + $template->assign_block_vars('chart_home.map_home', array( + 'COORDS' => $map_home_coords[$i], + 'TITLE' => $map_home_titles[$i], + ) + ); + } + $matches_played = sizeof($map_home_coords); + } + + //Chart guestteam + if ($data_guest) + { + $sql = "SELECT + IF(m.team_id_home = t.team_id, + IF(goals_home + 0 > goals_guest, '+0', IF(goals_home = goals_guest, '30', '-0')), + IF(goals_home + 0 < goals_guest, '+90', IF(goals_home = goals_guest, '60', '-90') + ) + ) AS chart_points, + th.team_name AS home_name, + tg.team_name AS guest_name, + m.goals_home, + m.goals_guest + FROM " . FOOTB_TEAMS . ' AS t + LEFT JOIN ' . FOOTB_MATCHES . ' AS m ON (m.season = t.season AND m.league = t.league + AND (m.team_id_home = t.team_id OR m.team_id_guest = t.team_id)) + LEFT JOIN ' . FOOTB_TEAMS . " AS th ON (th.season = $season AND th.league = $league AND th.team_id = m.team_id_home) + LEFT JOIN " . FOOTB_TEAMS . " AS tg ON (tg.season = $season AND tg.league = $league AND tg.team_id = m.team_id_guest) + WHERE t.season = $season + AND t.league = $league + AND m.matchday <= $matchday + AND m.match_no <> $matchnumber + AND m.status IN (3,6) + AND t.team_id=$guest_id + ORDER BY m.match_datetime ASC"; + + $result = $db->sql_query($sql); + $trend = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + $trend_count = sizeof($trend); + $chart_points = ''; + $map_guest_coords = array(); + $map_guest_titles = array(); + $rank = 0; + foreach ($trend as $row) + { + if ($row['chart_points'] == '30' or $row['chart_points'] == '60') + { + $draws_guest += 1; + } + $chart_points = $chart_points . $row['chart_points']. ','; + $coord_start = $start + ($rank * $vert); + $coord_end = $end + ($rank * $vert); + if (abs($row['chart_points']) > 45) + { + $coords = $coord_start . ",45," . $coord_end . "," . abs($row['chart_points']); + } + else + { + $coords = $coord_start . "," . abs($row['chart_points']) . "," . $coord_end . ",45"; + } + $map_guest_coords[] = $coords; + $map_guest_titles[] = $row['home_name'] . ' - ' . $row['guest_name'] . ' ' . $row['goals_home'] . ':' . $row['goals_guest']; + $rank++; + } + $chart_points = substr($chart_points, 0, strlen($chart_points) - 1); + $chart= "football_root_path + . "includes/chart_hist.php?v1=$chart_points' alt='" . sprintf($user->lang['HIST_CHART']) . "' usemap='#map_guest'/>"; + $template->assign_block_vars('chart_guest', array( + 'CHARTIMAGE' => $chart, + ) + ); + for ($i = 0; $i < sizeof($map_guest_coords); $i++) + { + $template->assign_block_vars('chart_guest.map_guest', array( + 'COORDS' => $map_guest_coords[$i], + 'TITLE' => $map_guest_titles[$i], + ) + ); + } + $matches_played = $matches_played + sizeof($map_guest_coords); + } + + if ($data_home and $data_guest) + { + $percent_draws_season = round(($draws_home + $draws_guest) / $matches_played, 2); + } + else + { + $percent_draws_season = 0.0; + $form_matches = 0; + } + if ($history_count <= 2) + { + switch($form_matches) + { + case 0: + $percent_draw += (2 - $history_count) * 0.1; + break; + case 1: + $percent_draw += (2 - $history_count) * 0.1 + round($percent_draws_season / 4, 2); + break; + default: + $percent_draw += (2 - $history_count) * 0.1 + round($percent_draws_season / 2, 2); + break; + } + } + else + { + if (abs($points_home - $points_guest) < 3) + { + $equal_form_factor = 1.1; + } + else + { + $equal_form_factor = 1.0; + } + switch($form_matches) + { + case 0: + $percent_draw = round($percent_draw * 1.5, 2); + break; + case 1: + $percent_draw = round(($percent_draw * 1.5) + ($percent_draws_season / 8), 2); + break; + case 2: + case 3: + case 4: + $percent_draw = round(($percent_draw * $equal_form_factor) + ($percent_draws_season / 4), 2); + break; + default: + $percent_draw = round(($percent_draw * $equal_form_factor) + ($percent_draws_season / 2), 2); + if ($percent_draw > 1.0) + { + $percent_draw = 1.0; + } + //$percent_draw = ($percent_draw * $equal_form_factor) + ($percent_draws_season / 2) ; + break; + } + } + $percent_draw = $percent_draw; + + // last matches hometeam + $sql = "(SELECT + match_date AS matchtime, + IF(mh.team_id_home = $home_id, 'H', 'A') AS match_place, + IF(mh.team_id_home = $home_id, tgh.team_name, thh.team_name) AS against, + mh.goals_home, + mh.goals_guest, + IF(mh.team_id_home = $home_id, + IF(mh.goals_home + 0 > mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2)), + IF(mh.goals_home + 0 < mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2) + ) + ) AS match_res + FROM " . FOOTB_MATCHES_HIST . ' AS mh + LEFT JOIN ' . FOOTB_TEAMS_HIST . ' AS thh ON thh.team_id = mh.team_id_home + LEFT JOIN ' . FOOTB_TEAMS_HIST . " AS tgh ON tgh.team_id = mh.team_id_guest + WHERE (mh.team_id_home = $home_id + OR mh.team_id_guest = $home_id) + ) + UNION + (SELECT + match_datetime AS matchtime, + IF(m.team_id_home = $home_id, 'H', 'A') AS match_place, + IF(m.team_id_home = $home_id, tg.team_name, th.team_name) AS against, + m.goals_home, + m.goals_guest, + IF(m.team_id_home = $home_id, + IF(m.goals_home + 0 > m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2)), + IF(m.goals_home + 0 < m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2) + ) + ) AS match_res + FROM " . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_TEAMS . ' AS th ON (th.season = m.season AND th.league = m.league AND th.team_id = team_id_home) + LEFT JOIN ' . FOOTB_TEAMS . " AS tg ON (tg.season = m.season AND tg.league = m.league AND tg.team_id = team_id_guest) + WHERE m.season = $season + AND m.league = $league + AND m.matchday <= $matchday + AND m.match_no <> $matchnumber + AND (m.team_id_home = $home_id OR m.team_id_guest = $home_id) + AND m.status IN(3,6) + ) + ORDER BY matchtime"; + + $result = $db->sql_query($sql); + $lastmatches = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + $numb_matches = sizeof($lastmatches); + + + if ($numb_matches > 10) + $start = $numb_matches - 10; + else + $start = 0; + $rank = 0; + foreach ($lastmatches as $row) + { + $rank++; + if ($rank > $start) + { + $row_class = (!($rank % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + $match_res_style=''; + switch($row['match_res']) + { + case 0: + $match_res_style = 'match_draw'; + break; + case 1: + $match_res_style = 'match_win'; + break; + case 2: + $match_res_style = 'match_lost'; + break; + } + $template->assign_block_vars('last_hometeam', array( + 'ROW_CLASS' => $row_class, + 'MATCH_RESULT' => $match_res_style, + 'PLACE' => $row['match_place'], + 'AGAINST' => $row['against'], + 'GOALS_HOME' => $row['goals_home'], + 'GOALS_GUEST' => $row['goals_guest'], + ) + ); + } + } + + //last matches home hometeam + $sql = '(SELECT + match_date AS matchtime, + th.team_name AS against, + mh.goals_home, + mh.goals_guest, + IF(mh.goals_home + 0 > mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2)) AS match_res + FROM ' . FOOTB_MATCHES_HIST . ' AS mh + LEFT JOIN ' . FOOTB_TEAMS_HIST . " AS th ON th.team_id = mh.team_id_guest + WHERE mh.team_id_home = $home_id + ) + UNION + (SELECT + match_datetime AS matchtime, + t.team_name AS against, + m.goals_home, + m.goals_guest, + IF(m.goals_home + 0 > m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2)) AS match_res + FROM " . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_TEAMS . " AS t ON (t.season = m.season AND t.league = m.league AND t.team_id = m.team_id_guest) + WHERE m.season = $season + AND m.league = $league + AND m.matchday <= $matchday + AND m.match_no <> $matchnumber + AND m.team_id_home = $home_id + AND m.status IN (3,6) + ) + ORDER BY matchtime"; + + $result = $db->sql_query($sql); + $lastmatches = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + $numb_matches = sizeof($lastmatches); + + if ($numb_matches > 5) + $start = $numb_matches - 5; + else + $start = 0; + $rank = 0; + foreach ($lastmatches as $row) + { + $data_last_home = true; + $rank++; + if ($rank > $start) + { + $row_class = (!(($rank-$start) % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + $match_res_style=''; + switch($row['match_res']) + { + case 0: + $match_res_style = 'match_draw'; + break; + case 1: + $match_res_style = 'match_win'; + break; + case 2: + $match_res_style = 'match_lost'; + break; + } + $template->assign_block_vars('lasthome_hometeam', array( + 'ROW_CLASS' => $row_class, + 'MATCH_RESULT' => $match_res_style, + 'AGAINST' => $row['against'], + 'GOALS_HOME' => $row['goals_home'], + 'GOALS_GUEST' => $row['goals_guest'], + ) + ); + } + } + + //last game guestteam + $sql = "(SELECT + match_date AS matchtime, + IF(mh.team_id_home = $guest_id, 'H', 'A') AS match_place, + IF(mh.team_id_home = $guest_id, tgh.team_name, thh.team_name) AS against, + mh.goals_home, + mh.goals_guest, + IF(mh.team_id_home = $guest_id, + IF(mh.goals_home + 0 > mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2)), + IF(mh.goals_home + 0 < mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2) + ) + ) AS match_res + FROM " . FOOTB_MATCHES_HIST . ' AS mh + LEFT JOIN ' . FOOTB_TEAMS_HIST . ' AS thh ON thh.team_id = mh.team_id_home + LEFT JOIN ' . FOOTB_TEAMS_HIST . " AS tgh ON tgh.team_id = mh.team_id_guest + WHERE mh.team_id_home = $guest_id + OR mh.team_id_guest = $guest_id + ) + UNION + (SELECT + match_datetime AS matchtime, + IF(m.team_id_home = $guest_id, 'H', 'A') AS match_place, + IF(m.team_id_home = $guest_id, tg.team_name, th.team_name) AS against, + m.goals_home, + m.goals_guest, + IF(m.team_id_home = $guest_id, + IF(m.goals_home + 0 > m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2)), + IF(m.goals_home + 0 < m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2) + ) + ) AS match_res + FROM " . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_TEAMS . ' AS th ON (th.season = m.season AND th.league = m.league AND th.team_id = team_id_home) + LEFT JOIN ' . FOOTB_TEAMS . " AS tg ON (tg.season = m.season AND tg.league = m.league AND tg.team_id = team_id_guest) + WHERE m.season = $season + AND m.league = $league + AND m.matchday <= $matchday + AND m.match_no <> $matchnumber + AND (m.team_id_home = $guest_id OR m.team_id_guest = $guest_id) + AND m.status IN(3,6) + ) + ORDER BY matchtime"; + + $result = $db->sql_query($sql); + $lastmatches = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + $numb_matches = sizeof($lastmatches); + + if ($numb_matches > 10) + $start = $numb_matches - 10; + else + $start = 0; + $rank = 0; + foreach ($lastmatches as $row) + { + $rank++; + if ($rank > $start) + { + $row_class = (!($rank % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + $match_res_style=''; + switch($row['match_res']) + { + case 0: + $match_res_style = 'match_draw'; + break; + case 1: + $match_res_style = 'match_win'; + break; + case 2: + $match_res_style = 'match_lost'; + break; + } + $template->assign_block_vars('last_guestteam', array( + 'ROW_CLASS' => $row_class, + 'MATCH_RESULT' => $match_res_style, + 'PLACE' => $row['match_place'], + 'AGAINST' => $row['against'], + 'GOALS_HOME' => $row['goals_home'], + 'GOALS_GUEST' => $row['goals_guest'], + ) + ); + } + } + + //last matches away guestteam + $sql = '(SELECT + match_date AS matchtime, + th.team_name AS against, + mh.goals_home AS goals_home, + mh.goals_guest, + IF(mh.goals_home + 0 < mh.goals_guest, 1, IF(mh.goals_home = mh.goals_guest, 0, 2)) AS match_res + FROM ' . FOOTB_MATCHES_HIST . ' As mh + LEFT JOIN ' . FOOTB_TEAMS_HIST . " AS th ON th.team_id = mh.team_id_home + WHERE mh.team_id_guest = $guest_id + ) + UNION + (SELECT + match_datetime AS matchtime, + t.team_name AS against, + m.goals_home AS goals_home, + m.goals_guest, + IF(m.goals_home + 0 < m.goals_guest, 1, IF(m.goals_home = m.goals_guest, 0, 2)) AS match_res + FROM " . FOOTB_MATCHES . ' As m + LEFT JOIN ' . FOOTB_TEAMS . " AS t ON (t.season = m.season AND t.league = m.league AND t.team_id = m.team_id_home) + WHERE m.season = $season AND m.league = $league AND m.matchday <= $matchday AND m.match_no <> $matchnumber + AND m.team_id_guest = $guest_id + AND m.status IN (3,6) + ) + ORDER BY matchtime"; + + $result = $db->sql_query($sql); + $lastmatches = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + $numb_matches = sizeof($lastmatches); + + if ($numb_matches > 5) + $start = $numb_matches - 5; + else + $start = 0; + $rank = 0; + foreach ($lastmatches as $row) + { + $data_last_away = true; + $rank++; + if ($rank > $start) + { + $row_class = (!(($rank-$start) % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + $match_res_style=''; + switch($row['match_res']) + { + case 0: + $match_res_style = 'match_draw'; + break; + case 1: + $match_res_style = 'match_win'; + break; + case 2: + $match_res_style = 'match_lost'; + break; + } + $template->assign_block_vars('lastaway_guestteam', array( + 'ROW_CLASS' => $row_class, + 'MATCH_RESULT' => $match_res_style, + 'AGAINST' => $row['against'], + 'GOALS_HOME' => $row['goals_home'], + 'GOALS_GUEST' => $row['goals_guest'], + ) + ); + } + } + + if ($history_count == 0 and !($data_home and $data_guest)) + { + $percent_draw = 0; + $percent_home = 0; + $percent_guest = 0; + } + else + { + if ($value_h + $value_g == 0) + { + $percent_draw = 0; + $percent_home = 0; + $percent_guest = 0; + } + else + { + $percent_draw = round(($percent_draw * 100),0); + $rest = 100 - $percent_draw; + if ($rest > 0) + { + $percent_home = round(($rest * $value_h) / ($value_h + $value_g),0); + $percent_guest = $rest - $percent_home; + } + else + { + $percent_home = 0; + $percent_guest = 0; + } + } + } + + $sql_ary = array( + 'trend' => $percent_home . '|' . $percent_draw. '|' . $percent_guest, + ); + + $sql = 'UPDATE ' . FOOTB_MATCHES . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND match_no = $matchnumber"; + $result = $db->sql_query($sql); + $db->sql_freeresult($result); + + + $forecast_value = 0; + $forecast_quote = sprintf($user->lang['FORECAST_PTS']) . ': '. $value_h. ' : '. $value_g; + $forecast_value = $value_h - $value_g; + if($forecast_value >= -0.5 && $forecast_value <= 0.5) + { + $forecast = sprintf($user->lang['TENDENCY']) . ': '. sprintf($user->lang['DRAW']); + } + else if($forecast_value > 0.5) + { + $forecast = sprintf($user->lang['TENDENCY']) . ': '. sprintf($user->lang['WIN_FOR']) . ' '. $logo[$home_id]. ' '. $home_name; + } + else + { + $forecast = sprintf($user->lang['TENDENCY']) . ': '. sprintf($user->lang['WIN_FOR']) . ' '. $logo[$guest_id]. ' '. $guest_name;; + } + } + else + { + $data_history = false; + $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; + } + } + else + { + $data_history = false; + $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; + } +} + +if ($data_history) +{ + $main_title = $logo[$home_id]. ' '. $home_name. ' : '. $guest_name. ' '. $logo[$guest_id]; + $template->assign_vars(array( + 'MAIN_TITLE' => $main_title, + 'TEAM_HOME' => $logo[$home_id]. ' '. $home_name, + 'TEAM_GUEST' => $logo[$guest_id]. ' '. $guest_name, + 'FORECAST_QUOTE' => $forecast_quote, + 'FORECAST' => $forecast, + 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), + 'S_ERROR_MESSAGE' => $error_message, + 'S_DATA_HISTORY' => $data_history, + 'S_DATA_HIST' => $data_hist, + 'S_DATA_HOME' => $data_home, + 'S_DATA_GUEST' => $data_guest, + 'S_DATA_LASTHOME' => $data_last_home, + 'S_DATA_LASTAWAY' => $data_last_away, + ) + ); + + // output page + page_header(sprintf($user->lang['MATCH_STATS'])); +} +else +{ + $template->assign_vars(array( + 'MAIN_TITLE' => '', + 'TEAM_HOME' => '', + 'TEAM_GUEST' => '', + 'FORECAST_QUOTE' => '', + 'FORECAST' => '', + 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), + 'S_ERROR_MESSAGE' => $error_message, + 'S_DATA_HISTORY' => $data_history, + 'S_DATA_HIST' => false, + 'S_DATA_HOME' => false, + 'S_DATA_GUEST' => false, + 'S_DATA_LASTHOME' => false, + 'S_DATA_LASTAWAY' => false, + ) + ); + + // output page + page_header(sprintf($user->lang['MATCH_STATS'])); +} + +$template->set_filenames(array( + 'body' => 'hist_popup.html') +); + +page_footer(); ?> \ No newline at end of file diff --git a/block/last_results.php b/block/last_results.php index d79892d..f8e7ca0 100644 --- a/block/last_results.php +++ b/block/last_results.php @@ -1,150 +1,150 @@ -data['user_id'], $season, $league); -$edit_mode = false; -$display_group = false; -$display_ko = false; -$data_lastresults = false; -$curr_year = date("Y"); -$matchnumber = 0; -$match_date = ""; - -$local_board_time = time() + ($config['football_time_shift'] * 3600); -$sql = 'SELECT * FROM ' . FOOTB_MATCHDAYS . " WHERE status = 0 AND delivery_date < FROM_UNIXTIME('$local_board_time')"; - -// Calculate matches AND results of matchday -$sql = "SELECT - m.season, - m.league, - m.matchday, - m.status, - m.match_datetime, - LEFT(m.match_datetime, 10) AS match_date, - l.league_name, - t1.team_symbol AS home_symbol, - t2.team_symbol AS guest_symbol, - t1.team_name AS home_name, - t2.team_name AS guest_name, - t1.team_name_short AS home_short, - t2.team_name_short AS guest_short, - m.goals_home, - m.goals_guest, - m.ko_match AS ko_match, - m.goals_overtime_home AS kogoals_home, - m.goals_overtime_guest AS kogoals_guest, - CONCAT( - CASE DATE_FORMAT(m.match_datetime,'%w') - WHEN 0 THEN '" . $lang_dates['Sun'] . "' - WHEN 1 THEN '" . $lang_dates['Mon'] . "' - WHEN 2 THEN '" . $lang_dates['Tue'] . "' - WHEN 3 THEN '" . $lang_dates['Wed'] . "' - WHEN 4 THEN '" . $lang_dates['Thu'] . "' - WHEN 5 THEN '" . $lang_dates['Fri'] . "' - WHEN 6 THEN '" . $lang_dates['Sat'] . "' - ELSE 'Error' END, - DATE_FORMAT(m.match_datetime,' %d.%m. %H:%i') - ) AS match_time - FROM " . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_LEAGUES . ' AS l ON (l.season = m.season AND l.league = m.league) - LEFT JOIN ' . FOOTB_TEAMS . ' AS t1 ON (t1.season = m.season AND t1.league = m.league AND t1.team_id = m.team_id_home) - LEFT JOIN ' . FOOTB_TEAMS . " AS t2 ON (t2.season = m.season AND t2.league = m.league AND t2.team_id = m.team_id_guest) - WHERE m.match_datetime < FROM_UNIXTIME('$local_board_time') - ORDER BY m.match_datetime DESC, m.league ASC - LIMIT 100"; - -$result = $db->sql_query($sql); -$ext_path = $this->phpbb_path_helper->update_web_root_path($this->phpbb_extension_manager->get_extension_path('football/football', true)); -while($row = $db->sql_fetchrow($result)) -{ - $data_lastresults = true; - $matchnumber++ ; - $row_class = (!($matchnumber % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - - if ($match_date <> $row['match_date']) - { - $match_date = ($match_date == "") ? $row['match_date'] : $match_date; - if ($matchnumber > $config['football_display_last_results'] ) - { - break; - } - } - $homelogo = $row['home_symbol']; - $homename = $row['home_name']; - $homeshort = $row['home_short']; - - $guestlogo = $row['guest_symbol']; - $guestname = $row['guest_name']; - $guestshort = $row['guest_short']; - - if ($homelogo <> '') - { - $logoH = "\""" ; - } - else - { - $logoH = "\"\"" ; - } - if ($guestlogo <> '') - { - $logoG = "\""" ; - } - else - { - $logoG = "\"\"" ; - } - - - $goals_home = ($row['goals_home'] == '') ? '- ' : $row['goals_home']; - $goals_guest = ($row['goals_guest'] == '') ? ' -' : $row['goals_guest']; - $kogoals_home = ($row['kogoals_home'] == '') ? '- ' : $row['kogoals_home']; - $kogoals_guest = ($row['kogoals_guest'] == '') ? ' -' : $row['kogoals_guest']; - $colorstyle = color_style($row['status']); - - $template->assign_block_vars('last_results', array( - 'ROW_CLASS' => $row_class, - 'U_RESULTS_LINK'=> $this->helper->route('football_main_controller', array('side' => 'results', 's' => $row['season'], 'l' => $row['league'], 'm' => $row['matchday'])), - 'MATCH_DATE' => $row['match_date'], - 'MATCH_TIME' => $row['match_time'], - 'LEAGUE_NAME' => $row['league_name'], - 'LOGO_HOME' => $logoH, - 'LOGO_GUEST' => $logoG, - 'HOME_NAME' => $homename, - 'GUEST_NAME' => $guestname, - 'HOME_SHORT' => $homeshort, - 'GUEST_SHORT' => $guestshort, - 'GOALS_HOME' => $goals_home, - 'GOALS_GUEST' => $goals_guest, - 'COLOR_STYLE' => color_style($row['status']), - 'KOGOALS_HOME' => $kogoals_home, - 'KOGOALS_GUEST' => $kogoals_guest, - 'COLOR_STYLE' => $colorstyle, - ) - ); -} -$db->sql_freeresult($result); - - - -$sidename = sprintf($user->lang['LAST_RESULTS']); - -$template->assign_vars(array( - 'S_DISPLAY_LAST_RESULTS' => true, - 'S_SIDENAME' => $sidename, - 'S_DATA_LAST_RESULTS' => $data_lastresults, - 'S_USER_IS_MEMBER' => $user_is_member, - ) -); - +data['user_id'], $season, $league); +$edit_mode = false; +$display_group = false; +$display_ko = false; +$data_lastresults = false; +$curr_year = date("Y"); +$matchnumber = 0; +$match_date = ""; + +$local_board_time = time() + ($config['football_time_shift'] * 3600); +$sql = 'SELECT * FROM ' . FOOTB_MATCHDAYS . " WHERE status = 0 AND delivery_date < FROM_UNIXTIME('$local_board_time')"; + +// Calculate matches AND results of matchday +$sql = "SELECT + m.season, + m.league, + m.matchday, + m.status, + m.match_datetime, + LEFT(m.match_datetime, 10) AS match_date, + l.league_name, + t1.team_symbol AS home_symbol, + t2.team_symbol AS guest_symbol, + t1.team_name AS home_name, + t2.team_name AS guest_name, + t1.team_name_short AS home_short, + t2.team_name_short AS guest_short, + m.goals_home, + m.goals_guest, + m.ko_match AS ko_match, + m.goals_overtime_home AS kogoals_home, + m.goals_overtime_guest AS kogoals_guest, + CONCAT( + CASE DATE_FORMAT(m.match_datetime,'%w') + WHEN 0 THEN '" . $lang_dates['Sun'] . "' + WHEN 1 THEN '" . $lang_dates['Mon'] . "' + WHEN 2 THEN '" . $lang_dates['Tue'] . "' + WHEN 3 THEN '" . $lang_dates['Wed'] . "' + WHEN 4 THEN '" . $lang_dates['Thu'] . "' + WHEN 5 THEN '" . $lang_dates['Fri'] . "' + WHEN 6 THEN '" . $lang_dates['Sat'] . "' + ELSE 'Error' END, + DATE_FORMAT(m.match_datetime,' %d.%m. %H:%i') + ) AS match_time + FROM " . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_LEAGUES . ' AS l ON (l.season = m.season AND l.league = m.league) + LEFT JOIN ' . FOOTB_TEAMS . ' AS t1 ON (t1.season = m.season AND t1.league = m.league AND t1.team_id = m.team_id_home) + LEFT JOIN ' . FOOTB_TEAMS . " AS t2 ON (t2.season = m.season AND t2.league = m.league AND t2.team_id = m.team_id_guest) + WHERE m.match_datetime < FROM_UNIXTIME('$local_board_time') + ORDER BY m.match_datetime DESC, m.league ASC + LIMIT 100"; + +$result = $db->sql_query($sql); +$ext_path = $this->phpbb_path_helper->update_web_root_path($this->phpbb_extension_manager->get_extension_path('football/football', true)); +while($row = $db->sql_fetchrow($result)) +{ + $data_lastresults = true; + $matchnumber++ ; + $row_class = (!($matchnumber % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + + if ($match_date <> $row['match_date']) + { + $match_date = ($match_date == "") ? $row['match_date'] : $match_date; + if ($matchnumber > $config['football_display_last_results'] ) + { + break; + } + } + $homelogo = $row['home_symbol']; + $homename = $row['home_name']; + $homeshort = $row['home_short']; + + $guestlogo = $row['guest_symbol']; + $guestname = $row['guest_name']; + $guestshort = $row['guest_short']; + + if ($homelogo <> '') + { + $logoH = "\""" ; + } + else + { + $logoH = "\"\"" ; + } + if ($guestlogo <> '') + { + $logoG = "\""" ; + } + else + { + $logoG = "\"\"" ; + } + + + $goals_home = ($row['goals_home'] == '') ? '- ' : $row['goals_home']; + $goals_guest = ($row['goals_guest'] == '') ? ' -' : $row['goals_guest']; + $kogoals_home = ($row['kogoals_home'] == '') ? '- ' : $row['kogoals_home']; + $kogoals_guest = ($row['kogoals_guest'] == '') ? ' -' : $row['kogoals_guest']; + $colorstyle = color_style($row['status']); + + $template->assign_block_vars('last_results', array( + 'ROW_CLASS' => $row_class, + 'U_RESULTS_LINK'=> $this->helper->route('football_football_controller', array('side' => 'results', 's' => $row['season'], 'l' => $row['league'], 'm' => $row['matchday'])), + 'MATCH_DATE' => $row['match_date'], + 'MATCH_TIME' => $row['match_time'], + 'LEAGUE_NAME' => $row['league_name'], + 'LOGO_HOME' => $logoH, + 'LOGO_GUEST' => $logoG, + 'HOME_NAME' => $homename, + 'GUEST_NAME' => $guestname, + 'HOME_SHORT' => $homeshort, + 'GUEST_SHORT' => $guestshort, + 'GOALS_HOME' => $goals_home, + 'GOALS_GUEST' => $goals_guest, + 'COLOR_STYLE' => color_style($row['status']), + 'KOGOALS_HOME' => $kogoals_home, + 'KOGOALS_GUEST' => $kogoals_guest, + 'COLOR_STYLE' => $colorstyle, + ) + ); +} +$db->sql_freeresult($result); + + + +$sidename = sprintf($user->lang['LAST_RESULTS']); + +$template->assign_vars(array( + 'S_DISPLAY_LAST_RESULTS' => true, + 'S_SIDENAME' => $sidename, + 'S_DATA_LAST_RESULTS' => $data_lastresults, + 'S_USER_IS_MEMBER' => $user_is_member, + ) +); + ?> \ No newline at end of file diff --git a/block/my_koeff.php b/block/my_koeff.php index 52e1cc7..64239e1 100644 --- a/block/my_koeff.php +++ b/block/my_koeff.php @@ -1,386 +1,386 @@ -request->variable('start', 0); -$matches_on_matchday = false; - -if (!$user_sel) -{ - if (user_is_member($user->data['user_id'], $season, $league)) - { - $user_sel = $user->data['user_id']; - } -} -$username = ''; - -$data = false; -// Select user -$total_users = 0; -$sql = 'SELECT DISTINCT - u.user_id, - u.username - FROM ' . FOOTB_BETS . ' AS b - LEFT JOIN ' . USERS_TABLE . " AS u ON (u.user_id = b.user_id) - WHERE season = $season - AND league = $league - ORDER BY LOWER(u.username) ASC"; - -$result = $db->sql_query($sql); - -while($row = $db->sql_fetchrow($result)) -{ - $total_users++; - if ($user_sel == $row['user_id'] OR !$user_sel) - { - $selectid = ' selected="selected"'; - $username = $row['username']; - $user_sel = $row['user_id']; - } - else - { - $selectid = ''; - } - $template->assign_block_vars('form_user', array( - 'S_USER' => $row['user_id'], - 'S_USERNAME' => $row['username'], - 'S_SELECTEDID' => $selectid, - ) - ); -} -$db->sql_freeresult($result); -// Select matches with results and tendencies -$sql = "SELECT - m.match_no, - m.status, - m.formula_home, - m.formula_guest, - t1.team_name_short AS home_name, - t2.team_name_short AS guest_name, - t1.team_id AS home_id, - t2.team_id AS guest_id, - m.goals_home, - m.goals_guest, - SUM(IF(b.goals_home + 0 > b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS home, - SUM(IF(b.goals_home = b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS draw, - SUM(IF(b.goals_home + 0 < b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS guest - FROM " . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_TEAMS . ' AS t1 ON (t1.season=m.season AND t1.league = m.league AND t1.team_id = m.team_id_home) - LEFT JOIN ' . FOOTB_TEAMS . ' AS t2 ON (t2.season=m.season AND t2.league = m.league AND t2.team_id = m.team_id_guest) - LEFT JOIN ' . FOOTB_BETS . " AS b ON(b.season = m.season AND b.league = m.league AND b.match_no = m.match_no) - WHERE m.season = $season - AND m.league = $league - AND m.matchday = $matchday - GROUP BY m.match_no - ORDER BY m.match_datetime ASC, m.match_no ASC"; - -$result = $db->sql_query($sql); -$matches = $db->sql_fetchrowset($result); -$db->sql_freeresult($result); -$count_matches = sizeof($matches); -if ($count_matches > 11) -{ - $split_after = 8; - $splits = floor($count_matches / 8); -} -else -{ - $split_after = $count_matches; - $splits = 1; -} - -// Make sure $start is set to the last page if it exceeds the amount -if ($start < 0 || $start >= $total_users) -{ - $start = ($start < 0) ? 0 : floor(($total_users - 1) / $config['football_users_per_page']) * $config['football_users_per_page']; -} -else -{ - $start = floor($start / $config['football_users_per_page']) * $config['football_users_per_page']; -} - -$sql_start = $start * $count_matches; -$sql_limit = $config['football_users_per_page'] * $count_matches; - -// handle pagination. -$base_url = $this->helper->route('football_main_controller', array('side' => 'my_koeff', 's' => $season, 'l' => $league, 'm' => $matchday, 'u' => "$user_sel")); -$pagination = $phpbb_container->get('pagination'); -$pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); - -$bet_line = array(); -if ($count_matches > 0) -{ - $matches_on_matchday = true; - // Select user bets and points on user results - $sql = "SELECT - u.user_id, - u.username, - m.status, - b.goals_home AS bet_home, - b.goals_guest AS bet_guest, - " . select_points("bu") . " - FROM " . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_BETS . ' AS b ON(b.season = m.season AND b.league = m.league AND b.match_no = m.match_no) - LEFT JOIN ' . FOOTB_BETS . " AS bu ON(bu.season = m.season AND bu.league = m.league AND bu.match_no = m.match_no AND bu.user_id = $user_sel) - LEFT JOIN " . USERS_TABLE . " AS u ON (u.user_id = b.user_id) - WHERE m.season = $season - AND m.league = $league - AND m.matchday = $matchday - ORDER BY LOWER(u.username) ASC, m.match_datetime ASC, m.match_no ASC"; - - $result = $db->sql_query_limit($sql, $sql_limit, $sql_start); - $user_bets = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - $bet_index = 0; - $split_index = 0; - foreach ($user_bets AS $user_bet) - { - $data = true; - if ($bet_index == $count_matches) - { - $bet_index = 0; - $split_index = 0; - } - if (!($bet_index % $split_after)) - { - $split_index++; - } - $sum_total[$user_bet['username']] = 0; - $bet_line[$split_index][] = $user_bet; - $bet_index++; - } -} -$match_index = 0; -$split_index = 0; -$matchday_sum_total = 0; -$colorstyle_total = ' color_finally'; -foreach ($matches AS $match) -{ - if (!($match_index % $split_after)) - { - if ($match_index > 0) - { - $total = 0; - $count_user = 0; - $bet_index = 0; - foreach ($bet_line[$split_index] AS $user_bet) - { - if ($bet_index == 0) - { - $count_user++; - $row_class = (!($count_user % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - if ($user_bet['user_id'] == $user->data['user_id']) - { - $row_class = 'bg3 row_user'; - } - $template->assign_block_vars('match_panel.user_row', array( - 'ROW_CLASS' => $row_class, - 'USER_NAME' => $user_bet['username'], - ) - ); - $total = 0; - } - $bet_index++; - $total += ($user_bet['points'] == '') ? 0 : $user_bet['points']; - if ($user_bet['status'] < 1 && !$config['football_view_bets']) - { - // hide bets - $bet_home = ($user_bet['bet_home'] == '') ? ' ' : '?'; - $bet_guest = ($user_bet['bet_guest'] == '') ? ' ' : '?'; - } - else - { - $bet_home = $user_bet['bet_home']; - $bet_guest = $user_bet['bet_guest']; - } - - $colorstyle_bet = color_style($user_bet['status']); - $template->assign_block_vars('match_panel.user_row.bet', array( - 'BET' => $bet_home. ':'. $bet_guest, - 'COLOR_STYLE' => $colorstyle_bet, - 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], - ) - ); - - if ($bet_index == $split_after) - { - $sum_total[$user_bet['username']] += $total; - $matchday_sum_total += $total; - $bet_index = 0; - } - } - - $template->assign_block_vars('match_panel.tendency_footer', array( - 'S_TOTAL' => false, - ) - ); - foreach ($matches_tendency AS $match_tendency) - { - $template->assign_block_vars('match_panel.tendency_footer.tendency', array( - 'TENDENCY' => $match_tendency, - ) - ); - } - } - $matches_tendency = array(); - $split_index++; - if ($split_index == $splits) - { - $display_total = true; - } - else - { - $display_total = false; - } - $template->assign_block_vars('match_panel', array( - 'S_TOTAL' => $display_total, - ) - ); - } - if (0 == $match['home_id']) - { - $home_info = get_team($season, $league, $match['match_no'], 'team_id_home', $match['formula_home']); - $home_in_array = explode("#",$home_info); - $homename = $home_in_array[3]; - } - else - { - $homename = $match['home_name']; - } - if (0 == $match['guest_id']) - { - $guest_info = get_team($season, $league, $match['match_no'], 'team_id_guest', $match['formula_guest']); - $guest_in_array = explode("#",$guest_info); - $guestname = $guest_in_array[3]; - } - else - { - $guestname = $match['guest_name']; - } - $colorstyle_match = color_style($match['status']); - $template->assign_block_vars('match_panel.match_entry', array( - 'HOME_NAME' => $homename, - 'GUEST_NAME' => $guestname, - 'RESULT' => $match['goals_home'] . ':' . $match['goals_guest'], - 'COLOR_STYLE' => $colorstyle_match, - ) - ); - if ($match['status'] < 1 && !$config['football_view_tendencies']) - { - // hide tendencies - $matches_tendency[] = '?-?-?'; - } - else - { - $matches_tendency[] = $match['home'] . '-' . $match['draw'] . '-' . $match['guest']; - } - $match_index++; -} -if ($count_matches > 0) -{ - $total = 0; - $count_user = 0; - $bet_index = 0; - foreach ($bet_line[$split_index] AS $user_bet) - { - if ($bet_index == 0) - { - $count_user++; - $row_class = (!($count_user % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - if ($user_bet['user_id'] == $user->data['user_id']) - { - $row_class = 'bg3 row_user'; - } - $template->assign_block_vars('match_panel.user_row', array( - 'ROW_CLASS' => $row_class, - 'USER_NAME' => $user_bet['username'], - ) - ); - $total = 0; - } - $bet_index++; - $total += ($user_bet['points'] == '') ? 0 : $user_bet['points']; - if ($user_bet['status'] < 1) - { - if ($user_bet['bet_home'] == '') - { - $bet_home = ''; - } - else - { - $bet_home = '?'; - } - if ($user_bet['bet_guest'] == '') - { - $bet_guest = ''; - } - else - { - $bet_guest = '?'; - } - } - else - { - $bet_home = $user_bet['bet_home']; - $bet_guest = $user_bet['bet_guest']; - } - - $colorstyle_bet = color_style($user_bet['status']); - $template->assign_block_vars('match_panel.user_row.bet', array( - 'BET' => $bet_home. ':'. $bet_guest, - 'COLOR_STYLE' => $colorstyle_bet, - 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], - ) - ); - - if ($bet_index == $split_after) - { - $sum_total[$user_bet['username']] += $total; - $matchday_sum_total += $total; - $template->assign_block_vars('match_panel.user_row.points', array( - 'COLOR_STYLE' => $colorstyle_total, - 'POINTS_TOTAL' => $sum_total[$user_bet['username']], - ) - ); - $bet_index = 0; - } - } - - $template->assign_block_vars('match_panel.tendency_footer', array( - 'S_TOTAL' => true, - 'COLOR_STYLE' => $colorstyle_total, //currently ignored - 'SUMTOTAL' => $matchday_sum_total, - ) - ); - foreach ($matches_tendency AS $match_tendency) - { - $template->assign_block_vars('match_panel.tendency_footer.tendency', array( - 'TENDENCY' => $match_tendency, - ) - ); - } -} - -$sidename = sprintf($user->lang['MY_KOEFF']); -$template->assign_vars(array( - 'S_DISPLAY_MY_KOEFF' => true, - 'S_SIDENAME' => $sidename, - 'S_MATCHES_ON_MATCHDAY' => $matches_on_matchday, - 'S_SPALTEN' => ($count_matches * 2) + 2, - 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), - 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), - 'USERNAME' => $username, - ) -); - +request->variable('start', 0); +$matches_on_matchday = false; + +if (!$user_sel) +{ + if (user_is_member($user->data['user_id'], $season, $league)) + { + $user_sel = $user->data['user_id']; + } +} +$username = ''; + +$data = false; +// Select user +$total_users = 0; +$sql = 'SELECT DISTINCT + u.user_id, + u.username + FROM ' . FOOTB_BETS . ' AS b + LEFT JOIN ' . USERS_TABLE . " AS u ON (u.user_id = b.user_id) + WHERE season = $season + AND league = $league + ORDER BY LOWER(u.username) ASC"; + +$result = $db->sql_query($sql); + +while($row = $db->sql_fetchrow($result)) +{ + $total_users++; + if ($user_sel == $row['user_id'] OR !$user_sel) + { + $selectid = ' selected="selected"'; + $username = $row['username']; + $user_sel = $row['user_id']; + } + else + { + $selectid = ''; + } + $template->assign_block_vars('form_user', array( + 'S_USER' => $row['user_id'], + 'S_USERNAME' => $row['username'], + 'S_SELECTEDID' => $selectid, + ) + ); +} +$db->sql_freeresult($result); +// Select matches with results and tendencies +$sql = "SELECT + m.match_no, + m.status, + m.formula_home, + m.formula_guest, + t1.team_name_short AS home_name, + t2.team_name_short AS guest_name, + t1.team_id AS home_id, + t2.team_id AS guest_id, + m.goals_home, + m.goals_guest, + SUM(IF(b.goals_home + 0 > b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS home, + SUM(IF(b.goals_home = b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS draw, + SUM(IF(b.goals_home + 0 < b.goals_guest AND b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS guest + FROM " . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_TEAMS . ' AS t1 ON (t1.season=m.season AND t1.league = m.league AND t1.team_id = m.team_id_home) + LEFT JOIN ' . FOOTB_TEAMS . ' AS t2 ON (t2.season=m.season AND t2.league = m.league AND t2.team_id = m.team_id_guest) + LEFT JOIN ' . FOOTB_BETS . " AS b ON(b.season = m.season AND b.league = m.league AND b.match_no = m.match_no) + WHERE m.season = $season + AND m.league = $league + AND m.matchday = $matchday + GROUP BY m.match_no + ORDER BY m.match_datetime ASC, m.match_no ASC"; + +$result = $db->sql_query($sql); +$matches = $db->sql_fetchrowset($result); +$db->sql_freeresult($result); +$count_matches = sizeof($matches); +if ($count_matches > 11) +{ + $split_after = 8; + $splits = floor($count_matches / 8); +} +else +{ + $split_after = $count_matches; + $splits = 1; +} + +// Make sure $start is set to the last page if it exceeds the amount +if ($start < 0 || $start >= $total_users) +{ + $start = ($start < 0) ? 0 : floor(($total_users - 1) / $config['football_users_per_page']) * $config['football_users_per_page']; +} +else +{ + $start = floor($start / $config['football_users_per_page']) * $config['football_users_per_page']; +} + +$sql_start = $start * $count_matches; +$sql_limit = $config['football_users_per_page'] * $count_matches; + +// handle pagination. +$base_url = $this->helper->route('football_football_controller', array('side' => 'my_koeff', 's' => $season, 'l' => $league, 'm' => $matchday, 'u' => "$user_sel")); +$pagination = $phpbb_container->get('pagination'); +$pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); + +$bet_line = array(); +if ($count_matches > 0) +{ + $matches_on_matchday = true; + // Select user bets and points on user results + $sql = "SELECT + u.user_id, + u.username, + m.status, + b.goals_home AS bet_home, + b.goals_guest AS bet_guest, + " . select_points("bu") . " + FROM " . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_BETS . ' AS b ON(b.season = m.season AND b.league = m.league AND b.match_no = m.match_no) + LEFT JOIN ' . FOOTB_BETS . " AS bu ON(bu.season = m.season AND bu.league = m.league AND bu.match_no = m.match_no AND bu.user_id = $user_sel) + LEFT JOIN " . USERS_TABLE . " AS u ON (u.user_id = b.user_id) + WHERE m.season = $season + AND m.league = $league + AND m.matchday = $matchday + ORDER BY LOWER(u.username) ASC, m.match_datetime ASC, m.match_no ASC"; + + $result = $db->sql_query_limit($sql, $sql_limit, $sql_start); + $user_bets = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + $bet_index = 0; + $split_index = 0; + foreach ($user_bets AS $user_bet) + { + $data = true; + if ($bet_index == $count_matches) + { + $bet_index = 0; + $split_index = 0; + } + if (!($bet_index % $split_after)) + { + $split_index++; + } + $sum_total[$user_bet['username']] = 0; + $bet_line[$split_index][] = $user_bet; + $bet_index++; + } +} +$match_index = 0; +$split_index = 0; +$matchday_sum_total = 0; +$colorstyle_total = ' color_finally'; +foreach ($matches AS $match) +{ + if (!($match_index % $split_after)) + { + if ($match_index > 0) + { + $total = 0; + $count_user = 0; + $bet_index = 0; + foreach ($bet_line[$split_index] AS $user_bet) + { + if ($bet_index == 0) + { + $count_user++; + $row_class = (!($count_user % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + if ($user_bet['user_id'] == $user->data['user_id']) + { + $row_class = 'bg3 row_user'; + } + $template->assign_block_vars('match_panel.user_row', array( + 'ROW_CLASS' => $row_class, + 'USER_NAME' => $user_bet['username'], + ) + ); + $total = 0; + } + $bet_index++; + $total += ($user_bet['points'] == '') ? 0 : $user_bet['points']; + if ($user_bet['status'] < 1 && !$config['football_view_bets']) + { + // hide bets + $bet_home = ($user_bet['bet_home'] == '') ? ' ' : '?'; + $bet_guest = ($user_bet['bet_guest'] == '') ? ' ' : '?'; + } + else + { + $bet_home = $user_bet['bet_home']; + $bet_guest = $user_bet['bet_guest']; + } + + $colorstyle_bet = color_style($user_bet['status']); + $template->assign_block_vars('match_panel.user_row.bet', array( + 'BET' => $bet_home. ':'. $bet_guest, + 'COLOR_STYLE' => $colorstyle_bet, + 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], + ) + ); + + if ($bet_index == $split_after) + { + $sum_total[$user_bet['username']] += $total; + $matchday_sum_total += $total; + $bet_index = 0; + } + } + + $template->assign_block_vars('match_panel.tendency_footer', array( + 'S_TOTAL' => false, + ) + ); + foreach ($matches_tendency AS $match_tendency) + { + $template->assign_block_vars('match_panel.tendency_footer.tendency', array( + 'TENDENCY' => $match_tendency, + ) + ); + } + } + $matches_tendency = array(); + $split_index++; + if ($split_index == $splits) + { + $display_total = true; + } + else + { + $display_total = false; + } + $template->assign_block_vars('match_panel', array( + 'S_TOTAL' => $display_total, + ) + ); + } + if (0 == $match['home_id']) + { + $home_info = get_team($season, $league, $match['match_no'], 'team_id_home', $match['formula_home']); + $home_in_array = explode("#",$home_info); + $homename = $home_in_array[3]; + } + else + { + $homename = $match['home_name']; + } + if (0 == $match['guest_id']) + { + $guest_info = get_team($season, $league, $match['match_no'], 'team_id_guest', $match['formula_guest']); + $guest_in_array = explode("#",$guest_info); + $guestname = $guest_in_array[3]; + } + else + { + $guestname = $match['guest_name']; + } + $colorstyle_match = color_style($match['status']); + $template->assign_block_vars('match_panel.match_entry', array( + 'HOME_NAME' => $homename, + 'GUEST_NAME' => $guestname, + 'RESULT' => $match['goals_home'] . ':' . $match['goals_guest'], + 'COLOR_STYLE' => $colorstyle_match, + ) + ); + if ($match['status'] < 1 && !$config['football_view_tendencies']) + { + // hide tendencies + $matches_tendency[] = '?-?-?'; + } + else + { + $matches_tendency[] = $match['home'] . '-' . $match['draw'] . '-' . $match['guest']; + } + $match_index++; +} +if ($count_matches > 0) +{ + $total = 0; + $count_user = 0; + $bet_index = 0; + foreach ($bet_line[$split_index] AS $user_bet) + { + if ($bet_index == 0) + { + $count_user++; + $row_class = (!($count_user % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + if ($user_bet['user_id'] == $user->data['user_id']) + { + $row_class = 'bg3 row_user'; + } + $template->assign_block_vars('match_panel.user_row', array( + 'ROW_CLASS' => $row_class, + 'USER_NAME' => $user_bet['username'], + ) + ); + $total = 0; + } + $bet_index++; + $total += ($user_bet['points'] == '') ? 0 : $user_bet['points']; + if ($user_bet['status'] < 1) + { + if ($user_bet['bet_home'] == '') + { + $bet_home = ''; + } + else + { + $bet_home = '?'; + } + if ($user_bet['bet_guest'] == '') + { + $bet_guest = ''; + } + else + { + $bet_guest = '?'; + } + } + else + { + $bet_home = $user_bet['bet_home']; + $bet_guest = $user_bet['bet_guest']; + } + + $colorstyle_bet = color_style($user_bet['status']); + $template->assign_block_vars('match_panel.user_row.bet', array( + 'BET' => $bet_home. ':'. $bet_guest, + 'COLOR_STYLE' => $colorstyle_bet, + 'POINTS' => ($user_bet['points'] == '') ? ' ' : $user_bet['points'], + ) + ); + + if ($bet_index == $split_after) + { + $sum_total[$user_bet['username']] += $total; + $matchday_sum_total += $total; + $template->assign_block_vars('match_panel.user_row.points', array( + 'COLOR_STYLE' => $colorstyle_total, + 'POINTS_TOTAL' => $sum_total[$user_bet['username']], + ) + ); + $bet_index = 0; + } + } + + $template->assign_block_vars('match_panel.tendency_footer', array( + 'S_TOTAL' => true, + 'COLOR_STYLE' => $colorstyle_total, //currently ignored + 'SUMTOTAL' => $matchday_sum_total, + ) + ); + foreach ($matches_tendency AS $match_tendency) + { + $template->assign_block_vars('match_panel.tendency_footer.tendency', array( + 'TENDENCY' => $match_tendency, + ) + ); + } +} + +$sidename = sprintf($user->lang['MY_KOEFF']); +$template->assign_vars(array( + 'S_DISPLAY_MY_KOEFF' => true, + 'S_SIDENAME' => $sidename, + 'S_MATCHES_ON_MATCHDAY' => $matches_on_matchday, + 'S_SPALTEN' => ($count_matches * 2) + 2, + 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), + 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), + 'USERNAME' => $username, + ) +); + ?> \ No newline at end of file diff --git a/block/odds.php b/block/odds.php index b777e08..a9ee894 100644 --- a/block/odds.php +++ b/block/odds.php @@ -13,6 +13,8 @@ if (!defined('IN_PHPBB') OR !defined('IN_FOOTBALL')) } $data_odds = false; +$userid = $user->data['user_id']; +$user_is_member = user_is_member($userid, $season, $league); $matchnumber = 0; $lang_dates = $user->lang['datetime']; @@ -37,6 +39,8 @@ $sql = "SELECT t2.team_name_short AS guest_name, t1.team_id AS home_id, t2.team_id AS guest_id, + b.goals_home AS bet_home, + b.goals_guest AS bet_guest, m.goals_home, m.goals_guest, m.goals_overtime_home AS kogoals_home, @@ -48,13 +52,15 @@ $sql = "SELECT m.odd_1, m.odd_x, m.odd_2, - m.trend FROM " . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_TEAMS . ' AS t1 ON (t1.season = m.season AND t1.league = m.league AND t1.team_id = m.team_id_home) - LEFT JOIN ' . FOOTB_TEAMS . " AS t2 ON (t2.season = m.season AND t2.league = m.league AND t2.team_id = m.team_id_guest) - WHERE m.season = $season - AND m.league = $league - AND m.matchday = $matchday - ORDER BY m.match_datetime ASC, m.match_no ASC"; + m.trend + FROM " . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_BETS . " AS b ON (b.season = m.season AND b.league = m.league AND b.match_no = m.match_no AND b.user_id = $userid) + LEFT JOIN " . FOOTB_TEAMS . ' AS t1 ON (t1.season = m.season AND t1.league = m.league AND t1.team_id = m.team_id_home) + LEFT JOIN ' . FOOTB_TEAMS . " AS t2 ON (t2.season = m.season AND t2.league = m.league AND t2.team_id = m.team_id_guest) + WHERE m.season = $season + AND m.league = $league + AND m.matchday = $matchday + ORDER BY m.match_datetime ASC, m.match_no ASC"; $result = $db->sql_query($sql); $rows = $db->sql_fetchrowset($result); @@ -137,6 +143,8 @@ foreach ($rows as $row) $goals_guest = ($row['goals_guest'] == '') ? ' ' : $row['goals_guest']; $kogoals_home = ($row['kogoals_home'] == '') ? ' ' : $row['kogoals_home']; $kogoals_guest = ($row['kogoals_guest'] == '') ? ' ' : $row['kogoals_guest']; + $bet_home = ($row['bet_home'] == '') ? ' ' : $row['bet_home']; + $bet_guest = ($row['bet_guest'] == '') ? ' ' : $row['bet_guest']; $template->assign_block_vars('odds', array( 'ROW_CLASS' => $row_class, @@ -154,12 +162,15 @@ foreach ($rows as $row) 'tid' => $homeid, 'mode' => 'all')), 'U_PLAN_GUEST' => $this->helper->route('football_football_popup', array('popside' => 'viewplan_popup', 's' => $season, 'l' => $league, 'tid' => $guestid, 'mode' => 'all')), + 'BET_HOME' => $bet_home, + 'BET_GUEST' => $bet_guest, 'GOALS_HOME' => $goals_home, 'GOALS_GUEST' => $goals_guest, 'COLOR_STYLE' => '', 'KOGOALS_HOME' => $kogoals_home, 'KOGOALS_GUEST' => $kogoals_guest, 'S_KO_MATCH' => $ko_match, + 'S_USER_IS_MEMBER' => $user_is_member, 'TREND' => $row['trend'], 'U_MATCH_STATS' => $this->helper->route('football_football_popup', array('popside' => 'hist_popup', 's' => $season, 'l' => $league, 'hid' => $homeid, 'gid' => $guestid, 'm' => $matchday, diff --git a/block/rank_matchday.php b/block/rank_matchday.php index 1392800..fba4094 100644 --- a/block/rank_matchday.php +++ b/block/rank_matchday.php @@ -1,72 +1,71 @@ - 0) -{ - $data_rank_matchday = false; - $index = 0; - $sql = "SELECT - r.status, - r.rank, - r.user_id, - u.username, - r.points, - IF(r.win=0, '', r.win) AS win - FROM " . FOOTB_RANKS . ' AS r - LEFT Join ' . USERS_TABLE . " AS u ON (r.user_id = u.user_id) - WHERE r.season = $season - AND r.league = $league - AND r.matchday = $matchday - AND r.status IN (2,3) - ORDER BY rank ASC, LOWER(u.username) ASC"; - - $result = $db->sql_query($sql); - while($row = $db->sql_fetchrow($result)) - { - $index++; - if (($index <= $config['football_display_ranks']) OR ($row['user_id'] == $user->data['user_id'])) - { - $data_rank_matchday = true; - $row_class = (!($index % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - if ($row['user_id'] == $user->data['user_id']) - { - $row_class = 'bg3 row_user'; - } - $colorstyle = color_style($row['status']); - - $template->assign_block_vars('rank', array( - 'RANK' => $row['rank'], - 'ROW_CLASS' => $row_class, - 'USERID' => $row['user_id'], - 'USERNAME' => $row['username'], - 'U_BET_USER' => $this->helper->route('football_football_popup', array('popside' => 'bet_popup', 's' => $season, 'l' => $league, - 'm' => $matchday, 'u' => $row['user_id'])), - 'POINTS' => $row['points'], - 'COLOR_STYLE' => $colorstyle, - 'WIN' => $row['win'], - ) - ); - } - } - $db->sql_freeresult($result); - $league_info = league_info($season, $league); - - $template->assign_vars(array( - 'S_DISPLAY_RANK_MATCHDAY' => true, - 'S_DATA_RANK_MATCHDAY' => $data_rank_matchday, - 'S_WIN' => ($league_info['win_matchday'] == '0') ? false : true, - 'WIN_NAME' => $config['football_win_name'], - )); -} -?> \ No newline at end of file + 0) +{ + $data_rank_matchday = false; + $index = 0; + $sql = "SELECT + r.status, + r.rank, + r.user_id, + u.username, + r.points, + IF(r.win=0, '', r.win) AS win + FROM " . FOOTB_RANKS . ' AS r + LEFT Join ' . USERS_TABLE . " AS u ON (r.user_id = u.user_id) + WHERE r.season = $season + AND r.league = $league + AND r.matchday = $matchday + AND r.status IN (2,3) + ORDER BY r.rank ASC, LOWER(u.username) ASC"; + + $result = $db->sql_query($sql); + while($row = $db->sql_fetchrow($result)) + { + $index++; + if (($index <= $config['football_display_ranks']) OR ($row['user_id'] == $user->data['user_id'])) + { + $data_rank_matchday = true; + $row_class = (!($index % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + if ($row['user_id'] == $user->data['user_id']) + { + $row_class = 'bg3 row_user'; + } + $colorstyle = color_style($row['status']); + + $template->assign_block_vars('rank', array( + 'RANK' => $row['rank'], + 'ROW_CLASS' => $row_class, + 'USERID' => $row['user_id'], + 'USERNAME' => $row['username'], + 'U_BET_USER' => $this->helper->route('football_football_popup', array('popside' => 'bet_popup', 's' => $season, 'l' => $league, + 'm' => $matchday, 'u' => $row['user_id'])), + 'POINTS' => $row['points'], + 'COLOR_STYLE' => $colorstyle, + 'WIN' => $row['win'], + ) + ); + } + } + $db->sql_freeresult($result); + $league_info = league_info($season, $league); + + $template->assign_vars(array( + 'S_DISPLAY_RANK_MATCHDAY' => true, + 'S_DATA_RANK_MATCHDAY' => $data_rank_matchday, + 'S_WIN' => ($league_info['win_matchday'] == '0') ? false : true, + 'WIN_NAME' => $config['football_win_name'], + )); +} diff --git a/block/rank_total.php b/block/rank_total.php index 3773671..00e5aca 100644 --- a/block/rank_total.php +++ b/block/rank_total.php @@ -1,94 +1,94 @@ - 0) -{ - $sql = 'SELECT - r.matchday AS last_matchday - FROM '. FOOTB_RANKS . " AS r - WHERE r.season = $season - AND r.league = $league - AND r.status IN (2,3) - ORDER BY r.matchday DESC"; - - $result = $db->sql_query_limit($sql, 1); - if($row = $db->sql_fetchrow($result)) - { - $last_matchday = $row['last_matchday']; - $db->sql_freeresult($result); - $rank_matchday = ($last_matchday < $matchday) ? $last_matchday : $matchday; - - $sql = 'SELECT - r.rank_total AS rank, - r.user_id, - u.username, - u.user_colour, - r.status AS status, - r.points_total AS points, - r.win_total AS win - FROM '. FOOTB_RANKS . ' AS r - LEFT JOIN '. USERS_TABLE . " AS u ON (r.user_id = u.user_id) - WHERE r.season = $season - AND r.league = $league - AND r.matchday = $rank_matchday - AND r.status IN (2,3) - ORDER BY points DESC, LOWER(u.username) ASC"; - - $result = $db->sql_query($sql); - - $index = 0; - while($row = $db->sql_fetchrow($result)) - { - $index++; - $data_rank_total = true; - if (($index <= $config['football_display_ranks']) OR ($row['user_id'] == $user->data['user_id'])) - { - $row_class = (!($index % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - if ($row['user_id'] == $user->data['user_id']) - { - $row_class = 'bg3 row_user'; - } - $colorstyle = color_style($row['status']); - - $template->assign_block_vars("ranktotal", array( - 'RANK' => $row['rank'], - 'ROW_CLASS' => $row_class, - 'USERID' => $row['user_id'], - 'USERNAME' => $row['username'], - 'U_PROFILE' => get_username_string('profile', $row['user_id'], $row['username'], $row['user_colour']), - 'URL' => $phpbb_root_path . "profile.php?mode=viewprofile&u=" . $row['user_id'], - 'POINTS' => $row['points'], - 'COLOR_STYLE' => $colorstyle, - 'WIN' => $row['win'] , - ) - ); - } - } - $db->sql_freeresult($result); - } - else - { - $data_rank_total = false; - } - $league_info = league_info($season, $league); - - $template->assign_vars(array( - 'S_DISPLAY_RANK_TOTAL' => true, - 'S_DATA_RANK_TOTAL' => $data_rank_total, - 'S_WIN' => ($league_info['win_matchday'] == '0' and $league_info['win_season'] == '0') ? false : true, - 'WIN_NAME' => $config['football_win_name'], - ) - ); -} + 0) +{ + $sql = 'SELECT + r.matchday AS last_matchday + FROM '. FOOTB_RANKS . " AS r + WHERE r.season = $season + AND r.league = $league + AND r.status IN (2,3) + ORDER BY r.matchday DESC"; + + $result = $db->sql_query_limit($sql, 1); + if($row = $db->sql_fetchrow($result)) + { + $last_matchday = $row['last_matchday']; + $db->sql_freeresult($result); + $rank_matchday = ($last_matchday < $matchday) ? $last_matchday : $matchday; + + $sql = 'SELECT + r.rank_total AS rank, + r.user_id, + u.username, + u.user_colour, + r.status AS status, + r.points_total AS points, + r.win_total AS win + FROM '. FOOTB_RANKS . ' AS r + LEFT JOIN '. USERS_TABLE . " AS u ON (r.user_id = u.user_id) + WHERE r.season = $season + AND r.league = $league + AND r.matchday = $rank_matchday + AND r.status IN (2,3) + ORDER BY points DESC, LOWER(u.username) ASC"; + + $result = $db->sql_query($sql); + + $index = 0; + while($row = $db->sql_fetchrow($result)) + { + $index++; + $data_rank_total = true; + if (($index <= $config['football_display_ranks']) OR ($row['user_id'] == $user->data['user_id'])) + { + $row_class = (!($index % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + if ($row['user_id'] == $user->data['user_id']) + { + $row_class = 'bg3 row_user'; + } + $colorstyle = color_style($row['status']); + + $template->assign_block_vars("ranktotal", array( + 'RANK' => $row['rank'], + 'ROW_CLASS' => $row_class, + 'USERID' => $row['user_id'], + 'USERNAME' => $row['username'], + 'U_PROFILE' => get_username_string('profile', $row['user_id'], $row['username'], $row['user_colour']), + 'URL' => $phpbb_root_path . "profile.php?mode=viewprofile&u=" . $row['user_id'], + 'POINTS' => $row['points'], + 'COLOR_STYLE' => $colorstyle, + 'WIN' => $row['win'] , + ) + ); + } + } + $db->sql_freeresult($result); + } + else + { + $data_rank_total = false; + } + $league_info = league_info($season, $league); + + $template->assign_vars(array( + 'S_DISPLAY_RANK_TOTAL' => true, + 'S_DATA_RANK_TOTAL' => $data_rank_total, + 'S_WIN' => ($league_info['win_matchday'] == '0' and $league_info['win_season'] == '0') ? false : true, + 'WIN_NAME' => $config['football_win_name'], + ) + ); +} ?> \ No newline at end of file diff --git a/block/ranks_matchday.php b/block/ranks_matchday.php index a9a4086..d39221e 100644 --- a/block/ranks_matchday.php +++ b/block/ranks_matchday.php @@ -53,7 +53,7 @@ $sql = "SELECT AND b.league = $league AND m.status IN (2,3) AND m.matchday = $matchday - GROUP BY user_id"; + GROUP BY b.user_id"; $result = $db->sql_query($sql); $usersstats = $db->sql_fetchrowset($result); @@ -126,7 +126,7 @@ else $sql_limit = $config['football_users_per_page']; // handle pagination. -$base_url = $this->helper->route('football_main_controller', array('side' => 'ranks_matchday', 's' => $season, 'l' => $league, 'm' => $matchday)); +$base_url = $this->helper->route('football_football_controller', array('side' => 'ranks_matchday', 's' => $season, 'l' => $league, 'm' => $matchday)); $pagination = $phpbb_container->get('pagination'); $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); $data_ranks = false; @@ -224,8 +224,8 @@ while($row = $db->sql_fetchrow($result)) 'ROW_CLASS' => $row_class, 'RANK' => $rankof[$row['user_id']], 'NO_CHANGES' => ($change_sign == '=') ? true : false, - 'WORSENED' => ($change_sign == '-') ? true : false, - 'IMPROVED' => ($change_sign == '+') ? true : false, + 'WORSENED' => ($change_sign == '+') ? true : false, + 'IMPROVED' => ($change_sign == '-') ? true : false, 'CHANGE_SIGN' => $change_sign, 'CHANGE_DIFFER' => $change_differ, 'USERID' => $row['user_id'], @@ -257,5 +257,3 @@ $template->assign_vars(array( 'WIN_NAME' => $config['football_win_name'], ) ); - -?> \ No newline at end of file diff --git a/block/ranks_total.php b/block/ranks_total.php index b1c7adf..3bee599 100644 --- a/block/ranks_total.php +++ b/block/ranks_total.php @@ -1,564 +1,562 @@ -request->variable('start', 0); -$mode = $this->request->variable('mode', ''); - -switch ($mode) -{ - case 'alltime': - // Statistics - $sql = "SELECT - b.user_id, - COUNT(b.match_no) AS matches, - SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS bets, - SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', - IF((b.goals_home + 0 < b.goals_guest) <> (m.goals_home + 0 < m.goals_guest) - OR (b.goals_home = b.goals_guest) <> (m.goals_home = m.goals_guest) - OR (b.goals_home + 0 > b.goals_guest) <> (m.goals_home + 0 > m.goals_guest), - 0, - IF((b.goals_home = m.goals_home) AND (b.goals_guest = m.goals_guest), 0, 1) - ), - 0 - ) - ) AS tendency - FROM " . FOOTB_BETS . ' AS b - LEFT JOIN ' . FOOTB_MATCHES . ' AS m ON (m.season = b.season AND m.league = b.league AND m.match_no = b.match_no) - LEFT JOIN ' . FOOTB_LEAGUES . " AS l ON (l.season = b.season AND l.league = b.league) - WHERE b.league = $league - AND ((b.season < $season) OR (b.season = $season AND m.matchday <= $matchday)) - AND m.status IN (2,3) - GROUP BY user_id"; - - $result = $db->sql_query($sql); - $rows = $db->sql_fetchrowset($result); - $total_users = sizeof($rows); - $db->sql_freeresult($result); - - foreach ($rows AS $row) - { - $bets_of[$row['user_id']] = $row['bets']; - $nobets_of[$row['user_id']] = $row['matches'] - $row['bets']; - } - - // Wins - $sql = 'SELECT - r.user_id, - sum(r.win_total) As win_total - FROM ' . FOOTB_RANKS . ' AS r - LEFT JOIN ' . FOOTB_LEAGUES . " AS l ON (l.season = r.season AND l.league = r.league) - WHERE r.league = $league - AND ((r.season < $season AND r.matchday = l.matchdays) OR (r.season = $season AND r.matchday = $matchday)) - AND r.status IN (2,3) - GROUP BY user_id - ORDER BY r.user_id ASC"; - - $result = $db->sql_query($sql); - - $win_arr = array(); - while($row = $db->sql_fetchrow($result)) - { - $win_arr[$row['user_id']] = $row['win_total']; - } - $db->sql_freeresult($result); - - $data_ranks = false; - $pagination = ''; - - $sql = 'SELECT - r.user_id, - u.username, - min(r.status) AS status, - sum(r.points) As points_total, - sum(r.tendencies) As tendencies, - sum(r.correct_result) As hits - FROM ' . FOOTB_RANKS . ' AS r - LEFT JOIN ' . USERS_TABLE . ' AS u ON (r.user_id = u.user_id) - LEFT JOIN ' . FOOTB_LEAGUES . " AS l ON (l.season = r.season AND l.league = r.league) - WHERE r.league = $league - AND ((r.season < $season) OR (r.season = $season AND r.matchday <= $matchday)) - AND r.status IN (2,3) - GROUP BY user_id - ORDER BY points_total DESC, LOWER(u.username) ASC"; - - $result = $db->sql_query($sql); - - $ranking_arr = array(); - while($row = $db->sql_fetchrow($result)) - { - $ranking_arr[$row['user_id']] = $row; - } - $db->sql_freeresult($result); - - - // Make sure $start is set to the last page if it exceeds the amount - if ($start < 0 || $start >= $total_users) - { - $index_start = ($start < 0) ? 0 : floor(($total_users - 1) / $config['football_users_per_page']) * $config['football_users_per_page']; - } - else - { - $index_start = floor($start / $config['football_users_per_page']) * $config['football_users_per_page']; - } - $index_end = $index_start + $config['football_users_per_page'] - 1; - - // handle pagination. - $base_url = $this->helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'alltime')); - $pagination = $phpbb_container->get('pagination'); - $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); - - $index = 0; - $rank = 0; - $last_points = 0; - $data_rank_total = false; - foreach ($ranking_arr AS $curr_rank) - { - if ($curr_rank['points_total'] <> $last_points) - { - $rank = $index + 1; - $last_points = $curr_rank['points_total']; - } - $data_ranks = true; - if (($index_start <= $index) && ($index <= $index_end)) - { - $row_class = (!($index % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - if ($curr_rank['user_id'] == $user->data['user_id']) - { - $row_class = 'bg3 row_user'; - } - $colorstyle = color_style($curr_rank['status']); - - $template->assign_block_vars('rankstotal', array( - 'ROW_CLASS' => $row_class, - 'RANK' => $rank, - 'USERID' => $curr_rank['user_id'], - 'USERNAME' => $curr_rank['username'], - 'URL' => $phpbb_root_path . 'profile.php?mode=viewprofile&u=' . $curr_rank['user_id'], - 'BETS' => $bets_of[$curr_rank['user_id']], - 'NOBETS' => ($nobets_of[$curr_rank['user_id']] == 0) ? ' ' : $nobets_of[$curr_rank['user_id']], - 'TENDENCIES' => ($curr_rank['tendencies'] == 0) ? ' ' : $curr_rank['tendencies'], - 'DIRECTHITS' => ($curr_rank['hits'] == 0) ? ' ' : $curr_rank['hits'], - 'POINTS' => $curr_rank['points_total'], - 'COLOR_STYLE' => $colorstyle, - 'WIN' => $win_arr[$curr_rank['user_id']], - ) - ); - } - $index++; - } - - $sidename = sprintf($user->lang['RANK_TOTAL']); - $league_info = league_info($season, $league); - $template->assign_vars(array( - 'S_DISPLAY_RANKS_TOTAL' => true, - 'S_DISPLAY_HITS02' => $config['football_win_hits02'], - 'S_DATA_RANKS' => $data_ranks, - 'S_SIDENAME' => $sidename, - 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), - 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), - 'S_WIN' => false, - 'WIN_NAME' => $config['football_win_name'], - 'S_SHOW_OTHER_LINKS' => true, - 'S_HEADER' => sprintf($user->lang['RANKING_ALL_TIME']), - 'S_LINK_RANKING' => $this->helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'S_LINK_ALL_TIME' => '', - 'S_LINK_COMPARE' => $this->helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'compare')), - ) - ); - break; - - case 'compare': - // Statistics - $sql = "SELECT - b.season as season, - b.user_id, - COUNT(b.match_no) AS matches, - SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS bets, - SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', - IF((b.goals_home + 0 < b.goals_guest) <> (m.goals_home + 0 < m.goals_guest) - OR (b.goals_home = b.goals_guest) <> (m.goals_home = m.goals_guest) - OR (b.goals_home + 0 > b.goals_guest) <> (m.goals_home + 0 > m.goals_guest), - 0, - IF((b.goals_home = m.goals_home) AND (b.goals_guest = m.goals_guest), 0, 1) - ), - 0 - ) - ) AS tendency, - SUM(IF(b.goals_home = m.goals_home AND b.goals_guest = m.goals_guest, 1, 0)) AS hits - FROM " . FOOTB_BETS . ' AS b - LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = b.season AND m.league = b.league AND m.match_no = b.match_no) - WHERE b.season <= $season - AND b.league = $league - AND m.matchday <= $matchday - AND m.status IN (2,3) - GROUP BY b.season, b.user_id"; - - $result = $db->sql_query($sql); - $rows = $db->sql_fetchrowset($result); - $total_users = sizeof($rows); - $db->sql_freeresult($result); - - foreach ($rows AS $row) - { - $bets_of[$row['user_id'] . '#' . $row['season']] = $row['bets']; - $nobets_of[$row['user_id'] . '#' . $row['season']] = $row['matches'] - $row['bets']; - $tendency_of[$row['user_id'] . '#' . $row['season']] = $row['tendency']; - $hits_of[$row['user_id'] . '#' . $row['season']] = $row['hits']; - } - - // Wins - $sql = 'SELECT - r.season as season, - r.user_id, - sum(r.win_total) As win_total - FROM ' . FOOTB_RANKS . " AS r - WHERE r.season <= $season - AND r.league = $league - AND r.matchday = $matchday - AND r.status IN (2,3) - GROUP BY season, user_id - ORDER BY r.user_id ASC, season ASC"; - - $result = $db->sql_query($sql); - - $win_arr = array(); - while($row = $db->sql_fetchrow($result)) - { - $win_arr[$row['user_id'] . '#' . $row['season']] = $row['win_total']; - } - $db->sql_freeresult($result); - - $data_ranks = false; - $pagination = ''; - - $sql = 'SELECT - r.season, - r.user_id, - u.username, - r.rank_total, - r.status, - r.points_total - FROM ' . FOOTB_RANKS . ' AS r - LEFT JOIN ' . USERS_TABLE . " AS u ON (r.user_id = u.user_id) - WHERE r.season <= $season - AND r.league = $league - AND r.matchday = $matchday - AND r.status IN (2,3) - ORDER BY r.points_total DESC, LOWER(u.username) ASC"; - - $result = $db->sql_query($sql); - - $ranking_arr = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - - - // Make sure $start is set to the last page if it exceeds the amount - if ($start < 0 || $start >= $total_users) - { - $index_start = ($start < 0) ? 0 : floor(($total_users - 1) / $config['football_users_per_page']) * $config['football_users_per_page']; - } - else - { - $index_start = floor($start / $config['football_users_per_page']) * $config['football_users_per_page']; - } - $index_end = $index_start + $config['football_users_per_page'] - 1; - - // handle pagination. - $base_url = $this->helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'compare')); - $pagination = $phpbb_container->get('pagination'); - $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); - - $index = 0; - $rank = 0; - $last_points = 0; - $data_rank_total = false; - foreach ($ranking_arr AS $curr_rank) - { - if ($curr_rank['points_total'] <> $last_points) - { - $rank = $index + 1; - $last_points = $curr_rank['points_total']; - } - $data_ranks = true; - if (($index_start <= $index) && ($index <= $index_end)) - { - $row_class = (!($index % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - if ($curr_rank['user_id'] == $user->data['user_id']) - { - $row_class = 'bg3 row_user'; - } - $colorstyle = color_style($curr_rank['status']); - - $template->assign_block_vars('rankstotal', array( - 'ROW_CLASS' => $row_class, - 'RANK' => $rank, - 'USERID' => $curr_rank['user_id'], - 'USERNAME' => $curr_rank['username'], - 'SEASON' => $curr_rank['season'], - 'SEASON_RANK' => $curr_rank['rank_total'], - 'URL' => $phpbb_root_path . 'profile.php?mode=viewprofile&u=' . $curr_rank['user_id'], - 'BETS' => $bets_of[$curr_rank['user_id'] . '#' . $curr_rank['season']], - 'NOBETS' => ($nobets_of[$curr_rank['user_id'] . '#' . $curr_rank['season']] == 0) ? ' ' : $nobets_of[$curr_rank['user_id'] . '#' . $curr_rank['season']], - 'TENDENCIES' => ($tendency_of[$curr_rank['user_id'] . '#' . $curr_rank['season']] == 0) ? ' ' : $tendency_of[$curr_rank['user_id'] . '#' . $curr_rank['season']], - 'DIRECTHITS' => ($hits_of[$curr_rank['user_id'] . '#' . $curr_rank['season']] == 0) ? ' ' : $hits_of[$curr_rank['user_id'] . '#' . $curr_rank['season']], - 'POINTS' => $curr_rank['points_total'], - 'COLOR_STYLE' => $colorstyle, - 'WIN' => $win_arr[$curr_rank['user_id'] . '#' . $curr_rank['season']], - ) - ); - } - $index++; - } - - $sidename = sprintf($user->lang['RANK_TOTAL']); - $league_info = league_info($season, $league); - $template->assign_vars(array( - 'S_DISPLAY_RANKS_TOTAL' => true, - 'S_DISPLAY_HITS02' => $config['football_win_hits02'], - 'S_DATA_RANKS' => $data_ranks, - 'S_SIDENAME' => $sidename, - 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), - 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), - 'S_WIN' => ($league_info['win_matchday'] == '0' and $league_info['win_season'] == '0') ? false : ($this->auth->acl_gets('a_')) ? true : false, - 'WIN_NAME' => $config['football_win_name'], - 'S_SHOW_OTHER_LINKS' => true, - 'S_HEADER' => sprintf($user->lang['RANKING_COMPARE']), - 'S_LINK_RANKING' => $this->helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'S_LINK_ALL_TIME' => $this->helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'alltime')), - 'S_LINK_COMPARE' => '', - ) - ); - break; - - default: - - $win_user_most_hits = array(); - $win_user_most_hits_away = array(); - $win_user_most_hits = win_user_most_hits($season, $league, $matchday); - $win_user_most_hits_away = win_user_most_hits_away($season, $league, $matchday); - - // Statistics - $sql = "SELECT - b.user_id, - COUNT(b.match_no) AS matches, - SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS bets, - SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', - IF((b.goals_home + 0 < b.goals_guest) <> (m.goals_home + 0 < m.goals_guest) - OR (b.goals_home = b.goals_guest) <> (m.goals_home = m.goals_guest) - OR (b.goals_home + 0 > b.goals_guest) <> (m.goals_home + 0 > m.goals_guest), - 0, - IF((b.goals_home = m.goals_home) AND (b.goals_guest = m.goals_guest), 0, 1) - ), - 0 - ) - ) AS tendency - FROM " . FOOTB_BETS . ' AS b - LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = b.season AND m.league = b.league AND m.match_no = b.match_no) - WHERE b.season = $season - AND b.league = $league - AND m.status IN (2,3) - AND m.matchday <= $matchday - GROUP BY user_id"; - - $result = $db->sql_query($sql); - $rows = $db->sql_fetchrowset($result); - $total_users = sizeof($rows); - $db->sql_freeresult($result); - - foreach ($rows AS $row) - { - $bets_of[$row['user_id']] = $row['bets']; - $nobets_of[$row['user_id']] = $row['matches'] - $row['bets']; - $tendency_of[$row['user_id']] = $row['tendency']; - } - - $data_ranks = false; - $pagination = ''; - - $prev_rank_of = array(); - if ($matchday > 1) - { - // previous rank total - $sql = 'SELECT - rank_total, - user_id - FROM ' . FOOTB_RANKS . " - WHERE season = $season - AND league = $league - AND matchday = ($matchday-1) - AND status IN (2,3) - ORDER BY rank_total ASC, user_id ASC"; - $result = $db->sql_query($sql); - $rows = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - - foreach ($rows AS $row) - { - $prev_rank_of[$row['user_id']] = $row['rank_total']; - } - } - - $sql = 'SELECT - r.rank_total, - r.user_id, - u.username, - u.user_colour, - r.status, - r.points_total, - r.win_total - FROM ' . FOOTB_RANKS . ' AS r - LEFT JOIN ' . USERS_TABLE . " AS u ON (r.user_id = u.user_id) - WHERE r.season = $season - AND r.league = $league - AND r.matchday = $matchday - AND r.status IN (2,3) - GROUP BY user_id - ORDER BY r.points_total DESC, LOWER(u.username) ASC"; - - $result = $db->sql_query($sql); - - $ranking_arr = array(); - while($row = $db->sql_fetchrow($result)) - { - $ranking_arr[$row['user_id']] = $row; - } - $db->sql_freeresult($result); - - // Make sure $start is set to the last page if it exceeds the amount - if ($start < 0 || $start >= $total_users) - { - $index_start = ($start < 0) ? 0 : floor(($total_users - 1) / $config['football_users_per_page']) * $config['football_users_per_page']; - } - else - { - $index_start = floor($start / $config['football_users_per_page']) * $config['football_users_per_page']; - } - $index_end = $index_start + $config['football_users_per_page'] - 1; - - // handle pagination. - $base_url = $this->helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday)); - $pagination = $phpbb_container->get('pagination'); - if ($user->data['football_mobile']) - { - $index_start = 0; - $index_end = 9999; - $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $index_end, $start); - } - else - { - $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); - } - - $index = 0; - $data_rank_total = false; - $ext_path = $this->phpbb_path_helper->update_web_root_path($this->phpbb_extension_manager->get_extension_path('football/football', true)); - foreach ($ranking_arr AS $curr_rank) - { - $data_ranks = true; - $rank = $curr_rank['rank_total']; - - if (($index_start <= $index) && ($index <= $index_end)) - { - // Display page - if (isset($prev_rank_of[$curr_rank['user_id']])) - { - if ($rank == $prev_rank_of[$curr_rank['user_id']]) - { - $change_sign = '='; - $change_differ = ''; - } - else - { - if ($rank > $prev_rank_of[$curr_rank['user_id']]) - { - $change_sign = '+'; - $differ = $rank - $prev_rank_of[$curr_rank['user_id']]; - $change_differ = ' (' . $differ . ')'; - } - else - { - $change_sign = '-'; - $differ = $prev_rank_of[$curr_rank['user_id']] - $rank; - $change_differ = ' (' . $differ . ')'; - } - } - } - else - { - $change_sign = ''; - $change_differ = ''; - } - - $win_total = sprintf('%01.2f',$curr_rank['win_total']); - if(!isset($win_user_most_hits[$curr_rank['user_id']]['direct_hit'])) - { - $win_user_most_hits[$curr_rank['user_id']]['direct_hit'] = 0; - } - if(!isset($win_user_most_hits_away[$curr_rank['user_id']]['direct_hit'])) - { - $win_user_most_hits_away[$curr_rank['user_id']]['direct_hit'] = 0; - } - $row_class = (!($index % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - if ($curr_rank['user_id'] == $user->data['user_id']) - { - $row_class = 'bg3 row_user'; - } - $colorstyle = color_style($curr_rank['status']); - - $template->assign_block_vars('rankstotal', array( - 'ROW_CLASS' => $row_class, - 'RANK' => $rank, - 'NO_CHANGES' => ($change_sign == '=') ? true : false, - 'WORSENED' => ($change_sign == '-') ? true : false, - 'IMPROVED' => ($change_sign == '+') ? true : false, - 'CHANGE_SIGN' => $change_sign, - 'CHANGE_DIFFER' => $change_differ, - 'USERID' => $curr_rank['user_id'], - 'USERNAME' => $curr_rank['username'], - 'U_PROFILE' => get_username_string('profile', $curr_rank['user_id'], $curr_rank['username'], $curr_rank['user_colour']), - 'BETS' => $bets_of[$curr_rank['user_id']], - 'NOBETS' => ($nobets_of[$curr_rank['user_id']] == 0) ? ' ' : $nobets_of[$curr_rank['user_id']], - 'TENDENCIES' => ($tendency_of[$curr_rank['user_id']] == 0) ? ' ' : $tendency_of[$curr_rank['user_id']], - 'DIRECTHITS' => ($win_user_most_hits[$curr_rank['user_id']]['direct_hit'] == 0) ? ' ' : $win_user_most_hits[$curr_rank['user_id']]['direct_hit'], - 'DIRECTHITS02' => ($win_user_most_hits_away[$curr_rank['user_id']]['direct_hit'] == 0) ? ' ' : $win_user_most_hits_away[$curr_rank['user_id']]['direct_hit'], - 'POINTS' => $curr_rank['points_total'], - 'COLOR_STYLE' => $colorstyle, - 'WIN' => $win_total, - ) - ); - } - $index++; - } - - $sidename = sprintf($user->lang['RANK_TOTAL']); - $league_info = league_info($season, $league); - $template->assign_vars(array( - 'S_DISPLAY_RANKS_TOTAL' => true, - 'S_DISPLAY_HITS02' => $config['football_win_hits02'], - 'S_DATA_RANKS' => $data_ranks, - 'S_SIDENAME' => $sidename, - 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), - 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), - 'S_WIN' => ($league_info['win_matchday'] == '0' and $league_info['win_season'] == '0') ? false : true, - 'WIN_NAME' => $config['football_win_name'], - 'S_SHOW_OTHER_LINKS' => true, - 'S_LINK_RANKING' => '', - 'S_LINK_ALL_TIME' => $this->helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'alltime')), - 'S_LINK_COMPARE' => $this->helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'compare')), - ) - ); - break; -} - -?> \ No newline at end of file +request->variable('start', 0); +$mode = $this->request->variable('mode', ''); + +switch ($mode) +{ + case 'alltime': + // Statistics + $sql = "SELECT + b.user_id, + COUNT(b.match_no) AS matches, + SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS bets, + SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', + IF((b.goals_home + 0 < b.goals_guest) <> (m.goals_home + 0 < m.goals_guest) + OR (b.goals_home = b.goals_guest) <> (m.goals_home = m.goals_guest) + OR (b.goals_home + 0 > b.goals_guest) <> (m.goals_home + 0 > m.goals_guest), + 0, + IF((b.goals_home = m.goals_home) AND (b.goals_guest = m.goals_guest), 0, 1) + ), + 0 + ) + ) AS tendency + FROM " . FOOTB_BETS . ' AS b + LEFT JOIN ' . FOOTB_MATCHES . ' AS m ON (m.season = b.season AND m.league = b.league AND m.match_no = b.match_no) + LEFT JOIN ' . FOOTB_LEAGUES . " AS l ON (l.season = b.season AND l.league = b.league) + WHERE b.league = $league + AND ((b.season < $season) OR (b.season = $season AND m.matchday <= $matchday)) + AND m.status IN (2,3) + GROUP BY b.user_id"; + + $result = $db->sql_query($sql); + $rows = $db->sql_fetchrowset($result); + $total_users = sizeof($rows); + $db->sql_freeresult($result); + + foreach ($rows AS $row) + { + $bets_of[$row['user_id']] = $row['bets']; + $nobets_of[$row['user_id']] = $row['matches'] - $row['bets']; + } + + // Wins + $sql = 'SELECT + r.user_id, + sum(r.win_total) As win_total + FROM ' . FOOTB_RANKS . ' AS r + LEFT JOIN ' . FOOTB_LEAGUES . " AS l ON (l.season = r.season AND l.league = r.league) + WHERE r.league = $league + AND ((r.season < $season AND r.matchday = l.matchdays) OR (r.season = $season AND r.matchday = $matchday)) + AND r.status IN (2,3) + GROUP BY r.user_id + ORDER BY r.user_id ASC"; + + $result = $db->sql_query($sql); + + $win_arr = array(); + while($row = $db->sql_fetchrow($result)) + { + $win_arr[$row['user_id']] = $row['win_total']; + } + $db->sql_freeresult($result); + + $data_ranks = false; + $pagination = ''; + + $sql = 'SELECT + r.user_id, + u.username, + min(r.status) AS status, + sum(r.points) As points_total, + sum(r.tendencies) As tendencies, + sum(r.correct_result) As hits + FROM ' . FOOTB_RANKS . ' AS r + LEFT JOIN ' . USERS_TABLE . ' AS u ON (r.user_id = u.user_id) + LEFT JOIN ' . FOOTB_LEAGUES . " AS l ON (l.season = r.season AND l.league = r.league) + WHERE r.league = $league + AND ((r.season < $season) OR (r.season = $season AND r.matchday <= $matchday)) + AND r.status IN (2,3) + GROUP BY r.user_id + ORDER BY points_total DESC, LOWER(u.username) ASC"; + + $result = $db->sql_query($sql); + + $ranking_arr = array(); + while($row = $db->sql_fetchrow($result)) + { + $ranking_arr[$row['user_id']] = $row; + } + $db->sql_freeresult($result); + + + // Make sure $start is set to the last page if it exceeds the amount + if ($start < 0 || $start >= $total_users) + { + $index_start = ($start < 0) ? 0 : floor(($total_users - 1) / $config['football_users_per_page']) * $config['football_users_per_page']; + } + else + { + $index_start = floor($start / $config['football_users_per_page']) * $config['football_users_per_page']; + } + $index_end = $index_start + $config['football_users_per_page'] - 1; + + // handle pagination. + $base_url = $this->helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'alltime')); + $pagination = $phpbb_container->get('pagination'); + $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); + + $index = 0; + $rank = 0; + $last_points = 0; + $data_rank_total = false; + foreach ($ranking_arr AS $curr_rank) + { + if ($curr_rank['points_total'] <> $last_points) + { + $rank = $index + 1; + $last_points = $curr_rank['points_total']; + } + $data_ranks = true; + if (($index_start <= $index) && ($index <= $index_end)) + { + $row_class = (!($index % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + if ($curr_rank['user_id'] == $user->data['user_id']) + { + $row_class = 'bg3 row_user'; + } + $colorstyle = color_style($curr_rank['status']); + + $template->assign_block_vars('rankstotal', array( + 'ROW_CLASS' => $row_class, + 'RANK' => $rank, + 'USERID' => $curr_rank['user_id'], + 'USERNAME' => $curr_rank['username'], + 'URL' => $phpbb_root_path . 'profile.php?mode=viewprofile&u=' . $curr_rank['user_id'], + 'BETS' => $bets_of[$curr_rank['user_id']], + 'NOBETS' => ($nobets_of[$curr_rank['user_id']] == 0) ? ' ' : $nobets_of[$curr_rank['user_id']], + 'TENDENCIES' => ($curr_rank['tendencies'] == 0) ? ' ' : $curr_rank['tendencies'], + 'DIRECTHITS' => ($curr_rank['hits'] == 0) ? ' ' : $curr_rank['hits'], + 'POINTS' => $curr_rank['points_total'], + 'COLOR_STYLE' => $colorstyle, + 'WIN' => $win_arr[$curr_rank['user_id']], + ) + ); + } + $index++; + } + + $sidename = sprintf($user->lang['RANK_TOTAL']); + $league_info = league_info($season, $league); + $template->assign_vars(array( + 'S_DISPLAY_RANKS_TOTAL' => true, + 'S_DISPLAY_HITS02' => $config['football_win_hits02'], + 'S_DATA_RANKS' => $data_ranks, + 'S_SIDENAME' => $sidename, + 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), + 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), + 'S_WIN' => false, + 'WIN_NAME' => $config['football_win_name'], + 'S_SHOW_OTHER_LINKS' => true, + 'S_HEADER' => sprintf($user->lang['RANKING_ALL_TIME']), + 'S_LINK_RANKING' => $this->helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'S_LINK_ALL_TIME' => '', + 'S_LINK_COMPARE' => $this->helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'compare')), + ) + ); + break; + + case 'compare': + // Statistics + $sql = "SELECT + b.season as season, + b.user_id, + COUNT(b.match_no) AS matches, + SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS bets, + SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', + IF((b.goals_home + 0 < b.goals_guest) <> (m.goals_home + 0 < m.goals_guest) + OR (b.goals_home = b.goals_guest) <> (m.goals_home = m.goals_guest) + OR (b.goals_home + 0 > b.goals_guest) <> (m.goals_home + 0 > m.goals_guest), + 0, + IF((b.goals_home = m.goals_home) AND (b.goals_guest = m.goals_guest), 0, 1) + ), + 0 + ) + ) AS tendency, + SUM(IF(b.goals_home = m.goals_home AND b.goals_guest = m.goals_guest, 1, 0)) AS hits + FROM " . FOOTB_BETS . ' AS b + LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = b.season AND m.league = b.league AND m.match_no = b.match_no) + WHERE b.season <= $season + AND b.league = $league + AND m.matchday <= $matchday + AND m.status IN (2,3) + GROUP BY b.season, b.user_id"; + + $result = $db->sql_query($sql); + $rows = $db->sql_fetchrowset($result); + $total_users = sizeof($rows); + $db->sql_freeresult($result); + + foreach ($rows AS $row) + { + $bets_of[$row['user_id'] . '#' . $row['season']] = $row['bets']; + $nobets_of[$row['user_id'] . '#' . $row['season']] = $row['matches'] - $row['bets']; + $tendency_of[$row['user_id'] . '#' . $row['season']] = $row['tendency']; + $hits_of[$row['user_id'] . '#' . $row['season']] = $row['hits']; + } + + // Wins + $sql = 'SELECT + r.season as season, + r.user_id, + sum(r.win_total) As win_total + FROM ' . FOOTB_RANKS . " AS r + WHERE r.season <= $season + AND r.league = $league + AND r.matchday = $matchday + AND r.status IN (2,3) + GROUP BY r.season, r.user_id + ORDER BY r.user_id ASC, r.season ASC"; + + $result = $db->sql_query($sql); + + $win_arr = array(); + while($row = $db->sql_fetchrow($result)) + { + $win_arr[$row['user_id'] . '#' . $row['season']] = $row['win_total']; + } + $db->sql_freeresult($result); + + $data_ranks = false; + $pagination = ''; + + $sql = 'SELECT + r.season, + r.user_id, + u.username, + r.rank_total, + r.status, + r.points_total + FROM ' . FOOTB_RANKS . ' AS r + LEFT JOIN ' . USERS_TABLE . " AS u ON (r.user_id = u.user_id) + WHERE r.season <= $season + AND r.league = $league + AND r.matchday = $matchday + AND r.status IN (2,3) + ORDER BY r.points_total DESC, LOWER(u.username) ASC"; + + $result = $db->sql_query($sql); + + $ranking_arr = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + + + // Make sure $start is set to the last page if it exceeds the amount + if ($start < 0 || $start >= $total_users) + { + $index_start = ($start < 0) ? 0 : floor(($total_users - 1) / $config['football_users_per_page']) * $config['football_users_per_page']; + } + else + { + $index_start = floor($start / $config['football_users_per_page']) * $config['football_users_per_page']; + } + $index_end = $index_start + $config['football_users_per_page'] - 1; + + // handle pagination. + $base_url = $this->helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'compare')); + $pagination = $phpbb_container->get('pagination'); + $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); + + $index = 0; + $rank = 0; + $last_points = 0; + $data_rank_total = false; + foreach ($ranking_arr AS $curr_rank) + { + if ($curr_rank['points_total'] <> $last_points) + { + $rank = $index + 1; + $last_points = $curr_rank['points_total']; + } + $data_ranks = true; + if (($index_start <= $index) && ($index <= $index_end)) + { + $row_class = (!($index % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + if ($curr_rank['user_id'] == $user->data['user_id']) + { + $row_class = 'bg3 row_user'; + } + $colorstyle = color_style($curr_rank['status']); + + $template->assign_block_vars('rankstotal', array( + 'ROW_CLASS' => $row_class, + 'RANK' => $rank, + 'USERID' => $curr_rank['user_id'], + 'USERNAME' => $curr_rank['username'], + 'SEASON' => $curr_rank['season'], + 'SEASON_RANK' => $curr_rank['rank_total'], + 'URL' => $phpbb_root_path . 'profile.php?mode=viewprofile&u=' . $curr_rank['user_id'], + 'BETS' => $bets_of[$curr_rank['user_id'] . '#' . $curr_rank['season']], + 'NOBETS' => ($nobets_of[$curr_rank['user_id'] . '#' . $curr_rank['season']] == 0) ? ' ' : $nobets_of[$curr_rank['user_id'] . '#' . $curr_rank['season']], + 'TENDENCIES' => ($tendency_of[$curr_rank['user_id'] . '#' . $curr_rank['season']] == 0) ? ' ' : $tendency_of[$curr_rank['user_id'] . '#' . $curr_rank['season']], + 'DIRECTHITS' => ($hits_of[$curr_rank['user_id'] . '#' . $curr_rank['season']] == 0) ? ' ' : $hits_of[$curr_rank['user_id'] . '#' . $curr_rank['season']], + 'POINTS' => $curr_rank['points_total'], + 'COLOR_STYLE' => $colorstyle, + 'WIN' => $win_arr[$curr_rank['user_id'] . '#' . $curr_rank['season']], + ) + ); + } + $index++; + } + + $sidename = sprintf($user->lang['RANK_TOTAL']); + $league_info = league_info($season, $league); + $template->assign_vars(array( + 'S_DISPLAY_RANKS_TOTAL' => true, + 'S_DISPLAY_HITS02' => $config['football_win_hits02'], + 'S_DATA_RANKS' => $data_ranks, + 'S_SIDENAME' => $sidename, + 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), + 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), + 'S_WIN' => ($league_info['win_matchday'] == '0' and $league_info['win_season'] == '0') ? false : ($this->auth->acl_gets('a_')) ? true : false, + 'WIN_NAME' => $config['football_win_name'], + 'S_SHOW_OTHER_LINKS' => true, + 'S_HEADER' => sprintf($user->lang['RANKING_COMPARE']), + 'S_LINK_RANKING' => $this->helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'S_LINK_ALL_TIME' => $this->helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'alltime')), + 'S_LINK_COMPARE' => '', + ) + ); + break; + + default: + + $win_user_most_hits = array(); + $win_user_most_hits_away = array(); + $win_user_most_hits = win_user_most_hits($season, $league, $matchday); + $win_user_most_hits_away = win_user_most_hits_away($season, $league, $matchday); + + // Statistics + $sql = "SELECT + b.user_id, + COUNT(b.match_no) AS matches, + SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', 1, 0)) AS bets, + SUM(IF(b.goals_home <> '' AND b.goals_guest <> '', + IF((b.goals_home + 0 < b.goals_guest) <> (m.goals_home + 0 < m.goals_guest) + OR (b.goals_home = b.goals_guest) <> (m.goals_home = m.goals_guest) + OR (b.goals_home + 0 > b.goals_guest) <> (m.goals_home + 0 > m.goals_guest), + 0, + IF((b.goals_home = m.goals_home) AND (b.goals_guest = m.goals_guest), 0, 1) + ), + 0 + ) + ) AS tendency + FROM " . FOOTB_BETS . ' AS b + LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = b.season AND m.league = b.league AND m.match_no = b.match_no) + WHERE b.season = $season + AND b.league = $league + AND m.status IN (2,3) + AND m.matchday <= $matchday + GROUP BY b.user_id"; + + $result = $db->sql_query($sql); + $rows = $db->sql_fetchrowset($result); + $total_users = sizeof($rows); + $db->sql_freeresult($result); + + foreach ($rows AS $row) + { + $bets_of[$row['user_id']] = $row['bets']; + $nobets_of[$row['user_id']] = $row['matches'] - $row['bets']; + $tendency_of[$row['user_id']] = $row['tendency']; + } + + $data_ranks = false; + $pagination = ''; + + $prev_rank_of = array(); + if ($matchday > 1) + { + // previous rank total + $sql = 'SELECT + rank_total, + user_id + FROM ' . FOOTB_RANKS . " + WHERE season = $season + AND league = $league + AND matchday = ($matchday-1) + AND status IN (2,3) + ORDER BY rank_total ASC, user_id ASC"; + $result = $db->sql_query($sql); + $rows = $db->sql_fetchrowset($result); + $db->sql_freeresult($result); + + foreach ($rows AS $row) + { + $prev_rank_of[$row['user_id']] = $row['rank_total']; + } + } + + $sql = 'SELECT + r.rank_total, + r.user_id, + u.username, + u.user_colour, + r.status, + r.points_total, + r.win_total + FROM ' . FOOTB_RANKS . ' AS r + LEFT JOIN ' . USERS_TABLE . " AS u ON (r.user_id = u.user_id) + WHERE r.season = $season + AND r.league = $league + AND r.matchday = $matchday + AND r.status IN (2,3) + GROUP BY r.user_id + ORDER BY r.points_total DESC, LOWER(u.username) ASC"; + + $result = $db->sql_query($sql); + + $ranking_arr = array(); + while($row = $db->sql_fetchrow($result)) + { + $ranking_arr[$row['user_id']] = $row; + } + $db->sql_freeresult($result); + + // Make sure $start is set to the last page if it exceeds the amount + if ($start < 0 || $start >= $total_users) + { + $index_start = ($start < 0) ? 0 : floor(($total_users - 1) / $config['football_users_per_page']) * $config['football_users_per_page']; + } + else + { + $index_start = floor($start / $config['football_users_per_page']) * $config['football_users_per_page']; + } + $index_end = $index_start + $config['football_users_per_page'] - 1; + + // handle pagination. + $base_url = $this->helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday)); + $pagination = $phpbb_container->get('pagination'); + if ($user->data['football_mobile']) + { + $index_start = 0; + $index_end = 9999; + $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $index_end, $start); + } + else + { + $pagination->generate_template_pagination($base_url, 'pagination', 'start', $total_users, $this->config['football_users_per_page'], $start); + } + + $index = 0; + $data_rank_total = false; + $ext_path = $this->phpbb_path_helper->update_web_root_path($this->phpbb_extension_manager->get_extension_path('football/football', true)); + foreach ($ranking_arr AS $curr_rank) + { + $data_ranks = true; + $rank = $curr_rank['rank_total']; + + if (($index_start <= $index) && ($index <= $index_end)) + { + // Display page + if (isset($prev_rank_of[$curr_rank['user_id']])) + { + if ($rank == $prev_rank_of[$curr_rank['user_id']]) + { + $change_sign = '='; + $change_differ = ''; + } + else + { + if ($rank > $prev_rank_of[$curr_rank['user_id']]) + { + $change_sign = '+'; + $differ = $rank - $prev_rank_of[$curr_rank['user_id']]; + $change_differ = ' (' . $differ . ')'; + } + else + { + $change_sign = '-'; + $differ = $prev_rank_of[$curr_rank['user_id']] - $rank; + $change_differ = ' (' . $differ . ')'; + } + } + } + else + { + $change_sign = ''; + $change_differ = ''; + } + + $win_total = sprintf('%01.2f',$curr_rank['win_total']); + if(!isset($win_user_most_hits[$curr_rank['user_id']]['direct_hit'])) + { + $win_user_most_hits[$curr_rank['user_id']]['direct_hit'] = 0; + } + if(!isset($win_user_most_hits_away[$curr_rank['user_id']]['direct_hit'])) + { + $win_user_most_hits_away[$curr_rank['user_id']]['direct_hit'] = 0; + } + $row_class = (!($index % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + if ($curr_rank['user_id'] == $user->data['user_id']) + { + $row_class = 'bg3 row_user'; + } + $colorstyle = color_style($curr_rank['status']); + + $template->assign_block_vars('rankstotal', array( + 'ROW_CLASS' => $row_class, + 'RANK' => $rank, + 'NO_CHANGES' => ($change_sign == '=') ? true : false, + 'WORSENED' => ($change_sign == '+') ? true : false, + 'IMPROVED' => ($change_sign == '-') ? true : false, + 'CHANGE_SIGN' => $change_sign, + 'CHANGE_DIFFER' => $change_differ, + 'USERID' => $curr_rank['user_id'], + 'USERNAME' => $curr_rank['username'], + 'U_PROFILE' => get_username_string('profile', $curr_rank['user_id'], $curr_rank['username'], $curr_rank['user_colour']), + 'BETS' => $bets_of[$curr_rank['user_id']], + 'NOBETS' => ($nobets_of[$curr_rank['user_id']] == 0) ? ' ' : $nobets_of[$curr_rank['user_id']], + 'TENDENCIES' => ($tendency_of[$curr_rank['user_id']] == 0) ? ' ' : $tendency_of[$curr_rank['user_id']], + 'DIRECTHITS' => ($win_user_most_hits[$curr_rank['user_id']]['direct_hit'] == 0) ? ' ' : $win_user_most_hits[$curr_rank['user_id']]['direct_hit'], + 'DIRECTHITS02' => ($win_user_most_hits_away[$curr_rank['user_id']]['direct_hit'] == 0) ? ' ' : $win_user_most_hits_away[$curr_rank['user_id']]['direct_hit'], + 'POINTS' => $curr_rank['points_total'], + 'COLOR_STYLE' => $colorstyle, + 'WIN' => $win_total, + ) + ); + } + $index++; + } + + $sidename = sprintf($user->lang['RANK_TOTAL']); + $league_info = league_info($season, $league); + $template->assign_vars(array( + 'S_DISPLAY_RANKS_TOTAL' => true, + 'S_DISPLAY_HITS02' => $config['football_win_hits02'], + 'S_DATA_RANKS' => $data_ranks, + 'S_SIDENAME' => $sidename, + 'PAGE_NUMBER' => $pagination->on_page($total_users, $this->config['football_users_per_page'], $start), + 'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users), + 'S_WIN' => ($league_info['win_matchday'] == '0' and $league_info['win_season'] == '0') ? false : true, + 'WIN_NAME' => $config['football_win_name'], + 'S_SHOW_OTHER_LINKS' => true, + 'S_LINK_RANKING' => '', + 'S_LINK_ALL_TIME' => $this->helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'alltime')), + 'S_LINK_COMPARE' => $this->helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'compare')), + ) + ); + break; +} diff --git a/block/results.php b/block/results.php index 8088e95..18f08db 100644 --- a/block/results.php +++ b/block/results.php @@ -416,7 +416,7 @@ $template->assign_vars(array( 'S_SIDENAME' => $sidename, 'RESULT_EXPLAIN' => $result_explain, 'LABEL_FINALRESULT' => $label_finalresult, - 'S_FORM_ACTION_RESULT' => $this->helper->route('football_main_controller', array('side' => 'results', 's' => $season, 'l' => $league, 'm' => $matchday, 'action' => 'result')), + 'S_FORM_ACTION_RESULT' => $this->helper->route('football_football_controller', array('side' => 'results', 's' => $season, 'l' => $league, 'm' => $matchday, 'action' => 'result')), 'S_DATA_RESULTS' => $data_results, 'S_USER_IS_MEMBER' => $user_is_member, 'S_DISPLAY_GROUP' => $display_group, diff --git a/block/rules_popup.php b/block/rules_popup.php index 723c051..d14cddd 100644 --- a/block/rules_popup.php +++ b/block/rules_popup.php @@ -1,227 +1,228 @@ -data['user_id'] == ANONYMOUS) - { - trigger_error('NO_GUEST_VIEW'); - } -} -if (!$config['football_user_view']) -{ - // Only Prediction League member should see this page - // Check Prediction League authorisation - if ( !$this->auth->acl_get('u_use_football') ) - { - trigger_error('NO_AUTH_VIEW'); - } -} - -// Football disabled? -if ($config['football_disable']) -{ - $message = (!empty($config['football_disable_msg'])) ? $config['football_disable_msg'] : 'FOOTBALL_DISABLED'; - trigger_error($message); -} - -$season = $this->request->variable('s', 0); -$league = $this->request->variable('l', 0); - -// Check parms -$error_message = ''; -if (!$season OR !$league) -{ - $data_rules = false; - if (!$season) - { - $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; - } - if (!$league) - { - $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; - } -} -else -{ - $season_info = season_info($season); - if (sizeof($season_info)) - { - $season_name = $season_info['season_name']; - $league_info = league_info($season, $league); - if (sizeof($league_info)) - { - $data_rules = true; - $matchdays = $league_info['matchdays']; - $league_name = $league_info['league_name']; - - if ($user->data['is_registered'] and !$user->data['is_bot']) - { - $win_hits = ''; - $win_hits02 = ''; - $win_matchday = explode(';', "0;" . $league_info['win_matchday']); - $win_season = explode(';',"0;" . $league_info['win_season']); - $win_hits = $league_info['win_result']; - $win_hits02 = $league_info['win_result_02']; - - if($win_hits != '' AND $win_hits != 0) - { - $template->assign_block_vars('wintable', array( - 'WIN_DESC' => sprintf($user->lang['WIN_HITS']), - ) - ); - $template->assign_block_vars('wintable.entry', array( - 'ROW_CLASS' => 'bg1 row_light', - 'RANK' => '1. ' . sprintf($user->lang['PLACE']), - 'WIN' => $win_hits, - ) - ); - } - - if($win_hits02 != '' AND $win_hits02 != 0 AND $config['football_win_hits02']) - { - $template->assign_block_vars('wintable', array( - 'WIN_DESC' => sprintf($user->lang['WIN_HITS02']), - ) - ); - $template->assign_block_vars('wintable.entry', array( - 'ROW_CLASS' => 'bg1 row_light', - 'RANK' => '1. ' . sprintf($user->lang['PLACE']), - 'WIN' => $win_hits02, - ) - ); - } - - - if($win_matchday[1] != '' AND $win_matchday[1] != 0) - { - $template->assign_block_vars('wintable', array( - 'WIN_DESC' => sprintf($user->lang['WINS_MATCHDAY']), - ) - ); - $rank = 1; - while ($win_matchday[$rank] != '') - { - $row_class = (!($rank % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - $template->assign_block_vars('wintable.entry', array( - 'ROW_CLASS' => $row_class, - 'RANK' => $rank . '. ' . sprintf($user->lang['PLACE']), - 'WIN' => $win_matchday[$rank], - ) - ); - $rank++ ; - if ($rank > sizeof($win_matchday)-1) - { - break; - } - } - } - - if($win_season[1] != '' AND $win_season[1] != 0) - { - $template->assign_block_vars('wintable', array( - 'WIN_DESC' => sprintf($user->lang['WINS_SEASON']), - ) - ); - $rank = 1; - while ($win_season[$rank] != '') - { - $row_class = (!($rank % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - $template->assign_block_vars('wintable.entry', array( - 'ROW_CLASS' => $row_class, - 'RANK' => $rank. '. ' . sprintf($user->lang['PLACE']), - 'WIN' => $win_season[$rank], - ) - ); - $rank++ ; - if ($rank > sizeof($win_season)-1) - { - break; - } - } - } - } - } - else - { - $data_rules = false; - $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; - $league_name = ''; - } - } - else - { - $data_rules = false; - $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; - $season_name = ''; - } -} - -$sidename = sprintf($user->lang['FOOTBALL_RULES']); -if ($data_rules) -{ - $link_rules = append_sid($phpbb_root_path . "viewtopic.$phpEx?p=" . $league_info["rules_post_id"]); - $points_tendency = ($league_info['points_mode'] < 3) ? sprintf($user->lang['POINTS_TENDENCY' . $league_info['points_mode']], $league_info['points_tendency']) : sprintf($user->lang['POINTS_TENDENCY'], $league_info['points_tendency']); - $template->assign_vars(array( - 'S_SIDENAME' => $sidename, - 'S_DATA_RULES' => $data_rules, - 'S_BET_IN_TIME' => $league_info['bet_in_time'], - 'S_RULES_POST_ID' => $league_info['rules_post_id'], - 'S_ERROR_MESSAGE' => $error_message, - 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), - 'WIN_NAME' => $config['football_win_name'], - 'JOIN_MODE' => ($league_info['join_by_user']) ? (($league_info['join_in_season']) ? sprintf($user->lang['JOIN_IN_SEASON']) : sprintf($user->lang['JOIN_BY_USER'])) : sprintf($user->lang['JOIN_BY_ADMIN']), - 'POINTS_HIT' => sprintf($user->lang['POINTS_HIT'], $league_info['points_result']) . '
', - 'POINTS_TENDENCY' => $points_tendency . '
', - 'POINTS_DIFF' => ($league_info['points_mode'] == 4) ? sprintf($user->lang['POINTS_DIFFERENCE'], $league_info['points_diff']) . '
' : - (($league_info['points_mode'] == 5) ? sprintf($user->lang['POINTS_DIFFERENCE_DRAW'], $league_info['points_diff']) . '
' : ''), - 'POINTS_LAST' => ($league_info['points_last']) ? sprintf($user->lang['POINTS_NO_BET']) . '
' : '', - 'LINK_RULES' => sprintf($user->lang['LINK_RULES'], $link_rules), - 'SEASONNAME' => $season_info['season_name'], - 'LEAGUENAME' => $league_name, - ) - ); - - // output page - page_header(sprintf($user->lang['FOOTBALL_RULES' ]) . ' ' . $league_info['league_name'] . ' ' . $season_info['season_name']); -} -else -{ - $template->assign_vars(array( - 'S_SIDENAME' => $sidename, - 'S_DATA_RULES' => $data_rules, - 'S_BET_IN_TIME' => false, - 'S_RULES_POST_ID' => 0, - 'S_ERROR_MESSAGE' => $error_message, - 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), - 'WIN_NAME' => $config['football_win_name'], - 'JOIN_MODE' => '', - 'POINTS_HIT' => '', - 'POINTS_TENDENCY' => '', - 'POINTS_DIFF' => '', - 'POINTS_LAST' => '', - 'LINK_RULES' => '', - 'SEASONNAME' => '', - 'LEAGUENAME' => '', - ) - ); - - // output page - page_header(sprintf($user->lang['FOOTBALL_RULES' ])); -} -$template->set_filenames(array( - 'body' => 'rules_popup.html' - ) -); -// $template->display('popup'); - -page_footer(); - -?> \ No newline at end of file +data['user_id'] == ANONYMOUS) + { + trigger_error('NO_GUEST_VIEW'); + } +} +if (!$config['football_user_view']) +{ + // Only Prediction League member should see this page + // Check Prediction League authorisation + if ( !$this->auth->acl_get('u_use_football') ) + { + trigger_error('NO_AUTH_VIEW'); + } +} + +// Football disabled? +if ($config['football_disable']) +{ + $message = (!empty($config['football_disable_msg'])) ? $config['football_disable_msg'] : 'FOOTBALL_DISABLED'; + trigger_error($message); +} + +$season = $this->request->variable('s', 0); +$league = $this->request->variable('l', 0); + +// Check parms +$error_message = ''; +if (!$season OR !$league) +{ + $data_rules = false; + if (!$season) + { + $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; + } + if (!$league) + { + $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; + } +} +else +{ + $season_info = season_info($season); + if (sizeof($season_info)) + { + $season_name = $season_info['season_name']; + $league_info = league_info($season, $league); + if (sizeof($league_info)) + { + $data_rules = true; + $matchdays = $league_info['matchdays']; + $league_name = $league_info['league_name']; + + if ($user->data['is_registered'] and !$user->data['is_bot']) + { + $win_hits = ''; + $win_hits02 = ''; + $win_matchday = explode(';', "0;" . $league_info['win_matchday']); + $win_season = explode(';',"0;" . $league_info['win_season']); + $win_hits = $league_info['win_result']; + $win_hits02 = $league_info['win_result_02']; + + if($win_hits != '' AND $win_hits != 0) + { + $template->assign_block_vars('wintable', array( + 'WIN_DESC' => sprintf($user->lang['WIN_HITS']), + ) + ); + $template->assign_block_vars('wintable.entry', array( + 'ROW_CLASS' => 'bg1 row_light', + 'RANK' => '1. ' . sprintf($user->lang['PLACE']), + 'WIN' => $win_hits, + ) + ); + } + + if($win_hits02 != '' AND $win_hits02 != 0 AND $config['football_win_hits02']) + { + $template->assign_block_vars('wintable', array( + 'WIN_DESC' => sprintf($user->lang['WIN_HITS02']), + ) + ); + $template->assign_block_vars('wintable.entry', array( + 'ROW_CLASS' => 'bg1 row_light', + 'RANK' => '1. ' . sprintf($user->lang['PLACE']), + 'WIN' => $win_hits02, + ) + ); + } + + + if($win_matchday[1] != '' AND $win_matchday[1] != 0) + { + $template->assign_block_vars('wintable', array( + 'WIN_DESC' => sprintf($user->lang['WINS_MATCHDAY']), + ) + ); + $rank = 1; + while ($win_matchday[$rank] != '') + { + $row_class = (!($rank % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + $template->assign_block_vars('wintable.entry', array( + 'ROW_CLASS' => $row_class, + 'RANK' => $rank . '. ' . sprintf($user->lang['PLACE']), + 'WIN' => $win_matchday[$rank], + ) + ); + $rank++ ; + if ($rank > sizeof($win_matchday)-1) + { + break; + } + } + } + + if($win_season[1] != '' AND $win_season[1] != 0) + { + $template->assign_block_vars('wintable', array( + 'WIN_DESC' => sprintf($user->lang['WINS_SEASON']), + ) + ); + $rank = 1; + while ($win_season[$rank] != '') + { + $row_class = (!($rank % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + $template->assign_block_vars('wintable.entry', array( + 'ROW_CLASS' => $row_class, + 'RANK' => $rank. '. ' . sprintf($user->lang['PLACE']), + 'WIN' => $win_season[$rank], + ) + ); + $rank++ ; + if ($rank > sizeof($win_season)-1) + { + break; + } + } + } + } + } + else + { + $data_rules = false; + $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; + $league_name = ''; + } + } + else + { + $data_rules = false; + $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; + $season_name = ''; + } +} + +$sidename = sprintf($user->lang['FOOTBALL_RULES']); +if ($data_rules) +{ + $link_rules = append_sid($phpbb_root_path . "viewtopic.$phpEx?p=" . $league_info["rules_post_id"]); + $points_tendency = ($league_info['points_mode'] < 3) ? sprintf($user->lang['POINTS_TENDENCY' . $league_info['points_mode']], $league_info['points_tendency']) : sprintf($user->lang['POINTS_TENDENCY'], $league_info['points_tendency']); + $template->assign_vars(array( + 'S_SIDENAME' => $sidename, + 'S_DATA_RULES' => $data_rules, + 'S_BET_IN_TIME' => $league_info['bet_in_time'], + 'S_BET_POINTS' => true, + 'S_RULES_POST_ID' => $league_info['rules_post_id'], + 'S_ERROR_MESSAGE' => $error_message, + 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), + 'WIN_NAME' => $config['football_win_name'], + 'JOIN_MODE' => ($league_info['join_by_user']) ? (($league_info['join_in_season']) ? sprintf($user->lang['JOIN_IN_SEASON']) : sprintf($user->lang['JOIN_BY_USER'])) : sprintf($user->lang['JOIN_BY_ADMIN']), + 'POINTS_HIT' => sprintf($user->lang['POINTS_HIT'], $league_info['points_result']) . '
', + 'POINTS_TENDENCY' => $points_tendency . '
', + 'POINTS_DIFF' => ($league_info['points_mode'] == 4) ? sprintf($user->lang['POINTS_DIFFERENCE'], $league_info['points_diff']) . '
' : + (($league_info['points_mode'] == 5) ? sprintf($user->lang['POINTS_DIFFERENCE_DRAW'], $league_info['points_diff']) . '
' : ''), + 'POINTS_LAST' => ($league_info['points_last']) ? sprintf($user->lang['POINTS_NO_BET']) . '
' : '', + 'LINK_RULES' => sprintf($user->lang['LINK_RULES'], $link_rules), + 'SEASONNAME' => $season_info['season_name'], + 'LEAGUENAME' => $league_name, + 'BET_POINTS' => $league_info['bet_points'], + ) + ); + + // output page + page_header(sprintf($user->lang['FOOTBALL_RULES' ]) . ' ' . $league_info['league_name'] . ' ' . $season_info['season_name']); +} +else +{ + $template->assign_vars(array( + 'S_SIDENAME' => $sidename, + 'S_DATA_RULES' => $data_rules, + 'S_BET_IN_TIME' => false, + 'S_BET_POINTS' => false, + 'S_RULES_POST_ID' => 0, + 'S_ERROR_MESSAGE' => $error_message, + 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), + 'WIN_NAME' => $config['football_win_name'], + 'JOIN_MODE' => '', + 'POINTS_HIT' => '', + 'POINTS_TENDENCY' => '', + 'POINTS_DIFF' => '', + 'POINTS_LAST' => '', + 'LINK_RULES' => '', + 'SEASONNAME' => '', + 'LEAGUENAME' => '', + ) + ); + + // output page + page_header(sprintf($user->lang['FOOTBALL_RULES' ])); +} +$template->set_filenames(array( + 'body' => 'rules_popup.html' + ) +); +// $template->display('popup'); + +page_footer(); diff --git a/block/table.php b/block/table.php index 87a5226..24e15fa 100644 --- a/block/table.php +++ b/block/table.php @@ -151,7 +151,7 @@ foreach($points_ary as $group_id => $points) ) ); } - } + } } $db->sql_freeresult($result); diff --git a/block/under_construction.php b/block/under_construction.php index c3c866e..47dbe12 100644 --- a/block/under_construction.php +++ b/block/under_construction.php @@ -1,23 +1,23 @@ -lang['UNDER_CONSTRUCTION']); -$template->assign_vars(array( - 'S_SIDENAME' => $sidename, - 'S_DISPLAY_UNDER_CONSTRUCTION' => true, - ) -); - +lang['UNDER_CONSTRUCTION']); +$template->assign_vars(array( + 'S_SIDENAME' => $sidename, + 'S_DISPLAY_UNDER_CONSTRUCTION' => true, + ) +); + ?> \ No newline at end of file diff --git a/block/viewplan_popup.php b/block/viewplan_popup.php index f9525a1..b0128da 100644 --- a/block/viewplan_popup.php +++ b/block/viewplan_popup.php @@ -1,297 +1,297 @@ -data['user_id'] == ANONYMOUS) - { - trigger_error('NO_GUEST_VIEW'); - } -} -if (!$config['football_user_view']) -{ - // Only Prediction League member should see this page - // Check Prediction League authorisation - if ( !$this->auth->acl_get('u_use_football') ) - { - trigger_error('NO_AUTH_VIEW'); - } -} - -// Football disabled? -if ($config['football_disable']) -{ - $message = (!empty($config['football_disable_msg'])) ? $config['football_disable_msg'] : 'FOOTBALL_DISABLED'; - trigger_error($message); -} - -$mode = $this->request->variable('mode', ''); -$season = $this->request->variable('s', 0); -$league = $this->request->variable('l', 0); -$team_id = $this->request->variable('tid', 0); - -switch($mode) -{ - case 'played': - $mode_desc = sprintf($user->lang['PLAYED_MATCHES']); - $where = ' AND m.status IN (3,6) '; - $data_results = true; - break; - case 'rest': - $mode_desc = sprintf($user->lang['REST_MATCHES']); - $where = ' AND m.status IN (0,1,2,4,5) '; - $data_results = false; - break; - case 'home': - $mode_desc = sprintf($user->lang['HOME_MATCHES']); - $where = " AND m.team_id_home = $team_id AND m.status IN (3,6) "; - $data_results = true; - break; - case 'away': - $mode_desc = sprintf($user->lang['AWAY_MATCHES']); - $where = " AND m.team_id_guest = $team_id AND m.status IN (3,6) "; - $data_results = true; - break; - // ALL is Default - default: - $mode_desc = sprintf($user->lang['ALL_MATCHES']); - $where = ''; - $data_results = true; - break; -} - -// Check parms -$error_message = ''; -if (!$season OR !$league OR !$team_id) -{ - $data_plan = false; - if (!$season) - { - $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; - } - if (!$league) - { - $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; - } - if (!$team_id) - { - $error_message .= sprintf($user->lang['NO_TEAM_ID']) . '
'; - } -} -else -{ - $data_group = false; - $lang_dates = $user->lang['datetime']; - - - // Calculate matches and bets of matchday - $sql = "SELECT - IF(m.team_id_home = $team_id, 'H', 'A') AS match_place, - IF(((m.status=3) OR (m.status=6)), - IF(m.team_id_home = $team_id, - IF(m.goals_home + 0 > m.goals_guest, 'match_win', IF(m.goals_home = m.goals_guest, 'match_draw', 'match_lost')), - IF(m.goals_home + 0 < m.goals_guest, 'match_win', IF(m.goals_home = m.goals_guest, 'match_draw', 'match_lost'))), - '') AS match_style, - m.match_no, - m.matchday, - m.status, - m.group_id, - t1.team_symbol AS home_symbol, - t2.team_symbol AS guest_symbol, - t1.team_id AS home_id, - t2.team_id AS guest_id, - t1.team_name AS home_name, - t2.team_name AS guest_name, - t1.team_name_short AS home_short, - t2.team_name_short AS guest_short, - m.goals_home, - m.goals_guest, - CONCAT( - CASE DATE_FORMAT(m.match_datetime,'%w') - WHEN 0 THEN '" . $lang_dates['Sun'] . "' - WHEN 1 THEN '" . $lang_dates['Mon'] . "' - WHEN 2 THEN '" . $lang_dates['Tue'] . "' - WHEN 3 THEN '" . $lang_dates['Wed'] . "' - WHEN 4 THEN '" . $lang_dates['Thu'] . "' - WHEN 5 THEN '" . $lang_dates['Fri'] . "' - WHEN 6 THEN '" . $lang_dates['Sat'] . "' - ELSE 'Error' END, - DATE_FORMAT(m.match_datetime,' %d.%m. %H:%i') - ) AS match_time - FROM " . FOOTB_MATCHES . ' AS m - LEFT JOIN ' . FOOTB_TEAMS . ' AS t1 ON (t1.season = m.season AND t1.league = m.league AND t1.team_id=m.team_id_home) - LEFT JOIN ' . FOOTB_TEAMS . " AS t2 ON (t2.season = m.season AND t2.league = m.league AND t2.team_id=m.team_id_guest) - WHERE m.season = $season - AND m.league = $league - AND (m.team_id_home = $team_id OR m.team_id_guest = $team_id) - $where - GROUP BY m.match_no - ORDER BY m.match_datetime ASC, m.match_no ASC"; - $result = $db->sql_query($sql); - if ($row = $db->sql_fetchrow($result)) - { - $data_plan = true; - $matchnumber = 0; - $ext_path = $this->phpbb_path_helper->update_web_root_path($this->phpbb_extension_manager->get_extension_path('football/football', true)); - do - { - $matchnumber++ ; - $row_class = (!($matchnumber % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; - $display_link = true; - $homelogo = $row['home_symbol']; - $guestlogo = $row['guest_symbol']; - if ($homelogo <> '') - { - $logoH = "\""" ; - } - else - { - $logoH = "\"\"" ; - } - if ($guestlogo <> '') - { - $logoG = "\""" ; - } - else - { - $logoG = "\"\"" ; - } - - if ($row['group_id'] == '') - { - $group_id = ' '; - } - else - { - $data_group = true; - $group_id = $row['group_id']; - } - - if ($row['match_place'] == 'H') - { - $color_home = $row['match_style']; - $color_guest = ''; - } - else - { - $color_home = ''; - $color_guest = $row['match_style']; - } - $color_goals = $row['match_style']; - - $template->assign_block_vars('match', array( - 'ROW_CLASS' => $row_class, - 'MATCH_TIME' => $row['match_time'], - 'GROUP' => $group_id, - 'LOGO_HOME' => $logoH, - 'LOGO_GUEST' => $logoG, - 'HOME_NAME' => $row['home_short'], - 'GUEST_NAME' => $row['guest_short'], - 'GOALS_HOME' => ($row['goals_home'] == '') ? ' ' : $row['goals_home'], - 'GOALS_GUEST' => ($row['goals_guest'] == '') ? ' ' : $row['goals_guest'], - 'COLOR_HOME' => $color_home, - 'COLOR_GUEST' => $color_guest, - 'COLOR_GOALS' => $color_goals, - ) - ); - } - while ($row = $db->sql_fetchrow($result)); - $db->sql_freeresult($result); - } - else - { - $data_plan = false; - } - - $season_info = season_info($season); - if (sizeof($season_info) == 0) - { - $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; - $season_name = ''; - } - else - { - $season_name = $season_info["season_name"]; - - $league_info = league_info($season, $league); - if (sizeof($league_info) == 0) - { - $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; - $league_name = ''; - - } - else - { - $league_name = $league_info["league_name"]; - - $team_info = team_info($season, $league, $team_id); - if (sizeof($team_info) == 0) - { - $error_message .= sprintf($user->lang['NO_TEAM_ID']) . '
'; - $team_name = ''; - $logo = ''; - } - else - { - $team_name = $team_info["team_name"]; - $logo = "\""" ; - } - } - } -} - -$sidename = sprintf($user->lang['PLAN']); -if ($data_plan) -{ - $template->assign_vars(array( - 'S_SIDENAME' => $sidename, - 'S_DATA_PLAN' => $data_plan, - 'S_DATA_GROUP' => $data_group, - 'S_ERROR_MESSAGE' => $error_message, - 'MODE_DESC' => $mode_desc, - 'LOGO' => $logo, - 'TEAM' => $team_name, - 'SEASON' => $season_name, - 'LEAGUE' => $league_name, - 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), - 'S_DATA_RESULTS' => $data_results, - ) - ); - - // output page - page_header($mode_desc . ' ' . $team_name); -} -else -{ - $template->assign_vars(array( - 'S_SIDENAME' => $sidename, - 'S_DATA_PLAN' => $data_plan, - 'S_DATA_GROUP' => false, - 'S_ERROR_MESSAGE' => $error_message, - 'MODE_DESC' => $mode_desc, - 'LOGO' => '', - 'TEAM' => '', - 'SEASON' => '', - 'LEAGUE' => '', - 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), - 'S_DATA_RESULTS' => false, - ) - ); - - // output page - page_header($mode_desc); -} -$template->set_filenames(array( - 'body' => 'viewplan_popup.html') -); - -page_footer(); - +data['user_id'] == ANONYMOUS) + { + trigger_error('NO_GUEST_VIEW'); + } +} +if (!$config['football_user_view']) +{ + // Only Prediction League member should see this page + // Check Prediction League authorisation + if ( !$this->auth->acl_get('u_use_football') ) + { + trigger_error('NO_AUTH_VIEW'); + } +} + +// Football disabled? +if ($config['football_disable']) +{ + $message = (!empty($config['football_disable_msg'])) ? $config['football_disable_msg'] : 'FOOTBALL_DISABLED'; + trigger_error($message); +} + +$mode = $this->request->variable('mode', ''); +$season = $this->request->variable('s', 0); +$league = $this->request->variable('l', 0); +$team_id = $this->request->variable('tid', 0); + +switch($mode) +{ + case 'played': + $mode_desc = sprintf($user->lang['PLAYED_MATCHES']); + $where = ' AND m.status IN (3,6) '; + $data_results = true; + break; + case 'rest': + $mode_desc = sprintf($user->lang['REST_MATCHES']); + $where = ' AND m.status IN (0,1,2,4,5) '; + $data_results = false; + break; + case 'home': + $mode_desc = sprintf($user->lang['HOME_MATCHES']); + $where = " AND m.team_id_home = $team_id AND m.status IN (3,6) "; + $data_results = true; + break; + case 'away': + $mode_desc = sprintf($user->lang['AWAY_MATCHES']); + $where = " AND m.team_id_guest = $team_id AND m.status IN (3,6) "; + $data_results = true; + break; + // ALL is Default + default: + $mode_desc = sprintf($user->lang['ALL_MATCHES']); + $where = ''; + $data_results = true; + break; +} + +// Check parms +$error_message = ''; +if (!$season OR !$league OR !$team_id) +{ + $data_plan = false; + if (!$season) + { + $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; + } + if (!$league) + { + $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; + } + if (!$team_id) + { + $error_message .= sprintf($user->lang['NO_TEAM_ID']) . '
'; + } +} +else +{ + $data_group = false; + $lang_dates = $user->lang['datetime']; + + + // Calculate matches and bets of matchday + $sql = "SELECT + IF(m.team_id_home = $team_id, 'H', 'A') AS match_place, + IF(((m.status=3) OR (m.status=6)), + IF(m.team_id_home = $team_id, + IF(m.goals_home + 0 > m.goals_guest, 'match_win', IF(m.goals_home = m.goals_guest, 'match_draw', 'match_lost')), + IF(m.goals_home + 0 < m.goals_guest, 'match_win', IF(m.goals_home = m.goals_guest, 'match_draw', 'match_lost'))), + '') AS match_style, + m.match_no, + m.matchday, + m.status, + m.group_id, + t1.team_symbol AS home_symbol, + t2.team_symbol AS guest_symbol, + t1.team_id AS home_id, + t2.team_id AS guest_id, + t1.team_name AS home_name, + t2.team_name AS guest_name, + t1.team_name_short AS home_short, + t2.team_name_short AS guest_short, + m.goals_home, + m.goals_guest, + CONCAT( + CASE DATE_FORMAT(m.match_datetime,'%w') + WHEN 0 THEN '" . $lang_dates['Sun'] . "' + WHEN 1 THEN '" . $lang_dates['Mon'] . "' + WHEN 2 THEN '" . $lang_dates['Tue'] . "' + WHEN 3 THEN '" . $lang_dates['Wed'] . "' + WHEN 4 THEN '" . $lang_dates['Thu'] . "' + WHEN 5 THEN '" . $lang_dates['Fri'] . "' + WHEN 6 THEN '" . $lang_dates['Sat'] . "' + ELSE 'Error' END, + DATE_FORMAT(m.match_datetime,' %d.%m. %H:%i') + ) AS match_time + FROM " . FOOTB_MATCHES . ' AS m + LEFT JOIN ' . FOOTB_TEAMS . ' AS t1 ON (t1.season = m.season AND t1.league = m.league AND t1.team_id=m.team_id_home) + LEFT JOIN ' . FOOTB_TEAMS . " AS t2 ON (t2.season = m.season AND t2.league = m.league AND t2.team_id=m.team_id_guest) + WHERE m.season = $season + AND m.league = $league + AND (m.team_id_home = $team_id OR m.team_id_guest = $team_id) + $where + GROUP BY m.match_no + ORDER BY m.match_datetime ASC, m.match_no ASC"; + $result = $db->sql_query($sql); + if ($row = $db->sql_fetchrow($result)) + { + $data_plan = true; + $matchnumber = 0; + $ext_path = $this->phpbb_path_helper->update_web_root_path($this->phpbb_extension_manager->get_extension_path('football/football', true)); + do + { + $matchnumber++ ; + $row_class = (!($matchnumber % 2)) ? 'bg1 row_light' : 'bg2 row_dark'; + $display_link = true; + $homelogo = $row['home_symbol']; + $guestlogo = $row['guest_symbol']; + if ($homelogo <> '') + { + $logoH = "\""" ; + } + else + { + $logoH = "\"\"" ; + } + if ($guestlogo <> '') + { + $logoG = "\""" ; + } + else + { + $logoG = "\"\"" ; + } + + if ($row['group_id'] == '') + { + $group_id = ' '; + } + else + { + $data_group = true; + $group_id = $row['group_id']; + } + + if ($row['match_place'] == 'H') + { + $color_home = $row['match_style']; + $color_guest = ''; + } + else + { + $color_home = ''; + $color_guest = $row['match_style']; + } + $color_goals = $row['match_style']; + + $template->assign_block_vars('match', array( + 'ROW_CLASS' => $row_class, + 'MATCH_TIME' => $row['match_time'], + 'GROUP' => $group_id, + 'LOGO_HOME' => $logoH, + 'LOGO_GUEST' => $logoG, + 'HOME_NAME' => $row['home_short'], + 'GUEST_NAME' => $row['guest_short'], + 'GOALS_HOME' => ($row['goals_home'] == '') ? ' ' : $row['goals_home'], + 'GOALS_GUEST' => ($row['goals_guest'] == '') ? ' ' : $row['goals_guest'], + 'COLOR_HOME' => $color_home, + 'COLOR_GUEST' => $color_guest, + 'COLOR_GOALS' => $color_goals, + ) + ); + } + while ($row = $db->sql_fetchrow($result)); + $db->sql_freeresult($result); + } + else + { + $data_plan = false; + } + + $season_info = season_info($season); + if (sizeof($season_info) == 0) + { + $error_message .= sprintf($user->lang['NO_SEASON']) . '
'; + $season_name = ''; + } + else + { + $season_name = $season_info["season_name"]; + + $league_info = league_info($season, $league); + if (sizeof($league_info) == 0) + { + $error_message .= sprintf($user->lang['NO_LEAGUE']) . '
'; + $league_name = ''; + + } + else + { + $league_name = $league_info["league_name"]; + + $team_info = team_info($season, $league, $team_id); + if (sizeof($team_info) == 0) + { + $error_message .= sprintf($user->lang['NO_TEAM_ID']) . '
'; + $team_name = ''; + $logo = ''; + } + else + { + $team_name = $team_info["team_name"]; + $logo = "\""" ; + } + } + } +} + +$sidename = sprintf($user->lang['PLAN']); +if ($data_plan) +{ + $template->assign_vars(array( + 'S_SIDENAME' => $sidename, + 'S_DATA_PLAN' => $data_plan, + 'S_DATA_GROUP' => $data_group, + 'S_ERROR_MESSAGE' => $error_message, + 'MODE_DESC' => $mode_desc, + 'LOGO' => $logo, + 'TEAM' => $team_name, + 'SEASON' => $season_name, + 'LEAGUE' => $league_name, + 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), + 'S_DATA_RESULTS' => $data_results, + ) + ); + + // output page + page_header($mode_desc . ' ' . $team_name); +} +else +{ + $template->assign_vars(array( + 'S_SIDENAME' => $sidename, + 'S_DATA_PLAN' => $data_plan, + 'S_DATA_GROUP' => false, + 'S_ERROR_MESSAGE' => $error_message, + 'MODE_DESC' => $mode_desc, + 'LOGO' => '', + 'TEAM' => '', + 'SEASON' => '', + 'LEAGUE' => '', + 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $phpbb_root_path . 'football/'), + 'S_DATA_RESULTS' => false, + ) + ); + + // output page + page_header($mode_desc); +} +$template->set_filenames(array( + 'body' => 'viewplan_popup.html') +); + +page_footer(); + ?> \ No newline at end of file diff --git a/composer.json b/composer.json index acffd07..c30731a 100644 --- a/composer.json +++ b/composer.json @@ -1,29 +1,30 @@ { - "name": "football/football", - "type": "phpbb-extension", - "description": "Football Prediction League", - "homepage": "http://football.bplaced.net", - "version": "0.9.9", - "time": "2017-09-09", - "license": "GPL-2.0", - "authors": [{ - "name": "J. Helmke", - "email": "phpBB3.football@gmx.de", - "homepage": "http://football.bplaced.net", - "role": "Lead Developer" - }], - "require": { - "php": ">=5.3.3" + "name" : "football/football", + "type" : "phpbb-extension", + "description" : "Football Prediction League", + "homepage" : "http://football.bplaced.net", + "version" : "0.9.9", + "time" : "2021-04-04", + "license" : "GPL-2.0", + "authors" : [{ + "name" : "J. Helmke", + "email" : "phpBB3.football@gmx.de", + "homepage" : "http://football.bplaced.net", + "role" : "Lead Developer" + } + ], + "require" : { + "php" : ">=5.3.3" }, - "extra": { - "display-name": "Football Prediction League", - "soft-require": { - "phpbb/phpbb": ">3.1.*" + "extra" : { + "display-name" : "Football Prediction League", + "soft-require" : { + "phpbb/phpbb" : ">=3.2.8,<3.4" }, - "version-check": { - "host": "football.bplaced.net", - "directory": "/updatecheck", - "filename": "football_predictionleague.json" + "version-check" : { + "host" : "football.bplaced.net", + "directory" : "/updatecheck", + "filename" : "football_predictionleague.json" } } -} +} \ No newline at end of file diff --git a/config/routing.yml b/config/routing.yml index 6dbfa2c..6875ed8 100644 --- a/config/routing.yml +++ b/config/routing.yml @@ -1,4 +1,4 @@ -football_main_controller: +football_football_controller: path: /football/{side} defaults: { _controller: football.football.controller:handle } diff --git a/config/services.yml b/config/services.yml index ef09bde..a0f8a61 100644 --- a/config/services.yml +++ b/config/services.yml @@ -12,102 +12,102 @@ services: football.football.controller: class: football\football\controller\main arguments: - - @auth - - @config - - @ext.manager - - @notification_manager - - @log - - @path_helper - - @dbal.conn - - @controller.helper - - @template - - @user - - @pagination - - %core.root_path% - - %core.php_ext% + - '@auth' + - '@config' + - '@ext.manager' + - '@notification_manager' + - '@log' + - '@path_helper' + - '@dbal.conn' + - '@controller.helper' + - '@template' + - '@user' + - '@pagination' + - '%core.root_path%' + - '%core.php_ext%' football.football.controller_popup: class: football\football\controller\popup arguments: - - @auth - - @config - - @ext.manager - - @path_helper - - @dbal.conn - - @controller.helper - - @template - - @user - - @pagination - - %core.root_path% - - %core.php_ext% + - '@auth' + - '@config' + - '@ext.manager' + - '@path_helper' + - '@dbal.conn' + - '@controller.helper' + - '@template' + - '@user' + - '@pagination' + - '%core.root_path%' + - '%core.php_ext%' football.football.controller_download: class: football\football\controller\download arguments: - - @auth - - @config - - @ext.manager - - @path_helper - - @dbal.conn - - @controller.helper - - @template - - @user - - %core.root_path% - - %core.php_ext% + - '@auth' + - '@config' + - '@ext.manager' + - '@path_helper' + - '@dbal.conn' + - '@controller.helper' + - '@template' + - '@user' + - '%core.root_path%' + - '%core.php_ext%' football.football.version.check: class: football\football\includes\version_check scope: prototype arguments: - - %football.version_data% - - @config - - @version_helper - - @template - - @user + - '%football.version_data%' + - '@config' + - '@version_helper' + - '@template' + - '@user' football.football.controller_xml: class: football\football\controller\xmlplan arguments: - - @config - - @ext.manager - - @path_helper - - @dbal.conn - - @user - - %core.root_path% - - %core.php_ext% + - '@config' + - '@ext.manager' + - '@path_helper' + - '@dbal.conn' + - '@user' + - '%core.root_path%' + - '%core.php_ext%' football.football.core.functions.points: class: football\football\core\functions_points arguments: - - @user - - @dbal.conn + - '@user' + - '@dbal.conn' football.football.listener: class: football\football\event\main_listener arguments: - - @auth - - @config - - @controller.helper - - @template - - @path_helper - - @ext.manager - - @user - - %core.root_path% - - %core.php_ext% + - '@auth' + - '@config' + - '@controller.helper' + - '@template' + - '@path_helper' + - '@ext.manager' + - '@user' + - '%core.root_path%' + - '%core.php_ext%' tags: - { name: event.listener } football.football.cron.task.football_remember: class: football\football\cron\task\football_remember arguments: - - %core.root_path% - - %core.php_ext% - - @ext.manager - - @path_helper - - @dbal.conn - - @config - - @log - - @user + - '%core.root_path%' + - '%core.php_ext%' + - '@ext.manager' + - '@path_helper' + - '@dbal.conn' + - '@config' + - '@log' + - '@user' calls: - [set_name, [football.football.cron.task.football_remember]] tags: diff --git a/controller/main.php b/controller/main.php index 23140f3..5ea02f3 100644 --- a/controller/main.php +++ b/controller/main.php @@ -1,1023 +1,1023 @@ -auth = $auth; - $this->config = $config; - $this->db = $db; - $this->phpbb_extension_manager = $phpbb_extension_manager; - $this->notification_manager = $notification_manager; - $this->log = $log; - $this->phpbb_path_helper = $phpbb_path_helper; - $this->helper = $helper; - $this->template = $template; - $this->user = $user; - $this->pagination = $pagination; - $this->$phpbb_root_path = $phpbb_root_path; - $this->php_ext = $php_ext; - - $this->football_includes_path = $phpbb_root_path . 'ext/football/football/includes/'; - $this->football_root_path = $phpbb_root_path . 'ext/football/football/'; - - } - - public function handle($side) - { - global $db, $user, $cache, $request, $template, $season, $league, $matchday; - global $config, $phpbb_root_path, $phpbb_container, $log, $phpEx, $league_info; - global $mobile_device, $mobile_browser; - - define('IN_FOOTBALL', true); - - $this->cache = $cache; - $this->request = $request; - - // Add football controller language file - $this->user->add_lang_ext('football/football', 'football'); - - // required includes - include($this->football_includes_path . 'constants.' . $this->php_ext); - include($this->football_includes_path . 'functions.' . $this->php_ext); - - if ($config['board_disable'] && !$this->auth->acl_gets('a_')) - { - $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE'; - trigger_error($message); - } - - if ($config['football_disable']) - { - $message = (!empty($config['football_disable_msg'])) ? $config['football_disable_msg'] : 'FOOTBALL_DISABLED'; - trigger_error($message); - exit; - } - - // Can this user view Prediction Leagues pages? - if (!$config['football_guest_view']) - { - // No guest view, call login for guest - if ($user->data['user_id'] == ANONYMOUS) - { - login_box('', ($user->lang['LOGIN_EXPLAIN_FOOTBALL'])); - } - } - if (!$config['football_user_view']) - { - // Only Prediction League member should see these pages - // Check Prediction League authorisation - if ( !$this->auth->acl_get('u_use_football') ) - { - trigger_error('NO_AUTH_VIEW'); - } - } - - // Display football information - $football_info = ''; - if ($config['football_info_display']) - { - $football_info = (!empty($config['football_info'])) ? $config['football_info'] : ''; - } - - $view = $this->request->variable('view', ''); - $action = $this->request->variable('action', ''); - - // Obtain parameters - // Obtain season - $season = $this->request->variable('s', 0); - if ($season || ($this->config['football_season_start'] == 0)) - { - // Check given season - $sql = 'SELECT * FROM ' . FOOTB_SEASONS . " WHERE season = $season"; - $result = $db->sql_query($sql); - if(!$row = $db->sql_fetchrow($result)) - { - $season = curr_season(); - } - $db->sql_freeresult($result); - } - else - { - $season = $this->config['football_season_start']; - } - $this->season = $season; - // End obtain season - - // Obtain league - $maxmatchday = 0; - $league_info = array(); - if ($season) - { - $league = $this->request->variable('l', 0); - if ($league) - { - // Check given league - $sql = 'SELECT * FROM ' . FOOTB_LEAGUES . " WHERE season = $season AND league = $league"; - $result = $db->sql_query($sql); - if(!$row = $db->sql_fetchrow($result)) - { - // Set starting league - if ($config['football_view_current']) - { - $league = current_league($season); - } - else - { - $league = first_league($season); - } - } - else - { - $league_info = $row; - } - $db->sql_freeresult($result); - } - else - { - if ($side <> 'bank') - { - // Set starting league - if ($config['football_view_current']) - { - $league = current_league($season); - } - else - { - $league = first_league($season); - } - } - } - } - else - { - $league = 0; - } - // End obtain league - - // Obtain selected user - $user_sel = $this->request->variable('u', 0); - if ($user_sel) - { - $link_user = '&u=' . $user_sel; - } - else - { - $link_user = ''; - } - // End obtain matchday - - //***************************************************************************** - // Close open matchdays - close_open_matchdays(); - - //***************************************************************************** - // Obtain matchday - if ($league) - { - // League information not set? - if (!sizeof($league_info)) - { - // Get league information for this league (required for select_points) - $league_info = league_info($season, $league); - } - $maxmatchday = $league_info['matchdays']; - $curr_matchday = curr_matchday($season, $league); - $matchday = $this->request->variable('m', $curr_matchday); - // If switched from another league with more matchdays - if(($matchday < 1) OR ($matchday > $maxmatchday)) - { - $matchday = $curr_matchday; - } - } - else - { - $curr_matchday = 0; - $matchday = 0; - } - // End obtain matchday - // End obtain parameters - $request->overwrite('s', $season); - $request->overwrite('l', $league); - $request->overwrite('m', $matchday); - - //***************************************************************************** - // Start execute the action - $dbmsg = ''; - switch($action) - { - case 'switch': - // Switch Style and write to user table - $sql_ary = array( - 'football_mobile' => (int) !$user->data['football_mobile'], - ); - $sql = 'UPDATE ' . SESSIONS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE session_id = '" . $db->sql_escape($user->session_id) . "'"; - $db->sql_query($sql); - $user->data['football_mobile'] = (int) !$user->data['football_mobile']; - break; - case 'bet': - if ($user->data['user_id'] != ANONYMOUS or $config['server_name'] == 'football.bplaced.net') - { - $user_id = $user->data['user_id']; - $sql = 'SELECT * FROM ' . FOOTB_MATCHES . " WHERE season = $season AND league = $league AND matchday = $matchday AND status <= 0"; - $resultopen = $db->sql_query($sql); - $rows = $db->sql_fetchrowset($resultopen); - $db->sql_freeresult($resultopen); - - $count_matches = 0; - $count_updates = 0; - foreach ($rows as $row) - { - $match_no = $row['match_no']; - $goalsh = $this->request->variable('goalsh' . $match_no, 'nv'); - $goalsg = $this->request->variable('goalsg' . $match_no, 'nv'); - if ($goalsh != 'nv' AND $goalsg != 'nv') - { - if(($goalsh != '') AND ($goalsg != '')) - { - if(is_numeric($goalsh) AND is_numeric($goalsg) AND $goalsh >= 0 AND $goalsg >= 0) - { - if (0 == $count_matches) - { - $sameh = $goalsh; - $sameg = $goalsg; - $same = 1; - } - else - { - if ($goalsh != $sameh OR $goalsg != $sameg) - $same = 0; - } - $sql = 'SELECT * FROM ' . FOOTB_BETS . " WHERE season = $season AND league = $league AND match_no = $match_no and user_id = $user_id"; - $result = $db->sql_query($sql); - $row2 = $db->sql_fetchrow($result); - $db->sql_freeresult($result); - if(!$row2) - { - $sql_ary = array( - 'season' => (int) $season, - 'league' => (int) $league, - 'match_no' => (int) $match_no, - 'user_id' => (int) $user_id, - 'goals_home' => (int) $goalsh, - 'goals_guest' => (int) $goalsg, - 'bet_time' => time(), - ); - $sql = 'INSERT INTO ' . FOOTB_BETS . ' ' . $db->sql_build_array('INSERT', $sql_ary); - $db->sql_query($sql); - $count_updates++; - } - else - { - if($row2['goals_home'] != $goalsh OR $row2['goals_guest'] != $goalsg) - { - $sql_ary = array( - 'goals_home' => (int) $goalsh, - 'goals_guest' => (int) $goalsg, - 'bet_time' => time(), - ); - $sql = 'UPDATE ' . FOOTB_BETS . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND match_no = $match_no AND user_id = $user_id"; - $db->sql_query($sql); - $count_updates++; - } - } - $count_matches++; - $lastmatch_no = $match_no; - } - } - else - { - // Goals unset - $sql_ary = array( - 'goals_home' => '', - 'goals_guest' => '', - 'bet_time' => time(), - ); - $sql = 'UPDATE ' . FOOTB_BETS . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND match_no = $match_no AND user_id = $user_id"; - $db->sql_query($sql); - } - } - } - if ($count_updates > 0) - { - if ($same AND ($count_matches > 6) AND $config['football_same_allowed'] == 0) - { - $sql_ary = array( - 'goals_home' => (int) $goalsh + 1, - 'bet_time' => time(), - ); - $sql = 'UPDATE ' . FOOTB_BETS . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND match_no = $lastmatch_no and user_id = $user_id"; - $db->sql_query($sql); - $dbmsg = sprintf($user->lang['SAMESAVED'], $count_updates); - } - else - { - if ($count_updates == 1) - { - $dbmsg = sprintf($user->lang['BETSAVED']); - } - else - { - $dbmsg = sprintf($user->lang['BETSSAVED'], $count_updates); - } - } - } - else - { - $dbmsg = sprintf($user->lang['NO_BETS_SAVED']); - } - - // extra bets - $sql = 'SELECT * FROM ' . FOOTB_EXTRA . " WHERE season = $season AND league = $league AND matchday = $matchday AND extra_status <= 0"; - $resultextra = $db->sql_query($sql); - $count_extra_updates = 0; - while( $row = $db->sql_fetchrow($resultextra)) - { - $extra_no = $row['extra_no']; - $extra_bet = $this->request->variable('extra' . $extra_no, 'nv'); - if ($extra_bet != 'nv') - { - if ($row['question_type'] == 5 && !is_numeric($extra_bet)) - { - $extra_bet = ''; - } - if ($extra_bet != '') - { - $sql = 'SELECT * FROM ' . FOOTB_EXTRA_BETS . " WHERE season = $season AND league = $league AND extra_no = $extra_no and user_id = $user_id"; - $result = $db->sql_query($sql); - $row2 = $db->sql_fetchrow($result); - $db->sql_freeresult($result); - if(!$row2) - { - $sql_ary = array( - 'season' => (int) $season, - 'league' => (int) $league, - 'extra_no' => (int) $extra_no, - 'user_id' => (int) $user_id, - 'bet' => $extra_bet, - 'bet_points' => 0, - ); - $sql = 'INSERT INTO ' . FOOTB_EXTRA_BETS . ' ' . $db->sql_build_array('INSERT', $sql_ary); - $db->sql_query($sql); - } - else - { - $sql_ary = array( - 'bet' => $extra_bet, - ); - $sql = 'UPDATE ' . FOOTB_EXTRA_BETS . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND extra_no = $extra_no AND user_id = $user_id"; - $db->sql_query($sql); - } - $count_extra_updates++; - } - else - { - // extra bet unset - $sql_ary = array( - 'bet' => '', - ); - $sql = 'UPDATE ' . FOOTB_EXTRA_BETS . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND extra_no = $extra_no AND user_id = $user_id"; - $db->sql_query($sql); - } - } - } - $db->sql_freeresult($resultextra); - if ($count_extra_updates) - { - $dbmsg = $dbmsg . ' ' . sprintf($user->lang['EXTRA_BET' . (($count_extra_updates == 1) ? '' : 'S') . '_SAVED'], $count_extra_updates); - } - } - break; - case 'result': - // Save results - $user_id = $user->data['user_id']; - $sqlmatches = 'SELECT * FROM ' . FOOTB_MATCHES . " WHERE season = $season AND league = $league AND matchday = $matchday"; - $resultmatches = $db->sql_query($sqlmatches); - $count_matches = 0; - $count_clear = 0; - $count_input = 0; - $count_null = 0; - while( $row = $db->sql_fetchrow($resultmatches)) - { - $count_matches++; - $match_no = $row['match_no']; - $status = $row['status']; - $this->request->variable('l', 0); - $goalsh = $this->request->variable('goalsh' . $match_no, 'nv'); - $goalsg = $this->request->variable('goalsg' . $match_no, 'nv'); - $oldgoalsh = $this->request->variable('oldgoalsh' . $match_no, 'nv'); - $oldgoalsg = $this->request->variable('oldgoalsg' . $match_no, 'nv'); - if ($goalsh != 'nv' AND $goalsg != 'nv') - { - // Both variables exists - // Read overtime goals - $goals_ko_h = $this->request->variable('goals_ko_h' . $match_no, 'nv'); - $goals_ko_g = $this->request->variable('goals_ko_g' . $match_no, 'nv'); - $oldgoals_ko_h = $this->request->variable('oldgoals_ko_h' . $match_no, 'nv'); - $oldgoals_ko_g = $this->request->variable('oldgoals_ko_g' . $match_no, 'nv'); - if (($status <> 3) && ($status <> 6)) - { - if(($goalsh != '') AND ($goalsg != '')) - { - // Goals set - // Set new match status - if ($status < 3) - $status = 2; - else - $status = 5; - if (is_numeric($goalsh) AND is_numeric($goalsg) AND $goalsh >= 0 AND $goalsg >= 0) - { - // Values - if(!is_numeric($goals_ko_h) OR !is_numeric($goals_ko_g) OR $goals_ko_h < 0 OR $goals_ko_g < 0) - { - // No overtime goals - if (($goalsh <> $oldgoalsh) OR ($goalsg <> $oldgoalsg)) - { - // Goals changed - $sql_ary = array( - 'goals_home' => (int) $goalsh, - 'goals_guest' => (int) $goalsg, - 'goals_overtime_home' => '', - 'goals_overtime_guest' => '', - 'status' => $status, - ); - $sql = 'UPDATE ' . FOOTB_MATCHES . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND match_no = $match_no"; - $db->sql_query($sql); - $count_input++; - } - } - else - { - // With overtime goals - if (($goalsh <> $oldgoalsh) OR ($goalsg <> $oldgoalsg) OR ($goals_ko_h <> $oldgoals_ko_h) OR ($goals_ko_g <> $oldgoals_ko_g)) - { - // Goals or overtime goals changed - $sql_ary = array( - 'goals_home' => (int) $goalsh, - 'goals_guest' => (int) $goalsg, - 'goals_overtime_home' => (int) $goals_ko_h, - 'goals_overtime_guest' => (int) $goals_ko_g, - 'status' => $status, - ); - $sql = 'UPDATE ' . FOOTB_MATCHES . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND match_no = $match_no"; - $db->sql_query($sql); - $count_input++; - } - } - } - } - else - { - // Goals unset - // Set new match status - if ($status < 3) - { - $status = 1; - } - else - { - $status = 4; - } - if (($goalsh <> $oldgoalsh) OR ($goalsg <> $oldgoalsg) OR ($goals_ko_h <> $oldgoals_ko_h) OR ($goals_ko_g <> $oldgoals_ko_g)) - { - // Goals or overtime goals unset - $sql_ary = array( - 'goals_home' => '', - 'goals_guest' => '', - 'goals_overtime_home' => '', - 'goals_overtime_guest' => '', - 'status' => $status, - ); - $sql = 'UPDATE ' . FOOTB_MATCHES . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND match_no = $match_no"; - $db->sql_query($sql); - $count_clear++; - } - $count_null++; - } - } - } - } - $db->sql_freeresult($resultmatches); - switch($count_input) - { - case '0': - { - $dbmsg = sprintf($user->lang['NO_RESULT_SAVE']); - } - break; - case '1': - { - $dbmsg = sprintf($user->lang['RESULT_SAVE'], $count_input); - } - break; - default: - { - $dbmsg = sprintf($user->lang['RESULTS_SAVE'], $count_input); - } - break; - } - switch($count_clear) - { - case '0': - { - } - break; - case '1': - { - $dbmsg .= sprintf($user->lang['RESULT_CLEARED'], $count_clear); - } - break; - default: - { - $dbmsg .= sprintf($user->lang['RESULTS_CLEARED'], $count_clear); - } - break; - } - - $sqlopen = 'SELECT * FROM ' . FOOTB_MATCHES . " WHERE season = $season AND league = $league AND matchday = $matchday AND status = 0"; - $resultopen = $db->sql_query($sqlopen); - $row = $db->sql_fetchrowset($resultopen); - $db->sql_freeresult($resultopen); - if (sizeof($row) == 0) - { - // No open matches, so we could set matchday status - if ($count_null == $count_matches) - { - $sql_ary = array( - 'status' => 1, - ); - $sql = 'UPDATE ' . FOOTB_MATCHDAYS . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND matchday = $matchday AND status < 3"; - $db->sql_query($sql); - } - else - { - $sql_ary = array( - 'status' => 2, - ); - $sql = 'UPDATE ' . FOOTB_MATCHDAYS . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND matchday = $matchday AND delivery_date_2 = '' AND status < 3"; - $db->sql_query($sql); - } - } - - // extra bets - $sql = 'SELECT * FROM ' . FOOTB_EXTRA . " WHERE season = $season AND league = $league AND matchday_eval = $matchday AND extra_status > 0"; - $resultextra = $db->sql_query($sql); - $count_extra_updates = 0; - while( $row = $db->sql_fetchrow($resultextra)) - { - $extra_no = $row['extra_no']; - $extra_results = $this->request->variable('extra' . $extra_no, array('nv')); - $extra_result = ''; - if (sizeof($extra_results) > 0) - { - foreach ($extra_results as $extra_selected_value) - { - $extra_result = ($extra_result == '') ? $extra_selected_value : $extra_result . ';' . $extra_selected_value; - } - } - else - { - $extra_result = $this->request->variable('extra' . $extra_no, 'nv'); - } - if ($extra_result != 'nv') - { - if ($row['question_type'] == 5 && !is_numeric($extra_result)) - { - $extra_result = ''; - } - if ($extra_result != '') - { - $sql = 'SELECT * FROM ' . FOOTB_EXTRA . " WHERE season = $season AND league = $league AND extra_no = $extra_no"; - $result = $db->sql_query($sql); - $row2 = $db->sql_fetchrow($result); - $db->sql_freeresult($result); - if($row2) - { - $sql_ary = array( - 'result' => $extra_result, - 'extra_status' => 2, - ); - $sql = 'UPDATE ' . FOOTB_EXTRA . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND extra_no = $extra_no"; - $db->sql_query($sql); - $count_extra_updates++; - } - } - else - { - // extra result unset - $sql_ary = array( - 'result' => '', - 'extra_status' => 1, - ); - $sql = 'UPDATE ' . FOOTB_EXTRA . ' - SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE season = $season AND league = $league AND extra_no = $extra_no"; - $db->sql_query($sql); - } - } - } - $db->sql_freeresult($resultextra); - if ($count_extra_updates) - { - $dbmsg = $dbmsg . ' ' . sprintf($user->lang['EXTRA_RESULT' . (($count_extra_updates == 1) ? '' : 'S') . '_SAVED'], $count_extra_updates); - } - calculate_extra_points($season, $league, $matchday); - save_ranking_matchday($season, $league, $matchday); - break; - case 'join': - join_league($season, $league, $user->data['user_id']); - break; - default: - break; - } - - // End execute the action - //***************************************************************************** - - - // Start select season - $season_name = ''; - $sql = 'SELECT DISTINCT s.season, s.season_name, s.season_name_short FROM ' . FOOTB_SEASONS . ' AS s - INNER JOIN ' . FOOTB_LEAGUES . ' AS l ON (l.season = s.season) - INNER JOIN ' . FOOTB_MATCHDAYS . ' AS sp ON (sp.season = s.season AND sp.league = l.league) - WHERE 1 - ORDER BY season DESC'; - $result = $db->sql_query($sql); - while( $row = $db->sql_fetchrow($result)) - { - $selected = ($season && $row['season'] == $season) ? ' selected="selected"' : ''; - if ($selected) - { - $season_name = htmlspecialchars($row['season_name_short']); - } - $template->assign_block_vars('form_season', array( - 'S_SEASON' => htmlspecialchars($row['season']), - 'S_SEASONNAME' => htmlspecialchars($row['season_name_short']), - 'S_SELECTED' => $selected)); - } - $db->sql_freeresult($result); - - // End select season - - //***************************************************************************** - - // Start select league - if ($side == 'bank') - { - $template->assign_block_vars('form_league', array( - 'S_LEAGUE' => 0, - 'S_LEAGUENAME' => sprintf($user->lang['ALL_LEAGUES']), - 'S_SELECTED' => $league == 0 ? ' selected="selected"' : '' - ) - ); - } - - $league_name = ''; - $sql = 'SELECT * FROM ' . FOOTB_LEAGUES . " WHERE season = $season AND league_type >= 1"; - $result = $db->sql_query($sql); - while( $row = $db->sql_fetchrow($result)) - { - $selected = ($league && $row['league'] == $league) ? ' selected="selected"' : ''; - if ($selected) - { - $league_name = $row['league_name']; - } - $template->assign_block_vars('form_league', array( - 'S_LEAGUE' => $row['league'], - 'S_LEAGUENAME' => $row['league_name'], - 'S_SELECTED' => $selected - ) - ); - } - $db->sql_freeresult($result); - - // End select League - - //***************************************************************************** - // For nav_delivery - $prev_deadline = ''; - $prev_link = ''; - $prev_class = ''; - $next_deadline = ''; - $next_link = ''; - $next_class = ''; - $current_matchday = ''; - - // Start select matchday - $matchdayname = ''; - $matchday_name = ''; - $status = 0; - $sql = 'SELECT * FROM ' . FOOTB_LEAGUES . " WHERE season = $season AND league = $league"; - $result = $db->sql_query($sql); - if( $row = $db->sql_fetchrow($result)) - { - $count_matchdays = $row['matchdays']; - $league_type = $row['league_type']; - $db->sql_freeresult($result); - $lang_dates = $user->lang['datetime']; - $local_board_time = time() + ($config['football_time_shift'] * 3600); - $sql = "SELECT *, - CONCAT( - CASE DATE_FORMAT(delivery_date,'%w') - WHEN 0 THEN '" . $lang_dates['Sun'] . "' - WHEN 1 THEN '" . $lang_dates['Mon'] . "' - WHEN 2 THEN '" . $lang_dates['Tue'] . "' - WHEN 3 THEN '" . $lang_dates['Wed'] . "' - WHEN 4 THEN '" . $lang_dates['Thu'] . "' - WHEN 5 THEN '" . $lang_dates['Fri'] . "' - WHEN 6 THEN '" . $lang_dates['Sat'] . "' - ELSE 'Error' END, - DATE_FORMAT(delivery_date,' %d.%m.%y %H:%i') - ) as deliverytime, - IF(delivery_date < FROM_UNIXTIME('$local_board_time'),'pastlink','futurelink') AS linkclass - FROM " . FOOTB_MATCHDAYS . " WHERE season = $season AND league = $league AND matchday <= $count_matchdays - ORDER BY matchday ASC"; - $result = $db->sql_query($sql); - $status = 3; - while ($row = $db->sql_fetchrow($result)) - { - if ($league_type == 1 and $row['matchday_name'] == '') - { - $matchdayname = $row['matchday'] . '.' . sprintf($user->lang['MATCHDAY']); - } - else - { - $matchdayname = $row['matchday_name']; - } - if ($matchdayname == '') - { - $matchdayname = $row['matchday'] . '.' . sprintf($user->lang['MATCHDAY']); - } - - $selected = ($matchday && $row['matchday'] == $matchday) ? ' selected="selected"' : ''; - if ($selected) - { - $matchday_name = $matchdayname; - $status = $row['status']; - } - - if (($matchday - 1) == $row['matchday']) - { - $prev_deadline = $row['deliverytime']; - $prev_link = append_sid($side,"s=$season&l=$league&m=" . $row['matchday'] . $link_user); - $prev_class = $row['linkclass']; - } - - if (($matchday + 1) == $row['matchday']) - { - $next_deadline = $row['deliverytime']; - $next_link = append_sid($side,"s=$season&l=$league&m=" . $row['matchday'] . $link_user); - $next_class = $row['linkclass']; - } - - - if ($curr_matchday == $row['matchday']) - { - $current = '*'; - } - else - { - $current = ''; - } - - $template->assign_block_vars('form_matchday', array( - 'S_MATCHDAY' => $row['matchday'], - 'S_MATCHDAYNAME' => $matchdayname, - 'S_SELECTED' => $selected, - 'S_CURRENT' => $current)); - } - $db->sql_freeresult($result); - } - // End select matchday - - $select_menu_options = ''; - if (!$user->data['football_mobile']) - { - // Start matchday list - if ($side == 'bet') - { - include($this->football_root_path . 'block/side_table.' . $this->php_ext); - } - else - { - include($this->football_root_path . 'block/rank_matchday.' . $this->php_ext); - } - // End matchday list - - //***************************************************************************** - - // Start total list - include($this->football_root_path . 'block/rank_total.' . $this->php_ext); - // End total list - - //***************************************************************************** - - // Start delivery list - include($this->football_root_path . 'block/delivery.' . $this->php_ext); - // End delivery list - - //***************************************************************************** - } - // Start assign vars - $sql_ary = array( - 'football_season' => (int) $season, - 'football_league' => (int) $league, - 'football_matchday' => (int) $matchday, - ); - - $sql = 'UPDATE ' . SESSIONS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE session_id = '" . $db->sql_escape($user->session_id) . "'"; - $result = $db->sql_query($sql); - - $db->sql_freeresult($result); - $u_footb_parm = "s=$season&l=$league&m=$matchday"; - $u_footb_sl = "s=$season&l=$league"; - $start = $this->request->variable('start', 0); - $print_start = ($start) ? "start=$start&" : ''; - - $template->assign_vars(array( - 'U_PRINT_FOOTBALL' => $this->helper->route('football_main_controller', array('side' => $side, 's' => $season, 'l' => $league, 'm' => $matchday, 'view' => 'print')), - 'U_MOBILE_SWITCH' => $this->helper->route('football_main_controller', array('side' => $side, 's' => $season, 'l' => $league, 'm' => $matchday, 'action' => 'switch')), - 'U_SIDE_LINK' => $this->helper->route('football_main_controller', array('side' => $side, 's' => $season, 'l' => $league, 'm' => $matchday)), - 'L_TOP_RANKSP' => sprintf($user->lang['RANKING']) . ' ' . $matchday . '. ' . sprintf($user->lang['MATCHDAY']), - 'L_TOP_RANKGESAMT' => sprintf($user->lang['TOTAL_RANKING']) . ' ' . $matchday . '. ' . sprintf($user->lang['MATCHDAY']), - 'PHPBB_ROOT_PATH' => $this->phpbb_root_path, - 'EXT_PATH_IMAGES' => $this->football_root_path . 'images/', - 'S_FOOTBALL_MOBILE' => $user->data['football_mobile'], - 'S_FOOTBALL_INFO' => $football_info, - 'S_FOOTBALL_BANK' => $config['football_bank'], - 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $this->football_root_path . 'football/'), - 'S_FOOTBALL_FULLSCREEN' => $config['football_fullscreen'], - 'S_VIEW' => $view, - 'S_SIDE' => $side, - 'S_SEASON' => $season, - 'S_LEAGUE' => $league, - 'S_MATCHDAY' => $matchday, - 'S_USER_SEL' => $user_sel, - 'S_SEASON_NAME' => $season_name, - 'S_LEAGUE_NAME' => $league_name, - 'S_MATCHDAY_NAME' => $matchday_name, - 'S_FORMSELF' => $this->helper->route('football_main_controller', array('side' => $side)), - 'S_DELIVERY' => delivery($season, $league, $matchday), - // For nav_delivery - 'S_PREV_LINK' => $prev_link, - 'S_PREV_CLASS' => $prev_class, - 'S_PREV_DEADLINE' => $prev_deadline, - 'S_CURR_LINK' => $this->helper->route('football_main_controller', array('side' => $side, 's' => $season, 'l' => $league)), - 'S_CURR_MATCHDAY' => $curr_matchday, - 'S_NEXT_LINK' => $next_link, - 'S_NEXT_CLASS' => $next_class, - 'S_NEXT_DEADLINE' => $next_deadline, - 'S_DBMSG' => $dbmsg, - 'FOOTBALL_LEFT_COLUMN' => $config['football_left_column_width'], - 'FOOTBALL_RIGHT_COLUMN' => $config['football_right_column_width'], - - )); - // End assign vars - - //***************************************************************************** - if (!$matchday and $side <> 'bank') - { - include($this->football_root_path . 'block/under_construction.' . $this->php_ext); - } - else - { - include($this->football_root_path . 'block/' . $side . '.' . $this->php_ext); - } - - if ($user->data['football_mobile']) - { - $mobile = 'mobile_'; - } - else - { - $mobile = ''; - if ($config['football_display_last_users'] > 0) - { - include($this->football_root_path . 'block/last_users.' . $this->php_ext); - } - if ($config['football_display_last_results'] > 0) - { - include($this->football_root_path . 'block/last_results.' . $this->php_ext); - } - } - // Send data to the template file - if ($view == 'print') - { - return $this->helper->render($mobile . 'football_print.html', $this->user->lang['PREDICTION_LEAGUE']); - } - else - { - return $this->helper->render($mobile . 'football_body.html', $this->user->lang['PREDICTION_LEAGUE']); - } - } -} +auth = $auth; + $this->config = $config; + $this->db = $db; + $this->phpbb_extension_manager = $phpbb_extension_manager; + $this->notification_manager = $notification_manager; + $this->log = $log; + $this->phpbb_path_helper = $phpbb_path_helper; + $this->helper = $helper; + $this->template = $template; + $this->user = $user; + $this->pagination = $pagination; + $this->$phpbb_root_path = $phpbb_root_path; + $this->php_ext = $php_ext; + + $this->football_includes_path = $phpbb_root_path . 'ext/football/football/includes/'; + $this->football_root_path = $phpbb_root_path . 'ext/football/football/'; + + } + + public function handle($side) + { + global $db, $user, $cache, $request, $template, $season, $league, $matchday; + global $config, $phpbb_root_path, $phpbb_container, $log, $phpEx, $league_info; + global $mobile_device, $mobile_browser; + + define('IN_FOOTBALL', true); + + $this->cache = $cache; + $this->request = $request; + + // Add football controller language file + $this->user->add_lang_ext('football/football', 'football'); + + // required includes + include($this->football_includes_path . 'constants.' . $this->php_ext); + include($this->football_includes_path . 'functions.' . $this->php_ext); + + if ($config['board_disable'] && !$this->auth->acl_gets('a_')) + { + $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE'; + trigger_error($message); + } + + if ($config['football_disable']) + { + $message = (!empty($config['football_disable_msg'])) ? $config['football_disable_msg'] : 'FOOTBALL_DISABLED'; + trigger_error($message); + exit; + } + + // Can this user view Prediction Leagues pages? + if (!$config['football_guest_view']) + { + // No guest view, call login for guest + if ($user->data['user_id'] == ANONYMOUS) + { + login_box('', ($user->lang['LOGIN_EXPLAIN_FOOTBALL'])); + } + } + if (!$config['football_user_view']) + { + // Only Prediction League member should see these pages + // Check Prediction League authorisation + if ( !$this->auth->acl_get('u_use_football') ) + { + trigger_error('NO_AUTH_VIEW'); + } + } + + // Display football information + $football_info = ''; + if ($config['football_info_display']) + { + $football_info = (!empty($config['football_info'])) ? $config['football_info'] : ''; + } + + $view = $this->request->variable('view', ''); + $action = $this->request->variable('action', ''); + + // Obtain parameters + // Obtain season + $season = $this->request->variable('s', 0); + if ($season || ($this->config['football_season_start'] == 0)) + { + // Check given season + $sql = 'SELECT * FROM ' . FOOTB_SEASONS . " WHERE season = $season"; + $result = $db->sql_query($sql); + if(!$row = $db->sql_fetchrow($result)) + { + $season = curr_season(); + } + $db->sql_freeresult($result); + } + else + { + $season = $this->config['football_season_start']; + } + $this->season = $season; + // End obtain season + + // Obtain league + $maxmatchday = 0; + $league_info = array(); + if ($season) + { + $league = $this->request->variable('l', 0); + if ($league) + { + // Check given league + $sql = 'SELECT * FROM ' . FOOTB_LEAGUES . " WHERE season = $season AND league = $league"; + $result = $db->sql_query($sql); + if(!$row = $db->sql_fetchrow($result)) + { + // Set starting league + if ($config['football_view_current']) + { + $league = current_league($season); + } + else + { + $league = first_league($season); + } + } + else + { + $league_info = $row; + } + $db->sql_freeresult($result); + } + else + { + if ($side <> 'bank') + { + // Set starting league + if ($config['football_view_current']) + { + $league = current_league($season); + } + else + { + $league = first_league($season); + } + } + } + } + else + { + $league = 0; + } + // End obtain league + + // Obtain selected user + $user_sel = $this->request->variable('u', 0); + if ($user_sel) + { + $link_user = '&u=' . $user_sel; + } + else + { + $link_user = ''; + } + // End obtain matchday + + //***************************************************************************** + // Close open matchdays + close_open_matchdays(); + + //***************************************************************************** + // Obtain matchday + if ($league) + { + // League information not set? + if (!sizeof($league_info)) + { + // Get league information for this league (required for select_points) + $league_info = league_info($season, $league); + } + $maxmatchday = $league_info['matchdays']; + $curr_matchday = curr_matchday($season, $league); + $matchday = $this->request->variable('m', $curr_matchday); + // If switched from another league with more matchdays + if(($matchday < 1) OR ($matchday > $maxmatchday)) + { + $matchday = $curr_matchday; + } + } + else + { + $curr_matchday = 0; + $matchday = 0; + } + // End obtain matchday + // End obtain parameters + $request->overwrite('s', $season); + $request->overwrite('l', $league); + $request->overwrite('m', $matchday); + + //***************************************************************************** + // Start execute the action + $dbmsg = ''; + switch($action) + { + case 'switch': + // Switch Style and write to user table + $sql_ary = array( + 'football_mobile' => (int) !$user->data['football_mobile'], + ); + $sql = 'UPDATE ' . SESSIONS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE session_id = '" . $db->sql_escape($user->session_id) . "'"; + $db->sql_query($sql); + $user->data['football_mobile'] = (int) !$user->data['football_mobile']; + break; + case 'bet': + if ($user->data['user_id'] != ANONYMOUS or $config['server_name'] == 'football.bplaced.net') + { + $user_id = $user->data['user_id']; + $sql = 'SELECT * FROM ' . FOOTB_MATCHES . " WHERE season = $season AND league = $league AND matchday = $matchday AND status <= 0"; + $resultopen = $db->sql_query($sql); + $rows = $db->sql_fetchrowset($resultopen); + $db->sql_freeresult($resultopen); + + $count_matches = 0; + $count_updates = 0; + foreach ($rows as $row) + { + $match_no = $row['match_no']; + $goalsh = $this->request->variable('goalsh' . $match_no, 'nv'); + $goalsg = $this->request->variable('goalsg' . $match_no, 'nv'); + if ($goalsh != 'nv' AND $goalsg != 'nv') + { + if(($goalsh != '') AND ($goalsg != '')) + { + if(is_numeric($goalsh) AND is_numeric($goalsg) AND $goalsh >= 0 AND $goalsg >= 0) + { + if (0 == $count_matches) + { + $sameh = $goalsh; + $sameg = $goalsg; + $same = 1; + } + else + { + if ($goalsh != $sameh OR $goalsg != $sameg) + $same = 0; + } + $sql = 'SELECT * FROM ' . FOOTB_BETS . " WHERE season = $season AND league = $league AND match_no = $match_no and user_id = $user_id"; + $result = $db->sql_query($sql); + $row2 = $db->sql_fetchrow($result); + $db->sql_freeresult($result); + if(!$row2) + { + $sql_ary = array( + 'season' => (int) $season, + 'league' => (int) $league, + 'match_no' => (int) $match_no, + 'user_id' => (int) $user_id, + 'goals_home' => (int) $goalsh, + 'goals_guest' => (int) $goalsg, + 'bet_time' => time(), + ); + $sql = 'INSERT INTO ' . FOOTB_BETS . ' ' . $db->sql_build_array('INSERT', $sql_ary); + $db->sql_query($sql); + $count_updates++; + } + else + { + if($row2['goals_home'] != $goalsh OR $row2['goals_guest'] != $goalsg) + { + $sql_ary = array( + 'goals_home' => (int) $goalsh, + 'goals_guest' => (int) $goalsg, + 'bet_time' => time(), + ); + $sql = 'UPDATE ' . FOOTB_BETS . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND match_no = $match_no AND user_id = $user_id"; + $db->sql_query($sql); + $count_updates++; + } + } + $count_matches++; + $lastmatch_no = $match_no; + } + } + else + { + // Goals unset + $sql_ary = array( + 'goals_home' => '', + 'goals_guest' => '', + 'bet_time' => time(), + ); + $sql = 'UPDATE ' . FOOTB_BETS . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND match_no = $match_no AND user_id = $user_id"; + $db->sql_query($sql); + } + } + } + if ($count_updates > 0) + { + if ($same AND ($count_matches > 6) AND $config['football_same_allowed'] == 0) + { + $sql_ary = array( + 'goals_home' => (int) $goalsh + 1, + 'bet_time' => time(), + ); + $sql = 'UPDATE ' . FOOTB_BETS . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND match_no = $lastmatch_no and user_id = $user_id"; + $db->sql_query($sql); + $dbmsg = sprintf($user->lang['SAMESAVED'], $count_updates); + } + else + { + if ($count_updates == 1) + { + $dbmsg = sprintf($user->lang['BETSAVED']); + } + else + { + $dbmsg = sprintf($user->lang['BETSSAVED'], $count_updates); + } + } + } + else + { + $dbmsg = sprintf($user->lang['NO_BETS_SAVED']); + } + + // extra bets + $sql = 'SELECT * FROM ' . FOOTB_EXTRA . " WHERE season = $season AND league = $league AND matchday = $matchday AND extra_status <= 0"; + $resultextra = $db->sql_query($sql); + $count_extra_updates = 0; + while( $row = $db->sql_fetchrow($resultextra)) + { + $extra_no = $row['extra_no']; + $extra_bet = $this->request->variable('extra' . $extra_no, 'nv'); + if ($extra_bet != 'nv') + { + if ($row['question_type'] == 5 && !is_numeric($extra_bet)) + { + $extra_bet = ''; + } + if ($extra_bet != '') + { + $sql = 'SELECT * FROM ' . FOOTB_EXTRA_BETS . " WHERE season = $season AND league = $league AND extra_no = $extra_no and user_id = $user_id"; + $result = $db->sql_query($sql); + $row2 = $db->sql_fetchrow($result); + $db->sql_freeresult($result); + if(!$row2) + { + $sql_ary = array( + 'season' => (int) $season, + 'league' => (int) $league, + 'extra_no' => (int) $extra_no, + 'user_id' => (int) $user_id, + 'bet' => $extra_bet, + 'bet_points' => 0, + ); + $sql = 'INSERT INTO ' . FOOTB_EXTRA_BETS . ' ' . $db->sql_build_array('INSERT', $sql_ary); + $db->sql_query($sql); + } + else + { + $sql_ary = array( + 'bet' => $extra_bet, + ); + $sql = 'UPDATE ' . FOOTB_EXTRA_BETS . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND extra_no = $extra_no AND user_id = $user_id"; + $db->sql_query($sql); + } + $count_extra_updates++; + } + else + { + // extra bet unset + $sql_ary = array( + 'bet' => '', + ); + $sql = 'UPDATE ' . FOOTB_EXTRA_BETS . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND extra_no = $extra_no AND user_id = $user_id"; + $db->sql_query($sql); + } + } + } + $db->sql_freeresult($resultextra); + if ($count_extra_updates) + { + $dbmsg = $dbmsg . ' ' . sprintf($user->lang['EXTRA_BET' . (($count_extra_updates == 1) ? '' : 'S') . '_SAVED'], $count_extra_updates); + } + } + break; + case 'result': + // Save results + $user_id = $user->data['user_id']; + $sqlmatches = 'SELECT * FROM ' . FOOTB_MATCHES . " WHERE season = $season AND league = $league AND matchday = $matchday"; + $resultmatches = $db->sql_query($sqlmatches); + $count_matches = 0; + $count_clear = 0; + $count_input = 0; + $count_null = 0; + while( $row = $db->sql_fetchrow($resultmatches)) + { + $count_matches++; + $match_no = $row['match_no']; + $status = $row['status']; + $this->request->variable('l', 0); + $goalsh = $this->request->variable('goalsh' . $match_no, 'nv'); + $goalsg = $this->request->variable('goalsg' . $match_no, 'nv'); + $oldgoalsh = $this->request->variable('oldgoalsh' . $match_no, 'nv'); + $oldgoalsg = $this->request->variable('oldgoalsg' . $match_no, 'nv'); + if ($goalsh != 'nv' AND $goalsg != 'nv') + { + // Both variables exists + // Read overtime goals + $goals_ko_h = $this->request->variable('goals_ko_h' . $match_no, 'nv'); + $goals_ko_g = $this->request->variable('goals_ko_g' . $match_no, 'nv'); + $oldgoals_ko_h = $this->request->variable('oldgoals_ko_h' . $match_no, 'nv'); + $oldgoals_ko_g = $this->request->variable('oldgoals_ko_g' . $match_no, 'nv'); + if (($status <> 3) && ($status <> 6)) + { + if(($goalsh != '') AND ($goalsg != '')) + { + // Goals set + // Set new match status + if ($status < 3) + $status = 2; + else + $status = 5; + if (is_numeric($goalsh) AND is_numeric($goalsg) AND $goalsh >= 0 AND $goalsg >= 0) + { + // Values + if(!is_numeric($goals_ko_h) OR !is_numeric($goals_ko_g) OR $goals_ko_h < 0 OR $goals_ko_g < 0) + { + // No overtime goals + if (($goalsh <> $oldgoalsh) OR ($goalsg <> $oldgoalsg)) + { + // Goals changed + $sql_ary = array( + 'goals_home' => (int) $goalsh, + 'goals_guest' => (int) $goalsg, + 'goals_overtime_home' => '', + 'goals_overtime_guest' => '', + 'status' => $status, + ); + $sql = 'UPDATE ' . FOOTB_MATCHES . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND match_no = $match_no"; + $db->sql_query($sql); + $count_input++; + } + } + else + { + // With overtime goals + if (($goalsh <> $oldgoalsh) OR ($goalsg <> $oldgoalsg) OR ($goals_ko_h <> $oldgoals_ko_h) OR ($goals_ko_g <> $oldgoals_ko_g)) + { + // Goals or overtime goals changed + $sql_ary = array( + 'goals_home' => (int) $goalsh, + 'goals_guest' => (int) $goalsg, + 'goals_overtime_home' => (int) $goals_ko_h, + 'goals_overtime_guest' => (int) $goals_ko_g, + 'status' => $status, + ); + $sql = 'UPDATE ' . FOOTB_MATCHES . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND match_no = $match_no"; + $db->sql_query($sql); + $count_input++; + } + } + } + } + else + { + // Goals unset + // Set new match status + if ($status < 3) + { + $status = 1; + } + else + { + $status = 4; + } + if (($goalsh <> $oldgoalsh) OR ($goalsg <> $oldgoalsg) OR ($goals_ko_h <> $oldgoals_ko_h) OR ($goals_ko_g <> $oldgoals_ko_g)) + { + // Goals or overtime goals unset + $sql_ary = array( + 'goals_home' => '', + 'goals_guest' => '', + 'goals_overtime_home' => '', + 'goals_overtime_guest' => '', + 'status' => $status, + ); + $sql = 'UPDATE ' . FOOTB_MATCHES . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND match_no = $match_no"; + $db->sql_query($sql); + $count_clear++; + } + $count_null++; + } + } + } + } + $db->sql_freeresult($resultmatches); + switch($count_input) + { + case '0': + { + $dbmsg = sprintf($user->lang['NO_RESULT_SAVE']); + } + break; + case '1': + { + $dbmsg = sprintf($user->lang['RESULT_SAVE'], $count_input); + } + break; + default: + { + $dbmsg = sprintf($user->lang['RESULTS_SAVE'], $count_input); + } + break; + } + switch($count_clear) + { + case '0': + { + } + break; + case '1': + { + $dbmsg .= sprintf($user->lang['RESULT_CLEARED'], $count_clear); + } + break; + default: + { + $dbmsg .= sprintf($user->lang['RESULTS_CLEARED'], $count_clear); + } + break; + } + + $sqlopen = 'SELECT * FROM ' . FOOTB_MATCHES . " WHERE season = $season AND league = $league AND matchday = $matchday AND status = 0"; + $resultopen = $db->sql_query($sqlopen); + $row = $db->sql_fetchrowset($resultopen); + $db->sql_freeresult($resultopen); + if (sizeof($row) == 0) + { + // No open matches, so we could set matchday status + if ($count_null == $count_matches) + { + $sql_ary = array( + 'status' => 1, + ); + $sql = 'UPDATE ' . FOOTB_MATCHDAYS . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND matchday = $matchday AND status < 3"; + $db->sql_query($sql); + } + else + { + $sql_ary = array( + 'status' => 2, + ); + $sql = 'UPDATE ' . FOOTB_MATCHDAYS . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND matchday = $matchday AND delivery_date_2 = '' AND status < 3"; + $db->sql_query($sql); + } + } + + // extra bets + $sql = 'SELECT * FROM ' . FOOTB_EXTRA . " WHERE season = $season AND league = $league AND matchday_eval = $matchday AND extra_status > 0"; + $resultextra = $db->sql_query($sql); + $count_extra_updates = 0; + while( $row = $db->sql_fetchrow($resultextra)) + { + $extra_no = $row['extra_no']; + $extra_results = $this->request->variable('extra' . $extra_no, array('nv')); + $extra_result = ''; + if (sizeof($extra_results) > 0) + { + foreach ($extra_results as $extra_selected_value) + { + $extra_result = ($extra_result == '') ? $extra_selected_value : $extra_result . ';' . $extra_selected_value; + } + } + else + { + $extra_result = $this->request->variable('extra' . $extra_no, 'nv'); + } + if ($extra_result != 'nv') + { + if ($row['question_type'] == 5 && !is_numeric($extra_result)) + { + $extra_result = ''; + } + if ($extra_result != '') + { + $sql = 'SELECT * FROM ' . FOOTB_EXTRA . " WHERE season = $season AND league = $league AND extra_no = $extra_no"; + $result = $db->sql_query($sql); + $row2 = $db->sql_fetchrow($result); + $db->sql_freeresult($result); + if($row2) + { + $sql_ary = array( + 'result' => $extra_result, + 'extra_status' => 2, + ); + $sql = 'UPDATE ' . FOOTB_EXTRA . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND extra_no = $extra_no"; + $db->sql_query($sql); + $count_extra_updates++; + } + } + else + { + // extra result unset + $sql_ary = array( + 'result' => '', + 'extra_status' => 1, + ); + $sql = 'UPDATE ' . FOOTB_EXTRA . ' + SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE season = $season AND league = $league AND extra_no = $extra_no"; + $db->sql_query($sql); + } + } + } + $db->sql_freeresult($resultextra); + if ($count_extra_updates) + { + $dbmsg = $dbmsg . ' ' . sprintf($user->lang['EXTRA_RESULT' . (($count_extra_updates == 1) ? '' : 'S') . '_SAVED'], $count_extra_updates); + } + calculate_extra_points($season, $league, $matchday); + save_ranking_matchday($season, $league, $matchday); + break; + case 'join': + join_league($season, $league, $user->data['user_id']); + break; + default: + break; + } + + // End execute the action + //***************************************************************************** + + + // Start select season + $season_name = ''; + $sql = 'SELECT DISTINCT s.season, s.season_name, s.season_name_short FROM ' . FOOTB_SEASONS . ' AS s + INNER JOIN ' . FOOTB_LEAGUES . ' AS l ON (l.season = s.season) + INNER JOIN ' . FOOTB_MATCHDAYS . ' AS sp ON (sp.season = s.season AND sp.league = l.league) + WHERE 1 + ORDER BY s.season DESC'; + $result = $db->sql_query($sql); + while( $row = $db->sql_fetchrow($result)) + { + $selected = ($season && $row['season'] == $season) ? ' selected="selected"' : ''; + if ($selected) + { + $season_name = utf8_htmlspecialchars($row['season_name_short']); + } + $template->assign_block_vars('form_season', array( + 'S_SEASON' => utf8_htmlspecialchars($row['season']), + 'S_SEASONNAME' => utf8_htmlspecialchars($row['season_name_short']), + 'S_SELECTED' => $selected)); + } + $db->sql_freeresult($result); + + // End select season + + //***************************************************************************** + + // Start select league + if ($side == 'bank') + { + $template->assign_block_vars('form_league', array( + 'S_LEAGUE' => 0, + 'S_LEAGUENAME' => sprintf($user->lang['ALL_LEAGUES']), + 'S_SELECTED' => $league == 0 ? ' selected="selected"' : '' + ) + ); + } + + $league_name = ''; + $sql = 'SELECT * FROM ' . FOOTB_LEAGUES . " WHERE season = $season AND league_type >= 1"; + $result = $db->sql_query($sql); + while( $row = $db->sql_fetchrow($result)) + { + $selected = ($league && $row['league'] == $league) ? ' selected="selected"' : ''; + if ($selected) + { + $league_name = $row['league_name']; + } + $template->assign_block_vars('form_league', array( + 'S_LEAGUE' => $row['league'], + 'S_LEAGUENAME' => $row['league_name'], + 'S_SELECTED' => $selected + ) + ); + } + $db->sql_freeresult($result); + + // End select League + + //***************************************************************************** + // For nav_delivery + $prev_deadline = ''; + $prev_link = ''; + $prev_class = ''; + $next_deadline = ''; + $next_link = ''; + $next_class = ''; + $current_matchday = ''; + + // Start select matchday + $matchdayname = ''; + $matchday_name = ''; + $status = 0; + $sql = 'SELECT * FROM ' . FOOTB_LEAGUES . " WHERE season = $season AND league = $league"; + $result = $db->sql_query($sql); + if( $row = $db->sql_fetchrow($result)) + { + $count_matchdays = $row['matchdays']; + $league_type = $row['league_type']; + $db->sql_freeresult($result); + $lang_dates = $user->lang['datetime']; + $local_board_time = time() + ($config['football_time_shift'] * 3600); + $sql = "SELECT *, + CONCAT( + CASE DATE_FORMAT(delivery_date,'%w') + WHEN 0 THEN '" . $lang_dates['Sun'] . "' + WHEN 1 THEN '" . $lang_dates['Mon'] . "' + WHEN 2 THEN '" . $lang_dates['Tue'] . "' + WHEN 3 THEN '" . $lang_dates['Wed'] . "' + WHEN 4 THEN '" . $lang_dates['Thu'] . "' + WHEN 5 THEN '" . $lang_dates['Fri'] . "' + WHEN 6 THEN '" . $lang_dates['Sat'] . "' + ELSE 'Error' END, + DATE_FORMAT(delivery_date,' %d.%m.%y %H:%i') + ) as deliverytime, + IF(delivery_date < FROM_UNIXTIME('$local_board_time'),'pastlink','futurelink') AS linkclass + FROM " . FOOTB_MATCHDAYS . " WHERE season = $season AND league = $league AND matchday <= $count_matchdays + ORDER BY matchday ASC"; + $result = $db->sql_query($sql); + $status = 3; + while ($row = $db->sql_fetchrow($result)) + { + if ($league_type == 1 and $row['matchday_name'] == '') + { + $matchdayname = $row['matchday'] . '.' . sprintf($user->lang['MATCHDAY']); + } + else + { + $matchdayname = $row['matchday_name']; + } + if ($matchdayname == '') + { + $matchdayname = $row['matchday'] . '.' . sprintf($user->lang['MATCHDAY']); + } + + $selected = ($matchday && $row['matchday'] == $matchday) ? ' selected="selected"' : ''; + if ($selected) + { + $matchday_name = $matchdayname; + $status = $row['status']; + } + + if (($matchday - 1) == $row['matchday']) + { + $prev_deadline = $row['deliverytime']; + $prev_link = append_sid($side,"s=$season&l=$league&m=" . $row['matchday'] . $link_user); + $prev_class = $row['linkclass']; + } + + if (($matchday + 1) == $row['matchday']) + { + $next_deadline = $row['deliverytime']; + $next_link = append_sid($side,"s=$season&l=$league&m=" . $row['matchday'] . $link_user); + $next_class = $row['linkclass']; + } + + + if ($curr_matchday == $row['matchday']) + { + $current = '*'; + } + else + { + $current = ''; + } + + $template->assign_block_vars('form_matchday', array( + 'S_MATCHDAY' => $row['matchday'], + 'S_MATCHDAYNAME' => $matchdayname, + 'S_SELECTED' => $selected, + 'S_CURRENT' => $current)); + } + $db->sql_freeresult($result); + } + // End select matchday + + $select_menu_options = ''; + if (!$user->data['football_mobile']) + { + // Start matchday list + if ($side == 'bet') + { + include($this->football_root_path . 'block/side_table.' . $this->php_ext); + } + else + { + include($this->football_root_path . 'block/rank_matchday.' . $this->php_ext); + } + // End matchday list + + //***************************************************************************** + + // Start total list + include($this->football_root_path . 'block/rank_total.' . $this->php_ext); + // End total list + + //***************************************************************************** + + // Start delivery list + include($this->football_root_path . 'block/delivery.' . $this->php_ext); + // End delivery list + + //***************************************************************************** + } + // Start assign vars + $sql_ary = array( + 'football_season' => (int) $season, + 'football_league' => (int) $league, + 'football_matchday' => (int) $matchday, + ); + + $sql = 'UPDATE ' . SESSIONS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " + WHERE session_id = '" . $db->sql_escape($user->session_id) . "'"; + $result = $db->sql_query($sql); + + $db->sql_freeresult($result); + $u_footb_parm = "s=$season&l=$league&m=$matchday"; + $u_footb_sl = "s=$season&l=$league"; + $start = $this->request->variable('start', 0); + $print_start = ($start) ? "start=$start&" : ''; + + $template->assign_vars(array( + 'U_PRINT_FOOTBALL' => $this->helper->route('football_football_controller', array('side' => $side, 's' => $season, 'l' => $league, 'm' => $matchday, 'view' => 'print')), + 'U_MOBILE_SWITCH' => $this->helper->route('football_football_controller', array('side' => $side, 's' => $season, 'l' => $league, 'm' => $matchday, 'action' => 'switch')), + 'U_SIDE_LINK' => $this->helper->route('football_football_controller', array('side' => $side, 's' => $season, 'l' => $league, 'm' => $matchday)), + 'L_TOP_RANKSP' => sprintf($user->lang['RANKING']) . ' ' . $matchday . '. ' . sprintf($user->lang['MATCHDAY']), + 'L_TOP_RANKGESAMT' => sprintf($user->lang['TOTAL_RANKING']) . ' ' . $matchday . '. ' . sprintf($user->lang['MATCHDAY']), + 'PHPBB_ROOT_PATH' => $this->phpbb_root_path, + 'EXT_PATH_IMAGES' => $this->football_root_path . 'images/', + 'S_FOOTBALL_MOBILE' => $user->data['football_mobile'], + 'S_FOOTBALL_INFO' => $football_info, + 'S_FOOTBALL_BANK' => $config['football_bank'], + 'S_FOOTBALL_COPY' => sprintf($user->lang['FOOTBALL_COPY'], $config['football_version'], $this->football_root_path . 'football/'), + 'S_FOOTBALL_FULLSCREEN' => $config['football_fullscreen'], + 'S_VIEW' => $view, + 'S_SIDE' => $side, + 'S_SEASON' => $season, + 'S_LEAGUE' => $league, + 'S_MATCHDAY' => $matchday, + 'S_USER_SEL' => $user_sel, + 'S_SEASON_NAME' => $season_name, + 'S_LEAGUE_NAME' => $league_name, + 'S_MATCHDAY_NAME' => $matchday_name, + 'S_FORMSELF' => $this->helper->route('football_football_controller', array('side' => $side)), + 'S_DELIVERY' => delivery($season, $league, $matchday), + // For nav_delivery + 'S_PREV_LINK' => $prev_link, + 'S_PREV_CLASS' => $prev_class, + 'S_PREV_DEADLINE' => $prev_deadline, + 'S_CURR_LINK' => $this->helper->route('football_football_controller', array('side' => $side, 's' => $season, 'l' => $league)), + 'S_CURR_MATCHDAY' => $curr_matchday, + 'S_NEXT_LINK' => $next_link, + 'S_NEXT_CLASS' => $next_class, + 'S_NEXT_DEADLINE' => $next_deadline, + 'S_DBMSG' => $dbmsg, + 'FOOTBALL_LEFT_COLUMN' => $config['football_left_column_width'], + 'FOOTBALL_RIGHT_COLUMN' => $config['football_right_column_width'], + + )); + // End assign vars + + //***************************************************************************** + if (!$matchday and $side <> 'bank') + { + include($this->football_root_path . 'block/under_construction.' . $this->php_ext); + } + else + { + include($this->football_root_path . 'block/' . $side . '.' . $this->php_ext); + } + + if ($user->data['football_mobile']) + { + $mobile = 'mobile_'; + } + else + { + $mobile = ''; + if ($config['football_display_last_users'] > 0) + { + include($this->football_root_path . 'block/last_users.' . $this->php_ext); + } + if ($config['football_display_last_results'] > 0) + { + include($this->football_root_path . 'block/last_results.' . $this->php_ext); + } + } + // Send data to the template file + if ($view == 'print') + { + return $this->helper->render($mobile . 'football_print.html', $this->user->lang['PREDICTION_LEAGUE']); + } + else + { + return $this->helper->render($mobile . 'football_body.html', $this->user->lang['PREDICTION_LEAGUE']); + } + } +} diff --git a/controller/popup.php b/controller/popup.php index 03077d0..4d31382 100644 --- a/controller/popup.php +++ b/controller/popup.php @@ -39,7 +39,7 @@ class popup /* @var \phpbb\user */ protected $user; - /** @var \phpbb\pagination */ + /* @var \phpbb\pagination */ protected $pagination; /* @var phpBB root path */ diff --git a/cron/task/football_remember.php b/cron/task/football_remember.php index 95eca76..52a9c4a 100644 --- a/cron/task/football_remember.php +++ b/cron/task/football_remember.php @@ -42,7 +42,7 @@ class football_remember extends \phpbb\cron\task\base * @param string $php_ext * @param \phpbb\extension\manager $phpbb_extension_manager * @param \phpbb\path_helper $phpbb_path_helper - * @param \phpbb\db\driver\driver_interfacer $db + * @param \phpbb\db\driver\driver_interface $db * @param \phpbb\config\config $config * @param \phpbb\log\log_interface $log * @param \phpbb\user $user diff --git a/event/main_listener.php b/event/main_listener.php index 1c856b9..e061592 100644 --- a/event/main_listener.php +++ b/event/main_listener.php @@ -129,7 +129,7 @@ class main_listener implements EventSubscriberInterface } else { - $event['location_url'] = $this->controller_helper->route('football_main_controller', array_merge(array('side' => $url_parts['base']), $url_parts['params'])); + $event['location_url'] = $this->controller_helper->route('football_football_controller', array_merge(array('side' => $url_parts['base']), $url_parts['params'])); } $db->sql_freeresult($result); } @@ -137,7 +137,7 @@ class main_listener implements EventSubscriberInterface { $event['location'] = $this->user->lang('VIEWING_FOOTBALL' . (empty($url_parts['base']) ? '' : '_' . strtoupper ($url_parts['base']))); } - $event['location_url'] = $this->controller_helper->route('football_main_controller', array_merge(array('side' => $url_parts['base']), $url_parts['params'])); + $event['location_url'] = $this->controller_helper->route('football_football_controller', array_merge(array('side' => $url_parts['base']), $url_parts['params'])); } } @@ -217,19 +217,19 @@ class main_listener implements EventSubscriberInterface 'S_FOOTBALL_HEADER_LEAGUE' => $league, 'S_FOOTBALL_EXT_PATH' => $ext_path, 'S_FOOTBALL_HEADER_ENABLED' => $this->config['football_header_enable'] ? $in_football_ext : false, - 'U_FOOTBALL' => $this->controller_helper->route('football_main_controller', array('side' => 'bet')), - 'U_BET' => $this->controller_helper->route('football_main_controller', array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_ALL_BETS' => $this->controller_helper->route('football_main_controller', array('side' => 'all_bets', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_RESULTS' => $this->controller_helper->route('football_main_controller', array('side' => 'results', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_TABLE' => $this->controller_helper->route('football_main_controller', array('side' => 'table', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_RANKS_TOTAL' => $this->controller_helper->route('football_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_RANKS_MATCHDAY' => $this->controller_helper->route('football_main_controller', array('side' => 'ranks_matchday', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_DELIVERY_LIST' => $this->controller_helper->route('football_main_controller', array('side' => 'delivery', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_LAST_VISITORS' => $this->controller_helper->route('football_main_controller', array('side' => 'last_users', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_FOOTBALL_BANK' => $this->controller_helper->route('football_main_controller', array('side' => 'bank', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_FOOTBALL' => $this->controller_helper->route('football_football_controller', array('side' => 'bet')), + 'U_BET' => $this->controller_helper->route('football_football_controller', array('side' => 'bet', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_ALL_BETS' => $this->controller_helper->route('football_football_controller', array('side' => 'all_bets', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_RESULTS' => $this->controller_helper->route('football_football_controller', array('side' => 'results', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_TABLE' => $this->controller_helper->route('football_football_controller', array('side' => 'table', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_RANKS_TOTAL' => $this->controller_helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_RANKS_MATCHDAY' => $this->controller_helper->route('football_football_controller', array('side' => 'ranks_matchday', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_DELIVERY_LIST' => $this->controller_helper->route('football_football_controller', array('side' => 'delivery', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_LAST_VISITORS' => $this->controller_helper->route('football_football_controller', array('side' => 'last_users', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_FOOTBALL_BANK' => $this->controller_helper->route('football_football_controller', array('side' => 'bank', 's' => $season, 'l' => $league, 'm' => $matchday)), 'U_RULES' => $this->controller_helper->route('football_football_popup', array('popside' => 'rules_popup', 's' => $season, 'l' => $league)), 'U_EXPORT' => $this->controller_helper->route('football_football_download', array('downside' => 'dload_export', 's' => $season, 'l' => $league)), - 'U_ODDS' => $this->controller_helper->route('football_main_controller', array('side' => 'odds', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_ODDS' => $this->controller_helper->route('football_football_controller', array('side' => 'odds', 's' => $season, 'l' => $league, 'm' => $matchday)), 'S_MENU_LINK1' => (strlen($this->config['football_menu_link1']) > 4) ? true : false, 'U_MENU_LINK1' => $this->config['football_menu_link1'], 'MENU_DESC_LINK1' => $this->config['football_menu_desc1'], @@ -239,14 +239,14 @@ class main_listener implements EventSubscriberInterface 'S_MENU_LINK3' => (strlen($this->config['football_menu_link3']) > 4) ? true : false, 'U_MENU_LINK3' => (strpos($this->config['football_menu_link3'], 'xml/league.php') === false) ? $this->config['football_menu_link3'] : $this->config['football_menu_link3'] . "&season=$season&league=$league", 'MENU_DESC_LINK3' => $this->config['football_menu_desc3'], - 'U_MY_BETS' => $this->controller_helper->route('football_main_controller', array('side' => 'my_bets', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_MY_POINTS' => $this->controller_helper->route('football_main_controller', array('side' => 'my_points', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_MY_TABLE' => $this->controller_helper->route('football_main_controller', array('side' => 'my_table', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_MY_RANK' => $this->controller_helper->route('football_main_controller', array('side' => 'my_rank', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_MY_CHART' => $this->controller_helper->route('football_main_controller', array('side' => 'my_chart', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_MY_KOEFF' => $this->controller_helper->route('football_main_controller', array('side' => 'my_koeff', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_STAT_RESULTS' => $this->controller_helper->route('football_main_controller', array('side' => 'stat_results', 's' => $season, 'l' => $league, 'm' => $matchday)), - 'U_STAT_POINTS' => $this->controller_helper->route('football_main_controller', array('side' => 'stat_points', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_MY_BETS' => $this->controller_helper->route('football_football_controller', array('side' => 'my_bets', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_MY_POINTS' => $this->controller_helper->route('football_football_controller', array('side' => 'my_points', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_MY_TABLE' => $this->controller_helper->route('football_football_controller', array('side' => 'my_table', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_MY_RANK' => $this->controller_helper->route('football_football_controller', array('side' => 'my_rank', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_MY_CHART' => $this->controller_helper->route('football_football_controller', array('side' => 'my_chart', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_MY_KOEFF' => $this->controller_helper->route('football_football_controller', array('side' => 'my_koeff', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_STAT_RESULTS' => $this->controller_helper->route('football_football_controller', array('side' => 'stat_results', 's' => $season, 'l' => $league, 'm' => $matchday)), + 'U_STAT_POINTS' => $this->controller_helper->route('football_football_controller', array('side' => 'stat_points', 's' => $season, 'l' => $league, 'm' => $matchday)), )); } diff --git a/images/index.htm b/images/index.htm index e0cc5f3..ee1f723 100644 --- a/images/index.htm +++ b/images/index.htm @@ -1,10 +1,10 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/includes/chart_hist.php b/includes/chart_hist.php index f59aef5..7a53faf 100644 --- a/includes/chart_hist.php +++ b/includes/chart_hist.php @@ -1,66 +1,66 @@ - + diff --git a/includes/chart_points.php b/includes/chart_points.php index 8fc109e..945e6e9 100644 --- a/includes/chart_points.php +++ b/includes/chart_points.php @@ -1,126 +1,126 @@ - ($rows - 2)) - imagestring($image, 3, 10, $i * $horz - 6, $maximum - (($i - 1) * 5), $colorBlack); - else - imagestring($image, 3, 3,$i * $horz - 6, $maximum - (($i - 1) * 5), $colorBlack); -} -imagestring($image, 1, 0, 0, $caption_lang[0] , $colorBlack); - - -// Create grid -for ($i = 1; $i <= $matchdays; $i++) -{ - $label = $i + 1; - imageline($image, $i * $vert, $horz, $i * $vert, $imgHeight - 50, $colorGrey); - if ($i < 10) - imagestring($image,3,$i * $vert - 3, $imgHeight - 40, $i, $colorBlack); - else - imagestring($image, 3, $i * $vert - 6, $imgHeight - 40, $i, $colorBlack); -} - -imageline($image, 3, $imgHeight - $horz + 6, 15, $imgHeight - $horz + 6, $colorBlack); -imagestring($image, 3, 20, $imgHeight - $horz, $caption_lang[1] , $colorBlack); - -imagesetthickness($image, 2); - -$count_values=count($graphvalues1); -// Create line graph -for ($i = 1; $i < $count_values; $i++) -{ - imageline($image, $i * $vert, (($maximum - $graphvalues1[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvalues1[$i]) * $horzp + $horz), $colorBlue); -} - -$count_values=count($graphvalues2); -// Create line graph -for ($i = 1; $i < $count_values; $i++) -{ - imageline($image, $i * $vert, (($maximum - $graphvalues2[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvalues2[$i]) * $horzp + $horz), $colorGreen); -} - -$count_values=count($graphvalues3); -// Create line graph -for ($i = 1; $i < $count_values; $i++) -{ - imageline($image, $i * $vert, (($maximum - $graphvalues3[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvalues3[$i]) * $horzp + $horz), $colorAzur); -} - -$count_values=count($graphvalues4); -// Create line graph -for ($i = 1; $i < $count_values; $i++) -{ - imageline($image, $i * $vert, (($maximum - $graphvalues4[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvalues4[$i]) * $horzp + $horz), $colorRed); -} - -$count_values=count($graphvaluesmin); -// Create line graph -for ($i = 1; $i < $count_values; $i++) -{ - imageline($image, $i * $vert, (($maximum - $graphvaluesmin[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvaluesmin[$i]) * $horzp + $horz), $colorBlack); -} - -$count_values=count($graphvaluesmax); -// Create line graph -for ($i = 1; $i < $count_values; $i++) -{ - imageline($image, $i * $vert, (($maximum - $graphvaluesmax[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvaluesmax[$i]) * $horzp + $horz), $colorBlack); -} - -// Output graph and clear image from memory -imagepng($image); -imagedestroy($image); -?> + ($rows - 2)) + imagestring($image, 3, 10, $i * $horz - 6, $maximum - (($i - 1) * 5), $colorBlack); + else + imagestring($image, 3, 3,$i * $horz - 6, $maximum - (($i - 1) * 5), $colorBlack); +} +imagestring($image, 1, 0, 0, $caption_lang[0] , $colorBlack); + + +// Create grid +for ($i = 1; $i <= $matchdays; $i++) +{ + $label = $i + 1; + imageline($image, $i * $vert, $horz, $i * $vert, $imgHeight - 50, $colorGrey); + if ($i < 10) + imagestring($image,3,$i * $vert - 3, $imgHeight - 40, $i, $colorBlack); + else + imagestring($image, 3, $i * $vert - 6, $imgHeight - 40, $i, $colorBlack); +} + +imageline($image, 3, $imgHeight - $horz + 6, 15, $imgHeight - $horz + 6, $colorBlack); +imagestring($image, 3, 20, $imgHeight - $horz, $caption_lang[1] , $colorBlack); + +imagesetthickness($image, 2); + +$count_values=count($graphvalues1); +// Create line graph +for ($i = 1; $i < $count_values; $i++) +{ + imageline($image, $i * $vert, (($maximum - $graphvalues1[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvalues1[$i]) * $horzp + $horz), $colorBlue); +} + +$count_values=count($graphvalues2); +// Create line graph +for ($i = 1; $i < $count_values; $i++) +{ + imageline($image, $i * $vert, (($maximum - $graphvalues2[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvalues2[$i]) * $horzp + $horz), $colorGreen); +} + +$count_values=count($graphvalues3); +// Create line graph +for ($i = 1; $i < $count_values; $i++) +{ + imageline($image, $i * $vert, (($maximum - $graphvalues3[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvalues3[$i]) * $horzp + $horz), $colorAzur); +} + +$count_values=count($graphvalues4); +// Create line graph +for ($i = 1; $i < $count_values; $i++) +{ + imageline($image, $i * $vert, (($maximum - $graphvalues4[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvalues4[$i]) * $horzp + $horz), $colorRed); +} + +$count_values=count($graphvaluesmin); +// Create line graph +for ($i = 1; $i < $count_values; $i++) +{ + imageline($image, $i * $vert, (($maximum - $graphvaluesmin[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvaluesmin[$i]) * $horzp + $horz), $colorBlack); +} + +$count_values=count($graphvaluesmax); +// Create line graph +for ($i = 1; $i < $count_values; $i++) +{ + imageline($image, $i * $vert, (($maximum - $graphvaluesmax[$i - 1]) * $horzp + $horz), ($i + 1) * $vert, (($maximum - $graphvaluesmax[$i]) * $horzp + $horz), $colorBlack); +} + +// Output graph and clear image from memory +imagepng($image); +imagedestroy($image); +?> diff --git a/includes/chart_rank.php b/includes/chart_rank.php index 273d617..e602f86 100644 --- a/includes/chart_rank.php +++ b/includes/chart_rank.php @@ -1,97 +1,97 @@ - + diff --git a/includes/export.php b/includes/export.php index 8c76f21..90bbdd3 100644 --- a/includes/export.php +++ b/includes/export.php @@ -78,7 +78,7 @@ $sql_bets = "SELECT FROM " . FOOTB_MATCHES . ' AS m LEFT JOIN ' . FOOTB_BETS . " AS b ON (b.season = m.season AND b.league = m.league AND b.match_no = m.match_no) WHERE m.season = $season AND m.league = $league - ORDER BY matchday ASC, match_no ASC, user_id ASC"; + ORDER BY m.matchday ASC, m.match_no ASC, b.user_id ASC"; if(!$result_users = $db->sql_query($sql_users)) { @@ -268,4 +268,3 @@ else echo utf8_decode($export); exit; } -?> diff --git a/includes/functions.php b/includes/functions.php index 5ce8220..2388178 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -170,8 +170,8 @@ function save_ranking_matchday($season, $league, $matchday, $cash = false) INNER JOIN ' . FOOTB_BETS . ' AS b ON (b.season = m.season AND b.league = m.league AND b.match_no = m.match_no) INNER JOIN ' . USERS_TABLE . " AS u ON (b.user_id = u.user_id) WHERE m.season = $season AND m.league = $league AND m.matchday = $matchday AND m.status IN (2,3) - GROUP BY b.user_id - ORDER BY points DESC, nobet ASC, username ASC + GROUP BY u.user_id + ORDER BY points DESC, nobet ASC, u.username ASC "; $result = $db->sql_query($sql); @@ -586,13 +586,13 @@ function set_footb_points($points_type, $season, $league, $matchday, $wins, $cas function _sort_points($value_a, $value_b) { - if ($value_a['points'] > $value_b['points']) + if ($value_a['points'] > $value_b['points']) { - return -1; - } + return -1; + } else { - if ($value_a['points'] == $value_b['points']) + if ($value_a['points'] == $value_b['points']) { if (isset($value_a['nobet'])) { @@ -616,12 +616,12 @@ function _sort_points($value_a, $value_b) { return 0; } - } + } else { - return 1; - } - } + return 1; + } + } } @@ -838,7 +838,8 @@ function next_delivery($season, $league) WHEN 6 THEN '" . $lang_dates['Sat'] . "' ELSE 'Error' END, DATE_FORMAT(delivery_date,' %d.%m.%Y %H:%i') - ) AS deliverytime + ) AS deliverytime, + matchday FROM " . FOOTB_MATCHDAYS . " WHERE season = $season AND league = $league AND status = 0 ORDER BY matchday ASC @@ -999,7 +1000,7 @@ function first_league($season, $complete = true) { $join_matchday = 'INNER JOIN ' . FOOTB_MATCHDAYS . ' AS m ON (m.season = l.season AND m.league = l.league) '; } - $sql = 'SELECT * + $sql = 'SELECT l.* FROM ' . FOOTB_LEAGUES . ' AS l ' . $join_matchday . " WHERE l.season = $season @@ -1030,12 +1031,12 @@ function current_league($season) $curr_user = $user->data['user_id']; $user_spec = 'AND b.user_id = ' . $curr_user; } - $sql = 'SELECT DISTINCT m.league + $sql = 'SELECT DISTINCT m.league, m.match_datetime FROM ' . FOOTB_MATCHES . ' AS m INNER JOIN ' . FOOTB_BETS . ' AS b ON (b.season = m.season AND b.league = m.league ' . $user_spec . ") WHERE m.season = $season AND m.status in (0,1,2) - ORDER BY m.match_datetime ASC + ORDER BY m.match_datetime ASC, m.league ASC LIMIT 1"; $result = $db->sql_query($sql); @@ -1826,7 +1827,7 @@ function get_team($season, $league, $matchnumber, $field, $formula) $third_group[$team]= $row['group_id']; } } - } + } } // Sort 3. Place on points, diff, goals array_multisort($points3, SORT_DESC, $diff3, SORT_DESC, $goals3, SORT_DESC, $third_team, $third_group); @@ -2096,7 +2097,8 @@ function get_team($season, $league, $matchnumber, $field, $formula) m.goals_overtime_home, m.goals_overtime_guest, m.goals_home, - m.goals_guest + m.goals_guest, + m.match_no FROM ' . FOOTB_MATCHES . ' AS m LEFT JOIN ' . FOOTB_TEAMS . ' AS t1 ON (t1.season = m.season AND t1.league = m.league AND t1.team_id = m.team_id_home) LEFT JOIN ' . FOOTB_TEAMS . " AS t2 ON (t2.season = m.season AND t2.league = m.league AND t2.team_id = m.team_id_guest) @@ -2316,7 +2318,7 @@ function ko_group_next_round($season, $league, $matchday_from, $matchday_to, $ma LEFT JOIN ' . FOOTB_MATCHES . " AS m ON (m.season = t.season AND m.league = t.league AND (m.team_id_home = t.team_id OR m.team_id_guest = t.team_id) AND m.group_id = t.group_id) WHERE t.season = $season AND t.league = $league AND m.matchday >= $matchday_from AND m.matchday <= $matchday_to AND m.status IN (3,6) GROUP BY t.team_id - ORDER BY group_id ASC,points DESC, goal_diff DESC, goals DESC + ORDER BY t.group_id ASC, points DESC, goal_diff DESC, goals DESC "; $result = $db->sql_query($sql); @@ -2530,4 +2532,3 @@ function select_points($creator = 'm', $sum = false) } return $select_part; } -?> \ No newline at end of file diff --git a/includes/version_check.php b/includes/version_check.php index 0852ace..fe3a3d7 100644 --- a/includes/version_check.php +++ b/includes/version_check.php @@ -1,115 +1,115 @@ -version_data = $version_data; - $this->config = $config; - $this->version_helper = $version_helper; - $this->template = $template; - $this->user = $user; - $this->current_version = $this->config[str_replace(' ', '', $this->version_data['version'])]; - } - - /** - * Check Extension version and assign template variables for version info if not - * returning current version - * - * @param bool $return_version Yes if current version should be returned - * @return string Current version if $return_version is set to true - */ - public function check($return_version = false) - { - $allow_url_fopen = (int) @ini_get('allow_url_fopen'); - if ($allow_url_fopen) - { - - // Set file location - $this->version_helper->set_file_location($this->version_data['file'][0], $this->version_data['file'][1], $this->version_data['file'][2]); - // Set current version - $this->version_helper->set_current_version($this->current_version); - - $this->version_helper->force_stability(($this->config['extension_force_unstable'] || !$this->version_helper->is_stable($this->current_version)) ? 'unstable' : null); - - $updates = $this->version_helper->get_suggested_updates(true); - - // Return version if $return_version is set to true - if ($return_version) - { - return $this->current_version; - } - - $version_up_to_date = empty($updates); - - $template_data = array( - 'AUTHOR' => $this->version_data['author'], - 'CURRENT_VERSION' => $this->current_version, - 'UP_TO_DATE' => sprintf((!$version_up_to_date) ? $this->user->lang['NOT_UP_TO_DATE'] : $this->user->lang['UP_TO_DATE'], $this->version_data['title']), - 'S_UP_TO_DATE' => $version_up_to_date, - 'U_AUTHOR' => 'http://www.phpbb.com/community/memberlist.php?mode=viewprofile&un=' . $this->version_data['author'], - 'TITLE' => (string) $this->version_data['title'], - 'LATEST_VERSION' => $this->current_version, - ); - - if (!$version_up_to_date) - { - $updates = array_shift($updates); - $template_data = array_merge($template_data, array( - 'ANNOUNCEMENT' => (string) $updates['announcement'], - 'DOWNLOAD' => (string) $updates['download'], - 'LATEST_VERSION' => $updates['current'], - )); - } - $this->template->assign_block_vars('mods', $template_data); - } - } -} +version_data = $version_data; + $this->config = $config; + $this->version_helper = $version_helper; + $this->template = $template; + $this->user = $user; + $this->current_version = $this->config[str_replace(' ', '', $this->version_data['version'])]; + } + + /** + * Check Extension version and assign template variables for version info if not + * returning current version + * + * @param bool $return_version Yes if current version should be returned + * @return string Current version if $return_version is set to true + */ + public function check($return_version = false) + { + $allow_url_fopen = (int) @ini_get('allow_url_fopen'); + if ($allow_url_fopen) + { + + // Set file location + $this->version_helper->set_file_location($this->version_data['file'][0], $this->version_data['file'][1], $this->version_data['file'][2]); + // Set current version + $this->version_helper->set_current_version($this->current_version); + + $this->version_helper->force_stability(($this->config['extension_force_unstable'] || !$this->version_helper->is_stable($this->current_version)) ? 'unstable' : null); + + $updates = $this->version_helper->get_suggested_updates(true); + + // Return version if $return_version is set to true + if ($return_version) + { + return $this->current_version; + } + + $version_up_to_date = empty($updates); + + $template_data = array( + 'AUTHOR' => $this->version_data['author'], + 'CURRENT_VERSION' => $this->current_version, + 'UP_TO_DATE' => sprintf((!$version_up_to_date) ? $this->user->lang['NOT_UP_TO_DATE'] : $this->user->lang['UP_TO_DATE'], $this->version_data['title']), + 'S_UP_TO_DATE' => $version_up_to_date, + 'U_AUTHOR' => 'http://www.phpbb.com/community/memberlist.php?mode=viewprofile&un=' . $this->version_data['author'], + 'TITLE' => (string) $this->version_data['title'], + 'LATEST_VERSION' => $this->current_version, + ); + + if (!$version_up_to_date) + { + $updates = array_shift($updates); + $template_data = array_merge($template_data, array( + 'ANNOUNCEMENT' => (string) $updates['announcement'], + 'DOWNLOAD' => (string) $updates['download'], + 'LATEST_VERSION' => $updates['current'], + )); + } + $this->template->assign_block_vars('mods', $template_data); + } + } +} diff --git a/language/de/email/footb_board_remember.txt b/language/de/email/footb_board_remember.txt index b68d9c1..d615362 100644 --- a/language/de/email/footb_board_remember.txt +++ b/language/de/email/footb_board_remember.txt @@ -1,10 +1,10 @@ - -Hallo {SITENAME}, -Folgende Tipper haben eine Erinnerungs-Mail erhalten: - -{REMEMBER_LIST} - - -Hier geht es zur {SITENAME}: {U_BOARD}. - -{EMAIL_SIG} + +Hallo {SITENAME}, +Folgende Tipper haben eine Erinnerungs-Mail erhalten: + +{REMEMBER_LIST} + + +Hier geht es zur {SITENAME}: {U_BOARD}. + +{EMAIL_SIG} diff --git a/language/de/email/footb_send_remember.txt b/language/de/email/footb_send_remember.txt index 5b6675c..da85640 100644 --- a/language/de/email/footb_send_remember.txt +++ b/language/de/email/footb_send_remember.txt @@ -1,10 +1,10 @@ - -Hallo Tipper {USERNAME}, -Du hast bislang noch nicht den {MATCHDAY}. Spieltag getippt. -Bitte tipp bis zum {LEAGUE} Abgabetermin {DELIVERY} Uhr. - - -Hier geht es zur {SITENAME}: {U_BOARD}. - - -{EMAIL_SIG} + +Hallo Tipper {USERNAME}, +Du hast bislang noch nicht den {MATCHDAY}. Spieltag getippt. +Bitte tipp bis zum {LEAGUE} Abgabetermin {DELIVERY} Uhr. + + +Hier geht es zur {SITENAME}: {U_BOARD}. + + +{EMAIL_SIG} diff --git a/language/de/football.php b/language/de/football.php index 2c043d2..61bac97 100644 --- a/language/de/football.php +++ b/language/de/football.php @@ -1,509 +1,509 @@ - '2. E-Mail-Adresse', - 'FOOTB_EMAIL_EXPLAIN' => 'Sollen Erinnerungs-Mails an die Haupt E-Mail-Adresse versendet werden, falls Du vergessen hast zu tippen?', - 'FOOTB_REM_F' => 'Erinnerungs-Mail an die Haupt E-Mail-Adresse', - 'FOOTB_REM_F_EXPLAIN' => 'Erinnerungs-Mail an die Haupt E-Mail-Adresse', - 'FOOTB_REM_S' => 'Erinnerungs-Mail an die 2. E-Mail-Adresse', - 'FOOTB_REM_S_EXPLAIN' => 'Erinnerungs-Mail an die 2. E-Mail-Adresse', - - - 'ADD_NEW_TEAM' => 'Das Team wurde zur Liga hinzugefügt. ', - 'ALL_BETS' => 'Alle Tipps', - 'ALL_BETS_MATCHDAY' => 'Alle Tipps des %d. Spieltags', - 'ALL_LEAGUES' => 'Alle Ligen', - 'ALL_MATCHES' => 'Alle Spiele', - 'AWAY' => 'Auswärts', - 'AWAY_MATCHES' => 'Auswärtsspiele', - - 'BANDWIDTH' => 'Bandbreite', - 'BANK_OF' => 'Kontoauszug von', - 'BET' => 'Tippen', - 'BET_IN_TIME' => 'Die Spiele eines Spieltags können jeweils bis zum Spielbeginn getippt werden. Nach Spielbeginn werden die Tipps der anderen Tipper für alle sichtbar. ', - 'BET_KOEFF' => 'Tippkoeffizient ', - 'BET_OF' => 'Tipp', - 'BET_POINTS' => 'Einsatz', - 'BET_TIME' => 'Tipp Zeit', - 'BET_UNTIL_DELIVERY' => 'Die Spiele eines Spieltags können nur bis zum Abgabetermin des Spieltags getippt werden. Danach werden die Tipps der anderen Tipper für alle sichtbar. ', - 'BETS' => 'Tipps', - 'BETS_AND_RANKS' => 'Tipps und Ranglisten der', - 'BETS_OF' => 'Die Tipps von', - 'BETS_OF_ALL' => 'Die Tipps aller Tipper', - 'BETSAVED' => 'Dein Tipp wurde erfolgreich gespeichert. ', - 'BETSSAVED' => 'Deine %d Tipps wurden erfolgreich gespeichert. ', - 'BOOK_TYPE' => 'Buchungstyp', - - 'CASH_POINTS' => 'Verrechnung in Ultimate Points', - 'CHART_MATCHDAY' => 'Chart Platzierungen Spieltag', - 'CHART_OF' => 'Charts von', - 'CHART_POINTS' => 'Chart Punkte Spieltag', - 'CHART_TOTAL' => 'Chart Platzierungen Gesamt', - 'CNT_BET' => 'Anzahl der Spiele mit Tipp', - 'CNT_HIT' => 'Anzahl der Tipps mit richtigem Ergebnis', - 'CNT_HIT02' => 'Anzahl der Tipps mit richtigem Ergebnis, bei dem die Gastmannschaft gepunktet hat', - 'CNT_NO_BET' => 'Anzahl der Spiele ohne Tipp', - 'CNT_TEND' => 'Anzahl der Tipps mit richtiger Tendenz (ohne Volltreffer)', - 'CURR' => 'akt', - 'CURRENT_RESULT' => 'vorläufiges Ergebnis', - - 'DATE' => 'Datum', - 'DATES' => 'Termine', - 'DAY_POINTS_OF_ALL' => 'Die Spieltagspunkte der Tipper', - 'DAY_RANKS_OF_ALL' => 'Die Spieltagsplatzierungen der Tipper', - 'DELETE' => 'Löschen', - 'DELETE_TEAM' => 'Team löschen', - 'DELETE_TEAM_CHECK' => 'Dieses Team aus der Liga löschen', - 'DELETED_TEAM' => 'Das Team wurde aus der Liga gelöscht. ', - 'DELIVERY' => 'Tippabgabe', - 'DELIVERY_LIST' => 'Termine Tippabgabe', - 'DELIVERY_NOT_READY' => 'Zur Tippabgabe (Du hast noch nicht alle Spiele getippt)', - 'DELIVERY_READY' => 'Zur Tippabgabe (Du hast bereits alle Spiele getippt)', - 'DELIVERY_UNTIL' => 'Tippabgabe bis', - 'DEPOSIT' => 'Einzahlung', - 'DIFF_COUNT' => 'Häufigkeiten der Tordifferenzen', - 'DIRECTHITS' => 'Volltreffer', - 'DIRECTHITS_SHORT' => 'VT', - 'DIRECTHITS02' => 'Volltreffer 02', - 'DOWNLOAD' => 'Download', - 'DRAW' => 'Unentschieden', - 'DRAW_SHORT' => 'U', - 'DRAWING' => 'Auslosung', - - 'EUR' => 'EUR', - 'EVALUATION' => 'Wertung', - 'EXCEL_FILE' => 'Excel Datei', - 'EXPORT' => 'Export', - 'EXTRA_BET' => 'Sondertipp', - 'EXTRA_BET_SAVED' => '%d Sondertipp gespeichert. ', - 'EXTRA_BETS' => 'Sondertipps', - 'EXTRA_BETS_SAVED' => '%d Sondertipps gespeichert. ', - 'EXTRA_DIFFERENCE' => 'Volle Punktzahl abzgl. absoluter Differenz zwischen Ergebnis und Tipp', - 'EXTRA_HIT' => 'Volle Punktzahl bei korrektem Tipp, sonst 0 Punkte', - 'EXTRA_MULTI_HIT' => 'Volle Punktzahl bei Übereinstimmung mit einem Ergebnis, sonst 0 Punkte', - 'EXTRA_RESULT_DELETED' => '%d Sondertipp-Ergebnis gelöscht. ', - 'EXTRA_RESULT_SAVED' => '%d Sondertipp-Ergebnis gespeichert. ', - 'EXTRA_RESULTS_DELETED' => '%d Sondertipp-Ergebnisse gelöscht. ', - 'EXTRA_RESULTS_SAVED' => '%d Sondertipp-Ergebnisse gespeichert. ', - 'EXTRATIME' => 'Verlängerung', - 'EXTRATIME_SHORT' => 'n. Verl. ', - - 'FAN_OF' => 'Fan von', - 'FINAL_RESULT' => 'endgültiges Ergebnis', - 'FINALLY' => 'endgültig', - 'FIRSTLEG_ERROR' => 'Hinspiel existiert nicht', - 'FLOP20_POINTS' => 'Flop 20 Punkte Saison', - 'FLOP20_POINTS_ALL' => 'All time Flop 20 Punkte ', - 'FOOTBALL_ALL_LEAGUES' => 'Alle Ligen', - 'FOOTBALL_BALANCE' => 'Aktueller Saldo dieser Liga', - 'FOOTBALL_BALANCES' => 'Aktueller Gesamt-Saldo aller Ligen', - 'FOOTBALL_BANK' => 'Kontoauszug', - 'FOOTBALL_BET_POINTS' => 'Einsatz', - 'FOOTBALL_BOOK_TOTAL' => 'Buchungen', - 'FOOTBALL_DEPOSIT' => 'Einzahlung', - 'FOOTBALL_DESCRIPTION' => 'Hier ist dein Tipprunden Kontoauszug.

Es werden alle Einsätze, Gewinne, Ein- und Auszahlungen der gewählten Saison und Liga angezeigt.

', - 'FOOTBALL_DISABLED' => 'Diese Tipprunde ist derzeit wegen Wartungsarbeiten deaktiviert. ', - 'FOOTBALL_MATCHDAY' => 'Spieltag', - 'FOOTBALL_MENU' => 'Tipprunden Menü anzeigen', - 'FOOTBALL_NO_BOOKS' => 'Es sind keine Buchungen vorhanden. ', - 'FOOTBALL_PAYOUT' => 'Auszahlung', - 'FOOTBALL_RECORD' => 'Eintrag', - 'FOOTBALL_RECORDS' => 'Einträge', - 'FOOTBALL_REMOVE_INSTALL' => 'Du musst erst den Ordner install_football von deinem Webspace entfernen. Solange der Ordner vorhanden ist, bleibt die Football Extension deaktiviert!', - 'FOOTBALL_RULES' => 'Tipprunden-Regeln', - 'FOOTBALL_SEPARATOR_DECIMAL' => ',', - 'FOOTBALL_SEPARATOR_THOUSANDS' => '.', - 'FOOTBALL_TITLE' => 'BL Tipprunde', - 'FOOTBALL_WIN' => 'Gewinn', - 'FORECAST_PTS' => 'Vorhersagepunkte', - 'FORM' => 'Form', - 'FORMULA' => 'Formel', - 'FROM' => 'vom', - 'FROM_DAY_SEASON' => 'vom %1$d. Spieltag Saison %2$d', - - 'GAME_NOT_PLAYED' => '%d Spiel wurde noch nicht gespielt. ', - 'GAME_RESULTS' => 'Spielergebnisse', - 'GAMES_SHORT' => 'Sp', - 'GET_TEAM' => 'Vorhandenes Team übernehmen', - 'GOALS' => 'Tore', - 'GOALS_GUEST' => 'Tore Gast', - 'GOALS_HOME' => 'Tore Heim', - 'GOALS_AGAINST' => 'Gegentore', - 'GOALS_DIFF' => 'Tordifferenz', - 'GOALS_DIFF_SHORT' => 'TD', - 'GR' => 'Gr', - 'GROUP_GAMES' => 'Gruppenspiele in Gruppe', - 'GUESSED' => 'Getippt', - 'GUEST' => 'Gast', - - 'HIST_CHART' => 'Chart Verlauf Spieltage', - 'HITS' => 'Volltreffer', - 'HITS_SHORT' => 'VT', - 'HITS_SHORT2' => 'VT02', - 'HOME' => 'Heim', - 'HOME_MATCHES' => 'Heimspiele', - - 'IMPROVED' => 'verbessert', - - 'JOIN' => 'Dieser Tipprunde beitreten', - 'JOIN_BY_ADMIN' => 'Nur Administratoren können neue Tipper in diese Tipprunde aufnehmen. ', - 'JOIN_BY_USER' => 'Boardmitglieder können vor Beginn selbständig der Tipprunde beitreten. ', - 'JOIN_IN_SEASON' => 'Boardmitglieder können selbständig der laufenden Tipprunde beitreten. ', - 'JOIN_LEAGUE' => 'Willst du dieser Tipprunde beitreten?

Mit deinem Beitritt akzeptierst du die Teilnahmebedingungen dieser Tipprunde. ', - 'JOIN_MODE' => 'Beitritt in diese Tipprunde', - - 'KICK' => 'Anstoß', - 'KOEFF_OF' => 'Der Tippkoeffizient von ', - 'KOEFF_TEXT' => 'gibt an wieviel Punkte die anderen Tipper im Schnitt hätten, wenn dieser alle Spiele richtig haben würde. ', - - 'LAST_GAMES' => 'Die letzten Spiele', - 'LAST_GAMES_AWAY' => 'Die letzten Auswärtsspiele', - 'LAST_GAMES_HOME' => 'Die letzten Heimspiele', - 'LAST_RESULTS' => 'Die letzten Ergebnisse', - 'LAST_VISITORS' => 'Die letzten %s Besuche', - 'LEAGUE' => 'Liga', - 'LINK_PREDICTION_LEAGUE' => 'Zur Tipprunde', - 'LINK_RULES' => 'Die genauen Teilnahmebedingungen stehen im Forum. ', - 'LOGIN_EXPLAIN_EXPORT' => 'Um Tipps herunter zu laden, musst du registriert und angemeldet sein. ', - 'LOGIN_EXPLAIN_FOOTBALL' => 'Du musst registriert und angemeldet sein, um auf die Tipprunde zuzugreifen. ', - 'LOGS_COMMENT' => 'Kommentar', - 'LOOSER' => 'Verlierer', - 'LOOSER_MATCH_NO' => 'Verlierer Spiel Nr. ', - 'LOST' => 'Verloren', - 'LOST_SHORT' => 'N', - - 'MATCH_ERROR' => 'Spielpaarung nicht passend', - 'MATCH_STATS' => 'Statistiken zum Spiel', - 'MATCHDAY' => 'Spieltag', - 'MATCHDAY_FROM' => 'Spieltag von ', - 'MATCHDAY_SHORT' => 'SpTag', - 'MATCHDAY_TINY' => 'SpT', - 'MATCHDAY_TO' => 'Spieltag bis ', - 'MD_MAX_POINTS' => 'Spieltage mit den höchsten Durchschnittspunkten', - 'MD_MIN_POINTS' => 'Spieltage mit den geringsten Durchschnittspunkten', - 'MEMBER' => 'Tipper', - 'MIN90' => '90 Min. ', - 'MY_BETS' => 'Meine Tipps', - 'MY_CHART' => 'Mein Chart', - 'MY_KOEFF' => 'Mein Tippkoeffizient', - 'MY_POINTS' => 'Meine Punkte', - 'MY_RANK' => 'Meine Platzierungen', - 'MY_TABLE' => 'Meine Tabelle', - 'MYCHART_TEXT' => 'Eingangs werden neben den eigenen Daten, der Gesamtführende, ein Tipper aus dem Mittelfeld und der Letzte angezeigt. ', - - 'NAME' => 'Name', - 'NEXT_DELIVERY' => 'nächste Tippabgabe', - 'NEXT_DELIVERY_UNTIL' => 'Nächste Tippabgabe bis', - 'NO_AUTH_VIEW' => 'Du bist nicht berechtigt, die Tipprunden-Seiten anzusehen. ', - 'NO_AWAYMATCHES_TEAM' => 'Dieses Team hat in dieser Saison noch nicht auswärts gespielt. ', - 'NO_BET' => 'ohne Tipp', - 'NO_BETS' => 'Keine Tipps vorhanden!', - 'NO_BETS_SAVED' => 'Keine Tipps gespeichert!', - 'NO_CHANGES' => 'unverändert', - 'NO_DATA' => 'Keine Daten vorhanden!', - 'NO_GUEST_VIEW' => 'Gäste sind nicht berechtigt, die Tipprunden-Seiten anzusehen. ', - 'NO_GUESTTEAM' => 'Die von dir ausgewählte Gastmannschaft existiert nicht. ', - 'NO_HIST' => 'Zu diesen beiden Mannschaften existieren keine vorherigen Vergleiche in der Datenbank. ', - 'NO_HOMEMATCHES_TEAM' => 'Dieses Team hat in dieser Saison noch nicht zu Hause gespielt. ', - 'NO_HOMETEAM' => 'Die von dir ausgewählte Heimmannschaft existiert nicht. ', - 'NO_LEAGUE' => 'Die von dir ausgewählte Liga existiert nicht. ', - 'NO_LINK_RULES' => 'Die genauen Regeln und Teilnahmebedingungen wurden bislang noch nicht im Forum hinterlegt. ', - 'NO_MATCH' => 'Das von dir ausgewählte Spiel existiert nicht. ', - 'NO_MATCHDAY' => 'Der von dir ausgewählte Spieltag existiert nicht. ', - 'NO_MATCHES' => 'Keine Spiele vorhanden!', - 'NO_MATCHES_ON_MATCHDAY' => 'Der Spielplan wurde noch nicht erstellt. ', - 'NO_MATCHES_TEAM' => 'Dieses Team hat in dieser Saison noch keine Spiele bestritten. ', - 'NO_MEMBER' => 'Du bist kein Mitglied dieser Tipprunde!', - 'NO_MYBETS_ME' => 'Du bist kein Mitglied dieser Tipprunde!', - 'NO_PLAN' => 'Für diesen Spieltag wurden noch keine Spielpaarungen hinterlegt!', - 'NO_POINTS' => 'o. Wertung', - 'NO_RESULT' => 'Es gibt noch kein Spielergebnis. ', - 'NO_RESULT_SAVE' => 'Kein neues Spielergebnis gespeichert. ', - 'NO_RESULTS' => 'Es gibt noch keine Spielergebnisse. ', - 'NO_SEAS_PROFIT' => 'Es werden nur Spieltagsgewinne und keine Saisongewinne berücksichtigt (ab Saison 2003). ', - 'NO_SEASON' => 'Die von dir ausgewählte Saison existiert nicht. ', - 'NO_TABLE' => 'Es liegen noch keine Spielergebnisse vor oder diese Liga hat nur KO-Runden. ', - 'NO_TABLEFORM' => 'Seit diesem Spieltag wurden keine oder nur KO-Spiele gespielt, daher wird keine Formtabelle erstellt. ', - 'NO_TEAM_ID' => 'Das von dir ausgewählte Team existiert nicht. ', - 'NO_TEAM_NAME' => 'Teamname fehlt. Bitte einen Teamnamen angeben. ', - 'NO_TEAM_SHORTNAME' => 'Kurzbezeichnung des Teams fehlt. Bitte einen Kurznamen angeben. ', - 'NO_USER' => 'Du bist kein Teilnehmer dieser Tipprunde!', - 'NO_USERID' => 'Der von dir ausgewählte Tipper existiert nicht. ', - 'NO_USERS' => 'Diese Tipprunde hat keine Teilnehmer!', - 'NO_WIN_MATCHDAYS' => 'In dieser Tipprunde gibt es keine Spieltagsgewinne. ', - 'NO_WIN_SEASON' => 'In dieser Tipprunde gibt es keine Saisongewinne. ', - 'NOT_CLOSED' => 'Dieser Spieltag wurde noch nicht geschlossen. ', - 'NOT_PLANNED' => 'Dieser Spieltag wurde noch nicht ausgelost. ', - 'NOT_RATED' => 'nicht gewertet', - 'NR' => 'Nr', - 'NUMBER' => 'Anzahl', - - 'OPTION_LEAGUE' => 'Wähle eine Liga', - 'OPTION_MATCHDAY' => 'Wähle einen Spieltag', - 'OPTION_SEASON' => 'Wähle eine Saison', - 'OPTION_TEAM' => 'Wähle ein Team', - 'OPTION_USER' => 'Wähle einen Tipper', - 'OVERTIME' => 'Verlängerung', - 'ODDS' => 'Quoten', - - 'PARTICIPANTS_SHORT' => 'Teiln. ', - 'PAYOUT' => 'Auszahlung', - 'PAYOUT_WIN' => 'Gewinnauszahlung', - 'PENALTY' => 'n. Elfmeter', - 'PENALTY_SHORT' => 'EMS', - 'PLACE' => 'Platz', - 'PLAN' => 'Spielplan', - 'PLAYED' => 'Gespielt', - 'PLAYED_MATCHES' => 'Bisherige Spiele', - 'POINTS' => 'Punkte', - 'POINTS_DIFF' => 'Punktedifferenz', - 'POINTS_DIFFERENCE' => 'Punkte für die richtige Tordifferenz: %s', - 'POINTS_DIFFERENCE_DRAW' => 'Punkte für die richtige Tordifferenz (außer bei Unentschieden): %s', - 'POINTS_DOT' => 'Pk. ', - 'POINTS_HIT' => 'Für die Vorhersage des richtigen Ergebnisses (Volltreffer) gibt es %s Punkte. ', - 'POINTS_LAST' => 'Punkte des letzten für Nichttipper', - 'POINTS_NO_BET' => 'Sollte jemand vergessen zu tippen, erhält er automatisch die Punkte des Spieltagletzten. Dies können unter Umständen auch 0 Punkte sein. ', - 'POINTS_OF' => 'Die Punkte von', - 'POINTS_OF_ALL' => 'Die Punkte aller Tipper', - 'POINTS_SHORT' => 'Pkt', - 'POINTS_SHORT_DOT' => 'Pkt. ', - 'POINTS_TENDENCY' => 'Punkte für eine richtige Tendenz: %s', - 'POINTS_TENDENCY1' => 'Bei richtiger Tendenz wird je abweichendem Tor ein Punkt von der Volltreffer-Punktzahl abgezogen, aber mind. %s Punkte vergeben. Bei Unentschieden erfolgt der Abzug nur für die Differenz bei einer Mannschaft. ', - 'POINTS_TENDENCY2' => 'Bei richtiger Tendenz wird je abweichendem Tor ein Punkt von der Volltreffer-Punktzahl abgezogen, aber mind. %s Punkte vergeben. ', - 'POINTS_TOTAL' => 'Summe der Punkte der angezeigten Tipper', - 'POSSIBLE_POINTS' => 'mögl. Punkte', - 'PREDICTION_LEAGUE' => 'Tipprunde', - 'PREV_DELIVERY' => 'vorherige Tippabgabe', - 'PRINT' => 'Drucken', - 'PRINT_ALL' => 'Alle Tipps drucken', - 'PRINT_FOOTBALL' => 'Druckansicht', - 'PROVISIONALLY' => 'vorläufig', - - 'QUESTION' => 'Frage', - - 'RANK_FORECAST' => 'Pl.(VP)', - 'RANK_MATCHDAY' => 'Rangliste Spieltag', - 'RANK_SHORT' => 'Pl', - 'RANK_SHORT_DOT' => 'Pl. ', - 'RANK_TOTAL' => 'Gesamtrangliste', - 'RANK_TOTAL_MATCHDAY' => 'Gesamtrangliste %d. Spieltag', - 'RANK1' => '1.Pl. ', - 'RANK2' => '2.Pl. ', - 'RANK3' => '3.Pl. ', - 'RANKING' => 'Rangliste', - 'RANKING_ALL_TIME' => 'Ewige Rangliste', - 'RANKING_COMPARE' => 'Ranglistenvergleich', - 'RANKING_MATCHDAY' => 'Rangliste %d. Spieltag', - 'RANKS_OF' => 'Die Platzierungen von', - 'RANKS_OF_ALL' => 'Die Platzierungen der Tipper', - 'RANKS_SEASON' => 'Die Platzierungen pro Saison', - 'RESET' => 'Zurücksetzen', - 'REST_MATCHES' => 'Restprogramm', - 'RESULT' => 'Ergebnis', - 'RESULT_CLEARED' => '%d Ergebnis wurde erfolgreich zurückgesetzt. ', - 'RESULT_EXPLAIN' => 'Spielergebnisse (nach 90 Minuten)', - 'RESULT_SAVE' => '%d neuer Spielstand gespeichert. ', - 'RESULTS' => 'Ergebnisse', - 'RESULTS_CLEARED' => '%d Ergebnisse wurden erfolgreich zurückgesetzt. ', - 'RESULTS_SAVE' => '%d neue Spielstände gespeichert. ', - 'RESULTS_SHORT_DOT' => 'Erg. ', - 'RULES' => 'Regeln', - 'RULES_EXPLAIN' => 'Hier sind nur die technischen Rahmenbedingungen dieser Tipprunde aufgelistet. ', - - 'SAMESAVED' => 'Deine %d OMA-Tipps wurden erfolgreich gespeichert. Ein Tipp wurde automatisch modifiziert. ', - 'SAVE' => 'Speichern', - 'SCORED' => 'Gepunktet', - 'SEASON' => 'Saison', - 'SEC_LEG_ERROR' => 'Rückspiel existiert nicht', - 'SHOW_BETS' => 'Tipps anzeigen', - 'SHOW_CURRENT' => 'Zum aktuellen Spieltag', - 'SHOW_NEXT' => 'Zum nächsten Spieltag', - 'SHOW_PLAN' => 'Spielplan', - 'SHOW_PLAYED' => 'bisherige Spiele', - 'SHOW_PLAYED_AWAY' => 'bisherige Auswärtsspiele', - 'SHOW_PLAYED_HOME' => 'bisherige Heimspiele', - 'SHOW_PREV' => 'Zum vorherigen Spieltag', - 'SHOW_PROFILE' => 'Profil anzeigen', - 'SHOW_REST' => 'Restprogramm', - 'STAT_BET' => 'Stat. Tipps', - 'STAT_GAME_RESULTS' => 'Statistik zu den Spielergebnissen', - 'STAT_POINTS' => 'Stat. Punkte', - 'STAT_RESULTS' => 'Stat. Ergebnisse', - 'STATISTIC' => 'Statistik', - 'STATISTICS' => 'Statistiken', - 'STATS' => 'Status', - 'STATUS_BET_TEXT0' => 'Du hast folgenden Tipp für diesen Spieltag abgegeben:', - 'STATUS_TEXT0' => 'Tippabgabe bis ', - 'STATUS_TEXT1' => 'Die Abgabefrist für diesen Spieltag ist abgelaufen. ', - 'STATUS_TEXT2' => 'Einige Spiele haben an diesem Spieltag schon stattgefunden. ', - 'STATUS_TEXT3' => 'Alle Spiele dieses Spieltags wurden durchgeführt. ', - 'SWITCH_DESKTOP' => 'Zum Desktop-Style wechseln', - 'SWITCH_MOBILE' => 'Zum Mobile-Style wechseln', - - 'TABLE' => 'Tabelle', - 'TABLE_AWAY' => 'Auswärtstabelle', - 'TABLE_FORM' => 'Formtabelle', - 'TABLE_FORM_FROM' => '(Alle Spiele seit dem %d. Spieltag)', - 'TABLE_HOME' => 'Heimtabelle', - 'TABLE_TOTAL' => 'Gesamttabelle', - 'TEAM' => 'Team', - 'TEAM_FLAG' => 'Team-Wappen / Flagge ', - 'TEAM_ID' => 'Team-ID', - 'TEAM_ID_EXIST' => 'Diese Team-ID ist bereits vergeben und einem anderen Team zugeordnet!', - 'TEAM_IN_PLAN' => 'Das Team kann nicht gelöscht werden, da er sich noch im aktuellen Spielplan befindet!', - 'TEAM_IN_ROUND' => 'Das Team ist in Runde', - 'TEAM_NAME' => 'Teamname', - 'TEAM_NOT_EXIST' => 'Dieses Team existiert nicht!', - 'TEAM_SHORT' => 'Kurzbezeichnung des Teams', - 'TEND_RANK' => 'Veränderung gegenüber dem letzten Spieltag', - 'TEND_TEXT' => 'Tipp-Tendenz aller Tipper: Heimsieg-Unentschieden-Auswärtssieg', - 'TENDENCIES' => 'Tendenzen', - 'TENDENCY' => 'Tendenz', - 'TENDENCY_SHORT' => 'Tz', - 'THIS_MATCH' => 'Diese Begegnung', - 'TITLE_ALL_BETS' => 'Zu den Tipps der anderen Tipper', - 'TITLE_BET' => 'Zur Tippabgabe', - 'TITLE_FOOTBALL_BANK' => 'Zum Kontoauszug dieser Liga', - 'TITLE_MY_BETS' => 'Zur Statistik der Tipps', - 'TITLE_MY_CHART' => 'Zu den Platzierungverläufen', - 'TITLE_MY_KOEFF' => 'Punkte der anderen wenn meine Tipps korrekt sind', - 'TITLE_MY_POINTS' => 'Zur Statistik Punkte je Verein', - 'TITLE_MY_RANKS' => 'Zur Statistik der Saisonplatzierungen', - 'TITLE_MY_TABLE' => 'Zur Liga-Tabelle anhand der Tipps', - 'TITLE_RANK_MATCHDAY' => 'Zur Spieltagsrangliste dieser Liga', - 'TITLE_RANK_TOTAL' => 'Zur Gesamtrangliste dieser Liga', - 'TITLE_RANKING_All_TIME' => 'Zur ewigen Rangliste über alle Saisons', - 'TITLE_RANKING_COMPARE' => 'Zum Ranglistenvergleich mit den vorangehenden Saisons', - 'TITLE_RESULTS' => 'Spielergebnisse eingeben', - 'TITLE_STAT_POINTS' => 'Zur Statistik Punkte je Spieltag', - 'TITLE_STAT_RESULTS' => 'Zur Statistik der Spielergebnisse', - 'TITLE_TABLE' => 'Zur Tabelle der Liga', - 'TO_MATCHDAY' => 'Die Mannschaft bleibt bis zu diesem Spieltag im Wettbewerb ', - 'TOP20_POINTS' => 'Top 20 Punkte Saison', - 'TOP20_POINTS_ALL' => 'All time Top 20 Punkte', - 'TOTAL' => 'Total', - 'TOTAL_EXPLAIN' => 'Gesamtpunktzahl des Tippers zu den angezeigten Spielen', - 'TOTAL_RANK' => 'Gesamtrang', - 'TOTAL_RANKING' => 'Gesamtrangliste', - 'TOTAL_RANKS_OF_ALL' => 'Die Gesamtplatzierungen der Tipper', - 'TOTAL_SHORT' => 'Tt', - - 'UNDER_CONSTRUCTION' => 'Diese Tipprunde wurde noch nicht komplett eingerichtet', - 'UNDER_CONSTRUCTION_EXPLAIN' => 'Bitte warten Sie bis der Administrator alle Daten erfasst hat. ', - 'UPDATE_TEAM' => 'Die Teamdaten wurden in der Liga abgeändert. ', - 'USER_TABLE' => 'Die Tabelle nach den Tipps von', - - 'VIC_MAX_POINTS' => 'Spieltagssiege mit den höchsten Punktzahlen', - 'VIC_MIN_POINTS' => 'Spieltagssiege mit den geringsten Punktzahlen', - 'VICT_AWAY' => 'Auswärtssiege', - 'VICT_HOME' => 'Heimsiege', - 'VICTORY' => 'Sieg', - 'VIEW_BET_USER' => '1 Tipper', - 'VIEW_BET_USERS' => '%d Tipper', - 'VIEWING_LEAGUE' => 'Betrachtet die %s in der Tipprunde', - 'VIEWING_LEAGUE_BET' => 'Betrachtet seine %s Tipps in der Tipprunde', - 'VIEWING_LEAGUE_BET_POPUP' => 'Betrachtet die %s Tipps eines anderen', - 'VIEWING_LEAGUE_ALL_BETS' => 'Betrachtet "Alle Tipps" der %s in der Tipprunde', - 'VIEWING_LEAGUE_RESULTS' => 'Betrachtet die Ergebnisse der %s in der Tipprunde', - 'VIEWING_LEAGUE_TABLE' => 'Betrachtet die Tabelle der %s in der Tipprunde', - 'VIEWING_LEAGUE_RANKS_TOTAL' => 'Betrachtet die Gesamtrangliste der %s in der Tipprunde', - 'VIEWING_LEAGUE_RANKS_MATCHDAY' => 'Betrachtet die Rangliste des Spieltags der %s in der Tipprunde', - 'VIEWING_LEAGUE_BANK' => 'Betrachtet Kontoauszüge der %s in der Tipprunde', - 'VIEWING_LEAGUE_RULES_POPUP' => 'Betrachtet die Regeln der %s in der Tipprunde', - 'VIEWING_LEAGUE_DLOAD_EXPORT' => 'Exportiert Daten der %s aus der Tipprunde', - 'VIEWING_LEAGUE_ODDS' => 'Betrachtet die Quoten der %s in der Tipprunde', - 'VIEWING_LEAGUE_MY_BETS' => 'Betrachtet "Meine Tipps" der %s in der Tipprunde', - 'VIEWING_LEAGUE_MY_POINTS' => 'Betrachtet "Meine Punkte" der %s in der Tipprunde', - 'VIEWING_LEAGUE_MY_TABLE' => 'Betrachtet "Meine Tabelle" der %s in der Tipprunde', - 'VIEWING_LEAGUE_MY_RANK' => 'Betrachtet "Meine Platzierungen" der %s in der Tipprunde', - 'VIEWING_LEAGUE_MY_CHART' => 'Betrachtet "Mein Chart" der %s in der Tipprunde', - 'VIEWING_LEAGUE_MY_KOEFF' => 'Betrachtet "Mein Tippkoeffizient" der %s in der Tipprunde', - 'VIEWING_LEAGUE_HIST_POPUP' => 'Betrachtet Statistik einer Begegnung in der %s', - 'VIEWING_LEAGUE_VIEWPLAN_POPUP' => 'Betrachtet den %s Spielplan eines Vereins', - 'VIEWING_LEAGUE_STAT_RESULTS' => 'Betrachtet "Stat. Ergebnisse" der %s in der Tipprunde', - 'VIEWING_LEAGUE_STAT_POINTS' => 'Betrachtet "Stat. Punkte" der %s in der Tipprunde', - 'VIEWING_FOOTBALL' => 'Betrachtet die Tipprunde', - 'VIEWING_FOOTBALL_BET' => 'Betrachtet seine Tipps in der Tipprunde', - 'VIEWING_FOOTBALL_BET_POPUP' => 'Betrachtet die Tipps eines anderen in der Tipprunde', - 'VIEWING_FOOTBALL_ALL_BETS' => 'Betrachtet "Alle Tipps" in der Tipprunde', - 'VIEWING_FOOTBALL_RESULTS' => 'Betrachtet die Ergebnisse in der Tipprunde', - 'VIEWING_FOOTBALL_TABLE' => 'Betrachtet die Tabelle in der Tipprunde', - 'VIEWING_FOOTBALL_RANKS_TOTAL' => 'Betrachtet die Gesamtrangliste in der Tipprunde', - 'VIEWING_FOOTBALL_RANKS_MATCHDAY' => 'Betrachtet die Rangliste des Spieltags in der Tipprunde', - 'VIEWING_FOOTBALL_BANK' => 'Betrachtet Kontoauszüge in der Tipprunde', - 'VIEWING_FOOTBALL_RULES_POPUP' => 'Betrachtet die Regeln in der Tipprunde', - 'VIEWING_FOOTBALL_DLOAD_EXPORT' => 'Exportiert Daten aus der Tipprunde', - 'VIEWING_FOOTBALL_ODDS' => 'Betrachtet die Quoten in der Tipprunde', - 'VIEWING_FOOTBALL_MY_BETS' => 'Betrachtet "Meine Tipps" in der Tipprunde', - 'VIEWING_FOOTBALL_MY_POINTS' => 'Betrachtet "Meine Punkte" in der Tipprunde', - 'VIEWING_FOOTBALL_MY_TABLE' => 'Betrachtet "Meine Tabelle" in der Tipprunde', - 'VIEWING_FOOTBALL_MY_RANK' => 'Betrachtet "Meine Platzierungen" in der Tipprunde', - 'VIEWING_FOOTBALL_MY_CHART' => 'Betrachtet "Mein Chart" in der Tipprunde', - 'VIEWING_FOOTBALL_MY_KOEFF' => 'Betrachtet "Mein Tippkoeffizient" in der Tipprunde', - 'VIEWING_FOOTBALL_HIST_POPUP' => 'Betrachtet die Statistik einer Begegnung in der Tipprunde', - 'VIEWING_FOOTBALL_VIEWPLAN_POPUP' => 'Betrachtet den Spielplan eines Vereins in der Tipprunde', - 'VIEWING_FOOTBALL_STAT_RESULTS' => 'Betrachtet "Stat. Ergebnisse" in der Tipprunde', - 'VIEWING_FOOTBALL_STAT_POINTS' => 'Betrachtet "Stat. Punkte" in der Tipprunde', - 'VS' => 'Begegnungen', - - 'WIN' => 'Gewinn', - 'WIN_FOR' => 'Sieg für', - 'WIN_HITS' => 'Gewinn Volltreffer-Wertung', - 'WIN_HITS02' => 'Gewinn Volltreffer-Wertung mit Auswärtspunkten', - 'WIN_MATCHDAY' => 'Spieltagsgewinn', - 'WIN_SEASON' => 'Gewinn Saisonwertung', - 'WIN_SHORT' => 'S', - 'WINNER' => 'Sieger', - 'WINNER_MATCH_NO' => 'Sieger Spiel Nr. ', - 'WINS_MATCHDAY' => 'Gewinne Spieltag', - 'WINS_SEASON' => 'Gewinne Saison', - 'WITH_TEAM' => 'mit den Mannschaften', - 'WON' => 'Gewonnen', - 'WORSENED' => 'verschlechtert', - 'WRONG_GROUP' => 'Gruppenspiel zwischen Teams unterschiedlicher Gruppen. ', - - 'YEAR' => 'Jahr', - - 'ZERO_POINTS' => 'Nuller', - - /** - * DO NOT REMOVE or CHANGE - */ - 'FOOTBALL_COPY' => 'phpBB Extension - Football Prediction League Version %1s' -)); - -?> \ No newline at end of file + '2. E-Mail-Adresse', + 'FOOTB_EMAIL_EXPLAIN' => 'Sollen Erinnerungs-Mails an die Haupt E-Mail-Adresse versendet werden, falls Du vergessen hast zu tippen?', + 'FOOTB_REM_F' => 'Erinnerungs-Mail an die Haupt E-Mail-Adresse', + 'FOOTB_REM_F_EXPLAIN' => 'Erinnerungs-Mail an die Haupt E-Mail-Adresse', + 'FOOTB_REM_S' => 'Erinnerungs-Mail an die 2. E-Mail-Adresse', + 'FOOTB_REM_S_EXPLAIN' => 'Erinnerungs-Mail an die 2. E-Mail-Adresse', + + + 'ADD_NEW_TEAM' => 'Das Team wurde zur Liga hinzugefügt. ', + 'ALL_BETS' => 'Alle Tipps', + 'ALL_BETS_MATCHDAY' => 'Alle Tipps des %d. Spieltags', + 'ALL_LEAGUES' => 'Alle Ligen', + 'ALL_MATCHES' => 'Alle Spiele', + 'AWAY' => 'Auswärts', + 'AWAY_MATCHES' => 'Auswärtsspiele', + + 'BANDWIDTH' => 'Bandbreite', + 'BANK_OF' => 'Kontoauszug von', + 'BET' => 'Tippen', + 'BET_IN_TIME' => 'Die Spiele eines Spieltags können jeweils bis zum Spielbeginn getippt werden. Nach Spielbeginn werden die Tipps der anderen Tipper für alle sichtbar. ', + 'BET_KOEFF' => 'Tippkoeffizient ', + 'BET_OF' => 'Tipp', + 'BET_POINTS' => 'Einsatz', + 'BET_TIME' => 'Tipp Zeit', + 'BET_UNTIL_DELIVERY' => 'Die Spiele eines Spieltags können nur bis zum Abgabetermin des Spieltags getippt werden. Danach werden die Tipps der anderen Tipper für alle sichtbar. ', + 'BETS' => 'Tipps', + 'BETS_AND_RANKS' => 'Tipps und Ranglisten der', + 'BETS_OF' => 'Die Tipps von', + 'BETS_OF_ALL' => 'Die Tipps aller Tipper', + 'BETSAVED' => 'Dein Tipp wurde erfolgreich gespeichert. ', + 'BETSSAVED' => 'Deine %d Tipps wurden erfolgreich gespeichert. ', + 'BOOK_TYPE' => 'Buchungstyp', + + 'CASH_POINTS' => 'Verrechnung in Ultimate Points', + 'CHART_MATCHDAY' => 'Chart Platzierungen Spieltag', + 'CHART_OF' => 'Charts von', + 'CHART_POINTS' => 'Chart Punkte Spieltag', + 'CHART_TOTAL' => 'Chart Platzierungen Gesamt', + 'CNT_BET' => 'Anzahl der Spiele mit Tipp', + 'CNT_HIT' => 'Anzahl der Tipps mit richtigem Ergebnis', + 'CNT_HIT02' => 'Anzahl der Tipps mit richtigem Ergebnis, bei dem die Gastmannschaft gepunktet hat', + 'CNT_NO_BET' => 'Anzahl der Spiele ohne Tipp', + 'CNT_TEND' => 'Anzahl der Tipps mit richtiger Tendenz (ohne Volltreffer)', + 'CURR' => 'akt', + 'CURRENT_RESULT' => 'vorläufiges Ergebnis', + + 'DATE' => 'Datum', + 'DATES' => 'Termine', + 'DAY_POINTS_OF_ALL' => 'Die Spieltagspunkte der Tipper', + 'DAY_RANKS_OF_ALL' => 'Die Spieltagsplatzierungen der Tipper', + 'DELETE' => 'Löschen', + 'DELETE_TEAM' => 'Team löschen', + 'DELETE_TEAM_CHECK' => 'Dieses Team aus der Liga löschen', + 'DELETED_TEAM' => 'Das Team wurde aus der Liga gelöscht. ', + 'DELIVERY' => 'Tippabgabe', + 'DELIVERY_LIST' => 'Termine Tippabgabe', + 'DELIVERY_NOT_READY' => 'Zur Tippabgabe (Du hast noch nicht alle Spiele getippt)', + 'DELIVERY_READY' => 'Zur Tippabgabe (Du hast bereits alle Spiele getippt)', + 'DELIVERY_UNTIL' => 'Tippabgabe bis', + 'DEPOSIT' => 'Einzahlung', + 'DIFF_COUNT' => 'Häufigkeiten der Tordifferenzen', + 'DIRECTHITS' => 'Volltreffer', + 'DIRECTHITS_SHORT' => 'VT', + 'DIRECTHITS02' => 'Volltreffer 02', + 'DOWNLOAD' => 'Download', + 'DRAW' => 'Unentschieden', + 'DRAW_SHORT' => 'U', + 'DRAWING' => 'Auslosung', + + 'EUR' => 'EUR', + 'EVALUATION' => 'Wertung', + 'EXCEL_FILE' => 'Excel Datei', + 'EXPORT' => 'Export', + 'EXTRA_BET' => 'Sondertipp', + 'EXTRA_BET_SAVED' => '%d Sondertipp gespeichert. ', + 'EXTRA_BETS' => 'Sondertipps', + 'EXTRA_BETS_SAVED' => '%d Sondertipps gespeichert. ', + 'EXTRA_DIFFERENCE' => 'Volle Punktzahl abzgl. absoluter Differenz zwischen Ergebnis und Tipp', + 'EXTRA_HIT' => 'Volle Punktzahl bei korrektem Tipp, sonst 0 Punkte', + 'EXTRA_MULTI_HIT' => 'Volle Punktzahl bei Übereinstimmung mit einem Ergebnis, sonst 0 Punkte', + 'EXTRA_RESULT_DELETED' => '%d Sondertipp-Ergebnis gelöscht. ', + 'EXTRA_RESULT_SAVED' => '%d Sondertipp-Ergebnis gespeichert. ', + 'EXTRA_RESULTS_DELETED' => '%d Sondertipp-Ergebnisse gelöscht. ', + 'EXTRA_RESULTS_SAVED' => '%d Sondertipp-Ergebnisse gespeichert. ', + 'EXTRATIME' => 'Verlängerung', + 'EXTRATIME_SHORT' => 'n. Verl. ', + + 'FAN_OF' => 'Fan von', + 'FINAL_RESULT' => 'endgültiges Ergebnis', + 'FINALLY' => 'endgültig', + 'FIRSTLEG_ERROR' => 'Hinspiel existiert nicht', + 'FLOP20_POINTS' => 'Flop 20 Punkte Saison', + 'FLOP20_POINTS_ALL' => 'All time Flop 20 Punkte ', + 'FOOTBALL_ALL_LEAGUES' => 'Alle Ligen', + 'FOOTBALL_BALANCE' => 'Aktueller Saldo dieser Liga', + 'FOOTBALL_BALANCES' => 'Aktueller Gesamt-Saldo aller Ligen', + 'FOOTBALL_BANK' => 'Kontoauszug', + 'FOOTBALL_BET_POINTS' => 'Einsatz', + 'FOOTBALL_BOOK_TOTAL' => 'Buchungen', + 'FOOTBALL_DEPOSIT' => 'Einzahlung', + 'FOOTBALL_DESCRIPTION' => 'Hier ist dein Tipprunden Kontoauszug.

Es werden alle Einsätze, Gewinne, Ein- und Auszahlungen der gewählten Saison und Liga angezeigt.

', + 'FOOTBALL_DISABLED' => 'Diese Tipprunde ist derzeit wegen Wartungsarbeiten deaktiviert. ', + 'FOOTBALL_MATCHDAY' => 'Spieltag', + 'FOOTBALL_MENU' => 'Tipprunden Menü anzeigen', + 'FOOTBALL_NO_BOOKS' => 'Es sind keine Buchungen vorhanden. ', + 'FOOTBALL_PAYOUT' => 'Auszahlung', + 'FOOTBALL_RECORD' => 'Eintrag', + 'FOOTBALL_RECORDS' => 'Einträge', + 'FOOTBALL_REMOVE_INSTALL' => 'Du musst erst den Ordner install_football von deinem Webspace entfernen. Solange der Ordner vorhanden ist, bleibt die Football Extension deaktiviert!', + 'FOOTBALL_RULES' => 'Tipprunden-Regeln', + 'FOOTBALL_SEPARATOR_DECIMAL' => ',', + 'FOOTBALL_SEPARATOR_THOUSANDS' => '.', + 'FOOTBALL_TITLE' => 'BL Tipprunde', + 'FOOTBALL_WIN' => 'Gewinn', + 'FORECAST_PTS' => 'Vorhersagepunkte', + 'FORM' => 'Form', + 'FORMULA' => 'Formel', + 'FROM' => 'vom', + 'FROM_DAY_SEASON' => 'vom %1$d. Spieltag Saison %2$d', + + 'GAME_NOT_PLAYED' => '%d Spiel wurde noch nicht gespielt. ', + 'GAME_RESULTS' => 'Spielergebnisse', + 'GAMES_SHORT' => 'Sp', + 'GET_TEAM' => 'Vorhandenes Team übernehmen', + 'GOALS' => 'Tore', + 'GOALS_GUEST' => 'Tore Gast', + 'GOALS_HOME' => 'Tore Heim', + 'GOALS_AGAINST' => 'Gegentore', + 'GOALS_DIFF' => 'Tordifferenz', + 'GOALS_DIFF_SHORT' => 'TD', + 'GR' => 'Gr', + 'GROUP_GAMES' => 'Gruppenspiele in Gruppe', + 'GUESSED' => 'Getippt', + 'GUEST' => 'Gast', + + 'HIST_CHART' => 'Chart Verlauf Spieltage', + 'HITS' => 'Volltreffer', + 'HITS_SHORT' => 'VT', + 'HITS_SHORT2' => 'VT02', + 'HOME' => 'Heim', + 'HOME_MATCHES' => 'Heimspiele', + + 'IMPROVED' => 'verbessert', + + 'JOIN' => 'Dieser Tipprunde beitreten', + 'JOIN_BY_ADMIN' => 'Nur Administratoren können neue Tipper in diese Tipprunde aufnehmen. ', + 'JOIN_BY_USER' => 'Boardmitglieder können vor Beginn selbständig der Tipprunde beitreten. ', + 'JOIN_IN_SEASON' => 'Boardmitglieder können selbständig der laufenden Tipprunde beitreten. ', + 'JOIN_LEAGUE' => 'Willst du dieser Tipprunde beitreten?

Mit deinem Beitritt akzeptierst du die Teilnahmebedingungen dieser Tipprunde. ', + 'JOIN_MODE' => 'Beitritt in diese Tipprunde', + + 'KICK' => 'Anstoß', + 'KOEFF_OF' => 'Der Tippkoeffizient von ', + 'KOEFF_TEXT' => 'gibt an wieviel Punkte die anderen Tipper im Schnitt hätten, wenn dieser alle Spiele richtig haben würde. ', + + 'LAST_GAMES' => 'Die letzten Spiele', + 'LAST_GAMES_AWAY' => 'Die letzten Auswärtsspiele', + 'LAST_GAMES_HOME' => 'Die letzten Heimspiele', + 'LAST_RESULTS' => 'Die letzten Ergebnisse', + 'LAST_VISITORS' => 'Die letzten %s Besuche', + 'LEAGUE' => 'Liga', + 'LINK_PREDICTION_LEAGUE' => 'Zur Tipprunde', + 'LINK_RULES' => 'Die genauen Teilnahmebedingungen stehen im Forum. ', + 'LOGIN_EXPLAIN_EXPORT' => 'Um Tipps herunter zu laden, musst du registriert und angemeldet sein. ', + 'LOGIN_EXPLAIN_FOOTBALL' => 'Du musst registriert und angemeldet sein, um auf die Tipprunde zuzugreifen. ', + 'LOGS_COMMENT' => 'Kommentar', + 'LOOSER' => 'Verlierer', + 'LOOSER_MATCH_NO' => 'Verlierer Spiel Nr. ', + 'LOST' => 'Verloren', + 'LOST_SHORT' => 'N', + + 'MATCH_ERROR' => 'Spielpaarung nicht passend', + 'MATCH_STATS' => 'Statistiken zum Spiel', + 'MATCHDAY' => 'Spieltag', + 'MATCHDAY_FROM' => 'Spieltag von ', + 'MATCHDAY_SHORT' => 'SpTag', + 'MATCHDAY_TINY' => 'SpT', + 'MATCHDAY_TO' => 'Spieltag bis ', + 'MD_MAX_POINTS' => 'Spieltage mit den höchsten Durchschnittspunkten', + 'MD_MIN_POINTS' => 'Spieltage mit den geringsten Durchschnittspunkten', + 'MEMBER' => 'Tipper', + 'MIN90' => '90 Min. ', + 'MY_BETS' => 'Meine Tipps', + 'MY_CHART' => 'Mein Chart', + 'MY_KOEFF' => 'Mein Tippkoeffizient', + 'MY_POINTS' => 'Meine Punkte', + 'MY_RANK' => 'Meine Platzierungen', + 'MY_TABLE' => 'Meine Tabelle', + 'MYCHART_TEXT' => 'Eingangs werden neben den eigenen Daten, der Gesamtführende, ein Tipper aus dem Mittelfeld und der Letzte angezeigt. ', + + 'NAME' => 'Name', + 'NEXT_DELIVERY' => 'nächste Tippabgabe', + 'NEXT_DELIVERY_UNTIL' => 'Nächste Tippabgabe bis', + 'NO_AUTH_VIEW' => 'Du bist nicht berechtigt, die Tipprunden-Seiten anzusehen. ', + 'NO_AWAYMATCHES_TEAM' => 'Dieses Team hat in dieser Saison noch nicht auswärts gespielt. ', + 'NO_BET' => 'ohne Tipp', + 'NO_BETS' => 'Keine Tipps vorhanden!', + 'NO_BETS_SAVED' => 'Keine Tipps gespeichert!', + 'NO_CHANGES' => 'unverändert', + 'NO_DATA' => 'Keine Daten vorhanden!', + 'NO_GUEST_VIEW' => 'Gäste sind nicht berechtigt, die Tipprunden-Seiten anzusehen. ', + 'NO_GUESTTEAM' => 'Die von dir ausgewählte Gastmannschaft existiert nicht. ', + 'NO_HIST' => 'Zu diesen beiden Mannschaften existieren keine vorherigen Vergleiche in der Datenbank. ', + 'NO_HOMEMATCHES_TEAM' => 'Dieses Team hat in dieser Saison noch nicht zu Hause gespielt. ', + 'NO_HOMETEAM' => 'Die von dir ausgewählte Heimmannschaft existiert nicht. ', + 'NO_LEAGUE' => 'Die von dir ausgewählte Liga existiert nicht. ', + 'NO_LINK_RULES' => 'Die genauen Regeln und Teilnahmebedingungen wurden bislang noch nicht im Forum hinterlegt. ', + 'NO_MATCH' => 'Das von dir ausgewählte Spiel existiert nicht. ', + 'NO_MATCHDAY' => 'Der von dir ausgewählte Spieltag existiert nicht. ', + 'NO_MATCHES' => 'Keine Spiele vorhanden!', + 'NO_MATCHES_ON_MATCHDAY' => 'Der Spielplan wurde noch nicht erstellt. ', + 'NO_MATCHES_TEAM' => 'Dieses Team hat in dieser Saison noch keine Spiele bestritten. ', + 'NO_MEMBER' => 'Du bist kein Mitglied dieser Tipprunde!', + 'NO_MYBETS_ME' => 'Du bist kein Mitglied dieser Tipprunde!', + 'NO_PLAN' => 'Für diesen Spieltag wurden noch keine Spielpaarungen hinterlegt!', + 'NO_POINTS' => 'o. Wertung', + 'NO_RESULT' => 'Es gibt noch kein Spielergebnis. ', + 'NO_RESULT_SAVE' => 'Kein neues Spielergebnis gespeichert. ', + 'NO_RESULTS' => 'Es gibt noch keine Spielergebnisse. ', + 'NO_SEAS_PROFIT' => 'Es werden nur Spieltagsgewinne und keine Saisongewinne berücksichtigt (ab Saison 2003). ', + 'NO_SEASON' => 'Die von dir ausgewählte Saison existiert nicht. ', + 'NO_TABLE' => 'Es liegen noch keine Spielergebnisse vor oder diese Liga hat nur KO-Runden. ', + 'NO_TABLEFORM' => 'Seit diesem Spieltag wurden keine oder nur KO-Spiele gespielt, daher wird keine Formtabelle erstellt. ', + 'NO_TEAM_ID' => 'Das von dir ausgewählte Team existiert nicht. ', + 'NO_TEAM_NAME' => 'Teamname fehlt. Bitte einen Teamnamen angeben. ', + 'NO_TEAM_SHORTNAME' => 'Kurzbezeichnung des Teams fehlt. Bitte einen Kurznamen angeben. ', + 'NO_USER' => 'Du bist kein Teilnehmer dieser Tipprunde!', + 'NO_USERID' => 'Der von dir ausgewählte Tipper existiert nicht. ', + 'NO_USERS' => 'Diese Tipprunde hat keine Teilnehmer!', + 'NO_WIN_MATCHDAYS' => 'In dieser Tipprunde gibt es keine Spieltagsgewinne. ', + 'NO_WIN_SEASON' => 'In dieser Tipprunde gibt es keine Saisongewinne. ', + 'NOT_CLOSED' => 'Dieser Spieltag wurde noch nicht geschlossen. ', + 'NOT_PLANNED' => 'Dieser Spieltag wurde noch nicht ausgelost. ', + 'NOT_RATED' => 'nicht gewertet', + 'NR' => 'Nr', + 'NUMBER' => 'Anzahl', + + 'OPTION_LEAGUE' => 'Wähle eine Liga', + 'OPTION_MATCHDAY' => 'Wähle einen Spieltag', + 'OPTION_SEASON' => 'Wähle eine Saison', + 'OPTION_TEAM' => 'Wähle ein Team', + 'OPTION_USER' => 'Wähle einen Tipper', + 'OVERTIME' => 'Verlängerung', + 'ODDS' => 'Quoten', + + 'PARTICIPANTS_SHORT' => 'Teiln. ', + 'PAYOUT' => 'Auszahlung', + 'PAYOUT_WIN' => 'Gewinnauszahlung', + 'PENALTY' => 'n. Elfmeter', + 'PENALTY_SHORT' => 'EMS', + 'PLACE' => 'Platz', + 'PLAN' => 'Spielplan', + 'PLAYED' => 'Gespielt', + 'PLAYED_MATCHES' => 'Bisherige Spiele', + 'POINTS' => 'Punkte', + 'POINTS_DIFF' => 'Punktedifferenz', + 'POINTS_DIFFERENCE' => 'Punkte für die richtige Tordifferenz: %s', + 'POINTS_DIFFERENCE_DRAW' => 'Punkte für die richtige Tordifferenz (außer bei Unentschieden): %s', + 'POINTS_DOT' => 'Pk. ', + 'POINTS_HIT' => 'Für die Vorhersage des richtigen Ergebnisses (Volltreffer) gibt es %s Punkte. ', + 'POINTS_LAST' => 'Punkte des letzten für Nichttipper', + 'POINTS_NO_BET' => 'Sollte jemand vergessen zu tippen, erhält er automatisch die Punkte des Spieltagletzten. Dies können unter Umständen auch 0 Punkte sein. ', + 'POINTS_OF' => 'Die Punkte von', + 'POINTS_OF_ALL' => 'Die Punkte aller Tipper', + 'POINTS_SHORT' => 'Pkt', + 'POINTS_SHORT_DOT' => 'Pkt. ', + 'POINTS_TENDENCY' => 'Punkte für eine richtige Tendenz: %s', + 'POINTS_TENDENCY1' => 'Bei richtiger Tendenz wird je abweichendem Tor ein Punkt von der Volltreffer-Punktzahl abgezogen, aber mind. %s Punkte vergeben. Bei Unentschieden erfolgt der Abzug nur für die Differenz bei einer Mannschaft. ', + 'POINTS_TENDENCY2' => 'Bei richtiger Tendenz wird je abweichendem Tor ein Punkt von der Volltreffer-Punktzahl abgezogen, aber mind. %s Punkte vergeben. ', + 'POINTS_TOTAL' => 'Summe der Punkte der angezeigten Tipper', + 'POSSIBLE_POINTS' => 'mögl. Punkte', + 'PREDICTION_LEAGUE' => 'Tipprunde', + 'PREV_DELIVERY' => 'vorherige Tippabgabe', + 'PRINT' => 'Drucken', + 'PRINT_ALL' => 'Alle Tipps drucken', + 'PRINT_FOOTBALL' => 'Druckansicht', + 'PROVISIONALLY' => 'vorläufig', + + 'QUESTION' => 'Frage', + + 'RANK_FORECAST' => 'Pl.(VP)', + 'RANK_MATCHDAY' => 'Rangliste Spieltag', + 'RANK_SHORT' => 'Pl', + 'RANK_SHORT_DOT' => 'Pl. ', + 'RANK_TOTAL' => 'Gesamtrangliste', + 'RANK_TOTAL_MATCHDAY' => 'Gesamtrangliste %d. Spieltag', + 'RANK1' => '1.Pl. ', + 'RANK2' => '2.Pl. ', + 'RANK3' => '3.Pl. ', + 'RANKING' => 'Rangliste', + 'RANKING_ALL_TIME' => 'Ewige Rangliste', + 'RANKING_COMPARE' => 'Ranglistenvergleich', + 'RANKING_MATCHDAY' => 'Rangliste %d. Spieltag', + 'RANKS_OF' => 'Die Platzierungen von', + 'RANKS_OF_ALL' => 'Die Platzierungen der Tipper', + 'RANKS_SEASON' => 'Die Platzierungen pro Saison', + 'RESET' => 'Zurücksetzen', + 'REST_MATCHES' => 'Restprogramm', + 'RESULT' => 'Ergebnis', + 'RESULT_CLEARED' => '%d Ergebnis wurde erfolgreich zurückgesetzt. ', + 'RESULT_EXPLAIN' => 'Spielergebnisse (nach 90 Minuten)', + 'RESULT_SAVE' => '%d neuer Spielstand gespeichert. ', + 'RESULTS' => 'Ergebnisse', + 'RESULTS_CLEARED' => '%d Ergebnisse wurden erfolgreich zurückgesetzt. ', + 'RESULTS_SAVE' => '%d neue Spielstände gespeichert. ', + 'RESULTS_SHORT_DOT' => 'Erg. ', + 'RULES' => 'Regeln', + 'RULES_EXPLAIN' => 'Hier sind nur die technischen Rahmenbedingungen dieser Tipprunde aufgelistet. ', + + 'SAMESAVED' => 'Deine %d OMA-Tipps wurden erfolgreich gespeichert. Ein Tipp wurde automatisch modifiziert. ', + 'SAVE' => 'Speichern', + 'SAVE_PREDICTION' => 'Tipps speichern', + 'SAVE_RESULTS' => 'Ergebnisse speichern', + 'SCORED' => 'Gepunktet', + 'SEASON' => 'Saison', + 'SEC_LEG_ERROR' => 'Rückspiel existiert nicht', + 'SHOW_BETS' => 'Tipps anzeigen', + 'SHOW_CURRENT' => 'Zum aktuellen Spieltag', + 'SHOW_NEXT' => 'Zum nächsten Spieltag', + 'SHOW_PLAN' => 'Spielplan', + 'SHOW_PLAYED' => 'bisherige Spiele', + 'SHOW_PLAYED_AWAY' => 'bisherige Auswärtsspiele', + 'SHOW_PLAYED_HOME' => 'bisherige Heimspiele', + 'SHOW_PREV' => 'Zum vorherigen Spieltag', + 'SHOW_PROFILE' => 'Profil anzeigen', + 'SHOW_REST' => 'Restprogramm', + 'STAT_BET' => 'Stat. Tipps', + 'STAT_GAME_RESULTS' => 'Statistik zu den Spielergebnissen', + 'STAT_POINTS' => 'Stat. Punkte', + 'STAT_RESULTS' => 'Stat. Ergebnisse', + 'STATISTIC' => 'Statistik', + 'STATISTICS' => 'Statistiken', + 'STATS' => 'Status', + 'STATUS_BET_TEXT0' => 'Du hast folgenden Tipp für diesen Spieltag abgegeben:', + 'STATUS_TEXT0' => 'Tippabgabe bis ', + 'STATUS_TEXT1' => 'Die Abgabefrist für diesen Spieltag ist abgelaufen. ', + 'STATUS_TEXT2' => 'Einige Spiele haben an diesem Spieltag schon stattgefunden. ', + 'STATUS_TEXT3' => 'Alle Spiele dieses Spieltags wurden durchgeführt. ', + 'SWITCH_DESKTOP' => 'Zum Desktop-Style wechseln', + 'SWITCH_MOBILE' => 'Zum Mobile-Style wechseln', + + 'TABLE' => 'Tabelle', + 'TABLE_AWAY' => 'Auswärtstabelle', + 'TABLE_FORM' => 'Formtabelle', + 'TABLE_FORM_FROM' => '(Alle Spiele seit dem %d. Spieltag)', + 'TABLE_HOME' => 'Heimtabelle', + 'TABLE_TOTAL' => 'Gesamttabelle', + 'TEAM' => 'Team', + 'TEAM_FLAG' => 'Team-Wappen / Flagge ', + 'TEAM_ID' => 'Team-ID', + 'TEAM_ID_EXIST' => 'Diese Team-ID ist bereits vergeben und einem anderen Team zugeordnet!', + 'TEAM_IN_PLAN' => 'Das Team kann nicht gelöscht werden, da er sich noch im aktuellen Spielplan befindet!', + 'TEAM_IN_ROUND' => 'Das Team ist in Runde', + 'TEAM_NAME' => 'Teamname', + 'TEAM_NOT_EXIST' => 'Dieses Team existiert nicht!', + 'TEAM_SHORT' => 'Kurzbezeichnung des Teams', + 'TEND_RANK' => 'Veränderung gegenüber dem letzten Spieltag', + 'TEND_TEXT' => 'Tipp-Tendenz aller Tipper: Heimsieg-Unentschieden-Auswärtssieg', + 'TENDENCIES' => 'Tendenzen', + 'TENDENCY' => 'Tendenz', + 'TENDENCY_SHORT' => 'Tz', + 'THIS_MATCH' => 'Diese Begegnung', + 'TITLE_ALL_BETS' => 'Zu den Tipps der anderen Tipper', + 'TITLE_BET' => 'Zur Tippabgabe', + 'TITLE_FOOTBALL_BANK' => 'Zum Kontoauszug dieser Liga', + 'TITLE_MY_BETS' => 'Zur Statistik der Tipps', + 'TITLE_MY_CHART' => 'Zu den Platzierungverläufen', + 'TITLE_MY_KOEFF' => 'Punkte der anderen wenn meine Tipps korrekt sind', + 'TITLE_MY_POINTS' => 'Zur Statistik Punkte je Verein', + 'TITLE_MY_RANKS' => 'Zur Statistik der Saisonplatzierungen', + 'TITLE_MY_TABLE' => 'Zur Liga-Tabelle anhand der Tipps', + 'TITLE_RANK_MATCHDAY' => 'Zur Spieltagsrangliste dieser Liga', + 'TITLE_RANK_TOTAL' => 'Zur Gesamtrangliste dieser Liga', + 'TITLE_RANKING_All_TIME' => 'Zur ewigen Rangliste über alle Saisons', + 'TITLE_RANKING_COMPARE' => 'Zum Ranglistenvergleich mit den vorangehenden Saisons', + 'TITLE_RESULTS' => 'Spielergebnisse eingeben', + 'TITLE_STAT_POINTS' => 'Zur Statistik Punkte je Spieltag', + 'TITLE_STAT_RESULTS' => 'Zur Statistik der Spielergebnisse', + 'TITLE_TABLE' => 'Zur Tabelle der Liga', + 'TO_MATCHDAY' => 'Die Mannschaft bleibt bis zu diesem Spieltag im Wettbewerb ', + 'TOP20_POINTS' => 'Top 20 Punkte Saison', + 'TOP20_POINTS_ALL' => 'All time Top 20 Punkte', + 'TOTAL' => 'Total', + 'TOTAL_EXPLAIN' => 'Gesamtpunktzahl des Tippers zu den angezeigten Spielen', + 'TOTAL_RANK' => 'Gesamtrang', + 'TOTAL_RANKING' => 'Gesamtrangliste', + 'TOTAL_RANKS_OF_ALL' => 'Die Gesamtplatzierungen der Tipper', + 'TOTAL_SHORT' => 'Tt', + + 'UNDER_CONSTRUCTION' => 'Diese Tipprunde wurde noch nicht komplett eingerichtet', + 'UNDER_CONSTRUCTION_EXPLAIN' => 'Bitte warten Sie bis der Administrator alle Daten erfasst hat. ', + 'UPDATE_TEAM' => 'Die Teamdaten wurden in der Liga abgeändert. ', + 'USER_TABLE' => 'Die Tabelle nach den Tipps von', + + 'VIC_MAX_POINTS' => 'Spieltagssiege mit den höchsten Punktzahlen', + 'VIC_MIN_POINTS' => 'Spieltagssiege mit den geringsten Punktzahlen', + 'VICT_AWAY' => 'Auswärtssiege', + 'VICT_HOME' => 'Heimsiege', + 'VICTORY' => 'Sieg', + 'VIEW_BET_USER' => '1 Tipper', + 'VIEW_BET_USERS' => '%d Tipper', + 'VIEWING_LEAGUE' => 'Betrachtet die %s in der Tipprunde', + 'VIEWING_LEAGUE_BET' => 'Betrachtet seine %s Tipps in der Tipprunde', + 'VIEWING_LEAGUE_BET_POPUP' => 'Betrachtet die %s Tipps eines anderen', + 'VIEWING_LEAGUE_ALL_BETS' => 'Betrachtet "Alle Tipps" der %s in der Tipprunde', + 'VIEWING_LEAGUE_RESULTS' => 'Betrachtet die Ergebnisse der %s in der Tipprunde', + 'VIEWING_LEAGUE_TABLE' => 'Betrachtet die Tabelle der %s in der Tipprunde', + 'VIEWING_LEAGUE_RANKS_TOTAL' => 'Betrachtet die Gesamtrangliste der %s in der Tipprunde', + 'VIEWING_LEAGUE_RANKS_MATCHDAY' => 'Betrachtet die Rangliste des Spieltags der %s in der Tipprunde', + 'VIEWING_LEAGUE_BANK' => 'Betrachtet Kontoauszüge der %s in der Tipprunde', + 'VIEWING_LEAGUE_RULES_POPUP' => 'Betrachtet die Regeln der %s in der Tipprunde', + 'VIEWING_LEAGUE_DLOAD_EXPORT' => 'Exportiert Daten der %s aus der Tipprunde', + 'VIEWING_LEAGUE_ODDS' => 'Betrachtet die Quoten der %s in der Tipprunde', + 'VIEWING_LEAGUE_MY_BETS' => 'Betrachtet "Meine Tipps" der %s in der Tipprunde', + 'VIEWING_LEAGUE_MY_POINTS' => 'Betrachtet "Meine Punkte" der %s in der Tipprunde', + 'VIEWING_LEAGUE_MY_TABLE' => 'Betrachtet "Meine Tabelle" der %s in der Tipprunde', + 'VIEWING_LEAGUE_MY_RANK' => 'Betrachtet "Meine Platzierungen" der %s in der Tipprunde', + 'VIEWING_LEAGUE_MY_CHART' => 'Betrachtet "Mein Chart" der %s in der Tipprunde', + 'VIEWING_LEAGUE_MY_KOEFF' => 'Betrachtet "Mein Tippkoeffizient" der %s in der Tipprunde', + 'VIEWING_LEAGUE_HIST_POPUP' => 'Betrachtet Statistik einer Begegnung in der %s', + 'VIEWING_LEAGUE_VIEWPLAN_POPUP' => 'Betrachtet den %s Spielplan eines Vereins', + 'VIEWING_LEAGUE_STAT_RESULTS' => 'Betrachtet "Stat. Ergebnisse" der %s in der Tipprunde', + 'VIEWING_LEAGUE_STAT_POINTS' => 'Betrachtet "Stat. Punkte" der %s in der Tipprunde', + 'VIEWING_FOOTBALL' => 'Betrachtet die Tipprunde', + 'VIEWING_FOOTBALL_BET' => 'Betrachtet seine Tipps in der Tipprunde', + 'VIEWING_FOOTBALL_BET_POPUP' => 'Betrachtet die Tipps eines anderen in der Tipprunde', + 'VIEWING_FOOTBALL_ALL_BETS' => 'Betrachtet "Alle Tipps" in der Tipprunde', + 'VIEWING_FOOTBALL_RESULTS' => 'Betrachtet die Ergebnisse in der Tipprunde', + 'VIEWING_FOOTBALL_TABLE' => 'Betrachtet die Tabelle in der Tipprunde', + 'VIEWING_FOOTBALL_RANKS_TOTAL' => 'Betrachtet die Gesamtrangliste in der Tipprunde', + 'VIEWING_FOOTBALL_RANKS_MATCHDAY' => 'Betrachtet die Rangliste des Spieltags in der Tipprunde', + 'VIEWING_FOOTBALL_BANK' => 'Betrachtet Kontoauszüge in der Tipprunde', + 'VIEWING_FOOTBALL_RULES_POPUP' => 'Betrachtet die Regeln in der Tipprunde', + 'VIEWING_FOOTBALL_DLOAD_EXPORT' => 'Exportiert Daten aus der Tipprunde', + 'VIEWING_FOOTBALL_ODDS' => 'Betrachtet die Quoten in der Tipprunde', + 'VIEWING_FOOTBALL_MY_BETS' => 'Betrachtet "Meine Tipps" in der Tipprunde', + 'VIEWING_FOOTBALL_MY_POINTS' => 'Betrachtet "Meine Punkte" in der Tipprunde', + 'VIEWING_FOOTBALL_MY_TABLE' => 'Betrachtet "Meine Tabelle" in der Tipprunde', + 'VIEWING_FOOTBALL_MY_RANK' => 'Betrachtet "Meine Platzierungen" in der Tipprunde', + 'VIEWING_FOOTBALL_MY_CHART' => 'Betrachtet "Mein Chart" in der Tipprunde', + 'VIEWING_FOOTBALL_MY_KOEFF' => 'Betrachtet "Mein Tippkoeffizient" in der Tipprunde', + 'VIEWING_FOOTBALL_HIST_POPUP' => 'Betrachtet die Statistik einer Begegnung in der Tipprunde', + 'VIEWING_FOOTBALL_VIEWPLAN_POPUP' => 'Betrachtet den Spielplan eines Vereins in der Tipprunde', + 'VIEWING_FOOTBALL_STAT_RESULTS' => 'Betrachtet "Stat. Ergebnisse" in der Tipprunde', + 'VIEWING_FOOTBALL_STAT_POINTS' => 'Betrachtet "Stat. Punkte" in der Tipprunde', + 'VS' => 'Begegnungen', + + 'WIN' => 'Gewinn', + 'WIN_FOR' => 'Sieg für', + 'WIN_HITS' => 'Gewinn Volltreffer-Wertung', + 'WIN_HITS02' => 'Gewinn Volltreffer-Wertung mit Auswärtspunkten', + 'WIN_MATCHDAY' => 'Spieltagsgewinn', + 'WIN_SEASON' => 'Gewinn Saisonwertung', + 'WIN_SHORT' => 'S', + 'WINNER' => 'Sieger', + 'WINNER_MATCH_NO' => 'Sieger Spiel Nr. ', + 'WINS_MATCHDAY' => 'Gewinne Spieltag', + 'WINS_SEASON' => 'Gewinne Saison', + 'WITH_TEAM' => 'mit den Mannschaften', + 'WON' => 'Gewonnen', + 'WORSENED' => 'verschlechtert', + 'WRONG_GROUP' => 'Gruppenspiel zwischen Teams unterschiedlicher Gruppen. ', + + 'YEAR' => 'Jahr', + + 'ZERO_POINTS' => 'Nuller', + + /** + * DO NOT REMOVE or CHANGE + */ + 'FOOTBALL_COPY' => 'phpBB Extension - Football Prediction League Version %1s' +)); diff --git a/language/de/help_football.php b/language/de/help_football.php index e7418e3..61acd31 100644 --- a/language/de/help_football.php +++ b/language/de/help_football.php @@ -1,531 +1,530 @@ - array( - array( - 0 => '--', - 1 => 'Erste Schritte' - ), - array( - 0 => 'Wie installiere ich eine Liga?', - 1 => 'Bei der Installation werden keine Spielpläne mitgeliefert. Spielpläne können über "Spielplan aktualisieren" in die Datenbank geladen werden. -Näheres dazu siehe unter diesem Stichwort. -Nach dem Einspielen eines Spielplans sollten die Einstellungen der Liga bearbeitet werden und die Abgabetermine der Spieltage überprüft und ggf. angepasst -werden. Unter Liga verwalten können anschließend einzelne Tipper oder Mitglieder einer bestehenden Gruppe in die Tipprunde aufgenommen werden. ' - ), - array( - 0 => 'Weitere Einstellungen?', - 1 => 'Für den laufenden Betrieb der Tipprunde(n) sollten die administrativen Berechtigungen überprüft bzw. entsprechenden Mitgliedern zugeordnet -werden. Zum automatischen Versand von Erinnerungs-Mails kann man einen externen Cornjob einrichten. Näheres dazu in den einzelnen Punkten dieser Hilfe. ' - ), - array( - 0 => '--', - 1 => 'Allgemeines' - ), - array( - 0 => 'Welche Tipprunden werden unterstützt?', - 1 => 'Alle Tipprunden, die auf eine Meisterschafts- oder KO-Runde beruhen. Also Fußball-Ligen, Pokal-Wettbewerbe, Europa League, Champions League, -EM oder WM. Auch ein Mix aus unterschiedlichen Wettbewerben wird unterstützt, dabei zeigen jedoch die Tabelle und die Statistiken nichts sinnvolles an. -Lediglich durch den Punkte-Modus ist die Extension für Handball und andere Ligen nicht geeignet.' - ), - array( - 0 => 'Welche Rechte existieren in diesem Extension', - 1 => 'a_football_results = Kann endgültige Spielergebnisse eingeben, ändern und löschen
-a_football_editbets = Kann im Adminbereich alle Tipps ansehen, eingeben und ändern
-a_football_plan = Kann Spielpläne erstellen und ändern. Spielplan verwalten (ohne löschen) und KO-Runden Gewinner ermitteln
-a_football_delete = Kann Spielpläne und Teile davon löschen. Löschberechtigung in der Spielplan-Verwaltung
-a_football_config = Kann Tipprundeneinstellung ändern: Tipprunden-Konfiguration
-a_football_points = Kann Punkte für Ultimate Points eingeben, ändern und löschen
-u_use_football = Kann Football Extension verwenden.' - ), - array( - 0 => 'Welche Rollen existieren in diesem Extension?', - 1 => 'Der Football-Administrator besitzt nur das Recht endgültige Spielergebnisse einzugeben, sonst keinerlei Adminrechte. ' - ), - array( - 0 => 'Welche Rechte wurden bestehenden Rollen zugewiesen?', - 1 => 'Der Standard-Administrator Kann endgültige Spielergebnisse eingeben, ändern und löschen. -Der Umfassende Administrator hat sämtliche Rechte des MODS.' - ), - array( - 0 => 'Welche Benutzerdefinierten Profilfelder wurden vom Extension erzeugt?', - 1 => 'footb_email = zusätzliche 2. E-Mail-Adresse für Erinnerungsmails
-footb_rem_f = Schalter für Versand der Erinnerungsmail an die Haupt-E-Mail-Adresse.
-footb_rem_s = Schalter für Versand der Erinnerungsmail an die 2. E-Mail-Adresse.' - ), - array( - 0 => 'Wie aktiviere ich die Erinnerungs-Mail Funktion?', - 1 => 'Im Adminbereich muss unter den Tipprunden-Funktionalitäten der Cronjob für die Tipp-Erinnerungsmail aktiviert und der Termin der nächsten Ausführung gesetzt werden.
-Der Cron-Job wird beim ersten Zugriff nach diesem Termin ausgeführt und sendet eine Erinnerungs-Mail für die fehlenden Tippabgaben, die im Zeitraum 24-48 Stunden nach dem Cron-Termin liegen. -Falls nicht ausreichend Zugriffe auf die Seite erfolgen, sollte der Cronjob automatisch z.B. von www.cronjob.de durch das Script -"DEINE_URL/cron.php?cron_type=football.football.cron.task.football_remember" gestartet werden.
-Das versenden der Email erfolgt nur einmalig. Nach Aufruf des Cronjobs wird der nächste automatisch für den Folgetag eingeplant. -Mit den angehängten parametern "&mode=test&days=n" kann der Versand für die um n Tage versetzte Tippabgabe getestet werden. Dabei werden nur Mails an Board-Email-Adresse versendet.' - ), - array( - 0 => 'Wer bekommt eine Erinnerungsmail', - 1 => 'Bei aktivierter Erinnerungsmail-Funktion, bekommen alle Tipper, die am abzugebenden Spieltag ein Spiel mit Status 0 nicht vollständig getippt -haben eine Erinnerungsmail an die dazu freigegebene(n) E-Mail-Adresse(n).
-Zusätzlich wird eine E-Mail mit der Empfängerliste an die Board-E-Mail-Adresse versendet (aber nur wenn auch mindestens eine Erinnerungsmail versendet -wurde).
-Der Vorgang wird zur Dokumentation im Log protokolliert.' - ), - array( - 0 => '--', - 1 => 'Tippabgabefrist' - ), - array( - 0 => 'Wann wird die Tippabgabe gesperrt?', - 1 => 'Sobald jemand Daten aus den Tipprunden abruft wird überprüft, ob Spieltage mit Status 0 und abgelaufener Abgabezeit existieren. Die zu -schließenden Spiele werden mit Status 1 versehen und sind somit nicht mehr tippbar.' - ), - array( - 0 => 'Die Spieltage bzw. Spiele werden nicht zum Abgabezeitpunkt geschlossen', - 1 => 'Der Abgabezeitpunkt wird mit der aktuellen Host Zeit + Zeitverschiebung zwischen Board- und Host-Zeitzone verglichen. Wenn dein Hoster sich -in der eingestellten Board-Zeitzone befindet, muss diese Zeitzone auch in den Tipprunden-Einstellungen hinterlegt sein. Wenn nicht ist hier die -entsprechende Zeitzone zu wählen.' - ), - array( - 0 => 'Ich kann den Abgabezeitpunkt eines Spieltags nicht bearbeiten', - 1 => 'Du hast bei den Liga-Einstellungen "Tippabgabe bis zum jeweiligen Spielbeginn" gewählt. Dadurch wird die Abgabezeit automatisch anhand der -Spiele verwaltet. Wenn du noch bei der Spielplanerstellung bist, solltest "Tippabgabe bis zum jeweiligen Spielbeginn" erst nach Erfassung des gesamten -Spielplans einstellen. Dann werden die Abgabezeiten automatisch korrigiert.' - ), - array( - 0 => 'Das Spiel hat schon begonnen, aber ich kann noch tippen', - 1 => 'Der Spieltag wurde noch nicht geschlossen, da der Abgabezeitpunkt noch in der Zukunft liegt; das erste Spiel hat aber bereits begonnen. Beim -Speichern der Abgabezeit im Spieltag wird momentan die Zeit nicht mit den Spielzeiten abgeglichen und überprüft.' - ), - array( - 0 => 'Überprüfungen beim Speichern der Spieltags-Einstellungen', - 1 => 'Beim Abspeichern eines Spieltags wird überprüft, ob der Status des Spieltags korrigiert werden muss. Liegt der 1. Abgabetermin in der -Zukunft wird der Status des Spieltags auf 0 gesetzt, liegt er in der Vergangenheit, wird der Status je nach Status der dazugehörigen Spiele auf 1, 2 -oder 3 gesetzt.' - ), - array( - 0 => 'Wie stelle ich weitere Abgabetermine bei einem Spieltag ein?', - 1 => 'Dies geht nur, wenn "Tippabgabe bis zum jeweiligen Spielbeginn" bei den Liga-Einstellungen auf Nein steht. Dann können zwei weitere -Abgabetermine beim Spieltag hinterlegt werden. Die Spiele, die zum 2. Abgabetermin geschlossen werden sollen, müssen im Spielplan manuell auf Status -1 -gesetzt werden. Für den 3. Abgabetermin ist der Status der Spiele manuell auf -2 zu setzen.' - ), - array( - 0 => 'Was bedeutet "Tippabgabe bis zum jeweiligen Spielbeginn"', - 1 => 'In diesem Modus kann jedes Spiel einzeln bis zum Spielbeginn getippt werden. Beim Schließen der Tippabgabe eines Spiels wird ermittelt, ob -noch "offene" Spiele im Spieltag existieren. Wenn ja, wird die Abgabezeit des Spieltags auf den nächsten Spielbeginn gesetzt, sonst bleibt sie auf dem -letzten Spielbeginn stehen und der Spieltag bekommt den Staus 1. Die Tippabgabe zu einer festen Zeit vor jedem Spiel wird derzeit nicht unterstützt.' - ), - array( - 0 => '--', - 1 => 'Spielbetrieb' - ), - array( - 0 => 'Wie speichere ich endgültige Spielergebnisse?', - 1 => 'Endgültige Spielergebnisse können nur im Adminbereich eingegeben bzw. bestätigt werden. Dabei werden nur die Ergebnisse der ausgewählten -Spiele abgespeichert.' - ), - array( - 0 => 'Warum kann ich keine Spielergebnisse eingeben?', - 1 => 'Wenn bei den Tipprunden Funktionalitäten "Eingabe endgültiger Spielergebnisse erst nach Spielende" auf Ja gesetzt wurde, können die -Spielergebnisse erst nach Spielende (90 Minuten) eingegeben werden.
-Für Spiele mit Status 0 können keine Ergebnisse eingegeben werden. Hier ist zuerst der Abgabetermin des Spieltags oder der Spielbeginn des Spiels -zu kontrollieren und gegebenenfalls anzupassen, damit die Tippabgabe zu diesem Spiel automatisch gesperrt wird und das Spiel den Status 1 zur -Ergebniseingabe erhält.' - ), - array( - 0 => 'Ich möchte einen Spielzwischenstand speichern', - 1 => 'Spielzwischenstände können nur im Userbereich eingegeben werden. Im Adminbereich werden alle Ergebnisse als endgültige oder nicht -gewertete Ergebnisse nach 90 Minuten abgespeichert. ' - ), - array( - 0 => 'Warum bekomme ich beim Aufruf manchmal eine andere Liga angezeigt?', - 1 => 'Beim Aufruf der Seite "Spielergebnisse eingeben" wird automatisch die Liga angezeigt, die am längsten auf eine Ergebniseingabe wartet -bzw. deren Spiele als nächstes enden. Warten Spiele aus unterschiedlichen Ligen auf eine Ergebniseingabe bzw. -bestätigung, so gelangt man nach -Ergebniseingabe durch erneutes Aufrufen der Seite zu den nächsten "wartenden" Spielen.' - ), - array( - 0 => 'Wie wird der Spieltagsstatus beim Speichern der Ergebnisse gesetzt?', - 1 => 'Nach abspeichern der Ergebnisse wird der Status des Spieltags entsprechend der Spiele gesetzt. Haben alle Spiele einen Status > 2, wird der -Spieltagsstatus auf 3 gesetzt und der Spieltag somit abgeschlossen. Sonst wird der Spieltagsstatus auf den minimalen Status >= 0 der dazugehörigen -Spiele gesetzt.' - ), - array( - 0 => 'Wann werden die Ranglisten aktualisiert?', - 1 => 'Nach abspeichern der Ergebnisse und setzen des Spieltagsstatus im User- oder Adminbereich wird die Spieltagsrangliste des entsprechenden -Spieltags abgespeichert. Anschließend wird die Platzierung in der Gesamtrangliste berechnet und ebenfalls im aktuelle Spieltag abgespeichert. -Die restlichen Daten der Gesamtrangliste werden nicht abgespeichert, sondern immer aktuell berechnet.
-Bei Spieltagen mit Status 0 oder 1 wird die Rangliste zu diesem Spieltag gelöscht. Sonst wird der Status der Rangliste analog zum Status des Spieltages -gesetzt.' - ), - array( - 0 => 'Wie lösche ich Spielergebnisse?', - 1 => 'Einfach ein Ergebnisfeld löschen oder die Löschen Option wählen und schon werden alle Ergebnisfelder gelöscht. Der Status des Spiels wird -dabei auf 1 zurückgesetzt.' - ), - array( - 0 => 'Wie nehme ich einzelne Spiele aus der Wertung?', - 1 => 'Durch setzten des Optionsschalters "O. Wertung" vor dem Speichern, wird das Spiel aus der Wertung genommen, so dass niemand Punkte dafür -erhält. Liegt noch kein Ergebnis vor, wird das Spiel mit Status 4 gespeichert, sonst mit Status 6. Wird im Userbereich ein Ergebnis zu einem Spiel mit -Status 4 eingegeben, wird der Status 5 gesetzt. ' - ), - array( - 0 => 'Wer kann alle Tipps sehen?', - 1 => 'Benutzer mit Adminrecht a_football_editbets = "Kann im Adminbereich alle Tipps ansehen, eingeben und ändern" können im Adminbereich alle -Tipps sehen und auch editieren.' - ), - array( - 0 => 'Was ist bei der Tippeingabe im Adminbereich zu beachten?', - 1 => 'Werden Tipps zu Spielen mit bereits vorliegenden Ergebnissen abgespeichert, wird die Rangliste nicht automatisch aktualisiert. Die -Ranglisten berücksichtigen den neuen Tipp nicht. In der Anzeige der Einzeltipps und "Alle Tipps" werden die geänderten Tipps und die daraus -resultierenden Punkte angezeigt. Wenn die geänderten Tipps in die Rangliste einfließen sollen, sind die Ergebnisse des Spieltags und der nachfolgenden -Spieltage erneut abzuspeichern, so dass die Ranglisten neu berechnet werden. Spiele müssen dabei nicht ausgewählt oder verändert werden. ' - ), - array( - 0 => 'Wozu dient "KO-Runden Gewinner ermitteln"?', - 1 => 'Damit in der Spielplanverwaltung nur Teams zur Auswahl stehen, die auch die entsprechende Runde erreicht haben, muss der Spieltag beim Team -eingetragen werden, bis zu dem das Team im Wettbewerb verbleibt. Dies, und die Überleitung der 3. Platzierten Teams der Champions League Gruppenphase in -die Europa League, kann auf dieser Seite automatisch durchgeführt werden. Da insbesondere bei der Berechnung der Gruppen-Platzierung nicht alle Regeln im -System berücksichtigt wurden, sind eventuelle Fehler manuell zu korrigieren. Dazu werden die betroffenen Mannschaften in der Statusmeldung protokolliert.' - ), - array( - 0 => 'Wie ermittle ich die Gewinner einer KO-Runde?', - 1 => 'Bei einzelnen KO-Spielen oder KO-Runden mit Hin- und Rückspiel reicht es die Spieltage zur Ermittlung auszuwählen, an denen diese Spiele -stattgefunden haben. Als Zielspieltag ist der letzte Spieltag zu wählen bis zu dem das Team mindestens im Wettbewerb bleibt.' - ), - array( - 0 => 'Wie ermittle ich die Gruppengewinner und -zweiten einer Gruppe', - 1 => 'Bei Gruppenspielen sind alle Gruppenspieltage zur Ermittlung auszuwählen und der letzte Spieltag der nächsten Runde als Zielspieltag zu -hinterlegen. Die Option "Ermittlung anhand des Tabellenplatzes bei Gruppenspielen" ist zu wählen und der Platz bis zu dem die Teams sich qualifizieren. -Sollen Teams in eine andere Liga überführt werden, ist die entsprechende Liga auszuwählen, sonst nicht. Wurde keine Liga gewählt, werden Platz und -Spieltag ignoriert und kein Team transferiert.' - ), - array( - 0 => 'Die Teams sind schon in der nächsten Runde eingetragen', - 1 => 'Wurden im Spielplan die Formeln W (Winner) oder L (Looser) hinterlegt, wird schon bei der Anzeige der Begegnung der Sieger bzw. Verlierer -der in der Formel hinterlegten Partie(n) ermittelt und im Spielplan eingetragen. Trotzdem sollte "KO-Runden Gewinner ermitteln" aufgerufen werden, da -sonst beim Speichern der Spielbegegnung im Spielplan (bei Spielverlegung oder sonstigen Änderungen), die Teams nicht zur Auswahl stehen und somit wieder -gelöscht werden.
-Die Formel G führt nicht zu einer automatischen Ermittlung, da derzeit bei der Ermittlung der Gruppenplatzierungen nicht alle Sonderregeln bis ins -kleinste berücksichtigt werden. Die Ermittlung muss im Adminbereich über "KO-Runden Gewinner ermitteln" durchgeführt und kontrolliert werden. ' - ), - array( - 0 => 'Tipper ohne Tipps bekommen trotzdem Punkte', - 1 => 'Du hast in den Liga-Einstellungen hinterlegt, dass Nichttipper automatisch die Punkte des letzten bekommen sollen.' - ), - array( - 0 => '--', - 1 => 'Spielplan Verwaltung' - ), - array( - 0 => 'Wie erstelle ich einen neuen Spielplan?', - 1 => 'Zur Spielplanerstellung sind die einzelnen Seiten zwingend von oben nach unten abzuarbeiten. Insbesondere ist die korrekte Hinterlegung -der Anzahl der Spieltage und Spiele zu beachten, damit die Generierung im Verlauf der Spielplanerstellung funktioniert. Erst nach Generierung der -Spiele im Spielplan können Tipper aufgenommen werden, da vorher Informationen zu der Anzahl der Spiele fehlen. Ebenso wird der Schalter "Tippabgabe -bis zum jeweiligen Spielbeginn" erst nach Generierung der Spiele im Spielplan sichtbar. Dieser Schalter sollte erst nach Hinterlegung der -Spielpaarungen und aller Spieltermine auf Ja gesetzt werden, damit alle Abgabetermine in den Spieltagen automatisch gesetzt werden können.' - ), - array( - 0 => 'Wie richte ich eine neue Saison ein?', - 1 => 'Unter "Saisons verwalten" erstellst du eine neue Saison mit der Jahreszahl, in der die Saison endet. Die Spielzeit 2010/2011 ist also als -Saison 2011 zu erstellen. Auf der folgenden Seite werden dann entsprechende Standardwerte gesetzt. ' - ), - array( - 0 => 'Wie richte ich eine neue Liga ein?', - 1 => 'Unter "Ligen verwalten" erstellst du eine neue Liga mit Angabe einer Liganummer. Die Liganummer sollte für eine Liga über die Saisons -identisch vergeben werden und muss nicht fortlaufen innerhalb der Saison sein. Die 1. Liga sollte also immer die Liganummer 1, die 2. Liga immer -die Liganummer 2 bekommen.' - ), - array( - 0 => 'Wie richte ich die Spieltage ein?', - 1 => 'Bei einer neuen Liga müssen zuerst die fehlenden Spieltage über den Button generiert werden. Wenn der Spieltag eine abweichende -Bezeichnung vom Standard "#. Spieltag" bekommen soll, so ist das entsprechende Feld zu füllen, sonst nicht. Wird ein Abgabetermin hinterlegt, wird -dieser Abgabetemin bei der Generierung der Spielpaarungen als Spielbeginn eingesetzt.' - ), - array( - 0 => 'Wie nehme ich Teams in einer Liga auf?', - 1 => 'Bei KO-Runden müssen vorher zwingend die Spieltage erfasst werden, damit dem Team ein Spieltag zugeordnet werden kann, bis zu dem das -Team im Wettbewerb verbleibt. Die Team-ID einer Mannschaft sollte über alle Saisons und Ligen hinweg identisch gewählt werden, damit historische -Vergleiche in den Statistiken funktionieren. Alle Gif-Dateien im Verzeichnis /images/flags werden zur Auswahl eines Team Wappens bzw. -einer Flagge angezeigt. Die Wappen sollten das Format 28px x 28px haben. Es wird ausdrücklich darauf hingewiesen, das Vereinswappen dem Urheberrecht -unterliegen und nicht ohne Zustimmung des Rechteinhabers verwendet werden dürfen.' - ), - array( - 0 => 'Wie erstelle ich die Spielpaarungen im Spielplan?', - 1 => 'Nachdem alle Spieltage und Mannschaften erfasst wurden, können die Datenbankeinträge für die Spielpaarungen generiert werden. Wurde -vorher bei den Spieltagen ein Abgabetermin hinterlegt, wird dieser bei allen Spielen des Spieltags als Spielbeginn hinterlegt. Wurden noch keine Teams -in einer Spielpaarung hinterlegt, so wird in der Übersicht statt des Teamnamens eine eventuell hinterlegte Berechnungsformel angezeigt. - ' - ), - array( - 0 => 'Kann ich einen Spielplan sukzessiv aufbauen?', - 1 => 'Ja, man kann im Verlauf der Saison weitere Spieltage in der Liga hinzufügen. Dazu trägt man unter "Ligen verwalten" die geänderte Anzahl -der Spieltage ein und geht anschließend auf "Spieltage verwalten". Dort kann man die neuen Spieltagseinträge generieren lassen und anschließend -editieren. Nach Eingabe der Abgabetermine und Anzahl der Spiele bei KO-Runden, müssen die Spiele im Spielplan noch generiert werden. Dazu wählt man den -neue hinzugefügten Spieltag aus und klickt auf den Generierungs-Button. Die fehlenden Spiele werden generiert und ebenso fehlende Leereinträge aller -Tipper in der Tipptabelle.' - ), - array( - 0 => 'Wann kann ich in einer Liga Tipper aufnehmen?', - 1 => 'Tipper können erst nach Erstellung der Spiele im Spielplan hinzugefügt werden. Erst dann ist die Funktion in "Ligen verwalten" freigegeben.' - ), - array( - 0 => 'Kann ich Spieltage auch wieder löschen?', - 1 => 'Ja, entweder ausgewählte Spieltage unter "Spieltage verwalten" über die Schaltfläche "Löschen" oder die letzten Spieltage, indem man die -Anzahl der Spieltage in der Liga reduziert und anschließend auf "Spieltage verwalten" geht und dort den dann angezeigten Button betätigt. Gelöscht wird -dabei immer der Spieltag mit allen Spielen und allen Tipps.' - ), - array( - 0 => 'Ich kann keine Spiele bzw. Begenungen erfassen?', - 1 => 'Wenn du eine KO-Runde angelegt hast, musst du die Anzahl der Spiele bei den einzelnen Spieltagen hinterlegen. Erst dann erscheint der -Button zum Vervollständigen des Spielplans unter Spielplan verwalten.' - ), - array( - 0 => 'Was passiert bei einer Spielverlegung?', - 1 => 'Nach Änderung eines Spieltermins wird bei "Tippabgabe bis zum jeweiligen Spielbeginn" ggf. der Status des Spiels und des Spieltages sowie -der dort hinterlegte Abgabetermin angepasst. ' - ), - array( - 0 => 'Was sind Sondertipps?', - 1 => 'Sondertipps sind Einzeltipps mit gesonderter Punktevergabe. Sie können zu einem Spieltag oder zu einer Liga-Saison definiert werden und -fließen somit entweder in die Wertung zum Spieltag oder in die Gesamtwertung ein. Die Frage zu einem Sondertipp kann individuell hinterlegt werden, -sollte aber unmissverständlich sein.' - ), - array( - 0 => 'Welche Antwort- und Ergebnis-Möglichkeiten stehen zur Verfügung?', - 1 => 'Je nach Fragetyp steht als Antwort die Auswahl eines Teams der Liga, eine Zahl oder ein Text zur Verfügung. Das Ergebnis kann zusätzlich -noch aus mehreren Werten bestehen, die jeweils durch ";" getrennt werden. So können Multiple Choice Fragen mit einer Antwort-Möglichkeit hinterlegt werden. -Wenn beim Fragetyp 3 oder 4 in der Frage die Auswahlmöglichkeiten durch A: B: C: ... H: gekennzeichnet werden, erscheinen bei der Tipp- und Ergebniseingabe -automatisch entsprechende Werte in einer Dropdown-Box.' - ), - array( - 0 => 'Welche Frage- und Antwort-Möglichkeit bietet Fragetyp 1?', - 1 => 'Mit Fragetyp 1 kann bei Antwort und Ergebnis jeweils nur eine Mannschaft aus der Teamliste der Liga ausgewählt werden. Die Maximalpunktzahl -wird nur bei völliger Übereinstimmung vergeben, sonst erhält der Tipper 0 Punkte.
-Beispiel-Frage: Wer wird Meister?' - ), - array( - 0 => 'Welche Frage- und Antwort-Möglichkeit bietet Fragetyp 2?', - 1 => 'Fragetyp 2 ist wie Fragetyp 1, jedoch wird das Ergebnis in Textform (eine oder mehrere Team-IDs durch ";" getrennt) eingegeben. Die -Maximalpunktzahl wird vergeben, wenn die zur Antwortauswahl zugehörige Team-ID mit einem Wert aus dem Ergebnis übereinstimmt.
-Beispiel-Frage: Nenne einen Absteiger (Platz 16-18 am Saisonende)' - ), - array( - 0 => 'Welche Frage- und Antwort-Möglichkeit bietet Fragetyp 3?', - 1 => 'Bei Fragetyp 3 kann als Antwort und Ergebnis nur ein Wert (Text oder Zahl) hinterlegt werden. Die Maximalpunktzahl wird vergeben, wenn die -Antwort mit dem Ergebnis übereinstimmt, sonst erhält der Tipper 0 Punkte.
-Beispiel-Frage: Wie viel rote (ohne gelb-rote) Karten werden an diesem Spieltag vergeben? A=0 B=1 C=2 D=mehr als 2' - ), - array( - 0 => 'Welche Frage- und Antwort-Möglichkeit bietet Fragetyp 4?', - 1 => 'Bei Fragetyp 4 kann als Antwort eine Zahl oder ein Text und als Ergebnis mehrere Zahlen oder mehrere Texte (aber keine Kombination aus Zahlen -und Texten) durch ";" getrennt eingegeben werden. Die Maximalpunktzahl wird vergeben, wenn die Zahl oder der Text in der Antwort mit einem Wert aus dem -Ergebnis übereinstimmt.
-Beispiel-Frage: Hannover 96 A=steigt ab B=holt den Pokal C=spielt nicht international C=wird Deutscher Meister' - ), - array( - 0 => 'Welche Frage- und Antwort-Möglichkeit bietet Fragetyp 5?', - 1 => 'Bei Fragetyp 5 kann als Antwort und Ergebnis nur eine Zahl hinterlegt werden. Die Maximalpunktzahl wird vergeben, wenn die Antwort mit dem -Ergebnis übereinstimmt, sonst erhält der Tipper die Maximalpunktzahl abzüglich der absoluten Differenz zwischen Antwort und Ergebnis, jedoch keine negativen -Punkte.
-Beispiel-Frage: Wie viel Tore fallen an diesem Spieltag?' - ), - array( - 0 => 'In welche Wertung fließt ein Sondertipp ein?', - 1 => 'Wenn Abgabe- und Auswertungsspieltag identisch gewählt werden, fließt die Wertung in die Spieltagswertung und -rangliste ein. Wird der -Auswertungsspieltag abweichend gewählt, fließt der Sondertipp in die Gesamtwertung und -rangliste ein.' - ), - array( - 0 => 'Kann ich während der Saison Sondertipps anlegen?', - 1 => 'Ja, allerdings nur an Spieltagen die noch getippt werden können. Abgespeicherte Sondertipps können anschließend noch verschoben werden. Dabei -ist jedoch der Status des Sondertipps gesondert zu prüfen und gegebenenfalls zu korrigieren, da mit Verschiebung auf einen nicht mehr tippbaren Spieltag der -Status des Sondertipps nicht automatisch angepasst wird.' - ), - array( - 0 => 'Wann wird ein Sondertipp für die Tippabgabe gesperrt?', - 1 => 'Die Sondertipps werden mit dem ersten Abgabetermin eines Spieltags für die Tippabgabe geschlossen. Will man z.B. einen Meistertipp bis zum -3.Spieltag ermöglichen, so legt man die Abgabe auf den 3 Spieltag und die Auswertung auf den letzten Spieltag.' - ), - array( - 0 => '--', - 1 => 'Tipprunden Konfiguration' - ), - array( - 0 => 'Welche Zeitzone muss ich für die Tipprunde einstellen?', - 1 => 'Wenn der Hoster in der gleichen Zeitzone des Forums liegt, ist in der Tipprunde dieselbe Zeitzone wie im Forum zu wählen. Liegt der Hoster in -einer anderen Zeitzone, so ist die Zeitzone der Tipprunde entsprechend der Differenz zu setzen. Dies ist notwendig, da für die Abgabe und Ergebniseingabe -der Spiele System-Zeitfunktionen verwendet werden.' - ), - array( - 0 => 'Wozu wird der Tipprunde Code verwendet?', - 1 => 'Damit die Erinnerungsfunktion über cron_remember.php nicht von Außenstehenden missbräuchlich verwendet werden kann, wird beim Aufruf der -Parameter Code mit dem in der Tipprunde hinterlegten Code verglichen. Wenn man z.B. den Code 19032038 im Adminbereich hinterlegt, so sollte der Cronjob -cron_remember.php?code=19032038 für die Erinnerungsmail aufrufen.' - ), - array( - 0 => 'Wie kann ich die Anzeige der Ranglisten in der Hauptansicht übersichtlich gestalten?', - 1 => 'Über den Schalter "Anzahl angezeigter Tipper in den Übersichts-Ranglisten" können die Spieltags- Gesamtrangliste eingeschränkt werden. Sollte -der Ranglistenplatz des angemeldeten nicht zu einer Anzeige führen, so wird die Platzierung unterhalb der Rangliste angefügt. ' - ), - array( - 0 => '--', - 1 => 'Kontoübersicht / Ultimate Points (UP)' - ), - array( - 0 => 'Ist der Ultimate Points Extension erforderlich?', - 1 => 'Nein, wenn du jedoch den Tippern deiner Tipprunde einen Gesamtstand anzeigen möchtest, solltest du den Ultimate Points Extension installieren.
-Unabhängig vom Ultimate Points Extension werden Ligagewinne dem Konto im phpBB3 football Extension gutgeschrieben und der Admin kann Einsätze, Ein- und Auszahlungen -verbuchen.' - ), - array( - 0 => 'Was bewirkt der Schalter "Ultimate Points einbinden" in den Tipprunden-Funktionalitäten im Adminbereich?', - 1 => 'Dieser Schalter hat nur Auswirkungen auf die automatische Verrechnung der Gewinne im Gesamtsaldo von Ultimate Points. Hier kann man wählen, -ob Gewinne, Punkte oder nichts aus dem phpBB3 football Extension in den Ultimate Points Saldo einfließen sollen. Die Verrechnung der erzielten Tipprundenpunkte -kann zusätzlich noch über einen Faktor gesteuert werden. ' - ), - array( - 0 => 'Können andere meine Kontoübersicht sehen?', - 1 => 'Nur wer entsprechende Admin-Rechte besitzt, kann im Tipprundenbereich die Kontoübersicht eines anderen Tippers abfragen.' - ), - array( - 0 => 'Wie werden Einsätze, Ein- und Auszahlungen und Gewinne verbucht?', - 1 => 'Einsätze belasten das Tipperkonto und den Gesamtsaldo von UP und können durch Einzahlungen wieder ausgeglichen werden. In der Saison -gutgeschriebene Gewinne können vom Tipperkonto ausgezahlt werden, wobei die Auszahlung ebenfalls den Gesamtsaldo in UP belastet. Gewinne werden automatisch -über die Gewinnverteilung der Tipprunde beim Speichern der Spielergebnisse mit dem Tipperkonto und UP (bei gesetztem Schalter) verbucht. Beim erneuten -Abspeichern von Ergebnissen werden die alten Buchungen storniert und neu gebucht. Sollten an den nachfolgenden Spieltagen bereits Ergebnisse vorhanden sein, -werden die dazugehörigen Ranglisten und Buchungen korrigiert. Ein- und Auszahlungen sind nur für reale Zahlungen gedacht.' - ), - array( - 0 => 'Einsatz buchen', - 1 => 'Wenn UP installiert und beim Buchen aktiviert ist, wird der Einsatz vom UP Saldo abgezogen. Die Einsätze können für eine komplette Liga abgebucht -werden oder für einzelne Tipper. Bei der Buchung für die gesamte Liga werden bereits vorher schon gebuchte Einsätze berücksichtigt, so dass insgesamt -maximal der in der Liga hinterlegte Einsatz abgebucht wird. Bei Einzelabbuchung je ausgewählten Tipper werden die ausstehenden Einsätze als Vorgabe -in die jeweiligen Eingabefelder eingetragen. Werden diese Werte verändert erfolgt keine Überprüfung auf Unter- bzw. Überzahlung.' - ), - array( - 0 => 'Einzahlung buchen', - 1 => 'Wenn UP installiert und beim Buchen aktiviert ist, wird die Einzahlung dem Saldo gutgeschrieben. Somit können durch Einsatzbuchungen entstandene -negative Kontostände wieder ausgeglichen werden. Einzahlungen können für eine komplette Liga gebucht werden oder für einzelne Tipper. Bei der Buchung für die -gesamte Liga werden bereits vorher gebuchte Einzahlungen berücksichtigt, so dass insgesamt maximal der in der Liga hinterlegte Einsatz gebucht wird. -Bei Einzelbuchung je ausgewählten Tipper werden die ausstehenden Einzahlungen als Vorgabe in die jeweiligen Eingabefelder eingetragen. Werden diese Werte -verändert erfolgt keine Überprüfung auf Unter- bzw. Überzahlung.' - ), - array( - 0 => 'Auszahlung buchen', - 1 => 'Wenn UP installiert und beim Buchen aktiviert ist, belastet die Auszahlung den Saldo. Somit können in der Saison erzielte Gewinne ausgezahlt werden -und der Saldo ausgeglichen werden. Auszahlungen können für eine komplette Liga gebucht werden oder für einzelne Tipper. Bei der Buchung für die -gesamte Liga werden bereits vorher gebuchte Auszahlungen berücksichtigt, so dass insgesamt maximal der in der Liga erzielte Gewinn ausgebucht wird. -Bei Einzelbuchung je ausgewählten Tipper werden die ausstehenden Auszahlungen als Vorgabe in die jeweiligen Eingabefelder eingetragen. Werden diese Werte -verändert erfolgt keine Überprüfung auf Über- bzw. Unterzahlung.' - ), - array( - 0 => 'Vorgehensweise nach dem Update auf Version 0.9.2 ', - 1 => 'Beim Update des phpBB3 Football MODs auf Version 0.92 werden alle vorhanden Ranglisten (auch aus den Vorjahren) neu berechnet und die Gewinne -dabei automatisch im Tipperkonto verbucht. Eine Verrechnung mit dem UP-Saldo wird dabei nicht vorgenommen. Ist dies erwünscht, so muss der Schalter -"Ultimate Points einbinden" entsprechend gesetzt werden und die Spielergebnisse des ersten Spieltags je Liga erneut abgespeichert werden. Einsätze, -Ein- und Auszahlungen müssen manuell im Adminbereich je Saison nachverrechnet werden. Vorher sollte man entscheiden, ob diese Buchungen auch im UP-Saldo -berücksichtigt werden sollen und dementsprechend den Schalter für UP setzen.' - ), - array( - 0 => '--', - 1 => 'Spielplan Update' - ), - array( - 0 => 'Vorgehensweise beim Spielplan-Update', - 1 => 'Ein Update des Spielplans kann man nur mit Daten einer anderen Tipprunde-Seite durchführen. Eine Übersicht der zur Verfügung gestellten Saisons -und Ligen einer Seite kann über /football/xml/football_xml_season.php ausgehend vom phpbb-Rootverzeichnis abgerufen werden. Wird diese komplette Adresse -im Browser direkt eingegeben, werden die XML-Daten der Übersicht angezeigt und mit Klick auf einen Liganamen werden die aktuellen Daten der Liga aus -der Datenbank angezeigt. Klickt man in dieser Ansicht auf das Diskettensymbol, so kann man die Daten der Liga als XML-File downloaden.
-Beim Starten des Updates im Adminbereich unter Spielplan-Update wird die unter Einstellungen abgespeicherte Saisonübersicht als Updatequelle eingetragen. -Ist in den Extension-Einstellungen keine Updatequelle hinterlegt, wird die Football Extension Demoseite als Quelle eingetragen. Nach dem Laden der Saisonübersicht -werden die verfügbaren Ligen zur Auswahl angeboten. Wird der Zugriff auf eine andere URL vom eigenen Hoster nicht unterstützt bzw. ist dieser nicht frei- -geschaltet, muss man die gewünschten Ligen als XML-File downloaden und unter root/store ablegen. In diesem Fall muss localhost als Updatequelle eingetragen -werden und am Besten auch in den Einstellungen für zukünftige Aufrufe abgespeichert werden.
-Der Zugriff auf die Saisonübersicht und die Ligadaten kann über einen Code geschützt werden. Nutzer des Updates müssen dann den Code xxxx beim Aufruf der -Saisonübersicht mit ?code=xxxx anhängen; also /football/xml/football_xml_season.php?code=xxxx aufrufen. Beim anschließenden Aufruf der Ligadaten wird dann -der Code weitergereicht.
-Als Zielliga kann man eine bestehende Liga oder eine neue Liga durch Eingabe der neuen Liga-ID wählen. Um eine neue Liga einzurichten, muss vorher -zumindest die Saison existieren bzw. im Adminbereich angelegt werden. In diesem Fall werden alle Daten der Update-Datei nach ersetzen der Saison und Liga-ID -angezeigt und nach Bestätigung in die Datenbank übernommen.
-Wird eine bestehende Liga gewählt, werden zunächst Saison und Liga-ID im Update ersetzt und die Teams mit der Datenbank verglichen. Bei abweichenden Team-IDs -oder unterschiedlicher Teamanzahl, ist im nächsten Schritt ein Team-Mapping durchzuführen. Anschließend werden alle Abweichungen zwischen Update und Datenbank -angezeigt und man kann satz- und spaltenweise wählen welche Daten übernommen werden sollen. Unterschiedlich Vorbelegungen bei der Spaltenauswahl ist dabei zu -beachten und ggf. anzupassen. Nach der Übernahme der abweichenden Daten aus dem Updaten werden Abgabetermine und Status im Spieltag automatisch korrigiert und die -die Rangliste der Liga ab dem ersten Spieltag neu berechnet.
-Im Admin-Log wird eine Übersicht der durchgeführten Änderungen protokolliert.' - ), - array( - 0 => 'Team Mapping', - 1 => 'Das Team Mapping ist notwendig, wenn die Team-IDs nicht identisch sind oder die Anzahl der Teams abweichend ist. Neue hinzugekommene Teams, -wie z.B. in der EL die Gruppendritten der CL, werden in der Datenbank eingefügt. Nach dem Mapping wird überprüft, ob alle bestehenden Teams der Datenbank -zugeordnet sind. Die Team-IDs werden anhand des Mappings in den Update-Daten ausgetauscht. Neue Teams werden erst beim eigentlichen Update eingefügt.' - ), - array( - 0 => 'Status-Behandlung bei den Spielen', - 1 => 'Beim Erzeugen der XML-Daten werden die Status 4-6 auf die Status 1-3 geändert, d.h. im Update gibt es keine Spiele die aus der Wertung -genommen wurden. Für die Spiele mit Spielstatus < 2 werden die Tor-Felder als auch der Status selbst nicht übernommen. Steht in der Datenbank ein Status -größer als 3, so bleibt dieser Status erhalten und das Update-Programm behandelt den Datensatz wie mit dem korrespondierenden Status 1-3. Grundvoraussetzung -für die Datenübernahme unter Betrachtung des Status bleibt jedoch die Selektion der entsprechenden Spalten und Datensätzen innerhalb der Spiele.' - ), - array( - 0 => 'Negative Status übernehmen', - 1 => 'Ist diese Option gesetzt, werden die negativen Status, aber nicht die Tore, übernommen. Dadurch ist es möglich die gestaffelten Abgabetermine -aus dem Update zu übernehmen. Die Abgabetermine sind entweder aus dem Update zu übernehmen (Spaltenoptionen im Spieltag) oder manuell im Adminbereich zu -erfassen. Bei einer Ziel-Liga mit "Tippabgabe bis zum jeweiligen Spielbeginn" darf die Option "Negative Status übernehmen" nicht gewählt werden.' - ), - array( - 0 => 'Ergebnisse mit gleichem Status aktualisieren', - 1 => 'Nur wenn diese Option gesetzt ist, werden die Tor-Felder aus dem Update bei gleichem Status in Update und Datenbank übernommen. Dadurch -überschreibt das Update bereits erfasst (vorläufige) Ergebnisse in der Datenbank. Dies gilt auch für Spiele die in der Datenbank aus der Wertung genommen -wurden. Status 3 im Update überschreibt also die endgültigen Ergebnisse mit Status 6 in der Datenbank. Analog überschreibt Status 2 im Update die -vorläufigen, aus der Wertung genommen Ergebnisse mit Status 4, dies aber nur wenn die Option "Nur endgültige Ergebnisse übernehmen" nicht gewählt ist.' - ), - array( - 0 => 'Nur endgültige Ergebnisse übernehmen', - 1 => 'Wenn diese Option gesetzt ist, werden nur die Tor-Felder aus dem Update-Datensatz übernommen, wenn der Status des Spiels im Update gleich -3 ist. Vorläufige Ergebnisse aus dem Update werden somit nicht berücksichtigt. Sollen diese berücksichtigt werden, so ist diese Option explizit -auszuschalten. Sollen die vorläufigen Ergebnisse aus dem Update vorläufige Ergebnisse in der Datenbank überschreiben, ist zusätzlich die Option "Ergebnisse -mit gleichem Status aktualisieren" zu wählen.' - ), - array( - 0 => 'Zwischenspeicherung im Cache', - 1 => 'Die Daten der Saisonübersicht und der Ligen werden für 5 Minuten im Cache zwischengespeichert, damit keine doppelten Zugriffe auf die -Datenquelle erfolgen. Benötigt man innerhalb dieser Zeit trotzdem aktualisierte Daten, so muss man den Cache löschen um einen erneuten Download von der -Datenquelle zu erzwingen.' - ), -))); -?> \ No newline at end of file + array( + array( + 0 => '--', + 1 => 'Erste Schritte' + ), + array( + 0 => 'Wie installiere ich eine Liga?', + 1 => 'Bei der Installation werden keine Spielpläne mitgeliefert. Spielpläne können über "Spielplan aktualisieren" in die Datenbank geladen werden. +Näheres dazu siehe unter diesem Stichwort. +Nach dem Einspielen eines Spielplans sollten die Einstellungen der Liga bearbeitet werden und die Abgabetermine der Spieltage überprüft und ggf. angepasst +werden. Unter Liga verwalten können anschließend einzelne Tipper oder Mitglieder einer bestehenden Gruppe in die Tipprunde aufgenommen werden. ' + ), + array( + 0 => 'Weitere Einstellungen?', + 1 => 'Für den laufenden Betrieb der Tipprunde(n) sollten die administrativen Berechtigungen überprüft bzw. entsprechenden Mitgliedern zugeordnet +werden. Zum automatischen Versand von Erinnerungs-Mails kann man einen externen Cornjob einrichten. Näheres dazu in den einzelnen Punkten dieser Hilfe. ' + ), + array( + 0 => '--', + 1 => 'Allgemeines' + ), + array( + 0 => 'Welche Tipprunden werden unterstützt?', + 1 => 'Alle Tipprunden, die auf eine Meisterschafts- oder KO-Runde beruhen. Also Fußball-Ligen, Pokal-Wettbewerbe, Europa League, Champions League, +EM oder WM. Auch ein Mix aus unterschiedlichen Wettbewerben wird unterstützt, dabei zeigen jedoch die Tabelle und die Statistiken nichts sinnvolles an. +Lediglich durch den Punkte-Modus ist die Extension für Handball und andere Ligen nicht geeignet.' + ), + array( + 0 => 'Welche Rechte existieren in diesem Extension', + 1 => 'a_football_results = Kann endgültige Spielergebnisse eingeben, ändern und löschen
+a_football_editbets = Kann im Adminbereich alle Tipps ansehen, eingeben und ändern
+a_football_plan = Kann Spielpläne erstellen und ändern. Spielplan verwalten (ohne löschen) und KO-Runden Gewinner ermitteln
+a_football_delete = Kann Spielpläne und Teile davon löschen. Löschberechtigung in der Spielplan-Verwaltung
+a_football_config = Kann Tipprundeneinstellung ändern: Tipprunden-Konfiguration
+a_football_points = Kann Punkte für Ultimate Points eingeben, ändern und löschen
+u_use_football = Kann Football Extension verwenden.' + ), + array( + 0 => 'Welche Rollen existieren in diesem Extension?', + 1 => 'Der Football-Administrator besitzt nur das Recht endgültige Spielergebnisse einzugeben, sonst keinerlei Adminrechte. ' + ), + array( + 0 => 'Welche Rechte wurden bestehenden Rollen zugewiesen?', + 1 => 'Der Standard-Administrator Kann endgültige Spielergebnisse eingeben, ändern und löschen. +Der Umfassende Administrator hat sämtliche Rechte des MODS.' + ), + array( + 0 => 'Welche Benutzerdefinierten Profilfelder wurden vom Extension erzeugt?', + 1 => 'footb_email = zusätzliche 2. E-Mail-Adresse für Erinnerungsmails
+footb_rem_f = Schalter für Versand der Erinnerungsmail an die Haupt-E-Mail-Adresse.
+footb_rem_s = Schalter für Versand der Erinnerungsmail an die 2. E-Mail-Adresse.' + ), + array( + 0 => 'Wie aktiviere ich die Erinnerungs-Mail Funktion?', + 1 => 'Im Adminbereich muss unter den Tipprunden-Funktionalitäten der Cronjob für die Tipp-Erinnerungsmail aktiviert und der Termin der nächsten Ausführung gesetzt werden.
+Der Cron-Job wird beim ersten Zugriff nach diesem Termin ausgeführt und sendet eine Erinnerungs-Mail für die fehlenden Tippabgaben, die im Zeitraum 24-48 Stunden nach dem Cron-Termin liegen. +Falls nicht ausreichend Zugriffe auf die Seite erfolgen, sollte der Cronjob automatisch z.B. von www.cronjob.de durch das Script +"DEINE_URL/cron.php?cron_type=football.football.cron.task.football_remember" gestartet werden.
+Das versenden der Email erfolgt nur einmalig. Nach Aufruf des Cronjobs wird der nächste automatisch für den Folgetag eingeplant. +Mit den angehängten parametern "&mode=test&days=n" kann der Versand für die um n Tage versetzte Tippabgabe getestet werden. Dabei werden nur Mails an Board-Email-Adresse versendet.' + ), + array( + 0 => 'Wer bekommt eine Erinnerungsmail', + 1 => 'Bei aktivierter Erinnerungsmail-Funktion, bekommen alle Tipper, die am abzugebenden Spieltag ein Spiel mit Status 0 nicht vollständig getippt +haben eine Erinnerungsmail an die dazu freigegebene(n) E-Mail-Adresse(n).
+Zusätzlich wird eine E-Mail mit der Empfängerliste an die Board-E-Mail-Adresse versendet (aber nur wenn auch mindestens eine Erinnerungsmail versendet +wurde).
+Der Vorgang wird zur Dokumentation im Log protokolliert.' + ), + array( + 0 => '--', + 1 => 'Tippabgabefrist' + ), + array( + 0 => 'Wann wird die Tippabgabe gesperrt?', + 1 => 'Sobald jemand Daten aus den Tipprunden abruft wird überprüft, ob Spieltage mit Status 0 und abgelaufener Abgabezeit existieren. Die zu +schließenden Spiele werden mit Status 1 versehen und sind somit nicht mehr tippbar.' + ), + array( + 0 => 'Die Spieltage bzw. Spiele werden nicht zum Abgabezeitpunkt geschlossen', + 1 => 'Der Abgabezeitpunkt wird mit der aktuellen Host Zeit + Zeitverschiebung zwischen Board- und Host-Zeitzone verglichen. Wenn dein Hoster sich +in der eingestellten Board-Zeitzone befindet, muss diese Zeitzone auch in den Tipprunden-Einstellungen hinterlegt sein. Wenn nicht ist hier die +entsprechende Zeitzone zu wählen.' + ), + array( + 0 => 'Ich kann den Abgabezeitpunkt eines Spieltags nicht bearbeiten', + 1 => 'Du hast bei den Liga-Einstellungen "Tippabgabe bis zum jeweiligen Spielbeginn" gewählt. Dadurch wird die Abgabezeit automatisch anhand der +Spiele verwaltet. Wenn du noch bei der Spielplanerstellung bist, solltest "Tippabgabe bis zum jeweiligen Spielbeginn" erst nach Erfassung des gesamten +Spielplans einstellen. Dann werden die Abgabezeiten automatisch korrigiert.' + ), + array( + 0 => 'Das Spiel hat schon begonnen, aber ich kann noch tippen', + 1 => 'Der Spieltag wurde noch nicht geschlossen, da der Abgabezeitpunkt noch in der Zukunft liegt; das erste Spiel hat aber bereits begonnen. Beim +Speichern der Abgabezeit im Spieltag wird momentan die Zeit nicht mit den Spielzeiten abgeglichen und überprüft.' + ), + array( + 0 => 'Überprüfungen beim Speichern der Spieltags-Einstellungen', + 1 => 'Beim Abspeichern eines Spieltags wird überprüft, ob der Status des Spieltags korrigiert werden muss. Liegt der 1. Abgabetermin in der +Zukunft wird der Status des Spieltags auf 0 gesetzt, liegt er in der Vergangenheit, wird der Status je nach Status der dazugehörigen Spiele auf 1, 2 +oder 3 gesetzt.' + ), + array( + 0 => 'Wie stelle ich weitere Abgabetermine bei einem Spieltag ein?', + 1 => 'Dies geht nur, wenn "Tippabgabe bis zum jeweiligen Spielbeginn" bei den Liga-Einstellungen auf Nein steht. Dann können zwei weitere +Abgabetermine beim Spieltag hinterlegt werden. Die Spiele, die zum 2. Abgabetermin geschlossen werden sollen, müssen im Spielplan manuell auf Status -1 +gesetzt werden. Für den 3. Abgabetermin ist der Status der Spiele manuell auf -2 zu setzen.' + ), + array( + 0 => 'Was bedeutet "Tippabgabe bis zum jeweiligen Spielbeginn"', + 1 => 'In diesem Modus kann jedes Spiel einzeln bis zum Spielbeginn getippt werden. Beim Schließen der Tippabgabe eines Spiels wird ermittelt, ob +noch "offene" Spiele im Spieltag existieren. Wenn ja, wird die Abgabezeit des Spieltags auf den nächsten Spielbeginn gesetzt, sonst bleibt sie auf dem +letzten Spielbeginn stehen und der Spieltag bekommt den Staus 1. Die Tippabgabe zu einer festen Zeit vor jedem Spiel wird derzeit nicht unterstützt.' + ), + array( + 0 => '--', + 1 => 'Spielbetrieb' + ), + array( + 0 => 'Wie speichere ich endgültige Spielergebnisse?', + 1 => 'Endgültige Spielergebnisse können nur im Adminbereich eingegeben bzw. bestätigt werden. Dabei werden nur die Ergebnisse der ausgewählten +Spiele abgespeichert.' + ), + array( + 0 => 'Warum kann ich keine Spielergebnisse eingeben?', + 1 => 'Wenn bei den Tipprunden Funktionalitäten "Eingabe endgültiger Spielergebnisse erst nach Spielende" auf Ja gesetzt wurde, können die +Spielergebnisse erst nach Spielende (90 Minuten) eingegeben werden.
+Für Spiele mit Status 0 können keine Ergebnisse eingegeben werden. Hier ist zuerst der Abgabetermin des Spieltags oder der Spielbeginn des Spiels +zu kontrollieren und gegebenenfalls anzupassen, damit die Tippabgabe zu diesem Spiel automatisch gesperrt wird und das Spiel den Status 1 zur +Ergebniseingabe erhält.' + ), + array( + 0 => 'Ich möchte einen Spielzwischenstand speichern', + 1 => 'Spielzwischenstände können nur im Userbereich eingegeben werden. Im Adminbereich werden alle Ergebnisse als endgültige oder nicht +gewertete Ergebnisse nach 90 Minuten abgespeichert. ' + ), + array( + 0 => 'Warum bekomme ich beim Aufruf manchmal eine andere Liga angezeigt?', + 1 => 'Beim Aufruf der Seite "Spielergebnisse eingeben" wird automatisch die Liga angezeigt, die am längsten auf eine Ergebniseingabe wartet +bzw. deren Spiele als nächstes enden. Warten Spiele aus unterschiedlichen Ligen auf eine Ergebniseingabe bzw. -bestätigung, so gelangt man nach +Ergebniseingabe durch erneutes Aufrufen der Seite zu den nächsten "wartenden" Spielen.' + ), + array( + 0 => 'Wie wird der Spieltagsstatus beim Speichern der Ergebnisse gesetzt?', + 1 => 'Nach abspeichern der Ergebnisse wird der Status des Spieltags entsprechend der Spiele gesetzt. Haben alle Spiele einen Status > 2, wird der +Spieltagsstatus auf 3 gesetzt und der Spieltag somit abgeschlossen. Sonst wird der Spieltagsstatus auf den minimalen Status >= 0 der dazugehörigen +Spiele gesetzt.' + ), + array( + 0 => 'Wann werden die Ranglisten aktualisiert?', + 1 => 'Nach abspeichern der Ergebnisse und setzen des Spieltagsstatus im User- oder Adminbereich wird die Spieltagsrangliste des entsprechenden +Spieltags abgespeichert. Anschließend wird die Platzierung in der Gesamtrangliste berechnet und ebenfalls im aktuelle Spieltag abgespeichert. +Die restlichen Daten der Gesamtrangliste werden nicht abgespeichert, sondern immer aktuell berechnet.
+Bei Spieltagen mit Status 0 oder 1 wird die Rangliste zu diesem Spieltag gelöscht. Sonst wird der Status der Rangliste analog zum Status des Spieltages +gesetzt.' + ), + array( + 0 => 'Wie lösche ich Spielergebnisse?', + 1 => 'Einfach ein Ergebnisfeld löschen oder die Löschen Option wählen und schon werden alle Ergebnisfelder gelöscht. Der Status des Spiels wird +dabei auf 1 zurückgesetzt.' + ), + array( + 0 => 'Wie nehme ich einzelne Spiele aus der Wertung?', + 1 => 'Durch setzten des Optionsschalters "O. Wertung" vor dem Speichern, wird das Spiel aus der Wertung genommen, so dass niemand Punkte dafür +erhält. Liegt noch kein Ergebnis vor, wird das Spiel mit Status 4 gespeichert, sonst mit Status 6. Wird im Userbereich ein Ergebnis zu einem Spiel mit +Status 4 eingegeben, wird der Status 5 gesetzt. ' + ), + array( + 0 => 'Wer kann alle Tipps sehen?', + 1 => 'Benutzer mit Adminrecht a_football_editbets = "Kann im Adminbereich alle Tipps ansehen, eingeben und ändern" können im Adminbereich alle +Tipps sehen und auch editieren.' + ), + array( + 0 => 'Was ist bei der Tippeingabe im Adminbereich zu beachten?', + 1 => 'Werden Tipps zu Spielen mit bereits vorliegenden Ergebnissen abgespeichert, wird die Rangliste nicht automatisch aktualisiert. Die +Ranglisten berücksichtigen den neuen Tipp nicht. In der Anzeige der Einzeltipps und "Alle Tipps" werden die geänderten Tipps und die daraus +resultierenden Punkte angezeigt. Wenn die geänderten Tipps in die Rangliste einfließen sollen, sind die Ergebnisse des Spieltags und der nachfolgenden +Spieltage erneut abzuspeichern, so dass die Ranglisten neu berechnet werden. Spiele müssen dabei nicht ausgewählt oder verändert werden. ' + ), + array( + 0 => 'Wozu dient "KO-Runden Gewinner ermitteln"?', + 1 => 'Damit in der Spielplanverwaltung nur Teams zur Auswahl stehen, die auch die entsprechende Runde erreicht haben, muss der Spieltag beim Team +eingetragen werden, bis zu dem das Team im Wettbewerb verbleibt. Dies, und die Überleitung der 3. Platzierten Teams der Champions League Gruppenphase in +die Europa League, kann auf dieser Seite automatisch durchgeführt werden. Da insbesondere bei der Berechnung der Gruppen-Platzierung nicht alle Regeln im +System berücksichtigt wurden, sind eventuelle Fehler manuell zu korrigieren. Dazu werden die betroffenen Mannschaften in der Statusmeldung protokolliert.' + ), + array( + 0 => 'Wie ermittle ich die Gewinner einer KO-Runde?', + 1 => 'Bei einzelnen KO-Spielen oder KO-Runden mit Hin- und Rückspiel reicht es die Spieltage zur Ermittlung auszuwählen, an denen diese Spiele +stattgefunden haben. Als Zielspieltag ist der letzte Spieltag zu wählen bis zu dem das Team mindestens im Wettbewerb bleibt.' + ), + array( + 0 => 'Wie ermittle ich die Gruppengewinner und -zweiten einer Gruppe', + 1 => 'Bei Gruppenspielen sind alle Gruppenspieltage zur Ermittlung auszuwählen und der letzte Spieltag der nächsten Runde als Zielspieltag zu +hinterlegen. Die Option "Ermittlung anhand des Tabellenplatzes bei Gruppenspielen" ist zu wählen und der Platz bis zu dem die Teams sich qualifizieren. +Sollen Teams in eine andere Liga überführt werden, ist die entsprechende Liga auszuwählen, sonst nicht. Wurde keine Liga gewählt, werden Platz und +Spieltag ignoriert und kein Team transferiert.' + ), + array( + 0 => 'Die Teams sind schon in der nächsten Runde eingetragen', + 1 => 'Wurden im Spielplan die Formeln W (Winner) oder L (Looser) hinterlegt, wird schon bei der Anzeige der Begegnung der Sieger bzw. Verlierer +der in der Formel hinterlegten Partie(n) ermittelt und im Spielplan eingetragen. Trotzdem sollte "KO-Runden Gewinner ermitteln" aufgerufen werden, da +sonst beim Speichern der Spielbegegnung im Spielplan (bei Spielverlegung oder sonstigen Änderungen), die Teams nicht zur Auswahl stehen und somit wieder +gelöscht werden.
+Die Formel G führt nicht zu einer automatischen Ermittlung, da derzeit bei der Ermittlung der Gruppenplatzierungen nicht alle Sonderregeln bis ins +kleinste berücksichtigt werden. Die Ermittlung muss im Adminbereich über "KO-Runden Gewinner ermitteln" durchgeführt und kontrolliert werden. ' + ), + array( + 0 => 'Tipper ohne Tipps bekommen trotzdem Punkte', + 1 => 'Du hast in den Liga-Einstellungen hinterlegt, dass Nichttipper automatisch die Punkte des letzten bekommen sollen.' + ), + array( + 0 => '--', + 1 => 'Spielplan Verwaltung' + ), + array( + 0 => 'Wie erstelle ich einen neuen Spielplan?', + 1 => 'Zur Spielplanerstellung sind die einzelnen Seiten zwingend von oben nach unten abzuarbeiten. Insbesondere ist die korrekte Hinterlegung +der Anzahl der Spieltage und Spiele zu beachten, damit die Generierung im Verlauf der Spielplanerstellung funktioniert. Erst nach Generierung der +Spiele im Spielplan können Tipper aufgenommen werden, da vorher Informationen zu der Anzahl der Spiele fehlen. Ebenso wird der Schalter "Tippabgabe +bis zum jeweiligen Spielbeginn" erst nach Generierung der Spiele im Spielplan sichtbar. Dieser Schalter sollte erst nach Hinterlegung der +Spielpaarungen und aller Spieltermine auf Ja gesetzt werden, damit alle Abgabetermine in den Spieltagen automatisch gesetzt werden können.' + ), + array( + 0 => 'Wie richte ich eine neue Saison ein?', + 1 => 'Unter "Saisons verwalten" erstellst du eine neue Saison mit der Jahreszahl, in der die Saison endet. Die Spielzeit 2010/2011 ist also als +Saison 2011 zu erstellen. Auf der folgenden Seite werden dann entsprechende Standardwerte gesetzt. ' + ), + array( + 0 => 'Wie richte ich eine neue Liga ein?', + 1 => 'Unter "Ligen verwalten" erstellst du eine neue Liga mit Angabe einer Liganummer. Die Liganummer sollte für eine Liga über die Saisons +identisch vergeben werden und muss nicht fortlaufen innerhalb der Saison sein. Die 1. Liga sollte also immer die Liganummer 1, die 2. Liga immer +die Liganummer 2 bekommen.' + ), + array( + 0 => 'Wie richte ich die Spieltage ein?', + 1 => 'Bei einer neuen Liga müssen zuerst die fehlenden Spieltage über den Button generiert werden. Wenn der Spieltag eine abweichende +Bezeichnung vom Standard "#. Spieltag" bekommen soll, so ist das entsprechende Feld zu füllen, sonst nicht. Wird ein Abgabetermin hinterlegt, wird +dieser Abgabetemin bei der Generierung der Spielpaarungen als Spielbeginn eingesetzt.' + ), + array( + 0 => 'Wie nehme ich Teams in einer Liga auf?', + 1 => 'Bei KO-Runden müssen vorher zwingend die Spieltage erfasst werden, damit dem Team ein Spieltag zugeordnet werden kann, bis zu dem das +Team im Wettbewerb verbleibt. Die Team-ID einer Mannschaft sollte über alle Saisons und Ligen hinweg identisch gewählt werden, damit historische +Vergleiche in den Statistiken funktionieren. Alle Gif-Dateien im Verzeichnis /images/flags werden zur Auswahl eines Team Wappens bzw. +einer Flagge angezeigt. Die Wappen sollten das Format 28px x 28px haben. Es wird ausdrücklich darauf hingewiesen, das Vereinswappen dem Urheberrecht +unterliegen und nicht ohne Zustimmung des Rechteinhabers verwendet werden dürfen.' + ), + array( + 0 => 'Wie erstelle ich die Spielpaarungen im Spielplan?', + 1 => 'Nachdem alle Spieltage und Mannschaften erfasst wurden, können die Datenbankeinträge für die Spielpaarungen generiert werden. Wurde +vorher bei den Spieltagen ein Abgabetermin hinterlegt, wird dieser bei allen Spielen des Spieltags als Spielbeginn hinterlegt. Wurden noch keine Teams +in einer Spielpaarung hinterlegt, so wird in der Übersicht statt des Teamnamens eine eventuell hinterlegte Berechnungsformel angezeigt. + ' + ), + array( + 0 => 'Kann ich einen Spielplan sukzessiv aufbauen?', + 1 => 'Ja, man kann im Verlauf der Saison weitere Spieltage in der Liga hinzufügen. Dazu trägt man unter "Ligen verwalten" die geänderte Anzahl +der Spieltage ein und geht anschließend auf "Spieltage verwalten". Dort kann man die neuen Spieltagseinträge generieren lassen und anschließend +editieren. Nach Eingabe der Abgabetermine und Anzahl der Spiele bei KO-Runden, müssen die Spiele im Spielplan noch generiert werden. Dazu wählt man den +neue hinzugefügten Spieltag aus und klickt auf den Generierungs-Button. Die fehlenden Spiele werden generiert und ebenso fehlende Leereinträge aller +Tipper in der Tipptabelle.' + ), + array( + 0 => 'Wann kann ich in einer Liga Tipper aufnehmen?', + 1 => 'Tipper können erst nach Erstellung der Spiele im Spielplan hinzugefügt werden. Erst dann ist die Funktion in "Ligen verwalten" freigegeben.' + ), + array( + 0 => 'Kann ich Spieltage auch wieder löschen?', + 1 => 'Ja, entweder ausgewählte Spieltage unter "Spieltage verwalten" über die Schaltfläche "Löschen" oder die letzten Spieltage, indem man die +Anzahl der Spieltage in der Liga reduziert und anschließend auf "Spieltage verwalten" geht und dort den dann angezeigten Button betätigt. Gelöscht wird +dabei immer der Spieltag mit allen Spielen und allen Tipps.' + ), + array( + 0 => 'Ich kann keine Spiele bzw. Begenungen erfassen?', + 1 => 'Wenn du eine KO-Runde angelegt hast, musst du die Anzahl der Spiele bei den einzelnen Spieltagen hinterlegen. Erst dann erscheint der +Button zum Vervollständigen des Spielplans unter Spielplan verwalten.' + ), + array( + 0 => 'Was passiert bei einer Spielverlegung?', + 1 => 'Nach Änderung eines Spieltermins wird bei "Tippabgabe bis zum jeweiligen Spielbeginn" ggf. der Status des Spiels und des Spieltages sowie +der dort hinterlegte Abgabetermin angepasst. ' + ), + array( + 0 => 'Was sind Sondertipps?', + 1 => 'Sondertipps sind Einzeltipps mit gesonderter Punktevergabe. Sie können zu einem Spieltag oder zu einer Liga-Saison definiert werden und +fließen somit entweder in die Wertung zum Spieltag oder in die Gesamtwertung ein. Die Frage zu einem Sondertipp kann individuell hinterlegt werden, +sollte aber unmissverständlich sein.' + ), + array( + 0 => 'Welche Antwort- und Ergebnis-Möglichkeiten stehen zur Verfügung?', + 1 => 'Je nach Fragetyp steht als Antwort die Auswahl eines Teams der Liga, eine Zahl oder ein Text zur Verfügung. Das Ergebnis kann zusätzlich +noch aus mehreren Werten bestehen, die jeweils durch ";" getrennt werden. So können Multiple Choice Fragen mit einer Antwort-Möglichkeit hinterlegt werden. +Wenn beim Fragetyp 3 oder 4 in der Frage die Auswahlmöglichkeiten durch A: B: C: ... H: gekennzeichnet werden, erscheinen bei der Tipp- und Ergebniseingabe +automatisch entsprechende Werte in einer Dropdown-Box.' + ), + array( + 0 => 'Welche Frage- und Antwort-Möglichkeit bietet Fragetyp 1?', + 1 => 'Mit Fragetyp 1 kann bei Antwort und Ergebnis jeweils nur eine Mannschaft aus der Teamliste der Liga ausgewählt werden. Die Maximalpunktzahl +wird nur bei völliger Übereinstimmung vergeben, sonst erhält der Tipper 0 Punkte.
+Beispiel-Frage: Wer wird Meister?' + ), + array( + 0 => 'Welche Frage- und Antwort-Möglichkeit bietet Fragetyp 2?', + 1 => 'Fragetyp 2 ist wie Fragetyp 1, jedoch wird das Ergebnis in Textform (eine oder mehrere Team-IDs durch ";" getrennt) eingegeben. Die +Maximalpunktzahl wird vergeben, wenn die zur Antwortauswahl zugehörige Team-ID mit einem Wert aus dem Ergebnis übereinstimmt.
+Beispiel-Frage: Nenne einen Absteiger (Platz 16-18 am Saisonende)' + ), + array( + 0 => 'Welche Frage- und Antwort-Möglichkeit bietet Fragetyp 3?', + 1 => 'Bei Fragetyp 3 kann als Antwort und Ergebnis nur ein Wert (Text oder Zahl) hinterlegt werden. Die Maximalpunktzahl wird vergeben, wenn die +Antwort mit dem Ergebnis übereinstimmt, sonst erhält der Tipper 0 Punkte.
+Beispiel-Frage: Wie viel rote (ohne gelb-rote) Karten werden an diesem Spieltag vergeben? A=0 B=1 C=2 D=mehr als 2' + ), + array( + 0 => 'Welche Frage- und Antwort-Möglichkeit bietet Fragetyp 4?', + 1 => 'Bei Fragetyp 4 kann als Antwort eine Zahl oder ein Text und als Ergebnis mehrere Zahlen oder mehrere Texte (aber keine Kombination aus Zahlen +und Texten) durch ";" getrennt eingegeben werden. Die Maximalpunktzahl wird vergeben, wenn die Zahl oder der Text in der Antwort mit einem Wert aus dem +Ergebnis übereinstimmt.
+Beispiel-Frage: Hannover 96 A=steigt ab B=holt den Pokal C=spielt nicht international C=wird Deutscher Meister' + ), + array( + 0 => 'Welche Frage- und Antwort-Möglichkeit bietet Fragetyp 5?', + 1 => 'Bei Fragetyp 5 kann als Antwort und Ergebnis nur eine Zahl hinterlegt werden. Die Maximalpunktzahl wird vergeben, wenn die Antwort mit dem +Ergebnis übereinstimmt, sonst erhält der Tipper die Maximalpunktzahl abzüglich der absoluten Differenz zwischen Antwort und Ergebnis, jedoch keine negativen +Punkte.
+Beispiel-Frage: Wie viel Tore fallen an diesem Spieltag?' + ), + array( + 0 => 'In welche Wertung fließt ein Sondertipp ein?', + 1 => 'Wenn Abgabe- und Auswertungsspieltag identisch gewählt werden, fließt die Wertung in die Spieltagswertung und -rangliste ein. Wird der +Auswertungsspieltag abweichend gewählt, fließt der Sondertipp in die Gesamtwertung und -rangliste ein.' + ), + array( + 0 => 'Kann ich während der Saison Sondertipps anlegen?', + 1 => 'Ja, allerdings nur an Spieltagen die noch getippt werden können. Abgespeicherte Sondertipps können anschließend noch verschoben werden. Dabei +ist jedoch der Status des Sondertipps gesondert zu prüfen und gegebenenfalls zu korrigieren, da mit Verschiebung auf einen nicht mehr tippbaren Spieltag der +Status des Sondertipps nicht automatisch angepasst wird.' + ), + array( + 0 => 'Wann wird ein Sondertipp für die Tippabgabe gesperrt?', + 1 => 'Die Sondertipps werden mit dem ersten Abgabetermin eines Spieltags für die Tippabgabe geschlossen. Will man z.B. einen Meistertipp bis zum +3.Spieltag ermöglichen, so legt man die Abgabe auf den 3 Spieltag und die Auswertung auf den letzten Spieltag.' + ), + array( + 0 => '--', + 1 => 'Tipprunden Konfiguration' + ), + array( + 0 => 'Welche Zeitzone muss ich für die Tipprunde einstellen?', + 1 => 'Wenn der Hoster in der gleichen Zeitzone des Forums liegt, ist in der Tipprunde dieselbe Zeitzone wie im Forum zu wählen. Liegt der Hoster in +einer anderen Zeitzone, so ist die Zeitzone der Tipprunde entsprechend der Differenz zu setzen. Dies ist notwendig, da für die Abgabe und Ergebniseingabe +der Spiele System-Zeitfunktionen verwendet werden.' + ), + array( + 0 => 'Wozu wird der Tipprunde Code verwendet?', + 1 => 'Damit die Erinnerungsfunktion über cron_remember.php nicht von Außenstehenden missbräuchlich verwendet werden kann, wird beim Aufruf der +Parameter Code mit dem in der Tipprunde hinterlegten Code verglichen. Wenn man z.B. den Code 19032038 im Adminbereich hinterlegt, so sollte der Cronjob +cron_remember.php?code=19032038 für die Erinnerungsmail aufrufen.' + ), + array( + 0 => 'Wie kann ich die Anzeige der Ranglisten in der Hauptansicht übersichtlich gestalten?', + 1 => 'Über den Schalter "Anzahl angezeigter Tipper in den Übersichts-Ranglisten" können die Spieltags- Gesamtrangliste eingeschränkt werden. Sollte +der Ranglistenplatz des angemeldeten nicht zu einer Anzeige führen, so wird die Platzierung unterhalb der Rangliste angefügt. ' + ), + array( + 0 => '--', + 1 => 'Kontoübersicht / Ultimate Points (UP)' + ), + array( + 0 => 'Ist der Ultimate Points Extension erforderlich?', + 1 => 'Nein, wenn du jedoch den Tippern deiner Tipprunde einen Gesamtstand anzeigen möchtest, solltest du den Ultimate Points Extension installieren.
+Unabhängig vom Ultimate Points Extension werden Ligagewinne dem Konto im phpBB3 football Extension gutgeschrieben und der Admin kann Einsätze, Ein- und Auszahlungen +verbuchen.' + ), + array( + 0 => 'Was bewirkt der Schalter "Ultimate Points einbinden" in den Tipprunden-Funktionalitäten im Adminbereich?', + 1 => 'Dieser Schalter hat nur Auswirkungen auf die automatische Verrechnung der Gewinne im Gesamtsaldo von Ultimate Points. Hier kann man wählen, +ob Gewinne, Punkte oder nichts aus dem phpBB3 football Extension in den Ultimate Points Saldo einfließen sollen. Die Verrechnung der erzielten Tipprundenpunkte +kann zusätzlich noch über einen Faktor gesteuert werden. ' + ), + array( + 0 => 'Können andere meine Kontoübersicht sehen?', + 1 => 'Nur wer entsprechende Admin-Rechte besitzt, kann im Tipprundenbereich die Kontoübersicht eines anderen Tippers abfragen.' + ), + array( + 0 => 'Wie werden Einsätze, Ein- und Auszahlungen und Gewinne verbucht?', + 1 => 'Einsätze belasten das Tipperkonto und den Gesamtsaldo von UP und können durch Einzahlungen wieder ausgeglichen werden. In der Saison +gutgeschriebene Gewinne können vom Tipperkonto ausgezahlt werden, wobei die Auszahlung ebenfalls den Gesamtsaldo in UP belastet. Gewinne werden automatisch +über die Gewinnverteilung der Tipprunde beim Speichern der Spielergebnisse mit dem Tipperkonto und UP (bei gesetztem Schalter) verbucht. Beim erneuten +Abspeichern von Ergebnissen werden die alten Buchungen storniert und neu gebucht. Sollten an den nachfolgenden Spieltagen bereits Ergebnisse vorhanden sein, +werden die dazugehörigen Ranglisten und Buchungen korrigiert. Ein- und Auszahlungen sind nur für reale Zahlungen gedacht.' + ), + array( + 0 => 'Einsatz buchen', + 1 => 'Wenn UP installiert und beim Buchen aktiviert ist, wird der Einsatz vom UP Saldo abgezogen. Die Einsätze können für eine komplette Liga abgebucht +werden oder für einzelne Tipper. Bei der Buchung für die gesamte Liga werden bereits vorher schon gebuchte Einsätze berücksichtigt, so dass insgesamt +maximal der in der Liga hinterlegte Einsatz abgebucht wird. Bei Einzelabbuchung je ausgewählten Tipper werden die ausstehenden Einsätze als Vorgabe +in die jeweiligen Eingabefelder eingetragen. Werden diese Werte verändert erfolgt keine Überprüfung auf Unter- bzw. Überzahlung.' + ), + array( + 0 => 'Einzahlung buchen', + 1 => 'Wenn UP installiert und beim Buchen aktiviert ist, wird die Einzahlung dem Saldo gutgeschrieben. Somit können durch Einsatzbuchungen entstandene +negative Kontostände wieder ausgeglichen werden. Einzahlungen können für eine komplette Liga gebucht werden oder für einzelne Tipper. Bei der Buchung für die +gesamte Liga werden bereits vorher gebuchte Einzahlungen berücksichtigt, so dass insgesamt maximal der in der Liga hinterlegte Einsatz gebucht wird. +Bei Einzelbuchung je ausgewählten Tipper werden die ausstehenden Einzahlungen als Vorgabe in die jeweiligen Eingabefelder eingetragen. Werden diese Werte +verändert erfolgt keine Überprüfung auf Unter- bzw. Überzahlung.' + ), + array( + 0 => 'Auszahlung buchen', + 1 => 'Wenn UP installiert und beim Buchen aktiviert ist, belastet die Auszahlung den Saldo. Somit können in der Saison erzielte Gewinne ausgezahlt werden +und der Saldo ausgeglichen werden. Auszahlungen können für eine komplette Liga gebucht werden oder für einzelne Tipper. Bei der Buchung für die +gesamte Liga werden bereits vorher gebuchte Auszahlungen berücksichtigt, so dass insgesamt maximal der in der Liga erzielte Gewinn ausgebucht wird. +Bei Einzelbuchung je ausgewählten Tipper werden die ausstehenden Auszahlungen als Vorgabe in die jeweiligen Eingabefelder eingetragen. Werden diese Werte +verändert erfolgt keine Überprüfung auf Über- bzw. Unterzahlung.' + ), + array( + 0 => 'Vorgehensweise nach dem Update auf Version 0.9.2 ', + 1 => 'Beim Update des phpBB3 Football MODs auf Version 0.92 werden alle vorhanden Ranglisten (auch aus den Vorjahren) neu berechnet und die Gewinne +dabei automatisch im Tipperkonto verbucht. Eine Verrechnung mit dem UP-Saldo wird dabei nicht vorgenommen. Ist dies erwünscht, so muss der Schalter +"Ultimate Points einbinden" entsprechend gesetzt werden und die Spielergebnisse des ersten Spieltags je Liga erneut abgespeichert werden. Einsätze, +Ein- und Auszahlungen müssen manuell im Adminbereich je Saison nachverrechnet werden. Vorher sollte man entscheiden, ob diese Buchungen auch im UP-Saldo +berücksichtigt werden sollen und dementsprechend den Schalter für UP setzen.' + ), + array( + 0 => '--', + 1 => 'Spielplan Update' + ), + array( + 0 => 'Vorgehensweise beim Spielplan-Update', + 1 => 'Ein Update des Spielplans kann man nur mit Daten einer anderen Tipprunde-Seite durchführen. Eine Übersicht der zur Verfügung gestellten Saisons +und Ligen einer Seite kann über /football/xml/football_xml_season.php ausgehend vom phpbb-Rootverzeichnis abgerufen werden. Wird diese komplette Adresse +im Browser direkt eingegeben, werden die XML-Daten der Übersicht angezeigt und mit Klick auf einen Liganamen werden die aktuellen Daten der Liga aus +der Datenbank angezeigt. Klickt man in dieser Ansicht auf das Diskettensymbol, so kann man die Daten der Liga als XML-File downloaden.
+Beim Starten des Updates im Adminbereich unter Spielplan-Update wird die unter Einstellungen abgespeicherte Saisonübersicht als Updatequelle eingetragen. +Ist in den Extension-Einstellungen keine Updatequelle hinterlegt, wird die Football Extension Demoseite als Quelle eingetragen. Nach dem Laden der Saisonübersicht +werden die verfügbaren Ligen zur Auswahl angeboten. Wird der Zugriff auf eine andere URL vom eigenen Hoster nicht unterstützt bzw. ist dieser nicht frei- +geschaltet, muss man die gewünschten Ligen als XML-File downloaden und unter root/store ablegen. In diesem Fall muss localhost als Updatequelle eingetragen +werden und am Besten auch in den Einstellungen für zukünftige Aufrufe abgespeichert werden.
+Der Zugriff auf die Saisonübersicht und die Ligadaten kann über einen Code geschützt werden. Nutzer des Updates müssen dann den Code xxxx beim Aufruf der +Saisonübersicht mit ?code=xxxx anhängen; also /football/xml/football_xml_season.php?code=xxxx aufrufen. Beim anschließenden Aufruf der Ligadaten wird dann +der Code weitergereicht.
+Als Zielliga kann man eine bestehende Liga oder eine neue Liga durch Eingabe der neuen Liga-ID wählen. Um eine neue Liga einzurichten, muss vorher +zumindest die Saison existieren bzw. im Adminbereich angelegt werden. In diesem Fall werden alle Daten der Update-Datei nach ersetzen der Saison und Liga-ID +angezeigt und nach Bestätigung in die Datenbank übernommen.
+Wird eine bestehende Liga gewählt, werden zunächst Saison und Liga-ID im Update ersetzt und die Teams mit der Datenbank verglichen. Bei abweichenden Team-IDs +oder unterschiedlicher Teamanzahl, ist im nächsten Schritt ein Team-Mapping durchzuführen. Anschließend werden alle Abweichungen zwischen Update und Datenbank +angezeigt und man kann satz- und spaltenweise wählen welche Daten übernommen werden sollen. Unterschiedlich Vorbelegungen bei der Spaltenauswahl ist dabei zu +beachten und ggf. anzupassen. Nach der Übernahme der abweichenden Daten aus dem Updaten werden Abgabetermine und Status im Spieltag automatisch korrigiert und die +die Rangliste der Liga ab dem ersten Spieltag neu berechnet.
+Im Admin-Log wird eine Übersicht der durchgeführten Änderungen protokolliert.' + ), + array( + 0 => 'Team Mapping', + 1 => 'Das Team Mapping ist notwendig, wenn die Team-IDs nicht identisch sind oder die Anzahl der Teams abweichend ist. Neue hinzugekommene Teams, +wie z.B. in der EL die Gruppendritten der CL, werden in der Datenbank eingefügt. Nach dem Mapping wird überprüft, ob alle bestehenden Teams der Datenbank +zugeordnet sind. Die Team-IDs werden anhand des Mappings in den Update-Daten ausgetauscht. Neue Teams werden erst beim eigentlichen Update eingefügt.' + ), + array( + 0 => 'Status-Behandlung bei den Spielen', + 1 => 'Beim Erzeugen der XML-Daten werden die Status 4-6 auf die Status 1-3 geändert, d.h. im Update gibt es keine Spiele die aus der Wertung +genommen wurden. Für die Spiele mit Spielstatus < 2 werden die Tor-Felder als auch der Status selbst nicht übernommen. Steht in der Datenbank ein Status +größer als 3, so bleibt dieser Status erhalten und das Update-Programm behandelt den Datensatz wie mit dem korrespondierenden Status 1-3. Grundvoraussetzung +für die Datenübernahme unter Betrachtung des Status bleibt jedoch die Selektion der entsprechenden Spalten und Datensätzen innerhalb der Spiele.' + ), + array( + 0 => 'Negative Status übernehmen', + 1 => 'Ist diese Option gesetzt, werden die negativen Status, aber nicht die Tore, übernommen. Dadurch ist es möglich die gestaffelten Abgabetermine +aus dem Update zu übernehmen. Die Abgabetermine sind entweder aus dem Update zu übernehmen (Spaltenoptionen im Spieltag) oder manuell im Adminbereich zu +erfassen. Bei einer Ziel-Liga mit "Tippabgabe bis zum jeweiligen Spielbeginn" darf die Option "Negative Status übernehmen" nicht gewählt werden.' + ), + array( + 0 => 'Ergebnisse mit gleichem Status aktualisieren', + 1 => 'Nur wenn diese Option gesetzt ist, werden die Tor-Felder aus dem Update bei gleichem Status in Update und Datenbank übernommen. Dadurch +überschreibt das Update bereits erfasst (vorläufige) Ergebnisse in der Datenbank. Dies gilt auch für Spiele die in der Datenbank aus der Wertung genommen +wurden. Status 3 im Update überschreibt also die endgültigen Ergebnisse mit Status 6 in der Datenbank. Analog überschreibt Status 2 im Update die +vorläufigen, aus der Wertung genommen Ergebnisse mit Status 4, dies aber nur wenn die Option "Nur endgültige Ergebnisse übernehmen" nicht gewählt ist.' + ), + array( + 0 => 'Nur endgültige Ergebnisse übernehmen', + 1 => 'Wenn diese Option gesetzt ist, werden nur die Tor-Felder aus dem Update-Datensatz übernommen, wenn der Status des Spiels im Update gleich +3 ist. Vorläufige Ergebnisse aus dem Update werden somit nicht berücksichtigt. Sollen diese berücksichtigt werden, so ist diese Option explizit +auszuschalten. Sollen die vorläufigen Ergebnisse aus dem Update vorläufige Ergebnisse in der Datenbank überschreiben, ist zusätzlich die Option "Ergebnisse +mit gleichem Status aktualisieren" zu wählen.' + ), + array( + 0 => 'Zwischenspeicherung im Cache', + 1 => 'Die Daten der Saisonübersicht und der Ligen werden für 5 Minuten im Cache zwischengespeichert, damit keine doppelten Zugriffe auf die +Datenquelle erfolgen. Benötigt man innerhalb dieser Zeit trotzdem aktualisierte Daten, so muss man den Cache löschen um einen erneuten Download von der +Datenquelle zu erzwingen.' + ), +))); diff --git a/language/de/info_acp_all_bets.php b/language/de/info_acp_all_bets.php index f324c8e..32e9a6e 100644 --- a/language/de/info_acp_all_bets.php +++ b/language/de/info_acp_all_bets.php @@ -1,47 +1,47 @@ - 'Alle Tipps', - 'ACP_FOOTBALL_ALL_BETS_MANAGEMENT' => 'Tipprunde-Alle Tipps ansehen', - 'ACP_FOOTBALL_ALL_BETS_VIEW' => 'Alle Tipps ansehen', - 'ACP_FOOTBALL_ALL_BETS_VIEW_EXPLAIN' => 'Hier kannst du alle Tipps der Tipper einsehen.', - - 'SELECT_MATCHDAY' => 'Spieltag wählen', -)); - + 'Alle Tipps', + 'ACP_FOOTBALL_ALL_BETS_MANAGEMENT' => 'Tipprunde-Alle Tipps ansehen', + 'ACP_FOOTBALL_ALL_BETS_VIEW' => 'Alle Tipps ansehen', + 'ACP_FOOTBALL_ALL_BETS_VIEW_EXPLAIN' => 'Hier kannst du alle Tipps der Tipper einsehen.', + + 'SELECT_MATCHDAY' => 'Spieltag wählen', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_bank.php b/language/de/info_acp_bank.php index e3af3e6..478548b 100644 --- a/language/de/info_acp_bank.php +++ b/language/de/info_acp_bank.php @@ -1,114 +1,114 @@ - 'Konten', - 'ACP_FOOTBALL_BANK_MANAGE' => 'Konten verwalten', - 'ACP_FOOTBALL_BANK_MANAGE_EXPLAIN' => 'Hier kannst du alle Tipprunden Konten verwalten. Du kannst Einsätze einziehen, Ein- und Auszahlungen verwalten und kontrollieren.', - 'ACP_FOOTBALL_BANK_MANAGEMENT' => 'Tipprunde-Konten-Verwaltung', - - 'BET_DEPOSIT' => 'Einsatz einzahlen', - 'BET_DEPOSIT_EXPLAIN' => 'Hier kannst du Einzahlungen der Teilnehmer verbuchen. Bei Verrechnung in Ultimate Points, wird der UP Saldo entsprechend erhöht bzw. ausgeglichen. Ohne Verrechnung werden nur die jeweiligen Protokollsätze zum gewählten Spieltag erfasst.', - 'BOOK' => 'buchen', - 'BOOKED' => 'Gebucht', - - 'CARRYOVER_NEW_SEASON' => 'Übertrag in die nächste Saison', - 'CARRYOVER_OLD_SEASON' => 'Übertrag aus der letzten Saison', - 'CONFIRM_BET' => 'Bist du sicher, dass du bei den gewählten Tippern die Einsätze abbuchen möchtest?', - 'CONFIRM_CANCEL_BET' => 'Bist du sicher, dass du bei den gewählten Tippern die Einsätze stornieren möchtest?', - 'CONFIRM_CANCEL_DEPOSIT' => 'Bist du sicher, dass du bei den gewählten Tippern die Einzahlungen stornieren möchtest?', - 'CONFIRM_CANCEL_PAY' => 'Bist du sicher, dass du bei den gewählten Tippern die Auszahlungen stornieren möchtest?', - 'CONFIRM_CARRYOVER_PAY' => 'Bist du sicher, dass du bei den gewählten Tippern ein Teil der Gewinne in die neue Saison einzahlen möchtest?', - 'CONFIRM_DEPOSIT' => 'Bist du sicher, dass du bei den gewählten Tippern die Einzahlungen buchen möchtest?', - 'CONFIRM_LEAGUE_BET' => 'Bist du sicher, dass du bei den gewählten Ligen die Einsätze abbuchen möchtest?', - 'CONFIRM_LEAGUE_DELETE_WIN' => 'Bist du sicher, dass du bei den gewählten Ligen alle Gewinne löschen möchtest?', - 'CONFIRM_LEAGUE_DEPOSIT' => 'Bist du sicher, dass du bei den gewählten Ligen die Einzahlungen buchen möchtest?', - 'CONFIRM_LEAGUE_PAY' => 'Bist du sicher, dass du bei den gewählten Ligen die Auszahlungen buchen möchtest?', - 'CONFIRM_PAY' => 'Bist du sicher, dass du bei den gewählten Tippern die Auszahlungen buchen möchtest?', - - 'DEBIT_BET' => 'Einsatz abbuchen', - 'DEBIT_BET_EXPLAIN' => 'Hier kannst du Einsätze der Teilnehmer einfordern oder stornieren. Bei Verrechnung in Ultimate Points, wird der UP Saldo entsprechend belastet.', - 'DEPOSITED' => 'Eingezahlt', - - 'FOOTBALL_BANK_OFF' => 'Die Tipprunden Konten-Verwaltung wurde in den Tipprunden-Funktionalitäten deaktiviert.', - - 'LEAGUE_BANK' => 'Konten', - 'LEAGUE_BANK_EXPLAIN' => 'Dies sind die aktuellen Kontenbuchungen der jeweiligen Ligen. Am Ende der Saison sollten zumindest Einsatz/Gewinn und Ein-/Auszahlungen paarweise identisch sein. Aktionen auf dieser Seite werden für alle Teilnehmer ausgeführt. Einsätze und Einzahlungen werden für den 1. Spieltag, Auszahlung für den aktuellen Spieltag gebucht. Buchungen für einzelne Teilnehmer kannst du vernehmen, indem du auf den entsprechenden Betrag klickst. Mit Klick auf den Liganamen kannst du eine Übersicht als CSV-Datei downloaden.', - 'LEAGUE_BET' => '%s Einsatz wurde abgebucht.', - 'LEAGUE_BETS' => '%s Einsätze wurden abgebucht.', - 'LEAGUE_CANCEL_BET' => '%s Einsatzbuchung wurde storniert.', - 'LEAGUE_CANCEL_BETS' => '%s Einsatzbuchungen wurden storniert.', - 'LEAGUE_CANCEL_DEPOSIT' => '%s Einsatzzahlung wurde storniert.', - 'LEAGUE_CANCEL_DEPOSITS' => '%s Einsatzzahlungen wurden storniert.', - 'LEAGUE_CANCEL_PAY' => '%s Gewinnauszahlung wurde storniert.', - 'LEAGUE_CANCEL_PAYS' => '%s Gewinnauszahlungen wurden storniert.', - 'LEAGUE_CARRYOVER_PAY' => '%s Gewinnanteil wurde als Einzahlung in die neue Saison übertragen.', - 'LEAGUE_CARRYOVER_PAYS' => '%s Gewinnanteile wurden als Einzahlung in die neue Saison übertragen.', - 'LEAGUE_DELETE_WIN' => '%s Gewinn wurde gelöscht.', - 'LEAGUE_DELETE_WINS' => '%s Gewinne wurden gelöscht.', - 'LEAGUE_DEPOSIT' => '%s Einsatz wurde eingezahlt.', - 'LEAGUE_DEPOSITS' => '%s Einsätze wurden eingezahlt.', - 'LEAGUE_NAME' => 'Liganame', - 'LEAGUE_PAY' => '%s Gewinn wurde ausgezahlt.', - 'LEAGUE_PAYS' => '%s Gewinne wurden ausgezahlt.', - - 'MEMBER_BET' => 'Einsätze buchen', - 'MEMBER_CANCEL_BET' => 'Einsätze stornieren', - 'MEMBER_CANCEL_DEPOSITED' => 'Einzahlungen stornieren', - 'MEMBER_CANCEL_PAID' => 'Auszahlungen stornieren', - 'MEMBER_CARRYOVER_PAID' => 'Einzahlung in nächste Saison', - 'MEMBER_DELETE_WINS' => 'Gewinne löschen', - 'MEMBER_DEPOSITED' => 'Einzahlungen buchen', - 'MEMBER_PAID' => 'Auszahlungen buchen', - - 'NO_LEAGUE' => 'Keine Liga angegeben.', - 'NO_LEAGUES_SELECTED' => 'Es wurde keine Liga gewählt.', - 'NO_MEMBERS_SELECTED' => 'Es wurde kein Mitglied ausgewählt, bzw. das gewählte Mitglied ist nicht bekannt.', - 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen.', - 'NO_VALID_CALL' => 'Unzulässiger Aufruf! Die Aktion wird abgebrochen.', - - 'PAID' => 'Ausgezahlt', - 'PAY_WINS' => 'Gewinne auszahlen', - 'PAY_WINS_EXPLAIN' => 'Hier kannst du Gewinne oder Teilgewinne auszahlen oder als Einsatz in die nächste Saison übertragen. Bei Verrechnung in Ultimate Points, wird der UP Saldo entsprechend belastet.', - - 'SELECT_SEASON' => 'Saison auswählen', - 'SET_DEPOSITS' => 'Einzahlungen berechnen', - - 'WINS' => 'Gewinne', -)); - + 'Konten', + 'ACP_FOOTBALL_BANK_MANAGE' => 'Konten verwalten', + 'ACP_FOOTBALL_BANK_MANAGE_EXPLAIN' => 'Hier kannst du alle Tipprunden Konten verwalten. Du kannst Einsätze einziehen, Ein- und Auszahlungen verwalten und kontrollieren.', + 'ACP_FOOTBALL_BANK_MANAGEMENT' => 'Tipprunde-Konten-Verwaltung', + + 'BET_DEPOSIT' => 'Einsatz einzahlen', + 'BET_DEPOSIT_EXPLAIN' => 'Hier kannst du Einzahlungen der Teilnehmer verbuchen. Bei Verrechnung in Ultimate Points, wird der UP Saldo entsprechend erhöht bzw. ausgeglichen. Ohne Verrechnung werden nur die jeweiligen Protokollsätze zum gewählten Spieltag erfasst.', + 'BOOK' => 'buchen', + 'BOOKED' => 'Gebucht', + + 'CARRYOVER_NEW_SEASON' => 'Übertrag in die nächste Saison', + 'CARRYOVER_OLD_SEASON' => 'Übertrag aus der letzten Saison', + 'CONFIRM_BET' => 'Bist du sicher, dass du bei den gewählten Tippern die Einsätze abbuchen möchtest?', + 'CONFIRM_CANCEL_BET' => 'Bist du sicher, dass du bei den gewählten Tippern die Einsätze stornieren möchtest?', + 'CONFIRM_CANCEL_DEPOSIT' => 'Bist du sicher, dass du bei den gewählten Tippern die Einzahlungen stornieren möchtest?', + 'CONFIRM_CANCEL_PAY' => 'Bist du sicher, dass du bei den gewählten Tippern die Auszahlungen stornieren möchtest?', + 'CONFIRM_CARRYOVER_PAY' => 'Bist du sicher, dass du bei den gewählten Tippern ein Teil der Gewinne in die neue Saison einzahlen möchtest?', + 'CONFIRM_DEPOSIT' => 'Bist du sicher, dass du bei den gewählten Tippern die Einzahlungen buchen möchtest?', + 'CONFIRM_LEAGUE_BET' => 'Bist du sicher, dass du bei den gewählten Ligen die Einsätze abbuchen möchtest?', + 'CONFIRM_LEAGUE_DELETE_WIN' => 'Bist du sicher, dass du bei den gewählten Ligen alle Gewinne löschen möchtest?', + 'CONFIRM_LEAGUE_DEPOSIT' => 'Bist du sicher, dass du bei den gewählten Ligen die Einzahlungen buchen möchtest?', + 'CONFIRM_LEAGUE_PAY' => 'Bist du sicher, dass du bei den gewählten Ligen die Auszahlungen buchen möchtest?', + 'CONFIRM_PAY' => 'Bist du sicher, dass du bei den gewählten Tippern die Auszahlungen buchen möchtest?', + + 'DEBIT_BET' => 'Einsatz abbuchen', + 'DEBIT_BET_EXPLAIN' => 'Hier kannst du Einsätze der Teilnehmer einfordern oder stornieren. Bei Verrechnung in Ultimate Points, wird der UP Saldo entsprechend belastet.', + 'DEPOSITED' => 'Eingezahlt', + + 'FOOTBALL_BANK_OFF' => 'Die Tipprunden Konten-Verwaltung wurde in den Tipprunden-Funktionalitäten deaktiviert.', + + 'LEAGUE_BANK' => 'Konten', + 'LEAGUE_BANK_EXPLAIN' => 'Dies sind die aktuellen Kontenbuchungen der jeweiligen Ligen. Am Ende der Saison sollten zumindest Einsatz/Gewinn und Ein-/Auszahlungen paarweise identisch sein. Aktionen auf dieser Seite werden für alle Teilnehmer ausgeführt. Einsätze und Einzahlungen werden für den 1. Spieltag, Auszahlung für den aktuellen Spieltag gebucht. Buchungen für einzelne Teilnehmer kannst du vernehmen, indem du auf den entsprechenden Betrag klickst. Mit Klick auf den Liganamen kannst du eine Übersicht als CSV-Datei downloaden.', + 'LEAGUE_BET' => '%s Einsatz wurde abgebucht.', + 'LEAGUE_BETS' => '%s Einsätze wurden abgebucht.', + 'LEAGUE_CANCEL_BET' => '%s Einsatzbuchung wurde storniert.', + 'LEAGUE_CANCEL_BETS' => '%s Einsatzbuchungen wurden storniert.', + 'LEAGUE_CANCEL_DEPOSIT' => '%s Einsatzzahlung wurde storniert.', + 'LEAGUE_CANCEL_DEPOSITS' => '%s Einsatzzahlungen wurden storniert.', + 'LEAGUE_CANCEL_PAY' => '%s Gewinnauszahlung wurde storniert.', + 'LEAGUE_CANCEL_PAYS' => '%s Gewinnauszahlungen wurden storniert.', + 'LEAGUE_CARRYOVER_PAY' => '%s Gewinnanteil wurde als Einzahlung in die neue Saison übertragen.', + 'LEAGUE_CARRYOVER_PAYS' => '%s Gewinnanteile wurden als Einzahlung in die neue Saison übertragen.', + 'LEAGUE_DELETE_WIN' => '%s Gewinn wurde gelöscht.', + 'LEAGUE_DELETE_WINS' => '%s Gewinne wurden gelöscht.', + 'LEAGUE_DEPOSIT' => '%s Einsatz wurde eingezahlt.', + 'LEAGUE_DEPOSITS' => '%s Einsätze wurden eingezahlt.', + 'LEAGUE_NAME' => 'Liganame', + 'LEAGUE_PAY' => '%s Gewinn wurde ausgezahlt.', + 'LEAGUE_PAYS' => '%s Gewinne wurden ausgezahlt.', + + 'MEMBER_BET' => 'Einsätze buchen', + 'MEMBER_CANCEL_BET' => 'Einsätze stornieren', + 'MEMBER_CANCEL_DEPOSITED' => 'Einzahlungen stornieren', + 'MEMBER_CANCEL_PAID' => 'Auszahlungen stornieren', + 'MEMBER_CARRYOVER_PAID' => 'Einzahlung in nächste Saison', + 'MEMBER_DELETE_WINS' => 'Gewinne löschen', + 'MEMBER_DEPOSITED' => 'Einzahlungen buchen', + 'MEMBER_PAID' => 'Auszahlungen buchen', + + 'NO_LEAGUE' => 'Keine Liga angegeben.', + 'NO_LEAGUES_SELECTED' => 'Es wurde keine Liga gewählt.', + 'NO_MEMBERS_SELECTED' => 'Es wurde kein Mitglied ausgewählt, bzw. das gewählte Mitglied ist nicht bekannt.', + 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen.', + 'NO_VALID_CALL' => 'Unzulässiger Aufruf! Die Aktion wird abgebrochen.', + + 'PAID' => 'Ausgezahlt', + 'PAY_WINS' => 'Gewinne auszahlen', + 'PAY_WINS_EXPLAIN' => 'Hier kannst du Gewinne oder Teilgewinne auszahlen oder als Einsatz in die nächste Saison übertragen. Bei Verrechnung in Ultimate Points, wird der UP Saldo entsprechend belastet.', + + 'SELECT_SEASON' => 'Saison auswählen', + 'SET_DEPOSITS' => 'Einzahlungen berechnen', + + 'WINS' => 'Gewinne', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_bets.php b/language/de/info_acp_bets.php index f28e037..3e2338a 100644 --- a/language/de/info_acp_bets.php +++ b/language/de/info_acp_bets.php @@ -1,47 +1,47 @@ - 'Tipps', - 'ACP_FOOTBALL_BETS_MANAGE' => 'Tipps editieren', - 'ACP_FOOTBALL_BETS_MANAGE_EXPLAIN' => 'Hier kannst du alle Tipps der Tipper editieren.', - 'ACP_FOOTBALL_BETS_MANAGEMENT' => 'Tipprunde-Tipps editieren', - - 'SELECT_MATCHDAY' => 'Spieltag wählen', -)); - + 'Tipps', + 'ACP_FOOTBALL_BETS_MANAGE' => 'Tipps editieren', + 'ACP_FOOTBALL_BETS_MANAGE_EXPLAIN' => 'Hier kannst du alle Tipps der Tipper editieren.', + 'ACP_FOOTBALL_BETS_MANAGEMENT' => 'Tipprunde-Tipps editieren', + + 'SELECT_MATCHDAY' => 'Spieltag wählen', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_extra.php b/language/de/info_acp_extra.php index 0e9e1c1..7b38eb1 100644 --- a/language/de/info_acp_extra.php +++ b/language/de/info_acp_extra.php @@ -1,93 +1,93 @@ - 'Sondertipps', - 'ACP_FOOTBALL_EXTRA_MANAGE' => 'Sondertipps verwalten', - 'ACP_FOOTBALL_EXTRA_MANAGE_EXPLAIN' => 'Hier kannst du Sondertipps zu Spieltagen einer Liga zuordnen. Du kannst bestehende löschen oder ändern oder einen neuen Sondertipp erstellen, sowie Typ, Wertung, Punkte und den Endzeitpunkt der Sondertipps einstellen.', - 'ACP_FOOTBALL_EXTRA_MANAGEMENT' => 'Tipprunde-Sondertipp-Verwaltung', - - 'EVAL_BEFORE_DELIVERY' => 'Der Auswertungs-Spieltag darf nicht vor dem Abgabe-Spieltag liegen.', - 'EXTRA_ADD' => 'Sondertipp hinzufügen', - 'EXTRA_ADDED' => 'Sondertipp erfolgreich hinzugefügt.', - 'EXTRA_CONFIRM_DELETE' => 'Bist du sicher, dass du den Sondertipp "%1$s" in der %2$s. Liga aus der Saison %3$s mit allen Tipps löschen willst?', - 'EXTRA_CREATE_FAILED' => 'Sondertipp konnte nicht erstellt werden.', - 'EXTRA_DEF' => 'Bestehende Sondertipps', - 'EXTRA_DEF_EXPLAIN' => 'Dies sind Sondertipps, die von dir oder einem anderen Administrator erstellt wurden. Du kannst Sondertippeinstellungen ändern oder Sondertipps löschen.', - 'EXTRA_DELETED' => 'Sondertipp gelöscht', - 'EXTRA_DETAILS' => 'Sondertippdaten', - 'EXTRA_MATCHDAY' => 'Abgabe', - 'EXTRA_MATCHDAY_EVAL' => 'Auswertung', - 'EXTRA_MATCHDAY_EVAL_EXPLAIN' => 'Das Ergebnis des Sondertipps wird an diesem Spieltag eingegeben. Bei unterschiedlichen Spieltagen für Abgabe und Ergebnis werden die Punkte der Gesamtwertung zugerechnet, sonst fließen sie in die Spieltagswertung mit ein.', - 'EXTRA_MATCHDAY_EXPLAIN' => 'Die Tippabgabe des Sondertipps wird mit dem ersten Abgabetermin dieses Spieltags gesperrt.', - 'EXTRA_NO' => 'Nummer', - 'EXTRA_NO_DELETE' => 'Du darfst keine Sondertipps löschen. Dies dürfen nur Gründungsmitglieder', - 'EXTRA_POINTS' => 'Mögl. Punkte', - 'EXTRA_POINTS_EXPLAIN' => 'Maximal zu erreichende Punkte in Abhängigkeit zum Punktemodus.', - 'EXTRA_QUESTION' => 'Sondertipp Frage', - 'EXTRA_QUESTION_EXPLAIN' => 'Freier Fragetext. Bitte eine präzise, unmissverständliche Frage zum hinterlegten Fragetyp formulieren.', - 'EXTRA_QUESTION_TYPE' => 'Frage- bzw. Wertungs-Typ.', - 'EXTRA_QUESTION_TYPE_EXPLAIN' => '1 = Auswahl eines Teams, Punkte nur bei Übereinstimmung
2 = Auswahl eines Teams mehrere Ergebnisse, Punkte bei einem Treffer
3 = Texteingabe, Punkte bei Übereinstimmung
4 = Texteingabe aber mehrere Ergebnisse, Punkte bei einem Treffer
5 = Zahl, Punkte abzgl. der Differenz zwischen Tipp und Ergebnis', - 'EXTRA_STATUS' => 'Status', - 'EXTRA_STATUS_EXPLAIN' => '0 = offen (Tippabgabe möglich)
1 = keine Tippabgabe mehr möglich und noch keine Ergebnisse
2 = vorläufige Ergebnisse liegen vor
3 = abgeschlossen, endgültige Ergebnisse liegen vor.', - 'EXTRA_UPDATE_FAILED' => 'Die Sondertippeinstellungen konnten nicht aktualisiert werden.', - 'EXTRA_UPDATED' => 'Sondertippeinstellungen erfolgreich aktualisiert.', - - 'LEAGUE' => 'Liga', - - 'MATCHDAY' => 'Spieltag', - - 'NO_EXTRA' => 'Der gewählte Sondertipp existiert nicht. Bitte zuerst einen Sondertipp in dieser Liga der Saison erstellen.', - 'NO_EXTRA_CREATED' => 'Es wurden bislang keine Sondertipps erstellt.', - 'NO_LEAGUE' => 'Die gewählte Liga existiert nicht in der Saison %1$s. Bitte zuerst eine Liga in der Saison %1$s erstellen.', - 'NO_SEASON' => 'Die gewählte Saison existiert nicht. Bitte zuerst eine Saison erstellen.', - - 'QUESTION_TYPE' => 'Frage-Typ', - - 'SEASON' => 'Saison', - 'SELECT_LEAGUE' => 'Liga auswählen', - 'SELECT_MATCHDAY' => 'Wähle einen Spieltag', - - 'TOO_LARGE_EXTRA_POINTS' => 'Die Punktzahl für den Sondertipp ist zu groß. Erlaubt: 0-99', - 'TOO_LARGE_MATCHDAY' => 'Du musst einen Abgabe-Spieltag wählen.', - 'TOO_LARGE_MATCHDAY_EVAL' => 'Du musst einen Auswertungs-Spieltag wählen.', - 'TOO_SMALL_EXTRA_POINTS' => 'Die Punktzahl für den Sondertipp ist zu klein. Erlaubt: 0-99', - 'TOO_SMALL_MATCHDAY' => 'Du musst einen Abgabe-Spieltag wählen.', - 'TOO_SMALL_MATCHDAY_EVAL' => 'Du musst einen Auswertungs-Spieltag wählen.', -)); - + 'Sondertipps', + 'ACP_FOOTBALL_EXTRA_MANAGE' => 'Sondertipps verwalten', + 'ACP_FOOTBALL_EXTRA_MANAGE_EXPLAIN' => 'Hier kannst du Sondertipps zu Spieltagen einer Liga zuordnen. Du kannst bestehende löschen oder ändern oder einen neuen Sondertipp erstellen, sowie Typ, Wertung, Punkte und den Endzeitpunkt der Sondertipps einstellen.', + 'ACP_FOOTBALL_EXTRA_MANAGEMENT' => 'Tipprunde-Sondertipp-Verwaltung', + + 'EVAL_BEFORE_DELIVERY' => 'Der Auswertungs-Spieltag darf nicht vor dem Abgabe-Spieltag liegen.', + 'EXTRA_ADD' => 'Sondertipp hinzufügen', + 'EXTRA_ADDED' => 'Sondertipp erfolgreich hinzugefügt.', + 'EXTRA_CONFIRM_DELETE' => 'Bist du sicher, dass du den Sondertipp "%1$s" in der %2$s. Liga aus der Saison %3$s mit allen Tipps löschen willst?', + 'EXTRA_CREATE_FAILED' => 'Sondertipp konnte nicht erstellt werden.', + 'EXTRA_DEF' => 'Bestehende Sondertipps', + 'EXTRA_DEF_EXPLAIN' => 'Dies sind Sondertipps, die von dir oder einem anderen Administrator erstellt wurden. Du kannst Sondertippeinstellungen ändern oder Sondertipps löschen.', + 'EXTRA_DELETED' => 'Sondertipp gelöscht', + 'EXTRA_DETAILS' => 'Sondertippdaten', + 'EXTRA_MATCHDAY' => 'Abgabe', + 'EXTRA_MATCHDAY_EVAL' => 'Auswertung', + 'EXTRA_MATCHDAY_EVAL_EXPLAIN' => 'Das Ergebnis des Sondertipps wird an diesem Spieltag eingegeben. Bei unterschiedlichen Spieltagen für Abgabe und Ergebnis werden die Punkte der Gesamtwertung zugerechnet, sonst fließen sie in die Spieltagswertung mit ein.', + 'EXTRA_MATCHDAY_EXPLAIN' => 'Die Tippabgabe des Sondertipps wird mit dem ersten Abgabetermin dieses Spieltags gesperrt.', + 'EXTRA_NO' => 'Nummer', + 'EXTRA_NO_DELETE' => 'Du darfst keine Sondertipps löschen. Dies dürfen nur Gründungsmitglieder', + 'EXTRA_POINTS' => 'Mögl. Punkte', + 'EXTRA_POINTS_EXPLAIN' => 'Maximal zu erreichende Punkte in Abhängigkeit zum Punktemodus.', + 'EXTRA_QUESTION' => 'Sondertipp Frage', + 'EXTRA_QUESTION_EXPLAIN' => 'Freier Fragetext. Bitte eine präzise, unmissverständliche Frage zum hinterlegten Fragetyp formulieren.', + 'EXTRA_QUESTION_TYPE' => 'Frage- bzw. Wertungs-Typ.', + 'EXTRA_QUESTION_TYPE_EXPLAIN' => '1 = Auswahl eines Teams, Punkte nur bei Übereinstimmung
2 = Auswahl eines Teams mehrere Ergebnisse, Punkte bei einem Treffer
3 = Texteingabe, Punkte bei Übereinstimmung
4 = Texteingabe aber mehrere Ergebnisse, Punkte bei einem Treffer
5 = Zahl, Punkte abzgl. der Differenz zwischen Tipp und Ergebnis', + 'EXTRA_STATUS' => 'Status', + 'EXTRA_STATUS_EXPLAIN' => '0 = offen (Tippabgabe möglich)
1 = keine Tippabgabe mehr möglich und noch keine Ergebnisse
2 = vorläufige Ergebnisse liegen vor
3 = abgeschlossen, endgültige Ergebnisse liegen vor.', + 'EXTRA_UPDATE_FAILED' => 'Die Sondertippeinstellungen konnten nicht aktualisiert werden.', + 'EXTRA_UPDATED' => 'Sondertippeinstellungen erfolgreich aktualisiert.', + + 'LEAGUE' => 'Liga', + + 'MATCHDAY' => 'Spieltag', + + 'NO_EXTRA' => 'Der gewählte Sondertipp existiert nicht. Bitte zuerst einen Sondertipp in dieser Liga der Saison erstellen.', + 'NO_EXTRA_CREATED' => 'Es wurden bislang keine Sondertipps erstellt.', + 'NO_LEAGUE' => 'Die gewählte Liga existiert nicht in der Saison %1$s. Bitte zuerst eine Liga in der Saison %1$s erstellen.', + 'NO_SEASON' => 'Die gewählte Saison existiert nicht. Bitte zuerst eine Saison erstellen.', + + 'QUESTION_TYPE' => 'Frage-Typ', + + 'SEASON' => 'Saison', + 'SELECT_LEAGUE' => 'Liga auswählen', + 'SELECT_MATCHDAY' => 'Wähle einen Spieltag', + + 'TOO_LARGE_EXTRA_POINTS' => 'Die Punktzahl für den Sondertipp ist zu groß. Erlaubt: 0-99', + 'TOO_LARGE_MATCHDAY' => 'Du musst einen Abgabe-Spieltag wählen.', + 'TOO_LARGE_MATCHDAY_EVAL' => 'Du musst einen Auswertungs-Spieltag wählen.', + 'TOO_SMALL_EXTRA_POINTS' => 'Die Punktzahl für den Sondertipp ist zu klein. Erlaubt: 0-99', + 'TOO_SMALL_MATCHDAY' => 'Du musst einen Abgabe-Spieltag wählen.', + 'TOO_SMALL_MATCHDAY_EVAL' => 'Du musst einen Auswertungs-Spieltag wählen.', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_ko.php b/language/de/info_acp_ko.php index 8f23168..71aa650 100644 --- a/language/de/info_acp_ko.php +++ b/language/de/info_acp_ko.php @@ -1,70 +1,70 @@ - 'KO-Runden Gewinner', - 'ACP_FOOTBALL_KO_MANAGE' => 'KO-Runden Gewinner ermitteln', - 'ACP_FOOTBALL_KO_MANAGE_EXPLAIN' => 'Hier kannst du zu einer KO-Runde die Gewinner anhand der Begegnung(en) oder des Tabellenplatzes ermitteln und für kommende Spieltage freischalten. Bei der Spielplanerstellung werden nur diese Mannschaften für die Spieltage zur Auswahl angeboten. Ebenso ist es möglich Mannschaften anhand des Tabellenplatzes in eine andere KO-Liga zu überführen.', - 'ACP_FOOTBALL_KO_MANAGEMENT' => 'Tipprunde-KO-Runden abschliessen', - - 'CHOOSE_LEAGUE' => 'Liga wählen', - - 'ERROR_FROM_TO' => 'Fehler bei der Spieltagswahl. "Von" darf nicht nach "bis" liegen.', - 'ERROR_TARGET' => 'Fehler bei der Spieltagswahl. Der Ziel-Spieltag liegt nicht nach den Spieltagen zur Ermittlung.', - - 'GROUP_RANK' => 'Qualifiziert bis Tabellenplatz', - 'GROUP_RANK_EXPLAIN' => 'Alle Mannschaften bis zu diesem Tabellenplatz qualifizieren sich.', - - 'KO_GROUP' => 'Qualifikation anhand des Tabellenplatzes', - 'KO_MATCHDAYS' => 'Spieltage zur Ermittlung wählen', - 'KO_MOVED' => 'Folgende Teams wurden in eine andere Liga kopiert', - 'KO_NEXT' => 'Folgende Teams haben die nächste Runde erreicht', - 'KO_NEXT_CHECK' => 'Bitte die Teams prüfen, da bei Punktgleichheit der direkte Vergleich zählen kann, hier aber nicht berücksichtigt wird. ', - - 'MANAGE_GROUP' => 'Ermittlung anhand des Tabellenplatzes bei Gruppenpielen', - 'MATCHDAY_NEW' => 'Die Mannschaften qualifizieren sich bis Spieltag', - 'MATCHDAY_TARGET' => 'Ziel-Spieltag wählen', - 'MOVE_LEAGUE' => 'in Liga', - 'MOVE_RANK' => 'Transfer des Tabellenplatzes', - 'MOVE_RANK_EXPLAIN' => 'Die Mannschaften auf diesem Tabellenplatz werden in die hinterlegte Liga kopiert und sind bis zum angegeben Spieltag qualifiziert.', - - 'NO_KO_NEXT' => 'Es wurde kein Team in die nächste Runde gesetzt, da noch nicht alle Spiele gespielt sind!', - - 'PREDICTION_LEAGUE' => 'Tipprunde', -)); - + 'KO-Runden Gewinner', + 'ACP_FOOTBALL_KO_MANAGE' => 'KO-Runden Gewinner ermitteln', + 'ACP_FOOTBALL_KO_MANAGE_EXPLAIN' => 'Hier kannst du zu einer KO-Runde die Gewinner anhand der Begegnung(en) oder des Tabellenplatzes ermitteln und für kommende Spieltage freischalten. Bei der Spielplanerstellung werden nur diese Mannschaften für die Spieltage zur Auswahl angeboten. Ebenso ist es möglich Mannschaften anhand des Tabellenplatzes in eine andere KO-Liga zu überführen.', + 'ACP_FOOTBALL_KO_MANAGEMENT' => 'Tipprunde-KO-Runden abschliessen', + + 'CHOOSE_LEAGUE' => 'Liga wählen', + + 'ERROR_FROM_TO' => 'Fehler bei der Spieltagswahl. "Von" darf nicht nach "bis" liegen.', + 'ERROR_TARGET' => 'Fehler bei der Spieltagswahl. Der Ziel-Spieltag liegt nicht nach den Spieltagen zur Ermittlung.', + + 'GROUP_RANK' => 'Qualifiziert bis Tabellenplatz', + 'GROUP_RANK_EXPLAIN' => 'Alle Mannschaften bis zu diesem Tabellenplatz qualifizieren sich.', + + 'KO_GROUP' => 'Qualifikation anhand des Tabellenplatzes', + 'KO_MATCHDAYS' => 'Spieltage zur Ermittlung wählen', + 'KO_MOVED' => 'Folgende Teams wurden in eine andere Liga kopiert', + 'KO_NEXT' => 'Folgende Teams haben die nächste Runde erreicht', + 'KO_NEXT_CHECK' => 'Bitte die Teams prüfen, da bei Punktgleichheit der direkte Vergleich zählen kann, hier aber nicht berücksichtigt wird. ', + + 'MANAGE_GROUP' => 'Ermittlung anhand des Tabellenplatzes bei Gruppenpielen', + 'MATCHDAY_NEW' => 'Die Mannschaften qualifizieren sich bis Spieltag', + 'MATCHDAY_TARGET' => 'Ziel-Spieltag wählen', + 'MOVE_LEAGUE' => 'in Liga', + 'MOVE_RANK' => 'Transfer des Tabellenplatzes', + 'MOVE_RANK_EXPLAIN' => 'Die Mannschaften auf diesem Tabellenplatz werden in die hinterlegte Liga kopiert und sind bis zum angegeben Spieltag qualifiziert.', + + 'NO_KO_NEXT' => 'Es wurde kein Team in die nächste Runde gesetzt, da noch nicht alle Spiele gespielt sind!', + + 'PREDICTION_LEAGUE' => 'Tipprunde', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_leagues.php b/language/de/info_acp_leagues.php index 891d189..9b4ddb7 100644 --- a/language/de/info_acp_leagues.php +++ b/language/de/info_acp_leagues.php @@ -1,149 +1,149 @@ - 'Ligen', - 'ACP_FOOTBALL_LEAGUES_MANAGE' => 'Ligen verwalten', - 'ACP_FOOTBALL_LEAGUES_MANAGE_EXPLAIN' => 'Hier kannst du alle Ligen verwalten. Du kannst bestehende löschen oder ändern oder eine neue Liga erstellen, sowie Typ, Anzahl der Spieltage, Gewinne, Name und Kurzbezeichnug der Liga einstellen. ', - 'ACP_FOOTBALL_LEAGUES_MANAGEMENT' => 'Tipprunde-Liga-Verwaltung', - 'ADD_GROUP' => 'Gruppe hinzufügen', - 'ADD_USERS' => 'Benutzer hinzufügen', - 'ADD_USERS_EXPLAIN' => 'Hier kannst du neue Tipper zur Liga-Tipprunde hinzufügen. Bitte gib je einen Benutzernamen pro Zeile ein. ', - 'ALL_USERS' => 'Alle Mitglieder', - - 'BET_POINTS' => 'Einsatz', - 'BET_POINTS_EXPLAIN' => 'Einsatz zur Teilnahme am Saisonanfang', - 'BET_TYPE_KO' => 'Tipp bei KO-Spielen', - 'BET_TYPE_KO_EXPLAIN' => 'Auf welches Ergebnis soll bei KO-Spielen getippt werden?', - - 'CHECK_HIT_WINS' => 'Gewinn Volltreffer-Wertung fehlerhaft. Bitte korrigieren. ', - 'CHECK_HITS02_WINS' => 'Gewinn Volltreffer-Wertung mit Auswärtspunkten fehlerhaft. Bitte korrigieren. ', - 'CHECK_MATCHDAY_WINS' => 'Gewinne je Spieltag fehlerhaft. Bitte korrigieren. ', - 'CHECK_RULES_POST_ID' => 'Bei Beitritt durch den User muss die Beitragsnummer mit den Regeln hinterlegt werden. ', - 'CHECK_SEASON_WINS' => 'Saisongewinne fehlerhaft. Bitte korrigieren. ', - 'CREATE_LEAGUE' => 'Neue Liga erstellen', - - 'LEAGUE_BET_IN_TIME' => 'Tippabgabe bis zum jeweiligen Spielbeginn', - 'LEAGUE_BET_IN_TIME_EXPLAIN' => 'Dürfen die Tipper bis zum jeweiligen Spielbeginn tippen, oder soll die Tippabgabe der Spiele eines Spieltags nur bis zu einem (maximal drei) Termin(en) möglich sein?', - 'LEAGUE_CHAMP' => 'Meisterschaft', - 'LEAGUE_CONFIRM_DELETE' => 'Bist du sicher, dass du die %1$s aus der Saison %2$s mit allen Daten (Spieltage, Spielplänen, Tipps und Ranglisten) löschen willst?', - 'LEAGUE_CREATE_FAILED' => 'Liga konnte nicht erstellt werden. ', - 'LEAGUE_CREATED' => 'Liga erfolgreich erstellt. ', - 'LEAGUE_CURRENT' => 'Aktuelle Liga', - 'LEAGUE_DEF' => 'Bestehende Ligen', - 'LEAGUE_DEF_EXPLAIN' => 'Dies sind Ligen, die von dir oder einem anderen Administrator erstellt wurden. Du kannst Ligaeinstellungen ändern oder Ligen löschen. ', - 'LEAGUE_DELETE' => 'Liga entfernen', - 'LEAGUE_DELETED' => 'Liga gelöscht', - 'LEAGUE_DETAILS' => 'Ligadetails', - 'LEAGUE_EDIT_EXPLAIN' => 'Hier kannst du eine bestehende Liga bearbeiten. Du kannst Typ, Anzahl der Spieltage, Gewinne, Namen und die Kurzbezeichnung ändern. ', - 'LEAGUE_JOIN_BY_USER' => 'Beitritt in diese Tipprunde durch User', - 'LEAGUE_JOIN_BY_USER_EXPLAIN' => 'Sollen die Forum-User selbst dieser Tipprunde beitreten können, oder soll die Aufnahme in diese Tipprunde nur durch den Admin erfolgen?', - 'LEAGUE_JOIN_IN_SEASON' => 'Beitritt in diese Tipprunde während der Saison', - 'LEAGUE_JOIN_IN_SEASON_EXPLAIN' => 'Dürfen die Forum-User während der laufenden Saison dieser Tipprunde beitreten?', - 'LEAGUE_KO' => 'KO-Runde', - 'LEAGUE_MATCHDAYS' => 'Anzahl der Spieltage', - 'LEAGUE_MATCHDAYS_EMPTY' => 'Die Anzahl der Spieltage fehlt. ', - 'LEAGUE_MATCHDAYS_EXPLAIN' => 'Bei der Berechnung der Anzahl der Spieltage ist zu berücksichtigen, dass Spiele unterschiedlicher Runden zu einem Spieltag zusammengefasst werden können, damit nicht auf einzelne oder wenige Spiele getippt werden muss. ', - 'LEAGUE_MATCHES' => 'Anzahl der Spiele je Spieltag', - 'LEAGUE_MATCHES_EXPLAIN' => 'Bei KO-Runden mit unterschiedlicher Anzahl von Spielen an den Spieltagen, ist hier 0 einzutragen und die Anzahl der Spiele beim Spieltag zu erfassen. ', - 'LEAGUE_MEMBERS' => 'Tipprunden-Teilnehmer', - 'LEAGUE_NAME' => 'Liganame', - 'LEAGUE_NAME_EMPTY' => 'Der Liganame muss mindesten 3 Buchstaben lang sein. ', - 'LEAGUE_NO_MEMBER' => 'Die Liga hat zur Zeit keine Tipper', - 'LEAGUE_NUMBER' => 'Die angegebene Liga muss numerisch sein. Bitte eine Liganummer von 1-99 eingeben. ', - 'LEAGUE_POINTS' => 'Punkte Modus dieser Liga-Tipprunde', - 'LEAGUE_POINTS_DIFF' => 'Punkte bei richtiger Tordifferenz', - 'LEAGUE_POINTS_DIFF_EXPLAIN' => 'Punkte für richtige Tordifferenz. ', - 'LEAGUE_POINTS_HIT' => 'Punkte für einen Volltreffer', - 'LEAGUE_POINTS_HIT_EXPLAIN' => 'Punkte, wenn der Tipp mit dem Ergebnis übereinstimmt. ', - 'LEAGUE_POINTS_LAST' => 'Punkte des letzten für Nichttipper', - 'LEAGUE_POINTS_LAST_EXPLAIN' => 'Sollen die Nichttipper automatisch die Punkte des schlechtesten Tippers erhalten? Dies können eventuell auch 0 Punkte sein. ', - 'LEAGUE_POINTS_MODE' => 'Punkte Modus', - 'LEAGUE_POINTS_MODE_EXPLAIN' => '1 = Volltrefferpunkte und bei richtiger Tendenz je abweichendem Tor ein Punkt weniger aber mind. Tendenzpunkte. Bei Unentschieden nur einfacher Abzug bei abweichendem Tor.
2 = wie 1 jedoch bei Unentschieden voller Abzug je Torabweichung.
3 = Volltreffer- oder Tendenzpunkte.
4 = Volltreffer-, Differenz- oder Tendenzpunkte.
5 = wie 4 aber bei Remis keine Diffenzpunkte.
6 = Volltreffer- oder Tendenzpunkte; Differenzpunkte bei Unentschieden-Tendenz. ', - 'LEAGUE_POINTS_TENDENCY' => 'Punkte bei richtiger Tendenz', - 'LEAGUE_POINTS_TENDENCY_EXPLAIN' => 'Punkte bzw. Mindestpunkte bei richtiger Tendenz. ', - 'LEAGUE_RULES_POST_ID' => 'Beitragsnummer mit den Regeln', - 'LEAGUE_RULES_POST_ID_EXPLAIN' => 'Post-ID mit den Regeln zu dieser Liga-Tipprunde. Die Post-Id wird beim Button Beitrag melden angezeigt. ', - 'LEAGUE_SHORT' => 'Liga Kurzbezeichnung', - 'LEAGUE_SHORT_EMPTY' => 'Die Kurzbezeichnung fehlt. ', - 'LEAGUE_SHORT_EXPLAIN' => 'Dreistelliges Kürzel z.B. 1BL, 2BL, DFB, CL oder EL zur Identifizierung der Liga in der Download-Datei. ', - 'LEAGUE_TAKEN' => 'Diese Liga existiert bereits in dieser Saison. Bitte wähle eine andere Liganummer aus. ', - 'LEAGUE_TYPE' => 'Ligatyp', - 'LEAGUE_TYPE_EXPLAIN' => 'Bei Spielrunden mit Spielen, die über eine Verlängerung entschieden werden können ist hier KO-Runde zu wählen, auch wenn einzelne Spiele dieser Runde nach 90 Minuten enden. ', - 'LEAGUE_UPDATE_FAILED' => 'Ligaeinstellungen konnten nicht aktualisiert werden. ', - 'LEAGUE_UPDATED' => 'Ligaeinstellungen erfolgreich aktualisiert. ', - 'LEAGUE_USERS_ADD' => 'Tipper zur Liga hinzugefügt. ', - 'LEAGUE_USERS_REMOVE' => 'Tipper aus der Liga entfernt. ', - 'LEAGUE_WIN_EXPLAIN' => 'Bei den folgenden Gewinnfeldern sind die Gewinne je Platz durch ; getrennt einzugeben. Also 10.50;5 für Platz 1 = 10,50 Euro und Platz 2 = 5 Euro', - 'LEAGUE_WIN_HITS' => 'Gewinn Volltreffer-Wertung', - 'LEAGUE_WIN_HITS_AWAY' => 'Gewinn Volltreffer-Wertung mit Auswärtspunkten', - 'LEAGUE_WIN_HITS_AWAY_EXPLAIN' => 'Gewinn in Euro für den Erstplatzierten der Volltreffer-Wertung bei denen die Auswärtsmannschaft gepunktet hat. ', - 'LEAGUE_WIN_HITS_EXPLAIN' => 'Gewinn in Euro für den Erstplatzierten der Volltreffer-Wertung. ', - 'LEAGUE_WIN_MATCHDAYS' => 'Gewinne je Spieltag', - 'LEAGUE_WIN_MATCHDAYS_EXPLAIN' => 'Platzierungsgewinne je Spieltag. ', - 'LEAGUE_WIN_SEASON' => 'Gewinne Saison', - 'LEAGUE_WIN_SEASON_EXPLAIN' => 'Einmalige Platzierungsgewinne am Ende der Saison. ', - 'LEAGUE_WINS' => 'Liga Gewinne', - 'LEAGUES_NO_DELETE' => 'Du darfst keine Liga löschen. Dies dürfen nur Gründungsmitglieder', - 'LEAGUES_NO_TEAM' => 'Diese Liga hat keine Teams', - - 'MEMBER' => 'Tipper', - 'MEMBER_ALL' => 'Alle aktive Boardmitglieder aufnehmen', - 'MEMBER_CONFIRM_DELETE' => 'Bist du sicher, dass du die gewählten Tipper aus der Tipprunde %1$s der Saison %2$s mit allen Daten (Tipps, Ranglistenplätze und Kontoauszug) löschen willst?', - 'MEMBER_DELETE' => 'Tipper aus Liga entfernen', - 'MEMBER_EXISTS' => 'Dieser Tipper ist bereits Teilnehmer dieser Liga-Tipprunde. ', - 'MEMBER_EXPLAIN' => 'Dies ist eine Liste aller Tipper dieser Liga. Von hier aus kannst du einstellen, wer Tipper dieser Liga sein soll. ', - - 'NO_LEAGUE' => 'Keine Liga angegeben. ', - 'NO_LEAGUES_CREATED' => 'Es wurden bislang keine Ligen erstellt. ', - 'NO_MATCHDAYS_KO' => 'Bei einer KO-Runde müssen erst die Spieltage erfasst werden bevor User der Tipprunde beitreten können. ', - 'NO_MEMBERS_SELECTED' => 'Es wurde kein Mitglied ausgewählt, bzw. das gewählte Mitglied ist nicht bekannt. ', - 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen. ', - - 'SELECT_SEASON' => 'Saison auswählen', - - 'TOO_LARGE_LEAGUE' => 'Der Wert für die Liga ist zu groß. Es sind nur Ligen zwischen 1 und 99 möglich. ', - 'TOO_LARGE_LEAGUE_MATCHDAYS' => 'Die Anzahl der Spieltage ist zu groß. Sie muss zwischen 1 und 99 liegen. ', - 'TOO_LARGE_LEAGUE_MATCHES' => 'Die Anzahl der Spiele je Spieltag ist zu groß. Sie muss zwischen 0 und 99 liegen. ', - 'TOO_SHORT_LEAGUE_SHORT' => 'Die Kurzbezeichnung der Liga muss mindesten 1 Zeichen lang sein. ', - 'TOO_SHORT_SEASON' => 'Der Liganame muss mindesten 2 Zeichen lang sein. ', - 'TOO_SMALL_LEAGUE' => 'Der Wert für die Liga ist zu klein. Es sind nur Ligen zwischen 1 und 99 möglich. ', - 'TOO_SMALL_LEAGUE_MATCHDAYS' => 'Die Anzahl der Spieltage ist zu klein. Sie muss zwischen 1 und 99 liegen. ', - 'TOO_SMALL_LEAGUE_MATCHES' => 'Die Anzahl der Spiele je Spieltag ist zu klein. Sie muss zwischen 0 und 99 liegen. ', -)); - + 'Ligen', + 'ACP_FOOTBALL_LEAGUES_MANAGE' => 'Ligen verwalten', + 'ACP_FOOTBALL_LEAGUES_MANAGE_EXPLAIN' => 'Hier kannst du alle Ligen verwalten. Du kannst bestehende löschen oder ändern oder eine neue Liga erstellen, sowie Typ, Anzahl der Spieltage, Gewinne, Name und Kurzbezeichnug der Liga einstellen. ', + 'ACP_FOOTBALL_LEAGUES_MANAGEMENT' => 'Tipprunde-Liga-Verwaltung', + 'ADD_GROUP' => 'Gruppe hinzufügen', + 'ADD_USERS' => 'Benutzer hinzufügen', + 'ADD_USERS_EXPLAIN' => 'Hier kannst du neue Tipper zur Liga-Tipprunde hinzufügen. Bitte gib je einen Benutzernamen pro Zeile ein. ', + 'ALL_USERS' => 'Alle Mitglieder', + + 'BET_POINTS' => 'Einsatz', + 'BET_POINTS_EXPLAIN' => 'Einsatz zur Teilnahme am Saisonanfang', + 'BET_TYPE_KO' => 'Tipp bei KO-Spielen', + 'BET_TYPE_KO_EXPLAIN' => 'Auf welches Ergebnis soll bei KO-Spielen getippt werden?', + + 'CHECK_HIT_WINS' => 'Gewinn Volltreffer-Wertung fehlerhaft. Bitte korrigieren. ', + 'CHECK_HITS02_WINS' => 'Gewinn Volltreffer-Wertung mit Auswärtspunkten fehlerhaft. Bitte korrigieren. ', + 'CHECK_MATCHDAY_WINS' => 'Gewinne je Spieltag fehlerhaft. Bitte korrigieren. ', + 'CHECK_RULES_POST_ID' => 'Bei Beitritt durch den User muss die Beitragsnummer mit den Regeln hinterlegt werden. ', + 'CHECK_SEASON_WINS' => 'Saisongewinne fehlerhaft. Bitte korrigieren. ', + 'CREATE_LEAGUE' => 'Neue Liga erstellen', + + 'LEAGUE_BET_IN_TIME' => 'Tippabgabe bis zum jeweiligen Spielbeginn', + 'LEAGUE_BET_IN_TIME_EXPLAIN' => 'Dürfen die Tipper bis zum jeweiligen Spielbeginn tippen, oder soll die Tippabgabe der Spiele eines Spieltags nur bis zu einem (maximal drei) Termin(en) möglich sein?', + 'LEAGUE_CHAMP' => 'Meisterschaft', + 'LEAGUE_CONFIRM_DELETE' => 'Bist du sicher, dass du die %1$s aus der Saison %2$s mit allen Daten (Spieltage, Spielplänen, Tipps und Ranglisten) löschen willst?', + 'LEAGUE_CREATE_FAILED' => 'Liga konnte nicht erstellt werden. ', + 'LEAGUE_CREATED' => 'Liga erfolgreich erstellt. ', + 'LEAGUE_CURRENT' => 'Aktuelle Liga', + 'LEAGUE_DEF' => 'Bestehende Ligen', + 'LEAGUE_DEF_EXPLAIN' => 'Dies sind Ligen, die von dir oder einem anderen Administrator erstellt wurden. Du kannst Ligaeinstellungen ändern oder Ligen löschen. ', + 'LEAGUE_DELETE' => 'Liga entfernen', + 'LEAGUE_DELETED' => 'Liga gelöscht', + 'LEAGUE_DETAILS' => 'Ligadetails', + 'LEAGUE_EDIT_EXPLAIN' => 'Hier kannst du eine bestehende Liga bearbeiten. Du kannst Typ, Anzahl der Spieltage, Gewinne, Namen und die Kurzbezeichnung ändern. ', + 'LEAGUE_JOIN_BY_USER' => 'Beitritt in diese Tipprunde durch User', + 'LEAGUE_JOIN_BY_USER_EXPLAIN' => 'Sollen die Forum-User selbst dieser Tipprunde beitreten können, oder soll die Aufnahme in diese Tipprunde nur durch den Admin erfolgen?', + 'LEAGUE_JOIN_IN_SEASON' => 'Beitritt in diese Tipprunde während der Saison', + 'LEAGUE_JOIN_IN_SEASON_EXPLAIN' => 'Dürfen die Forum-User während der laufenden Saison dieser Tipprunde beitreten?', + 'LEAGUE_KO' => 'KO-Runde', + 'LEAGUE_MATCHDAYS' => 'Anzahl der Spieltage', + 'LEAGUE_MATCHDAYS_EMPTY' => 'Die Anzahl der Spieltage fehlt. ', + 'LEAGUE_MATCHDAYS_EXPLAIN' => 'Bei der Berechnung der Anzahl der Spieltage ist zu berücksichtigen, dass Spiele unterschiedlicher Runden zu einem Spieltag zusammengefasst werden können, damit nicht auf einzelne oder wenige Spiele getippt werden muss. ', + 'LEAGUE_MATCHES' => 'Anzahl der Spiele je Spieltag', + 'LEAGUE_MATCHES_EXPLAIN' => 'Bei KO-Runden mit unterschiedlicher Anzahl von Spielen an den Spieltagen, ist hier 0 einzutragen und die Anzahl der Spiele beim Spieltag zu erfassen. ', + 'LEAGUE_MEMBERS' => 'Tipprunden-Teilnehmer', + 'LEAGUE_NAME' => 'Liganame', + 'LEAGUE_NAME_EMPTY' => 'Der Liganame muss mindesten 3 Buchstaben lang sein. ', + 'LEAGUE_NO_MEMBER' => 'Die Liga hat zur Zeit keine Tipper', + 'LEAGUE_NUMBER' => 'Die angegebene Liga muss numerisch sein. Bitte eine Liganummer von 1-99 eingeben. ', + 'LEAGUE_POINTS' => 'Punkte Modus dieser Liga-Tipprunde', + 'LEAGUE_POINTS_DIFF' => 'Punkte bei richtiger Tordifferenz', + 'LEAGUE_POINTS_DIFF_EXPLAIN' => 'Punkte für richtige Tordifferenz. ', + 'LEAGUE_POINTS_HIT' => 'Punkte für einen Volltreffer', + 'LEAGUE_POINTS_HIT_EXPLAIN' => 'Punkte, wenn der Tipp mit dem Ergebnis übereinstimmt. ', + 'LEAGUE_POINTS_LAST' => 'Punkte des letzten für Nichttipper', + 'LEAGUE_POINTS_LAST_EXPLAIN' => 'Sollen die Nichttipper automatisch die Punkte des schlechtesten Tippers erhalten? Dies können eventuell auch 0 Punkte sein. ', + 'LEAGUE_POINTS_MODE' => 'Punkte Modus', + 'LEAGUE_POINTS_MODE_EXPLAIN' => '1 = Volltrefferpunkte und bei richtiger Tendenz je abweichendem Tor ein Punkt weniger aber mind. Tendenzpunkte. Bei Unentschieden nur einfacher Abzug bei abweichendem Tor.
2 = wie 1 jedoch bei Unentschieden voller Abzug je Torabweichung.
3 = Volltreffer- oder Tendenzpunkte.
4 = Volltreffer-, Differenz- oder Tendenzpunkte.
5 = wie 4 aber bei Remis keine Diffenzpunkte.
6 = Volltreffer- oder Tendenzpunkte; Differenzpunkte bei Unentschieden-Tendenz. ', + 'LEAGUE_POINTS_TENDENCY' => 'Punkte bei richtiger Tendenz', + 'LEAGUE_POINTS_TENDENCY_EXPLAIN' => 'Punkte bzw. Mindestpunkte bei richtiger Tendenz. ', + 'LEAGUE_RULES_POST_ID' => 'Beitragsnummer mit den Regeln', + 'LEAGUE_RULES_POST_ID_EXPLAIN' => 'Post-ID mit den Regeln zu dieser Liga-Tipprunde. Die Post-Id wird beim Button Beitrag melden angezeigt. ', + 'LEAGUE_SHORT' => 'Liga Kurzbezeichnung', + 'LEAGUE_SHORT_EMPTY' => 'Die Kurzbezeichnung fehlt. ', + 'LEAGUE_SHORT_EXPLAIN' => 'Dreistelliges Kürzel z.B. 1BL, 2BL, DFB, CL oder EL zur Identifizierung der Liga in der Download-Datei. ', + 'LEAGUE_TAKEN' => 'Diese Liga existiert bereits in dieser Saison. Bitte wähle eine andere Liganummer aus. ', + 'LEAGUE_TYPE' => 'Ligatyp', + 'LEAGUE_TYPE_EXPLAIN' => 'Bei Spielrunden mit Spielen, die über eine Verlängerung entschieden werden können ist hier KO-Runde zu wählen, auch wenn einzelne Spiele dieser Runde nach 90 Minuten enden. ', + 'LEAGUE_UPDATE_FAILED' => 'Ligaeinstellungen konnten nicht aktualisiert werden. ', + 'LEAGUE_UPDATED' => 'Ligaeinstellungen erfolgreich aktualisiert. ', + 'LEAGUE_USERS_ADD' => 'Tipper zur Liga hinzugefügt. ', + 'LEAGUE_USERS_REMOVE' => 'Tipper aus der Liga entfernt. ', + 'LEAGUE_WIN_EXPLAIN' => 'Bei den folgenden Gewinnfeldern sind die Gewinne je Platz durch ; getrennt einzugeben. Also 10.50;5 für Platz 1 = 10,50 Euro und Platz 2 = 5 Euro', + 'LEAGUE_WIN_HITS' => 'Gewinn Volltreffer-Wertung', + 'LEAGUE_WIN_HITS_AWAY' => 'Gewinn Volltreffer-Wertung mit Auswärtspunkten', + 'LEAGUE_WIN_HITS_AWAY_EXPLAIN' => 'Gewinn in Euro für den Erstplatzierten der Volltreffer-Wertung bei denen die Auswärtsmannschaft gepunktet hat. ', + 'LEAGUE_WIN_HITS_EXPLAIN' => 'Gewinn in Euro für den Erstplatzierten der Volltreffer-Wertung. ', + 'LEAGUE_WIN_MATCHDAYS' => 'Gewinne je Spieltag', + 'LEAGUE_WIN_MATCHDAYS_EXPLAIN' => 'Platzierungsgewinne je Spieltag. ', + 'LEAGUE_WIN_SEASON' => 'Gewinne Saison', + 'LEAGUE_WIN_SEASON_EXPLAIN' => 'Einmalige Platzierungsgewinne am Ende der Saison. ', + 'LEAGUE_WINS' => 'Liga Gewinne', + 'LEAGUES_NO_DELETE' => 'Du darfst keine Liga löschen. Dies dürfen nur Gründungsmitglieder', + 'LEAGUES_NO_TEAM' => 'Diese Liga hat keine Teams', + + 'MEMBER' => 'Tipper', + 'MEMBER_ALL' => 'Alle aktive Boardmitglieder aufnehmen', + 'MEMBER_CONFIRM_DELETE' => 'Bist du sicher, dass du die gewählten Tipper aus der Tipprunde %1$s der Saison %2$s mit allen Daten (Tipps, Ranglistenplätze und Kontoauszug) löschen willst?', + 'MEMBER_DELETE' => 'Tipper aus Liga entfernen', + 'MEMBER_EXISTS' => 'Dieser Tipper ist bereits Teilnehmer dieser Liga-Tipprunde. ', + 'MEMBER_EXPLAIN' => 'Dies ist eine Liste aller Tipper dieser Liga. Von hier aus kannst du einstellen, wer Tipper dieser Liga sein soll. ', + + 'NO_LEAGUE' => 'Keine Liga angegeben. ', + 'NO_LEAGUES_CREATED' => 'Es wurden bislang keine Ligen erstellt. ', + 'NO_MATCHDAYS_KO' => 'Bei einer KO-Runde müssen erst die Spieltage erfasst werden bevor User der Tipprunde beitreten können. ', + 'NO_MEMBERS_SELECTED' => 'Es wurde kein Mitglied ausgewählt, bzw. das gewählte Mitglied ist nicht bekannt. ', + 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen. ', + + 'SELECT_SEASON' => 'Saison auswählen', + + 'TOO_LARGE_LEAGUE' => 'Der Wert für die Liga ist zu groß. Es sind nur Ligen zwischen 1 und 99 möglich. ', + 'TOO_LARGE_LEAGUE_MATCHDAYS' => 'Die Anzahl der Spieltage ist zu groß. Sie muss zwischen 1 und 99 liegen. ', + 'TOO_LARGE_LEAGUE_MATCHES' => 'Die Anzahl der Spiele je Spieltag ist zu groß. Sie muss zwischen 0 und 99 liegen. ', + 'TOO_SHORT_LEAGUE_SHORT' => 'Die Kurzbezeichnung der Liga muss mindesten 1 Zeichen lang sein. ', + 'TOO_SHORT_SEASON' => 'Der Liganame muss mindesten 2 Zeichen lang sein. ', + 'TOO_SMALL_LEAGUE' => 'Der Wert für die Liga ist zu klein. Es sind nur Ligen zwischen 1 und 99 möglich. ', + 'TOO_SMALL_LEAGUE_MATCHDAYS' => 'Die Anzahl der Spieltage ist zu klein. Sie muss zwischen 1 und 99 liegen. ', + 'TOO_SMALL_LEAGUE_MATCHES' => 'Die Anzahl der Spiele je Spieltag ist zu klein. Sie muss zwischen 0 und 99 liegen. ', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_matchdays.php b/language/de/info_acp_matchdays.php index 77bbaa9..5f54b4c 100644 --- a/language/de/info_acp_matchdays.php +++ b/language/de/info_acp_matchdays.php @@ -1,127 +1,127 @@ - 'Spieltage', - 'ACP_FOOTBALL_MATCHDAYS_MANAGE' => 'Spieltage verwalten', - 'ACP_FOOTBALL_MATCHDAYS_MANAGE_EXPLAIN' => 'Hier kannst du je Liga Spieltage einer Saison zuordnen. Du kannst bestehende löschen oder ändern oder einen neuen Spieltag erstellen, sowie Typ, Anzahl der Spieltage, Gewinne, Name und Kurzbezeichnug der Spieltag einstellen.', - 'ACP_FOOTBALL_MATCHDAYS_MANAGEMENT' => 'Tipprunde-Spieltags-Verwaltung', - 'ADD_MATCHDAY' => 'Spieltag zur Liga hinzufügen', - - 'BACKWARD_DELIVERY' => 'Zeitspanne wählen', - 'BACKWARD_DELIVERY_EXPLAIN' => 'Zeitspanne der Abgabe vor dem ersten Spielbeginn.', - - 'CHANGE_DELIVERY' => 'Abgabetermine ändern', - 'CHANGE_DELIVERY_EXPLAIN' => 'Hier kannst du einmalig die zukünftigen Abgabetermine der Spieltage in Abhängigkeit zum ersten Spielbeginn neu festlegen. Hierdurch wird jedoch kein Automatismus bei zukünftigen Spielverlegungen eingerichtet. Mit Zeitspanne 0 kannst du überprüfen, ob ein Abgabetermin nach dem ersten Spielbeginn liegt und diesen entsprechend korrigieren. Soll ein einheitlicher Abgabetermin gesetzt werden, muss diese Funktion eventuell mehrfach mit unterschiedlichen Zeitspannen passend zu den Anstoßzeiten aufgerufen werden.', - - 'DELIVERY' => 'Abgabezeit', - 'DELIVERY_SET_TIME' => 'Abgabezeit vor dem ersten Spielbeginn', - 'DELIVERY_NUMBER' => 'Abgabe Nr.', - - 'GENERATE_MATCHDAY' => 'Fehlende Spieltage generieren', - - 'INVALID_DDAY1_DATE' => 'Kein gültiger Abgabetermin.', - 'INVALID_DDAY2_DATE' => 'Kein gültiger 2. Abgabetermin.', - 'INVALID_DDAY3_DATE' => 'Kein gültiger 3. Abgabetermin.', - - 'LEAGUE' => 'Liga', - - 'MATCHDAY' => 'Spieltag', - 'MATCHDAY_ADDED' => 'Spieltag erfolgreich hinzugefügt.', - 'MATCHDAY_CONFIRM_DELETE' => 'Bist du sicher, dass du den %1$s. Spieltag aus der Saison %2$s mit allen Daten (Spielplan und Tipps) löschen willst?', - 'MATCHDAY_CONFIRM_REMOVE' => 'Bist du sicher, dass du alle überflüssigen Spieltage aus der Saison %1$s mit allen Daten (Spielplan und Tipps) löschen willst?', - 'MATCHDAY_CREATE_FAILED' => 'Spieltag konnte nicht erstellt werden.', - 'MATCHDAY_CREATED' => '%1$s Spieltag wurde erfolgreich erstellt.', - 'MATCHDAY_CURRENT' => 'Aktuelle Spieltag', - 'MATCHDAY_DEF' => 'Bestehende Spieltage', - 'MATCHDAY_DEF_EXPLAIN' => 'Dies sind Spieltage, die von dir oder einem anderen Administrator erstellt wurden. Du kannst Spieltageinstellungen ändern oder Spieltage löschen.', - 'MATCHDAY_DELETE' => 'Spieltag entfernen', - 'MATCHDAY_DELETED' => 'Spieltag gelöscht', - 'MATCHDAY_DELIVERY' => 'Abgabetermin', - 'MATCHDAY_DELIVERY_EXPLAIN' => 'Termin an dem der Spieltag bzw. die nächsten Spiele geschlossen werden und somit keine Tippabgabe mehr möglich ist. Wurde der Spieltag bereits geschlossen (Status 1), kann dieser durch ein zukünftigen Abgabetermin wieder geöffnet werden. Andere Statusübergänge sind nur durch Eingabe bzw. Löschen der Spielergebnisse dieses Spieltags möglich.', - 'MATCHDAY_DELIVERY2' => '2. Abgabetermin ', - 'MATCHDAY_DELIVERY2_EXPLAIN' => 'Beim Erreichen des ersten Abgabetermins wird dieser Termin als nächster Abgabetermin für die nächsten Spiele gesetzt.', - 'MATCHDAY_DELIVERY3' => '3. Abgabetermin', - 'MATCHDAY_DELIVERY3_EXPLAIN' => 'Beim Erreichen des 2. Abgabetermins wird dieser Termin als nächster Abgabetermin für die nächsten Spiele gesetzt.', - 'MATCHDAY_DETAILS' => 'Spieltagsdaten', - 'MATCHDAY_EDIT_EXPLAIN' => 'Hier kannst du einen bestehenden Spieltag bearbeiten. Du kannst Typ, Anzahl der Spieltage, Gewinne, Namen und die Kurzbezeichnung ändern.', - 'MATCHDAY_MATCHES' => 'Anzahl der Spiele an diesem Spieltag', - 'MATCHDAY_MATCHES_EXPLAIN' => 'Bei KO-Runden ist die Angabe der Anzahl der Spiele je Spieltag zwingend erforderlich.', - 'MATCHDAY_NAME' => 'Spieltagsbezeichnung', - 'MATCHDAY_NAME_DOUBLE' => 'Die Spieltagsbezeichnung wird schon benutzt bzw. wurde doppelt vergeben.', - 'MATCHDAY_NAME_EMPTY' => 'Die Spieltagsbezeichnung muss mindesten 3 Buchstaben lang sein.', - 'MATCHDAY_NUMBER' => 'Die angegebene Spieltag muss numerisch (1-99) sein. Bitte eine Spieltagnummer eingeben.', - 'MATCHDAY_STATUS' => 'Status', - 'MATCHDAY_STATUS_EXPLAIN' => '0 = offen (Tippabgabe möglich)
1 = keine Tippabgabe mehr möglich und noch keine Ergebnisse
2 = vorläufige Ergebnisse liegen vor
3 = abgeschlossen, endgültige Ergebnisse liegen vor.', - 'MATCHDAY_UPDATE_FAILED' => 'Spieltageinstellungen konnten nicht aktualisiert werden.', - 'MATCHDAY_UPDATED' => 'Spieltageinstellungen erfolgreich aktualisiert.', - 'MATCHDAYS_CREATED' => '%1$s Spieltage wurden erfolgreich erstellt.', - 'MATCHDAYS_NO_DELETE' => 'Du darfst keine Spieltag löschen. Dies dürfen nur Gründungsmitglieder', - 'MATCHDAYS_REMOVED' => 'Überflüssige Spieltage gelöscht', - - 'NEW_DELIVERY' => 'Neue Abgabezeit', - 'NO_DELIVERIES_UPDATED' => 'Es wurden keine Abgabetermine geändert.', - 'NO_DELIVERY' => 'Der Abgabetermin fehlt.', - 'NO_DELIVERY2' => 'Der 2. Abgabetermin fehlt oder der 3. Abgabetermin muss gelöscht werden.', - 'NO_LEAGUE' => 'Es existiert keine Liga in der Saison %1$s. Bitte zuerst eine Liga in der Saison %1$s erstellen.', - 'NO_MATCHDAYS_CREATED' => 'Es wurden bislang keine Spieltage erstellt.', - 'NO_MORE_MATCHDAYS' => 'Es wurde keine weiteren Spieltage hinzugefügt.', - 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen.', - - 'OPEN_MATCH' => 'Das Spiel Nr. %s liegt vor dem gewählten Abgabetermin. Der Abgabetermin ist daher nicht zulässig.', - 'OPEN_MATCHES' => 'Die Spiele Nr. %s liegen vor dem gewählten Abgabetermin. Der Abgabetermin ist daher nicht zulässig.', - - 'PREDICTION_LEAGUE' => 'Tipprunde', - - 'REMOVE_MATCHDAYS' => 'Überflüssige Spieltage entfernen', - - 'SEASON' => 'Saison', - 'SELECT_LEAGUE' => 'Liga auswählen', - 'SHOW_DELIVERY' => 'Abgabezeiten anzeigen', - - 'TOO_LARGE_MATCHES' => 'Die Anzahl der Spiele je Spieltag ist zu groß.', - 'TOO_SMALL_DELIVERY2' => 'Der 2. Abgabetermin darf nicht vor dem 1. Abgabetermin liegen.', - 'TOO_SMALL_DELIVERY3' => 'Der 3. Abgabetermin darf nicht vor dem 2. Abgabetermin liegen.', - 'TOO_SMALL_MATCHES' => 'Die Anzahl der Spiele je Spieltag ist zu klein.', - - 'UPDATE_DELIVER' => '%s Abgabetermin geändert.', - 'UPDATE_DELIVERIES' => '%s Abgabetermine geändert.', - 'UPDATE_DELIVERY' => 'Neue Abgabezeiten', - 'UPDATE_DELIVERY_EXPLAIN' => 'Wähle die Datensätze aus, deren Abgabezeit neu gesetzt werden soll. Rot markierte Abgabezeiten liegen nach dem neu berechneten Abgabetermin.', -)); - + 'Spieltage', + 'ACP_FOOTBALL_MATCHDAYS_MANAGE' => 'Spieltage verwalten', + 'ACP_FOOTBALL_MATCHDAYS_MANAGE_EXPLAIN' => 'Hier kannst du je Liga Spieltage einer Saison zuordnen. Du kannst bestehende löschen oder ändern oder einen neuen Spieltag erstellen, sowie Typ, Anzahl der Spieltage, Gewinne, Name und Kurzbezeichnug der Spieltag einstellen.', + 'ACP_FOOTBALL_MATCHDAYS_MANAGEMENT' => 'Tipprunde-Spieltags-Verwaltung', + 'ADD_MATCHDAY' => 'Spieltag zur Liga hinzufügen', + + 'BACKWARD_DELIVERY' => 'Zeitspanne wählen', + 'BACKWARD_DELIVERY_EXPLAIN' => 'Zeitspanne der Abgabe vor dem ersten Spielbeginn.', + + 'CHANGE_DELIVERY' => 'Abgabetermine ändern', + 'CHANGE_DELIVERY_EXPLAIN' => 'Hier kannst du einmalig die zukünftigen Abgabetermine der Spieltage in Abhängigkeit zum ersten Spielbeginn neu festlegen. Hierdurch wird jedoch kein Automatismus bei zukünftigen Spielverlegungen eingerichtet. Mit Zeitspanne 0 kannst du überprüfen, ob ein Abgabetermin nach dem ersten Spielbeginn liegt und diesen entsprechend korrigieren. Soll ein einheitlicher Abgabetermin gesetzt werden, muss diese Funktion eventuell mehrfach mit unterschiedlichen Zeitspannen passend zu den Anstoßzeiten aufgerufen werden.', + + 'DELIVERY' => 'Abgabezeit', + 'DELIVERY_SET_TIME' => 'Abgabezeit vor dem ersten Spielbeginn', + 'DELIVERY_NUMBER' => 'Abgabe Nr.', + + 'GENERATE_MATCHDAY' => 'Fehlende Spieltage generieren', + + 'INVALID_DDAY1_DATE' => 'Kein gültiger Abgabetermin.', + 'INVALID_DDAY2_DATE' => 'Kein gültiger 2. Abgabetermin.', + 'INVALID_DDAY3_DATE' => 'Kein gültiger 3. Abgabetermin.', + + 'LEAGUE' => 'Liga', + + 'MATCHDAY' => 'Spieltag', + 'MATCHDAY_ADDED' => 'Spieltag erfolgreich hinzugefügt.', + 'MATCHDAY_CONFIRM_DELETE' => 'Bist du sicher, dass du den %1$s. Spieltag aus der Saison %2$s mit allen Daten (Spielplan und Tipps) löschen willst?', + 'MATCHDAY_CONFIRM_REMOVE' => 'Bist du sicher, dass du alle überflüssigen Spieltage aus der Saison %1$s mit allen Daten (Spielplan und Tipps) löschen willst?', + 'MATCHDAY_CREATE_FAILED' => 'Spieltag konnte nicht erstellt werden.', + 'MATCHDAY_CREATED' => '%1$s Spieltag wurde erfolgreich erstellt.', + 'MATCHDAY_CURRENT' => 'Aktuelle Spieltag', + 'MATCHDAY_DEF' => 'Bestehende Spieltage', + 'MATCHDAY_DEF_EXPLAIN' => 'Dies sind Spieltage, die von dir oder einem anderen Administrator erstellt wurden. Du kannst Spieltageinstellungen ändern oder Spieltage löschen.', + 'MATCHDAY_DELETE' => 'Spieltag entfernen', + 'MATCHDAY_DELETED' => 'Spieltag gelöscht', + 'MATCHDAY_DELIVERY' => 'Abgabetermin', + 'MATCHDAY_DELIVERY_EXPLAIN' => 'Termin an dem der Spieltag bzw. die nächsten Spiele geschlossen werden und somit keine Tippabgabe mehr möglich ist. Wurde der Spieltag bereits geschlossen (Status 1), kann dieser durch ein zukünftigen Abgabetermin wieder geöffnet werden. Andere Statusübergänge sind nur durch Eingabe bzw. Löschen der Spielergebnisse dieses Spieltags möglich.', + 'MATCHDAY_DELIVERY2' => '2. Abgabetermin ', + 'MATCHDAY_DELIVERY2_EXPLAIN' => 'Beim Erreichen des ersten Abgabetermins wird dieser Termin als nächster Abgabetermin für die nächsten Spiele gesetzt.', + 'MATCHDAY_DELIVERY3' => '3. Abgabetermin', + 'MATCHDAY_DELIVERY3_EXPLAIN' => 'Beim Erreichen des 2. Abgabetermins wird dieser Termin als nächster Abgabetermin für die nächsten Spiele gesetzt.', + 'MATCHDAY_DETAILS' => 'Spieltagsdaten', + 'MATCHDAY_EDIT_EXPLAIN' => 'Hier kannst du einen bestehenden Spieltag bearbeiten. Du kannst Typ, Anzahl der Spieltage, Gewinne, Namen und die Kurzbezeichnung ändern.', + 'MATCHDAY_MATCHES' => 'Anzahl der Spiele an diesem Spieltag', + 'MATCHDAY_MATCHES_EXPLAIN' => 'Bei KO-Runden ist die Angabe der Anzahl der Spiele je Spieltag zwingend erforderlich.', + 'MATCHDAY_NAME' => 'Spieltagsbezeichnung', + 'MATCHDAY_NAME_DOUBLE' => 'Die Spieltagsbezeichnung wird schon benutzt bzw. wurde doppelt vergeben.', + 'MATCHDAY_NAME_EMPTY' => 'Die Spieltagsbezeichnung muss mindesten 3 Buchstaben lang sein.', + 'MATCHDAY_NUMBER' => 'Die angegebene Spieltag muss numerisch (1-99) sein. Bitte eine Spieltagnummer eingeben.', + 'MATCHDAY_STATUS' => 'Status', + 'MATCHDAY_STATUS_EXPLAIN' => '0 = offen (Tippabgabe möglich)
1 = keine Tippabgabe mehr möglich und noch keine Ergebnisse
2 = vorläufige Ergebnisse liegen vor
3 = abgeschlossen, endgültige Ergebnisse liegen vor.', + 'MATCHDAY_UPDATE_FAILED' => 'Spieltageinstellungen konnten nicht aktualisiert werden.', + 'MATCHDAY_UPDATED' => 'Spieltageinstellungen erfolgreich aktualisiert.', + 'MATCHDAYS_CREATED' => '%1$s Spieltage wurden erfolgreich erstellt.', + 'MATCHDAYS_NO_DELETE' => 'Du darfst keine Spieltag löschen. Dies dürfen nur Gründungsmitglieder', + 'MATCHDAYS_REMOVED' => 'Überflüssige Spieltage gelöscht', + + 'NEW_DELIVERY' => 'Neue Abgabezeit', + 'NO_DELIVERIES_UPDATED' => 'Es wurden keine Abgabetermine geändert.', + 'NO_DELIVERY' => 'Der Abgabetermin fehlt.', + 'NO_DELIVERY2' => 'Der 2. Abgabetermin fehlt oder der 3. Abgabetermin muss gelöscht werden.', + 'NO_LEAGUE' => 'Es existiert keine Liga in der Saison %1$s. Bitte zuerst eine Liga in der Saison %1$s erstellen.', + 'NO_MATCHDAYS_CREATED' => 'Es wurden bislang keine Spieltage erstellt.', + 'NO_MORE_MATCHDAYS' => 'Es wurde keine weiteren Spieltage hinzugefügt.', + 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen.', + + 'OPEN_MATCH' => 'Das Spiel Nr. %s liegt vor dem gewählten Abgabetermin. Der Abgabetermin ist daher nicht zulässig.', + 'OPEN_MATCHES' => 'Die Spiele Nr. %s liegen vor dem gewählten Abgabetermin. Der Abgabetermin ist daher nicht zulässig.', + + 'PREDICTION_LEAGUE' => 'Tipprunde', + + 'REMOVE_MATCHDAYS' => 'Überflüssige Spieltage entfernen', + + 'SEASON' => 'Saison', + 'SELECT_LEAGUE' => 'Liga auswählen', + 'SHOW_DELIVERY' => 'Abgabezeiten anzeigen', + + 'TOO_LARGE_MATCHES' => 'Die Anzahl der Spiele je Spieltag ist zu groß.', + 'TOO_SMALL_DELIVERY2' => 'Der 2. Abgabetermin darf nicht vor dem 1. Abgabetermin liegen.', + 'TOO_SMALL_DELIVERY3' => 'Der 3. Abgabetermin darf nicht vor dem 2. Abgabetermin liegen.', + 'TOO_SMALL_MATCHES' => 'Die Anzahl der Spiele je Spieltag ist zu klein.', + + 'UPDATE_DELIVER' => '%s Abgabetermin geändert.', + 'UPDATE_DELIVERIES' => '%s Abgabetermine geändert.', + 'UPDATE_DELIVERY' => 'Neue Abgabezeiten', + 'UPDATE_DELIVERY_EXPLAIN' => 'Wähle die Datensätze aus, deren Abgabezeit neu gesetzt werden soll. Rot markierte Abgabezeiten liegen nach dem neu berechneten Abgabetermin.', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_matches.php b/language/de/info_acp_matches.php index d3912ad..384352c 100644 --- a/language/de/info_acp_matches.php +++ b/language/de/info_acp_matches.php @@ -1,113 +1,113 @@ - 'Spielpläne', - 'ACP_FOOTBALL_MATCHES_MANAGE' => 'Spielpläne verwalten', - 'ACP_FOOTBALL_MATCHES_MANAGE_EXPLAIN' => 'Hier kannst du je Saison und Liga Spielpläne verwalten. Du kannst fehlende Spielpaarung zum Spielplan hinzufügen und die Spieldaten eines Spieltags verwalten.', - 'ACP_FOOTBALL_MATCHES_MANAGEMENT' => 'Tipprunde-Spielplan-Verwaltung', - - 'DAY' => 'Tag', - - 'FORMULA_GUEST' => 'Formel Gastmannschaft', - 'FORMULA_GUEST_EXPLAIN' => 'Siehe Erläuterungen Formel Heimmannschaft', - 'FORMULA_HOME' => 'Formel Heimmannschaft', - 'FORMULA_HOME_EXPLAIN' => 'D = wird noch ausgelost
L 100 = Verlierer Spiel 100
W 100 = Sieger Spiel 100
W 100;101 = Sieger Spiele 100 und 101
G A1 = 1. Gruppe A', - - 'GENERATE_MATCHES' => 'Spielplan-Gerüst vervollständigen', - - 'INVALID_MDAY_DATE' => 'Kein gültiges Spieldatum.', - - 'KO' => 'KO', - - 'LEAGUE' => 'Liga', - - 'MATCH_BEFORE_DELIVERY' => 'Der Spielbeginn liegt vor der Tippabgabe des Spieltags. Dies ist nicht zulässig.', - 'MATCH_BEGIN' => 'Spielbeginn', - 'MATCH_CONFIRM_DELETE' => 'Bist du sicher, dass du das %1$s. Spiel aus %2$s Saison %3$s mit allen Daten (Spielplan und Tipps) löschen willst?', - 'MATCH_CREATED' => '%1$s Spielpaarung wurde erfolgreich erstellt.', - 'MATCH_DELETED' => 'Spiel wurde erfolgreich gelöscht', - 'MATCH_DETAILS' => 'Spieldaten', - 'MATCH_EDIT_EXPLAIN' => 'Hier kannst du eine bestehende Spielpaarung bearbeiten. Du kannst den Termin, die Paarung und eine Formel festlegen.', - 'MATCH_GROUP' => 'Gruppenspiel der Gruppe', - 'MATCH_GUEST' => 'Gast', - 'MATCH_HOME' => 'Heim', - 'MATCH_KO' => 'KO-Spiel', - 'MATCH_KO_EXPLAIN' => 'Dieses Spiel kann zu einer Verlägerung bzw. einem Elfmeterschießen führen.', - 'MATCH_NUMBER' => 'Spiel Nr', - 'MATCH_ODDS' => 'Quoten', - 'MATCH_RATING' => 'Gewichtung', - 'MATCH_STATUS' => 'Status', - 'MATCH_STATUS_EXPLAIN' => ' -2=Spiel wird am 3. Abgabetermin geschlossen
 -1=Spiel wird am 2. Abgabetermin geschlossen
  0=offen (Tippabgabe möglich), wird am Abgabetermin geschlossen
  1=keine Tippabgabe mehr möglich und noch kein Ergebnis
  2=vorläufiges Ergebnis liegt vor
  3=endgültiges Ergebnis liegt vor
4-6= wie 1-3 jedoch ohne Wertung.', - 'MATCH_UPDATE_FAILED' => 'Spielpaarung konnte nicht aktualisiert werden.', - 'MATCH_UPDATED' => 'Spielpaarung erfolgreich aktualisiert.', - 'MATCHDAY' => 'Spieltag', - 'MATCHDAY_MISSED' => 'Bevor dies Aktion durchgeführt werden kann, müssen die fehlenden Spieltag erfasst werden.', - 'MATCHES_CREATE_FAILED' => 'Spielplan konnte nicht vervollständigt werden.', - 'MATCHES_CREATED' => '%1$s Spielpaarungen wurden erfolgreich erstellt.', - 'MATCHES_DEF' => 'Vorhandene Spielpaarungen', - 'MATCHES_DEF_EXPLAIN' => 'Dies sind Spielpaarungen, die von dir oder einem anderen Administrator erstellt wurden. Du kannst die Spielpaarungen ändern oder löschen.', - 'MATCHES_NO_DELETE' => 'Du darfst keine Spiele löschen. Dies dürfen nur Gründungsmitglieder', - 'MONTH' => 'Monat', - - 'NO_LEAGUE' => 'Es existiert keine Liga in der Saison %1$s. Bitte zuerst eine Liga in der Saison %1$s erstellen.', - 'NO_MATCH' => 'Diese Spielpaarung existiert nicht.', - 'NO_MATCH_BEGIN' => 'Der Spielbeginn fehlt.', - 'NO_MATCHDAY' => 'Es existiert kein Spieltag in %1$s Saison %2$s. Bitte zuerst Spieltage erstellen.', - 'NO_MATCHES_CREATED' => 'Es wurden bislang keine Spielpaarungen hinterlegt.', - 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen.', - - 'ODD_1' => 'Heimsieg', - 'ODD_x' => 'Unentschieden', - 'ODD_2' => 'Auswärtssieg', - - 'PREDICTION_LEAGUE' => 'Tipprunde', - - 'SEASON' => 'Saison', - 'SELECT_MATCHDAY' => 'Spieltag wählen', - - 'TOO_LARGE_MATCH_BEGIN_H' => 'Stundenangabe beim Spielbeginn zu groß.', - 'TOO_LARGE_MATCH_BEGIN_MIN' => 'Minutenangabe beim Spielbeginn zu groß.', - 'TOO_SMALL_MATCH_BEGIN_H' => 'Stundenangabe beim Spielbeginn zu klein.', - 'TOO_SMALL_MATCH_BEGIN_MIN' => 'Minutenangabe beim Spielbeginn zu klein.', - - 'UNKNOWN' => 'noch nicht bekannt', - - 'YEAR' => 'Jahr', -)); - + 'Spielpläne', + 'ACP_FOOTBALL_MATCHES_MANAGE' => 'Spielpläne verwalten', + 'ACP_FOOTBALL_MATCHES_MANAGE_EXPLAIN' => 'Hier kannst du je Saison und Liga Spielpläne verwalten. Du kannst fehlende Spielpaarung zum Spielplan hinzufügen und die Spieldaten eines Spieltags verwalten.', + 'ACP_FOOTBALL_MATCHES_MANAGEMENT' => 'Tipprunde-Spielplan-Verwaltung', + + 'DAY' => 'Tag', + + 'FORMULA_GUEST' => 'Formel Gastmannschaft', + 'FORMULA_GUEST_EXPLAIN' => 'Siehe Erläuterungen Formel Heimmannschaft', + 'FORMULA_HOME' => 'Formel Heimmannschaft', + 'FORMULA_HOME_EXPLAIN' => 'D = wird noch ausgelost
L 100 = Verlierer Spiel 100
W 100 = Sieger Spiel 100
W 100;101 = Sieger Spiele 100 und 101
G A1 = 1. Gruppe A', + + 'GENERATE_MATCHES' => 'Spielplan-Gerüst vervollständigen', + + 'INVALID_MDAY_DATE' => 'Kein gültiges Spieldatum.', + + 'KO' => 'KO', + + 'LEAGUE' => 'Liga', + + 'MATCH_BEFORE_DELIVERY' => 'Der Spielbeginn liegt vor der Tippabgabe des Spieltags. Dies ist nicht zulässig.', + 'MATCH_BEGIN' => 'Spielbeginn', + 'MATCH_CONFIRM_DELETE' => 'Bist du sicher, dass du das %1$s. Spiel aus %2$s Saison %3$s mit allen Daten (Spielplan und Tipps) löschen willst?', + 'MATCH_CREATED' => '%1$s Spielpaarung wurde erfolgreich erstellt.', + 'MATCH_DELETED' => 'Spiel wurde erfolgreich gelöscht', + 'MATCH_DETAILS' => 'Spieldaten', + 'MATCH_EDIT_EXPLAIN' => 'Hier kannst du eine bestehende Spielpaarung bearbeiten. Du kannst den Termin, die Paarung und eine Formel festlegen.', + 'MATCH_GROUP' => 'Gruppenspiel der Gruppe', + 'MATCH_GUEST' => 'Gast', + 'MATCH_HOME' => 'Heim', + 'MATCH_KO' => 'KO-Spiel', + 'MATCH_KO_EXPLAIN' => 'Dieses Spiel kann zu einer Verlägerung bzw. einem Elfmeterschießen führen.', + 'MATCH_NUMBER' => 'Spiel Nr', + 'MATCH_ODDS' => 'Quoten', + 'MATCH_RATING' => 'Gewichtung', + 'MATCH_STATUS' => 'Status', + 'MATCH_STATUS_EXPLAIN' => ' -2=Spiel wird am 3. Abgabetermin geschlossen
 -1=Spiel wird am 2. Abgabetermin geschlossen
  0=offen (Tippabgabe möglich), wird am Abgabetermin geschlossen
  1=keine Tippabgabe mehr möglich und noch kein Ergebnis
  2=vorläufiges Ergebnis liegt vor
  3=endgültiges Ergebnis liegt vor
4-6= wie 1-3 jedoch ohne Wertung.', + 'MATCH_UPDATE_FAILED' => 'Spielpaarung konnte nicht aktualisiert werden.', + 'MATCH_UPDATED' => 'Spielpaarung erfolgreich aktualisiert.', + 'MATCHDAY' => 'Spieltag', + 'MATCHDAY_MISSED' => 'Bevor dies Aktion durchgeführt werden kann, müssen die fehlenden Spieltag erfasst werden.', + 'MATCHES_CREATE_FAILED' => 'Spielplan konnte nicht vervollständigt werden.', + 'MATCHES_CREATED' => '%1$s Spielpaarungen wurden erfolgreich erstellt.', + 'MATCHES_DEF' => 'Vorhandene Spielpaarungen', + 'MATCHES_DEF_EXPLAIN' => 'Dies sind Spielpaarungen, die von dir oder einem anderen Administrator erstellt wurden. Du kannst die Spielpaarungen ändern oder löschen.', + 'MATCHES_NO_DELETE' => 'Du darfst keine Spiele löschen. Dies dürfen nur Gründungsmitglieder', + 'MONTH' => 'Monat', + + 'NO_LEAGUE' => 'Es existiert keine Liga in der Saison %1$s. Bitte zuerst eine Liga in der Saison %1$s erstellen.', + 'NO_MATCH' => 'Diese Spielpaarung existiert nicht.', + 'NO_MATCH_BEGIN' => 'Der Spielbeginn fehlt.', + 'NO_MATCHDAY' => 'Es existiert kein Spieltag in %1$s Saison %2$s. Bitte zuerst Spieltage erstellen.', + 'NO_MATCHES_CREATED' => 'Es wurden bislang keine Spielpaarungen hinterlegt.', + 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen.', + + 'ODD_1' => 'Heimsieg', + 'ODD_x' => 'Unentschieden', + 'ODD_2' => 'Auswärtssieg', + + 'PREDICTION_LEAGUE' => 'Tipprunde', + + 'SEASON' => 'Saison', + 'SELECT_MATCHDAY' => 'Spieltag wählen', + + 'TOO_LARGE_MATCH_BEGIN_H' => 'Stundenangabe beim Spielbeginn zu groß.', + 'TOO_LARGE_MATCH_BEGIN_MIN' => 'Minutenangabe beim Spielbeginn zu groß.', + 'TOO_SMALL_MATCH_BEGIN_H' => 'Stundenangabe beim Spielbeginn zu klein.', + 'TOO_SMALL_MATCH_BEGIN_MIN' => 'Minutenangabe beim Spielbeginn zu klein.', + + 'UNKNOWN' => 'noch nicht bekannt', + + 'YEAR' => 'Jahr', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_results.php b/language/de/info_acp_results.php index d4ad1e7..9c589c7 100644 --- a/language/de/info_acp_results.php +++ b/language/de/info_acp_results.php @@ -1,100 +1,100 @@ - 'Spielergebnisse', - 'ACP_FOOTBALL_RESULTS_MANAGE' => 'Spielergebnisse eingeben', - 'ACP_FOOTBALL_RESULTS_MANAGE_EXPLAIN' => 'Hier kannst du Spielergebnisse bestätigen, eingeben, löschen oder aus der Wertung nehmen.', - 'ACP_FOOTBALL_RESULTS_MANAGEMENT' => 'Tipprunde-Spielergebnis-Verwaltung', - 'ADVICE' => 'Hinweis', - - 'BETS_AND_RANKS' => 'Tipps und Ranglisten der', - - 'DAY' => 'Tag', - 'DELETE' => 'Löschen', - 'DELETE_EXPLAIN' => 'Spielergebnis löschen und Status auf 1 setzen.', - - 'GUEST' => 'Gast', - - 'HOME' => 'Heim', - - 'LEAGUE' => 'Liga', - - 'MATCH_BEGIN' => 'Spielbeginn', - 'MATCH_STATUS_TITLE' => '-2=Spiel wird am 3. Abgabetermin geschlossen -1=Spiel wird am 2. Abgabetermin geschlossen 0=offen (Tippabgabe möglich), wird am Abgabetermin geschlossen 1=keine Tippabgabe mehr möglich und noch kein Ergebnis 2=vorläufiges Ergebnis liegt vor 3=endgültiges Ergebnis liegt vor 4-6= wie 1-3 jedoch ohne Wertung.', - 'MATCHDAY' => 'Spieltag', - 'MONTH' => 'Monat', - - 'NO_LEAGUE' => 'Es existiert keine Liga in der Saison %1$s. Bitte zuerst eine Liga in der Saison %1$s erstellen.', - 'NO_MATCHDAY' => 'Es existiert kein Spieltag in %1$s Saison %2$s. Bitte zuerst Spieltage erstellen.', - 'NO_MATCHES_CREATED' => 'Es wurden bislang keine Spielpaarungen hinterlegt.', - 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen.', - 'NO_VALUATION' => 'o. Wertung', - 'NO_VALUATION_EXPLAIN' => 'Spiel aus der Wertung nehmen, da dieses verschoben oder manipuliert wurde.', - 'NUMBER' => 'Nr', - - 'OVERTIME' => 'Verlängerung', - 'OVERTIME_EXPLAIN' => 'Spielergebnis inkl. Verlängerung und Elfmeterschiessen.', - - 'PREDICTION_LEAGUE' => 'Tipprunde', - - 'RANKING' => 'Rangliste', - 'RESULT' => 'Ergebnis', - 'RESULT_DELETED' => '%1$s Spielergebnis wurde gelöscht.', - 'RESULT_DETAILS' => 'Spielergebnisse', - 'RESULT_EXPLAIN' => 'Spielergebnis nach 90 Minuten oder Spielzwischenstand', - 'RESULT_NO_VALUATION' => '%1$s Spiel wurde aus der Wertung genommen.', - 'RESULT_SAVED' => '%1$s Spielergebnis wurde gespeichert.', - 'RESULTS_DELETED' => '%1$s Spielergebnisse wurden gelöscht.', - 'RESULTS_NO_VALUATION' => '%1$s Spiele wurden aus der Wertung genommen.', - 'RESULTS_SAVED' => '%1$s Spielergebnisse wurden gespeichert.', - - 'SAVE' => 'Speichern', - 'SAVE_FAILED' => 'Die Spielergebnisse konnten nicht gespeichert werden.', - 'SEASON' => 'Saison', - 'SELECT' => 'Auswahl', - 'SELECT_EXPLAIN' => 'Nur die hier markierten Spiele werden gespeichert/nicht gewertet/gelöscht.', - 'SELECT_MATCHDAY' => 'Spieltag wählen', - 'SET_STATUS_TO' => 'Der Status des Spieltages wurde auf %1$s gesetzt', - 'STATUS' => 'Status', - - 'VS' => 'Begegnung', - - 'YEAR' => 'Jahr', -)); - + 'Spielergebnisse', + 'ACP_FOOTBALL_RESULTS_MANAGE' => 'Spielergebnisse eingeben', + 'ACP_FOOTBALL_RESULTS_MANAGE_EXPLAIN' => 'Hier kannst du Spielergebnisse bestätigen, eingeben, löschen oder aus der Wertung nehmen.', + 'ACP_FOOTBALL_RESULTS_MANAGEMENT' => 'Tipprunde-Spielergebnis-Verwaltung', + 'ADVICE' => 'Hinweis', + + 'BETS_AND_RANKS' => 'Tipps und Ranglisten der', + + 'DAY' => 'Tag', + 'DELETE' => 'Löschen', + 'DELETE_EXPLAIN' => 'Spielergebnis löschen und Status auf 1 setzen.', + + 'GUEST' => 'Gast', + + 'HOME' => 'Heim', + + 'LEAGUE' => 'Liga', + + 'MATCH_BEGIN' => 'Spielbeginn', + 'MATCH_STATUS_TITLE' => '-2=Spiel wird am 3. Abgabetermin geschlossen -1=Spiel wird am 2. Abgabetermin geschlossen 0=offen (Tippabgabe möglich), wird am Abgabetermin geschlossen 1=keine Tippabgabe mehr möglich und noch kein Ergebnis 2=vorläufiges Ergebnis liegt vor 3=endgültiges Ergebnis liegt vor 4-6= wie 1-3 jedoch ohne Wertung.', + 'MATCHDAY' => 'Spieltag', + 'MONTH' => 'Monat', + + 'NO_LEAGUE' => 'Es existiert keine Liga in der Saison %1$s. Bitte zuerst eine Liga in der Saison %1$s erstellen.', + 'NO_MATCHDAY' => 'Es existiert kein Spieltag in %1$s Saison %2$s. Bitte zuerst Spieltage erstellen.', + 'NO_MATCHES_CREATED' => 'Es wurden bislang keine Spielpaarungen hinterlegt.', + 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen.', + 'NO_VALUATION' => 'o. Wertung', + 'NO_VALUATION_EXPLAIN' => 'Spiel aus der Wertung nehmen, da dieses verschoben oder manipuliert wurde.', + 'NUMBER' => 'Nr', + + 'OVERTIME' => 'Verlängerung', + 'OVERTIME_EXPLAIN' => 'Spielergebnis inkl. Verlängerung und Elfmeterschiessen.', + + 'PREDICTION_LEAGUE' => 'Tipprunde', + + 'RANKING' => 'Rangliste', + 'RESULT' => 'Ergebnis', + 'RESULT_DELETED' => '%1$s Spielergebnis wurde gelöscht.', + 'RESULT_DETAILS' => 'Spielergebnisse', + 'RESULT_EXPLAIN' => 'Spielergebnis nach 90 Minuten oder Spielzwischenstand', + 'RESULT_NO_VALUATION' => '%1$s Spiel wurde aus der Wertung genommen.', + 'RESULT_SAVED' => '%1$s Spielergebnis wurde gespeichert.', + 'RESULTS_DELETED' => '%1$s Spielergebnisse wurden gelöscht.', + 'RESULTS_NO_VALUATION' => '%1$s Spiele wurden aus der Wertung genommen.', + 'RESULTS_SAVED' => '%1$s Spielergebnisse wurden gespeichert.', + + 'SAVE' => 'Speichern', + 'SAVE_FAILED' => 'Die Spielergebnisse konnten nicht gespeichert werden.', + 'SEASON' => 'Saison', + 'SELECT' => 'Auswahl', + 'SELECT_EXPLAIN' => 'Nur die hier markierten Spiele werden gespeichert/nicht gewertet/gelöscht.', + 'SELECT_MATCHDAY' => 'Spieltag wählen', + 'SET_STATUS_TO' => 'Der Status des Spieltages wurde auf %1$s gesetzt', + 'STATUS' => 'Status', + + 'VS' => 'Begegnung', + + 'YEAR' => 'Jahr', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_seasons.php b/language/de/info_acp_seasons.php index 578ec04..76ae648 100644 --- a/language/de/info_acp_seasons.php +++ b/language/de/info_acp_seasons.php @@ -1,86 +1,86 @@ - 'Saisons', - 'ACP_FOOTBALL_SEASONS_MANAGE' => 'Saisons verwalten', - 'ACP_FOOTBALL_SEASONS_MANAGE_EXPLAIN' => 'Hier kannst du alle Saisons verwalten. Du kannst bestehende löschen oder ändern oder eine neue Saison erstellen, sowie Name und Kurzbezeichnug der Saison einstellen.', - 'ACP_FOOTBALL_SEASONS_MANAGEMENT' => 'Tipprunde-Saison-Verwaltung', - - 'CREATE_SEASON' => 'Neue Saison erstellen', - - 'LEAGUES' => 'Ligen', - - 'NO_SEASON' => 'Keine Saison angegeben.', - 'NO_SEASONS_CREATED' => 'Es wurden bislang keine Saisons erstellt.', - - 'PREDICTION_LEAGUE' => 'Tipprunde', - - 'SEASON' => 'Saison', - 'SEASON_CLOSED' => 'Geschlossen', - 'SEASON_CONFIRM_DELETE' => 'Bist du sicher, dass du die Saison %1$s mit allen Daten (Ligen, Spieltage, Spielplänen, Tipps und Ranglisten) löschen willst?', - 'SEASON_CREATE_FAILED' => 'Saison konnte nicht erstellt werden.', - 'SEASON_CREATED' => 'Saison erfolgreich erstellt.', - 'SEASON_CURRENT' => 'Aktuelle Saison', - 'SEASON_DEF' => 'Bestehende Saisons', - 'SEASON_DEF_EXPLAIN' => 'Dies sind Saisons, die von dir oder einem anderen Administrator erstellt wurden. Du kannst Saisoneinstellungen ändern oder Saisons löschen.', - 'SEASON_DELETE' => 'Saison entfernen', - 'SEASON_DELETED' => 'Saison gelöscht', - 'SEASON_DETAILS' => 'Saisondetails', - 'SEASON_EDIT_EXPLAIN' => 'Hier kannst du eine bestehende Saison bearbeiten. Du kannst ihren Namen und die Kurzbezeichnung ändern.', - 'SEASON_NAME' => 'Saisonname', - 'SEASON_NAME_EMPTY' => 'Der Saisonname fehlt. Er muss mindesten 4 Zeichen lang sein.', - 'SEASON_NAME_EXPLAIN' => 'Langbezeichnung der Saison z.B. "Saison 2010/2011"', - 'SEASON_NAME_TAKEN' => 'Der angegebene Saisonname wird bereits benutzt. Bitte wähle einen anderen aus.', - 'SEASON_NUMBER' => 'Die angegebene Saison muss numerisch (1963-2099) sein. Bitte die Jahreszahl, in der die Saison endet eingeben.', - 'SEASON_SHORT' => 'Saison Kurzbezeichnung', - 'SEASON_SHORT_EMPTY' => 'Die Saison Kurzbezeichnung fehlt, sie muss mindesten 2 Zeichen lang sein.', - 'SEASON_SHORT_EXPLAIN' => 'Kurzbezeichnung der Saison, die in der Auswahlbox angezeigt wird.', - 'SEASON_SHORT_TAKEN' => 'Die angegebene Kurzbezeichnung der Saison wird bereits benutzt. Bitte wähle eine andere aus.', - 'SEASON_TAKEN' => 'Diese Saison existiert bereits. Bitte wähle eine andere Saison aus.', - 'SEASON_UPDATE_FAILED' => 'Saisoneinstellungen konnten nicht aktualisiert werden.', - 'SEASON_UPDATED' => 'Saisoneinstellungen erfolgreich aktualisiert.', - 'SEASONS_NO_DELETE' => 'Du darfst keine Saison löschen. Dies dürfen nur Gründungsmitglieder', - 'SEASONS_NO_LEAGUE' => 'Diese Saison hat keine Liga', - - 'TOO_LARGE_SEASON' => 'Der Wert für die Saison ist zu groß. Saison von 1963 - 2099 möglich.', - 'TOO_SHORT_SEASON' => 'Der Saisonname muss mindesten 4 Zeichen lang sein.', - 'TOO_SHORT_SEASON_SHORT' => 'Die Saison Kurzbezeichnung muss mindesten 2 Zeichen lang sein.', - 'TOO_SMALL_SEASON' => 'Der Wert für die Saison ist zu klein. Saison von 1963 - 2099 möglich.', -)); - + 'Saisons', + 'ACP_FOOTBALL_SEASONS_MANAGE' => 'Saisons verwalten', + 'ACP_FOOTBALL_SEASONS_MANAGE_EXPLAIN' => 'Hier kannst du alle Saisons verwalten. Du kannst bestehende löschen oder ändern oder eine neue Saison erstellen, sowie Name und Kurzbezeichnug der Saison einstellen.', + 'ACP_FOOTBALL_SEASONS_MANAGEMENT' => 'Tipprunde-Saison-Verwaltung', + + 'CREATE_SEASON' => 'Neue Saison erstellen', + + 'LEAGUES' => 'Ligen', + + 'NO_SEASON' => 'Keine Saison angegeben.', + 'NO_SEASONS_CREATED' => 'Es wurden bislang keine Saisons erstellt.', + + 'PREDICTION_LEAGUE' => 'Tipprunde', + + 'SEASON' => 'Saison', + 'SEASON_CLOSED' => 'Geschlossen', + 'SEASON_CONFIRM_DELETE' => 'Bist du sicher, dass du die Saison %1$s mit allen Daten (Ligen, Spieltage, Spielplänen, Tipps und Ranglisten) löschen willst?', + 'SEASON_CREATE_FAILED' => 'Saison konnte nicht erstellt werden.', + 'SEASON_CREATED' => 'Saison erfolgreich erstellt.', + 'SEASON_CURRENT' => 'Aktuelle Saison', + 'SEASON_DEF' => 'Bestehende Saisons', + 'SEASON_DEF_EXPLAIN' => 'Dies sind Saisons, die von dir oder einem anderen Administrator erstellt wurden. Du kannst Saisoneinstellungen ändern oder Saisons löschen.', + 'SEASON_DELETE' => 'Saison entfernen', + 'SEASON_DELETED' => 'Saison gelöscht', + 'SEASON_DETAILS' => 'Saisondetails', + 'SEASON_EDIT_EXPLAIN' => 'Hier kannst du eine bestehende Saison bearbeiten. Du kannst ihren Namen und die Kurzbezeichnung ändern.', + 'SEASON_NAME' => 'Saisonname', + 'SEASON_NAME_EMPTY' => 'Der Saisonname fehlt. Er muss mindesten 4 Zeichen lang sein.', + 'SEASON_NAME_EXPLAIN' => 'Langbezeichnung der Saison z.B. "Saison 2010/2011"', + 'SEASON_NAME_TAKEN' => 'Der angegebene Saisonname wird bereits benutzt. Bitte wähle einen anderen aus.', + 'SEASON_NUMBER' => 'Die angegebene Saison muss numerisch (1963-2099) sein. Bitte die Jahreszahl, in der die Saison endet eingeben.', + 'SEASON_SHORT' => 'Saison Kurzbezeichnung', + 'SEASON_SHORT_EMPTY' => 'Die Saison Kurzbezeichnung fehlt, sie muss mindesten 2 Zeichen lang sein.', + 'SEASON_SHORT_EXPLAIN' => 'Kurzbezeichnung der Saison, die in der Auswahlbox angezeigt wird.', + 'SEASON_SHORT_TAKEN' => 'Die angegebene Kurzbezeichnung der Saison wird bereits benutzt. Bitte wähle eine andere aus.', + 'SEASON_TAKEN' => 'Diese Saison existiert bereits. Bitte wähle eine andere Saison aus.', + 'SEASON_UPDATE_FAILED' => 'Saisoneinstellungen konnten nicht aktualisiert werden.', + 'SEASON_UPDATED' => 'Saisoneinstellungen erfolgreich aktualisiert.', + 'SEASONS_NO_DELETE' => 'Du darfst keine Saison löschen. Dies dürfen nur Gründungsmitglieder', + 'SEASONS_NO_LEAGUE' => 'Diese Saison hat keine Liga', + + 'TOO_LARGE_SEASON' => 'Der Wert für die Saison ist zu groß. Saison von 1963 - 2099 möglich.', + 'TOO_SHORT_SEASON' => 'Der Saisonname muss mindesten 4 Zeichen lang sein.', + 'TOO_SHORT_SEASON_SHORT' => 'Die Saison Kurzbezeichnung muss mindesten 2 Zeichen lang sein.', + 'TOO_SMALL_SEASON' => 'Der Wert für die Saison ist zu klein. Saison von 1963 - 2099 möglich.', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_teams.php b/language/de/info_acp_teams.php index 53c9eee..5e1b96b 100644 --- a/language/de/info_acp_teams.php +++ b/language/de/info_acp_teams.php @@ -1,100 +1,100 @@ - 'Teams', - 'ACP_FOOTBALL_TEAMS_MANAGE' => 'Teams verwalten', - 'ACP_FOOTBALL_TEAMS_MANAGE_EXPLAIN' => 'Hier kannst du je Saison Teams einer Liga zuordnen. Du kannst bestehende löschen oder ändern oder eine neues Team erstellen, sowie Typ, Anzahl der Spieltage, Gewinne, Name und Kurzbezeichnug des Teams einstellen.', - 'ACP_FOOTBALL_TEAMS_MANAGEMENT' => 'Tipprunde-Team-Verwaltung', - 'ADD_TEAM' => 'Team zur Liga hinzufügen', - - 'LEAGUE' => 'Liga', - - 'MATCHDAY' => 'Spieltag', - - 'NEW_TEAM' => 'Neues Team', - 'NO_LEAGUE' => 'Es existiert keine Liga in der Saison %1$s. Bitte zuerst eine Liga in der Saison %1$s erstellen.', - 'NO_MATCHDAYS' => 'Bitte zuerst Spieltage anlegen, da die Mannschaften bei KO-Runden einem Spieltag zugeordnet werden müssen.', - 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen.', - 'NO_TEAM' => 'Kein Team angegeben.', - 'NO_TEAMS_CREATED' => 'Es wurden bislang keine Teams erstellt.', - 'NO_TEAMSYMBOL' => 'Kein Logo', - - 'PREDICTION_LEAGUE' => 'Tipprunde', - - 'SEASON' => 'Saison', - 'SELECT_LEAGUE' => 'Liga auswählen', - - 'TEAM' => 'Team', - 'TEAM_ADDED' => 'Team erfolgreich hinzugefügt.', - 'TEAM_AWAY' => 'Auswärts', - 'TEAM_CONFIRM_DELETE' => 'Bist du sicher, dass du %1$s aus Saison: %2$s Liga: %3$s mit allen Daten (Spieltage, Spielplänen und Tipps) löschen möchtest?', - 'TEAM_CREATE_FAILED' => 'Team konnte nicht erstellt werden.', - 'TEAM_CREATED' => 'Team erfolgreich erstellt.', - 'TEAM_CURRENT' => 'Aktuelles Team', - 'TEAM_DEF' => 'Bestehende Teams', - 'TEAM_DEF_EXPLAIN' => 'Dies sind Teams, die von dir oder einem anderen Administrator erstellt wurden. Du kannst Teameinstellungen ändern oder Teams löschen.', - 'TEAM_DELETE' => 'Team entfernen', - 'TEAM_DELETED' => 'Team gelöscht', - 'TEAM_DETAILS' => 'Teamdaten', - 'TEAM_EDIT_EXPLAIN' => 'Hier kannst du ein bestehendes Team bearbeiten. Du kannst den Namen, die Team-Kurzbezeichnung sowie das Team-Wappen ändern.', - 'TEAM_GROUP' => 'Gruppenspiele in Gruppe', - 'TEAM_GROUP_EXPLAIN' => 'Buchstabe der Gruppe, in der die Gruppenspiele bestritten werden.', - 'TEAM_MATCHES' => 'Spiele', - 'TEAM_NAME' => 'Teamname', - 'TEAM_NAME_DOUBLE' => 'Der Teamname wird schon benutzt bzw. wurde doppelt vergeben.', - 'TEAM_NUMBER' => 'Dies ist keine gültige Teamnummer. Die Teamnummer muss zwischen 0 und 65535 liegen.', - 'TEAM_ROUND' => 'Qualifiziert bis Spieltag', - 'TEAM_ROUND_EXPLAIN' => 'Spieltag bis zu dem sich das Team vorerst qualifiziert hat. Über diesen Parameter werden bei der Spielplanerstellung nur Mannschaften zur Auswahl angeboten, die sich auch für die netsprechende Runde qualifiziert haben. Über den Menüpunkt Qualifikation kann dieser Wert automatisch nach Beendigung der Runde automatisch für alle qualifizierten Mannschaften gesetzt werden.', - 'TEAM_SHORT' => 'Team Kurzbezeichnung', - 'TEAM_SHORT_DOUBLE' => 'Die Kurzbezeichnung wird schon benutzt bzw. wurde doppelt vergeben.', - 'TEAM_SHORT_EXPLAIN' => 'Maximal 10 stellige Kurzbezeichnung des Teams. Diese wird z.B. beim Export und unter Alle Tipps verwendet.', - 'TEAM_SYMBOL' => 'Teamwappen', - 'TEAM_SYMBOL_EXPLAIN' => 'Das optionale Teamwappen muss 28x28 Pixel groß sein.', - 'TEAM_TAKEN' => 'Dieses Team existiert bereits in dieser Liga. Bitte wähle eine andere Teamnummer aus.', - 'TEAM_UPDATE_FAILED' => 'Teameinstellungen konnten nicht aktualisiert werden.', - 'TEAM_UPDATED' => 'Teameinstellungen erfolgreich aktualisiert.', - 'TEAMS_NO_DELETE' => 'Du darfst kein Team löschen. Dies dürfen nur Gründungsmitglieder', - 'TOO_LARGE_TEAM' => 'Die angegebene Team-ID muss numerisch (1-9999) sein. Bitte eine kleinere Teamnummer eingeben.', - 'TOO_SHORT_TEAM_NAME' => 'Der Teamname muss mindesten 3 Zeichen lang sein.', - 'TOO_SHORT_TEAM_SHORT' => 'Die Kurzbezeichnung muss mindesten 1 Zeichen lang sein.', - 'TOO_SMALL_TEAM' => 'Die angegebene Team-ID muss numerisch (1-9999) sein. Bitte eine größere Teamnummer eingeben.', - - 'WRONG_DATA_TEAM_GROUP' => 'Keine gültige Gruppe für die Gruppenspiele. Gültige Gruppen sind A-Z.', -)); - + 'Teams', + 'ACP_FOOTBALL_TEAMS_MANAGE' => 'Teams verwalten', + 'ACP_FOOTBALL_TEAMS_MANAGE_EXPLAIN' => 'Hier kannst du je Saison Teams einer Liga zuordnen. Du kannst bestehende löschen oder ändern oder eine neues Team erstellen, sowie Typ, Anzahl der Spieltage, Gewinne, Name und Kurzbezeichnug des Teams einstellen.', + 'ACP_FOOTBALL_TEAMS_MANAGEMENT' => 'Tipprunde-Team-Verwaltung', + 'ADD_TEAM' => 'Team zur Liga hinzufügen', + + 'LEAGUE' => 'Liga', + + 'MATCHDAY' => 'Spieltag', + + 'NEW_TEAM' => 'Neues Team', + 'NO_LEAGUE' => 'Es existiert keine Liga in der Saison %1$s. Bitte zuerst eine Liga in der Saison %1$s erstellen.', + 'NO_MATCHDAYS' => 'Bitte zuerst Spieltage anlegen, da die Mannschaften bei KO-Runden einem Spieltag zugeordnet werden müssen.', + 'NO_SEASON' => 'Es existiert keine Saison. Bitte zuerst eine Saison erstellen.', + 'NO_TEAM' => 'Kein Team angegeben.', + 'NO_TEAMS_CREATED' => 'Es wurden bislang keine Teams erstellt.', + 'NO_TEAMSYMBOL' => 'Kein Logo', + + 'PREDICTION_LEAGUE' => 'Tipprunde', + + 'SEASON' => 'Saison', + 'SELECT_LEAGUE' => 'Liga auswählen', + + 'TEAM' => 'Team', + 'TEAM_ADDED' => 'Team erfolgreich hinzugefügt.', + 'TEAM_AWAY' => 'Auswärts', + 'TEAM_CONFIRM_DELETE' => 'Bist du sicher, dass du %1$s aus Saison: %2$s Liga: %3$s mit allen Daten (Spieltage, Spielplänen und Tipps) löschen möchtest?', + 'TEAM_CREATE_FAILED' => 'Team konnte nicht erstellt werden.', + 'TEAM_CREATED' => 'Team erfolgreich erstellt.', + 'TEAM_CURRENT' => 'Aktuelles Team', + 'TEAM_DEF' => 'Bestehende Teams', + 'TEAM_DEF_EXPLAIN' => 'Dies sind Teams, die von dir oder einem anderen Administrator erstellt wurden. Du kannst Teameinstellungen ändern oder Teams löschen.', + 'TEAM_DELETE' => 'Team entfernen', + 'TEAM_DELETED' => 'Team gelöscht', + 'TEAM_DETAILS' => 'Teamdaten', + 'TEAM_EDIT_EXPLAIN' => 'Hier kannst du ein bestehendes Team bearbeiten. Du kannst den Namen, die Team-Kurzbezeichnung sowie das Team-Wappen ändern.', + 'TEAM_GROUP' => 'Gruppenspiele in Gruppe', + 'TEAM_GROUP_EXPLAIN' => 'Buchstabe der Gruppe, in der die Gruppenspiele bestritten werden.', + 'TEAM_MATCHES' => 'Spiele', + 'TEAM_NAME' => 'Teamname', + 'TEAM_NAME_DOUBLE' => 'Der Teamname wird schon benutzt bzw. wurde doppelt vergeben.', + 'TEAM_NUMBER' => 'Dies ist keine gültige Teamnummer. Die Teamnummer muss zwischen 0 und 65535 liegen.', + 'TEAM_ROUND' => 'Qualifiziert bis Spieltag', + 'TEAM_ROUND_EXPLAIN' => 'Spieltag bis zu dem sich das Team vorerst qualifiziert hat. Über diesen Parameter werden bei der Spielplanerstellung nur Mannschaften zur Auswahl angeboten, die sich auch für die netsprechende Runde qualifiziert haben. Über den Menüpunkt Qualifikation kann dieser Wert automatisch nach Beendigung der Runde automatisch für alle qualifizierten Mannschaften gesetzt werden.', + 'TEAM_SHORT' => 'Team Kurzbezeichnung', + 'TEAM_SHORT_DOUBLE' => 'Die Kurzbezeichnung wird schon benutzt bzw. wurde doppelt vergeben.', + 'TEAM_SHORT_EXPLAIN' => 'Maximal 10 stellige Kurzbezeichnung des Teams. Diese wird z.B. beim Export und unter Alle Tipps verwendet.', + 'TEAM_SYMBOL' => 'Teamwappen', + 'TEAM_SYMBOL_EXPLAIN' => 'Das optionale Teamwappen muss 28x28 Pixel groß sein.', + 'TEAM_TAKEN' => 'Dieses Team existiert bereits in dieser Liga. Bitte wähle eine andere Teamnummer aus.', + 'TEAM_UPDATE_FAILED' => 'Teameinstellungen konnten nicht aktualisiert werden.', + 'TEAM_UPDATED' => 'Teameinstellungen erfolgreich aktualisiert.', + 'TEAMS_NO_DELETE' => 'Du darfst kein Team löschen. Dies dürfen nur Gründungsmitglieder', + 'TOO_LARGE_TEAM' => 'Die angegebene Team-ID muss numerisch (1-9999) sein. Bitte eine kleinere Teamnummer eingeben.', + 'TOO_SHORT_TEAM_NAME' => 'Der Teamname muss mindesten 3 Zeichen lang sein.', + 'TOO_SHORT_TEAM_SHORT' => 'Die Kurzbezeichnung muss mindesten 1 Zeichen lang sein.', + 'TOO_SMALL_TEAM' => 'Die angegebene Team-ID muss numerisch (1-9999) sein. Bitte eine größere Teamnummer eingeben.', + + 'WRONG_DATA_TEAM_GROUP' => 'Keine gültige Gruppe für die Gruppenspiele. Gültige Gruppen sind A-Z.', +)); + ?> \ No newline at end of file diff --git a/language/de/info_acp_update.php b/language/de/info_acp_update.php index cc9e9a7..486b229 100644 --- a/language/de/info_acp_update.php +++ b/language/de/info_acp_update.php @@ -1,138 +1,138 @@ - 'Spielplan aktualisieren', - 'ACP_FOOTBALL_UPDATE_MANAGE' => 'Spielplan aktualisieren', - 'ACP_FOOTBALL_UPDATE_MANAGE_EXPLAIN' => 'Hier kannst du deine Spielpläne, mit Daten von der Demoseite oder einer anderen Tipprunden-Seite aktualisieren oder neu erstellen. Wähle zuerst eine Tipprunden-Seite und Liga aus, von der das Update stammt. Nach Auswahl der Ziel-Liga bekommst du Abweichungen zwischen dieser Liga und dem Update angezeigt und kannst wählen welche Änderungen du übernehmen möchtest. Falls du eine neue Liga erstellen möchtest, werden alle Daten übernommen. ', - 'ACP_FOOTBALL_UPDATE_MANAGEMENT' => 'Tipprunde-Spielplan aktualisieren', - - 'ALLOW_URL_FOPEN' => 'Die PHP-Einstellung allow_url_fopen erlaubt keinen Zugriff auf andere Seiten.
Du musst die Updateidatei(en) downloaden und im Verzeichnis root/store speichern. ', - 'CHOOSE_LEAGUES' => 'Quell- und Ziel-Spielplan wählen', - 'CHOOSE_OTHER_LEAGUE' => 'Anderen Spielplan wählen', - 'COMPARE_UPDATE' => 'Vergleichen mit Datenbank', - 'CURRENT_VALUE' => 'Aktueller Wert', - - 'DB_INSERT_SEASON' => '%s Saison eingefügt. ', - 'DB_INSERT_LEAGUE' => '%s Liga eingefügt. ', - 'DB_INSERT_MATCHDAY' => '%s Spieltag eingefügt. ', - 'DB_INSERT_MATCHDAYS' => '%s Spieltage eingefügt. ', - 'DB_INSERT_TEAM' => '%s Mannschaft eingefügt. ', - 'DB_INSERT_TEAMS' => '%s Mannschaften eingefügt. ', - 'DB_INSERT_MATCH' => '%s Spiel eingefügt. ', - 'DB_INSERT_MATCHES' => '%s Spiele eingefügt. ', - 'DB_UPDATE_BIT_DELIVER' => '%s Spieltags-Abgabetermin mit Tippabgabe bis zum Spielbeginn korrigiert. ', - 'DB_UPDATE_BIT_DELIVERIES' => '%s Spieltags-Abgabetermine mit Tippabgabe bis zum Spielbeginn korrigiert. ', - 'DB_UPDATE_DELIVER' => 'Abgabetermin des Spieltags %s korrigiert. ', - 'DB_UPDATE_DELIVERIES' => 'Abgabetermine des Spieltage %s korrigiert. ', - 'DB_UPDATE_MATCHDAY' => '%s Spieltag aktualisiert. ', - 'DB_UPDATE_MATCHDAYS' => '%s Spieltage aktualisiert. ', - 'DB_UPDATE_TEAM' => '%s Mannschaft aktualisiert. ', - 'DB_UPDATE_TEAMS' => '%s Mannschaften aktualisiert. ', - 'DB_UPDATE_MATCH' => '%s Spiel aktualisiert. ', - 'DB_UPDATE_MATCHES' => '%s Spiele aktualisiert. ', - 'DB_UPDATE_STATUS_MATCHDAY' => 'An %s Spieltag wurde der Status angepasst. ', - 'DB_UPDATE_STATUS_MATCHDAYS' => 'An %s Spieltagen wurde der Status angepasst. ', - 'DUPLICATE_TEAM' => 'Diese Team-ID wurde doppelt zugeordnet. ', - - 'ERROR_OPEN_LEAGUE_XML' => 'Fehler! Die Liga XML-Datei konnte nicht geöffnet werden. Bitte den Link überprüfen. ', - 'ERROR_OPEN_SEASON_XML' => 'Fehler! Die Saison XML-Datei konnte nicht geöffnet werden. Bitte den Link überprüfen. ', - 'ERROR_READ_LEAGUE_XML' => 'Fehler! Die Liga XML-Datei konnte nicht gelesen werden. Bitte den Code oder die XML-Datei überprüfen. ', - 'ERROR_READ_SEASON_XML' => 'Fehler! Die Saison XML-Datei konnte nicht gelesen werden. Bitte den Code überprüfen. ', - 'ERROR_LOAD_LEAGUE_XML' => 'Fehler! Die Liga XML-Datei konnte nicht gelesen werden. Bitte die Datei %s überprüfen. ', - 'ERROR_XML_CODE' => 'Fehlerhafter Code! Um die XML-Datei anzuzeigen, muss der korrekte Code beim Aufruf übergeben werden. ', - 'ERROR_XML_CREATE' => 'Fehler! Die XML-Datei konnte nicht erzeugt werden. ', - - 'INSERT_LEAGUE' => 'Neue Liga anlegen', - 'INSERT_MATCHDAYS' => 'Spieltage anlegen', - 'INSERT_MATCHES' => 'Spielbegegnungen anlegen', - 'INSERT_SEASON' => 'Neue Saison anlegen', - 'INSERT_TEAMS' => 'Mannschaften anlegen', - - 'LEAGUE_SHORTCUT' => 'Liga Kürzel', - 'LOAD' => 'Laden', - 'LOG_FOOTB_UPDATE' => 'Football Prediction League Spielplan-Update
» %s', - - 'MAP_TEAMS' => 'Teams zuordnen', - 'MATCH_OF_GROUP' => 'Spiel in Gruppe', - 'MATCHES' => 'Spiele', - 'MISMATCH_LEAGUE_TYPE' => 'Der Ligatyp (%s) des Quell-Spielplans passt nicht zur vorhandenen Liga.', - 'MISMATCH_MATCHDAYS' => 'Die Anzahl der Spieltage (%s) des Quell-Spielplans passt nicht zur vorhandenen Liga.', - 'MISMATCH_DB_MATCHDAYS' => 'Die Anzahl der Spieltage (%s) in der Datenbank passt nicht zur vorhandenen Liga.', - 'MISMATCH_MATCHES' => 'Die Anzahl der Spiele (%s) an einem Spieltag des Quell-Spielplans passt nicht zur vorhandenen Liga.', - 'MISMATCH_DB_MATCHES' => 'Die Anzahl der Spiele (%s) in der Datenbank passt nicht zum Quell-Spielplan.', - 'MISMATCH_MOM' => 'Die Anzahl der Spiele je Spieltag (%s) des Quell-Spielplans passt nicht zur vorhandenen Liga.', - 'MISSING_TEAMS' => 'Folgende Team IDs müssen noch zugeordnet werden: %s', - - 'NEW_LEAGUE' => 'Neue Liga', - 'NEW_LEAGUE_EXIST' => 'Die neue Liga %s existiert bereits. ', - 'NEW_LEAGUE_EXPLAIN' => 'Bei einer neuen Liga bitte hier die Liganummer angeben. Bei einer bestehenden Liga darf diese Liganummer nicht überschrieben werden, da sonst eine eventuell bestehende Liga aktualisiert wird. ', - 'NEW_TEAM' => 'Neues Team wird eingefügt', - 'NO_DB_CHANGES' => 'Es wurden keine Änderungen durchgeführt. ', - 'NO_DIFFERENCES' => 'Keine Unterschiede gefunden. Die Spielpläne sind identisch. ', - 'NO_XML_LEAGUE' => 'Im Verzeichnis root/store konnte keine Update-Dateien gefunden werden. ', - 'NO_XML_SEASON' => 'Es wurde keine Quell-Daten zum aktualisieren gefunden. ', - 'NO_XML_ARRAY' => 'Fehler! Daten nicht mehr vorhanden. Bitte wiederhole die Aktion von vorne. ', - - 'OTHER_FIELDS' => 'Andere Felder', - - 'PREDICTION_LEAGUE' => 'Tipprunde', - - 'SEASON' => 'Saison', - 'SELECT_EXPLAIN' => 'Nur die hier markierten Datensätze werden übernommen', - 'SHOW_UPDATE' => 'Neue Liga anzeigen', - 'SOURCE' => 'Quelle', - - 'TARGET' => 'Ziel', - 'TEAM_MAPPING' => 'Teamzuordnung', - 'TEAM_NAME_SHORT' => 'Kurzname', - 'TRANSFER_TEAM' => 'Team übernehmen', - - 'UPDATE_LEAGUE' => 'Ligadaten aktualisieren', - 'UPDATE_MATCHDAYS' => 'Spieltagsdaten aktualisieren', - 'UPDATE_MATCHES' => 'Spielbegegnungen aktualisieren', - 'UPDATE_ONLY_FINAL' => 'Nur endgültige Ergebnisse übernehmen', - 'UPDATE_SAME_STATUS' => 'Ergebnisse mit gleichem Status aktualisieren', - 'UPDATE_NEG_STATUS' => 'Negative Status übernehmen', - 'UPDATE_TEAMS' => 'Mannschaftsdaten aktualisieren', - 'UPDATE_THIS' => 'Änderungen in diesem Feld übernehmen', - - 'XML_SEASON_URL' => 'URL Quelle für das Update', - 'XML_SEASON_URL_EXPLAIN' => 'URL zu football_xml_season.php oder localhost. Bei localhost wird nach league_* Datei in root/store gesucht. ', -)); - + 'Spielplan aktualisieren', + 'ACP_FOOTBALL_UPDATE_MANAGE' => 'Spielplan aktualisieren', + 'ACP_FOOTBALL_UPDATE_MANAGE_EXPLAIN' => 'Hier kannst du deine Spielpläne, mit Daten von der Demoseite oder einer anderen Tipprunden-Seite aktualisieren oder neu erstellen. Wähle zuerst eine Tipprunden-Seite und Liga aus, von der das Update stammt. Nach Auswahl der Ziel-Liga bekommst du Abweichungen zwischen dieser Liga und dem Update angezeigt und kannst wählen welche Änderungen du übernehmen möchtest. Falls du eine neue Liga erstellen möchtest, werden alle Daten übernommen. ', + 'ACP_FOOTBALL_UPDATE_MANAGEMENT' => 'Tipprunde-Spielplan aktualisieren', + + 'ALLOW_URL_FOPEN' => 'Die PHP-Einstellung allow_url_fopen erlaubt keinen Zugriff auf andere Seiten.
Du musst die Updateidatei(en) downloaden und im Verzeichnis root/store speichern. ', + 'CHOOSE_LEAGUES' => 'Quell- und Ziel-Spielplan wählen', + 'CHOOSE_OTHER_LEAGUE' => 'Anderen Spielplan wählen', + 'COMPARE_UPDATE' => 'Vergleichen mit Datenbank', + 'CURRENT_VALUE' => 'Aktueller Wert', + + 'DB_INSERT_SEASON' => '%s Saison eingefügt. ', + 'DB_INSERT_LEAGUE' => '%s Liga eingefügt. ', + 'DB_INSERT_MATCHDAY' => '%s Spieltag eingefügt. ', + 'DB_INSERT_MATCHDAYS' => '%s Spieltage eingefügt. ', + 'DB_INSERT_TEAM' => '%s Mannschaft eingefügt. ', + 'DB_INSERT_TEAMS' => '%s Mannschaften eingefügt. ', + 'DB_INSERT_MATCH' => '%s Spiel eingefügt. ', + 'DB_INSERT_MATCHES' => '%s Spiele eingefügt. ', + 'DB_UPDATE_BIT_DELIVER' => '%s Spieltags-Abgabetermin mit Tippabgabe bis zum Spielbeginn korrigiert. ', + 'DB_UPDATE_BIT_DELIVERIES' => '%s Spieltags-Abgabetermine mit Tippabgabe bis zum Spielbeginn korrigiert. ', + 'DB_UPDATE_DELIVER' => 'Abgabetermin des Spieltags %s korrigiert. ', + 'DB_UPDATE_DELIVERIES' => 'Abgabetermine des Spieltage %s korrigiert. ', + 'DB_UPDATE_MATCHDAY' => '%s Spieltag aktualisiert. ', + 'DB_UPDATE_MATCHDAYS' => '%s Spieltage aktualisiert. ', + 'DB_UPDATE_TEAM' => '%s Mannschaft aktualisiert. ', + 'DB_UPDATE_TEAMS' => '%s Mannschaften aktualisiert. ', + 'DB_UPDATE_MATCH' => '%s Spiel aktualisiert. ', + 'DB_UPDATE_MATCHES' => '%s Spiele aktualisiert. ', + 'DB_UPDATE_STATUS_MATCHDAY' => 'An %s Spieltag wurde der Status angepasst. ', + 'DB_UPDATE_STATUS_MATCHDAYS' => 'An %s Spieltagen wurde der Status angepasst. ', + 'DUPLICATE_TEAM' => 'Diese Team-ID wurde doppelt zugeordnet. ', + + 'ERROR_OPEN_LEAGUE_XML' => 'Fehler! Die Liga XML-Datei konnte nicht geöffnet werden. Bitte den Link überprüfen. ', + 'ERROR_OPEN_SEASON_XML' => 'Fehler! Die Saison XML-Datei konnte nicht geöffnet werden. Bitte den Link überprüfen. ', + 'ERROR_READ_LEAGUE_XML' => 'Fehler! Die Liga XML-Datei konnte nicht gelesen werden. Bitte den Code oder die XML-Datei überprüfen. ', + 'ERROR_READ_SEASON_XML' => 'Fehler! Die Saison XML-Datei konnte nicht gelesen werden. Bitte den Code überprüfen. ', + 'ERROR_LOAD_LEAGUE_XML' => 'Fehler! Die Liga XML-Datei konnte nicht gelesen werden. Bitte die Datei %s überprüfen. ', + 'ERROR_XML_CODE' => 'Fehlerhafter Code! Um die XML-Datei anzuzeigen, muss der korrekte Code beim Aufruf übergeben werden. ', + 'ERROR_XML_CREATE' => 'Fehler! Die XML-Datei konnte nicht erzeugt werden. ', + + 'INSERT_LEAGUE' => 'Neue Liga anlegen', + 'INSERT_MATCHDAYS' => 'Spieltage anlegen', + 'INSERT_MATCHES' => 'Spielbegegnungen anlegen', + 'INSERT_SEASON' => 'Neue Saison anlegen', + 'INSERT_TEAMS' => 'Mannschaften anlegen', + + 'LEAGUE_SHORTCUT' => 'Liga Kürzel', + 'LOAD' => 'Laden', + 'LOG_FOOTB_UPDATE' => 'Football Prediction League Spielplan-Update
» %s', + + 'MAP_TEAMS' => 'Teams zuordnen', + 'MATCH_OF_GROUP' => 'Spiel in Gruppe', + 'MATCHES' => 'Spiele', + 'MISMATCH_LEAGUE_TYPE' => 'Der Ligatyp (%s) des Quell-Spielplans passt nicht zur vorhandenen Liga.', + 'MISMATCH_MATCHDAYS' => 'Die Anzahl der Spieltage (%s) des Quell-Spielplans passt nicht zur vorhandenen Liga.', + 'MISMATCH_DB_MATCHDAYS' => 'Die Anzahl der Spieltage (%s) in der Datenbank passt nicht zur vorhandenen Liga.', + 'MISMATCH_MATCHES' => 'Die Anzahl der Spiele (%s) an einem Spieltag des Quell-Spielplans passt nicht zur vorhandenen Liga.', + 'MISMATCH_DB_MATCHES' => 'Die Anzahl der Spiele (%s) in der Datenbank passt nicht zum Quell-Spielplan.', + 'MISMATCH_MOM' => 'Die Anzahl der Spiele je Spieltag (%s) des Quell-Spielplans passt nicht zur vorhandenen Liga.', + 'MISSING_TEAMS' => 'Folgende Team IDs müssen noch zugeordnet werden: %s', + + 'NEW_LEAGUE' => 'Neue Liga', + 'NEW_LEAGUE_EXIST' => 'Die neue Liga %s existiert bereits. ', + 'NEW_LEAGUE_EXPLAIN' => 'Bei einer neuen Liga bitte hier die Liganummer angeben. Bei einer bestehenden Liga darf diese Liganummer nicht überschrieben werden, da sonst eine eventuell bestehende Liga aktualisiert wird. ', + 'NEW_TEAM' => 'Neues Team wird eingefügt', + 'NO_DB_CHANGES' => 'Es wurden keine Änderungen durchgeführt. ', + 'NO_DIFFERENCES' => 'Keine Unterschiede gefunden. Die Spielpläne sind identisch. ', + 'NO_XML_LEAGUE' => 'Im Verzeichnis root/store konnte keine Update-Dateien gefunden werden. ', + 'NO_XML_SEASON' => 'Es wurde keine Quell-Daten zum aktualisieren gefunden. ', + 'NO_XML_ARRAY' => 'Fehler! Daten nicht mehr vorhanden. Bitte wiederhole die Aktion von vorne. ', + + 'OTHER_FIELDS' => 'Andere Felder', + + 'PREDICTION_LEAGUE' => 'Tipprunde', + + 'SEASON' => 'Saison', + 'SELECT_EXPLAIN' => 'Nur die hier markierten Datensätze werden übernommen', + 'SHOW_UPDATE' => 'Neue Liga anzeigen', + 'SOURCE' => 'Quelle', + + 'TARGET' => 'Ziel', + 'TEAM_MAPPING' => 'Teamzuordnung', + 'TEAM_NAME_SHORT' => 'Kurzname', + 'TRANSFER_TEAM' => 'Team übernehmen', + + 'UPDATE_LEAGUE' => 'Ligadaten aktualisieren', + 'UPDATE_MATCHDAYS' => 'Spieltagsdaten aktualisieren', + 'UPDATE_MATCHES' => 'Spielbegegnungen aktualisieren', + 'UPDATE_ONLY_FINAL' => 'Nur endgültige Ergebnisse übernehmen', + 'UPDATE_SAME_STATUS' => 'Ergebnisse mit gleichem Status aktualisieren', + 'UPDATE_NEG_STATUS' => 'Negative Status übernehmen', + 'UPDATE_TEAMS' => 'Mannschaftsdaten aktualisieren', + 'UPDATE_THIS' => 'Änderungen in diesem Feld übernehmen', + + 'XML_SEASON_URL' => 'URL Quelle für das Update', + 'XML_SEASON_URL_EXPLAIN' => 'URL zu football_xml_season.php oder localhost. Bei localhost wird nach league_* Datei in root/store gesucht. ', +)); + ?> \ No newline at end of file diff --git a/language/de/permissions_football.php b/language/de/permissions_football.php index bbc2b49..15db88f 100644 --- a/language/de/permissions_football.php +++ b/language/de/permissions_football.php @@ -1,39 +1,39 @@ - 'Fussball', - 'ACL_U_USE_FOOTBALL' => 'Kann Football Extension verwenden', - 'ACL_A_FOOTBALL_CONFIG' => 'Kann Tipprundeneinstellung ändern', - 'ACL_A_FOOTBALL_DELETE' => 'Kann Spielpläne löschen', - 'ACL_A_FOOTBALL_EDITBETS' => 'Kann alle Tipps ansehen, eingeben und ändern', - 'ACL_A_FOOTBALL_PLAN' => 'Kann Spielpläne erstellen und ändern', - 'ACL_A_FOOTBALL_RESULTS' => 'Kann endgültige Spielergebnisse eingeben, ändern und löschen', - 'ACL_A_FOOTBALL_POINTS' => 'Kann Kontodaten eingeben, ändern und löschen', - - 'ROLE_ADMIN_FOOTBALL' => 'Tipprunden Administrator', - 'ROLE_DESCRIPTION_ADMIN_FOOTBALL' => 'Kann endgültige Spielergebnisse eingeben und ändern.', -)); - + 'Fussball', + 'ACL_U_USE_FOOTBALL' => 'Kann Football Extension verwenden', + 'ACL_A_FOOTBALL_CONFIG' => 'Kann Tipprundeneinstellung ändern', + 'ACL_A_FOOTBALL_DELETE' => 'Kann Spielpläne löschen', + 'ACL_A_FOOTBALL_EDITBETS' => 'Kann alle Tipps ansehen, eingeben und ändern', + 'ACL_A_FOOTBALL_PLAN' => 'Kann Spielpläne erstellen und ändern', + 'ACL_A_FOOTBALL_RESULTS' => 'Kann endgültige Spielergebnisse eingeben, ändern und löschen', + 'ACL_A_FOOTBALL_POINTS' => 'Kann Kontodaten eingeben, ändern und löschen', + + 'ROLE_ADMIN_FOOTBALL' => 'Tipprunden Administrator', + 'ROLE_DESCRIPTION_ADMIN_FOOTBALL' => 'Kann endgültige Spielergebnisse eingeben und ändern.', +)); + ?> \ No newline at end of file diff --git a/language/en/email/footb_board_remember.txt b/language/en/email/footb_board_remember.txt index 9c0f64e..88c6b32 100644 --- a/language/en/email/footb_board_remember.txt +++ b/language/en/email/footb_board_remember.txt @@ -1,10 +1,10 @@ - -Hallo {SITENAME}, -the following users have received a reminder e-mail: - -{REMEMBER_LIST} - - -Link to {SITENAME}: {U_BOARD}. - -{EMAIL_SIG} + +Hallo {SITENAME}, +the following users have received a reminder e-mail: + +{REMEMBER_LIST} + + +Link to {SITENAME}: {U_BOARD}. + +{EMAIL_SIG} diff --git a/language/en/email/footb_send_remember.txt b/language/en/email/footb_send_remember.txt index bdd32cf..73f870c 100644 --- a/language/en/email/footb_send_remember.txt +++ b/language/en/email/footb_send_remember.txt @@ -1,10 +1,10 @@ - -Hallo {USERNAME}, -you have not yet bet {MATCHDAY}. matchday. -Please bet until {LEAGUE} delivery {DELIVERY}. - - -Link to {SITENAME}: {U_BOARD}. - - -{EMAIL_SIG} + +Hallo {USERNAME}, +you have not yet bet {MATCHDAY}. matchday. +Please bet until {LEAGUE} delivery {DELIVERY}. + + +Link to {SITENAME}: {U_BOARD}. + + +{EMAIL_SIG} diff --git a/language/en/football.php b/language/en/football.php index 8d9b781..900a24b 100644 --- a/language/en/football.php +++ b/language/en/football.php @@ -43,8 +43,6 @@ $lang = array_merge($lang, array( 'FOOTB_REM_F_EXPLAIN' => 'Send reminder to your first email address, if you should not have bet?', 'FOOTB_REM_S' => 'Send Prediction League reminder to second email adress', 'FOOTB_REM_S_EXPLAIN' => 'Send reminder to your second email address, if you should not have bet?', - 'YES' => 'Ja', - 'NO' => 'Nein', 'ADD_NEW_TEAM' => 'The team was added to the WebTip. ', 'ALL_BETS' => 'All bets', @@ -225,6 +223,7 @@ $lang = array_merge($lang, array( 'NO_BETS_SAVED' => 'No bets saved!', 'NO_CHANGES' => 'No changes', 'NO_DATA' => 'No data available!', + 'NO_GUEST_VIEW' => 'Guests are not allowed to view the prediction league. ', 'NO_GUESTTEAM' => 'The guest team chosen by you does not exist. ', 'NO_HIST' => 'No previous comparisons exist for these two teams in the database. ', 'NO_HOMEMATCHES_TEAM' => 'This team has not played at home this season yet. ', @@ -330,6 +329,8 @@ $lang = array_merge($lang, array( 'RULES_EXPLAIN' => 'Here are only the technical basic conditions of this WebTip listed. ', 'SAMESAVED' => 'Your %d Granny-bets were saved successfully! A bet was automatically modified. ', 'SAVE' => 'Save', + 'SAVE_PREDICTION' => 'Save prediction', + 'SAVE_RESULTS' => 'Save results', 'SCORED' => 'Scored', 'SEASON' => 'Season', 'SEC_LEG_ERROR' => 'Second leg does not exist', diff --git a/language/en/help_football.php b/language/en/help_football.php index c87bb16..f49bd29 100644 --- a/language/en/help_football.php +++ b/language/en/help_football.php @@ -1,503 +1,502 @@ - array( - array( - 0 => '--', - 1 => 'First steps' - ), - array( - 0 => 'How do I install a league?', - 1 => 'When you install this Extension any fixtures are included. Fixture lists can be loaded by "update fixture lists" into the database. -For details, see under this heading. -After installing a fixture list, the settings of the league should be processed and the delivery dates of the match days checked and adjusted if necessary. -Select manage league to put single users or group members to the prediction league. ' - ), - array( - 0 => 'Other settings?', - 1 => 'For handle the prediction league(s) you should review and assigned administrative privileges to the members. For automatic sending of -reminder emails you can set up an external Cornjob. Look that up in the various elements of this help.' - ), - array( - 0 => '--', - 1 => 'General' - ), - array( - 0 => 'Which prediction leagues are supported?', - 1 => 'All prediction leagues on a championship or KO Round aim. So, soccer leagues, cup competitions, Champions League, Champions League, -European Championship or World Cup. Even a mix of different competitions is supported, to this table and the statistics show, however, nothing meaningful. -Only through the point mode Handball is the Extension and other leagues are not suitable for. ' - ), - array( - 0 => 'What rights exist in the Extension ', - 1 => 'a_football_results = Can enter, modify and delete final game results
-a_football_editbets = Can See in the admin area to enter all the tips, and change it
-a_football_plan = Unable to create change game plans. Schedule and manage delete (without) and knockout rounds to determine winners
-a_football_delete = Can Fixtures and delete parts of it. Delete permission in the schedule management
-a_football_config = Can change prediction league settings: prediction league configuration
-a_football_points = Can set, change and delete points for Ultimate Points
-u_use_football = Can use Prediction League.' - ), - array( - 0 => 'What roles exist in this Extension? ', - 1 => 'The football Administrator has just the right match results enter final, otherwise no admin rights. ' - ), - array( - 0 => 'Which rights were roles assigned to existing ones? ', - 1 => 'The default administrator can enter final Scores, change and delete them. -The Global Administrator has all the rights of MODS. ' - ), - array( - 0 => 'Which custom profile fields have been generated by the Extension? ', - 1 => 'footb_email = additional second email address for email alerts
-footb_rem_f = switch for sending the reminder email to the primary e-mail address.
-footb_rem_s = switch for sending the reminder email to the second E-mail address. ' - ), - array( - 0 => 'How do I activate the reminder e-mail function? ', - 1 => 'In the admin area in the Prediction League functionality the mail reminder cron job and the next run must be activated.
-The cron job is run on the first access after this date and sends an e-mail reminder for the missing tip duties that lie in the period 24-48 hours after cron date . -If not sufficient accesses the page, the cron job should automatically run on script "YOUR_URL/cron.php?cron_type=football.football.cron.task.football_remember".
-The ship of the email takes place only once . After calling up the cron job, the next scheduled is automatically planned for the following day . -With the appended parameters " & mode = test & days = n " can be tested the shipment for the offset to n days predictions . Only mails to board email address will be shipped . - In ACP a user defined prediction leagues code is to define.
-This code XXX must be a cronjob as www.cronjob.de by calling the script "/ football / cron_remember.php? Code = XXX" start.
-The call must be at least 24 hours and maximum 33 hours before the final matchday of the place. When multiple calls during the period reminder email will -be sent again. -Is the Tip levy as of Friday 20:00 clock must call on Thursday between Thu 11 and 20 clock made.
-If the cron job running daily at 13:00 clock, all the deadlines on the following day zwischen 13:00 und 22 clock and no one considered twice. ' - ), - array( - 0 => 'Who gets a reminder ', - 1 => 'If enabled, reminder function get all the tipsters who play a match with status 0 not fully tapped have to hand -in on a reminder to the shared (n) e-mail address (es).
-In addition, an e-mail with the recipient list to the Board e-mail sent (but only if at least one reminder was sent).
-The documentation process is logged to the log. ' - ), - array( - 0 => '--', - 1 => 'Tip Deadline ' - ), - array( - 0 => 'Tip When the tax is suspended? ', - 1 => 'As soon as someone Data from the prediction leagues will retrieve checks that match status 0 and expired tax time exist with. The to closing -matches will state 1 and suspend for bet. ' - ), - array( - 0 => 'The match or matches are not delivery date closed to ', - 1 => 'The tax date is the current host time + time difference between board and host time zone compared. If your host in the set board zone is -located, it must be time zone in the prediction leagues settings also deposited be. ' - ), - array( - 0 => 'I can a matchday not edit the submission date ', - 1 => 'You have the league settings "tip submit on each game start" is selected with. This automatically submitting time based games managed. the if -you remember the game plan preparation, are in should "tip tax until their game starts" only after recognition of the entire game board set is. Then, the -delivery time is automatically corrected. ' - ), - array( - 0 => 'The game has already begun, but I can not type yet ', - 1 => 'The match was not yet closed, since the charge time or in the future, and the first game but has already started. Saving the charge time in -the match day is currently the Time synchronized with the seasons and not reviewed. ' - ), - array( - 0 => 'checks to save the match day settings ', - 1 => 'When saving a match day, the system checks whether the status of the game day must be corrected. If the 1 . release date in the future, -the status of the match day 0 set to, he is in the past, 3 the status depending on the status of its games to 1, 2 or Set. ' - ), - array( - 0 => 'How do I make further deadlines in a game day one? ', - 1 => 'This is only possible if "tip tax until their game starts" in the league settings to "no". Then, two more deadlines deposited will match the. -The games to 2 deadline to be closed must schedule manual status -1 set to be on the. For the third Deadline Games is the status of the manually set to -2. ' - ), - array( - 0 => 'What does tip tax until their game starts', - 1 => 'In this mode, each game for the start of the game, typed up by one. When you close the tip submit a game is determined whether any" open -"games Matchday exist in the. If so, the charge time of the match day to the next start of the game is set, otherwise it remains on the last game and the -match began with the congestion gets first Predictions for a fixed time before each game is not currently supported. ' - ), - array( - 0 => '--', - 1 => 'Operating ' - ), - array( - 0 => 'How to save final scores? ', - 1 => 'Final scores can only be stored in the admin area. Only the results of the selected matches are saved. ' - ), - array( - 0 => 'I can not enter final scores ', - 1 => 'On prediction leagues functionalities "enter final scores only after match" final scores could entered only after the match (90 minutes).
-It is not possibleto enter final scores for matches with status 0. For these matches with status 0, please check delivery time. ' - ), - array( - 0 => 'I want to save a preliminary results', - 1 => 'Preliminary results can be entered only in the User area. ' - ), - array( - 0 => 'Why do I get different leagues after calling score page? ', - 1 => 'Calling the page "scores" the league which longest waits for a scores is automatically displayed. ' - ), - array( - 0 => 'Which stage status is set after saving final scores? ', - 1 => 'After saving final scores, the stage status according to the matches is set. -When all the matches have a status greater than 2, the stage status 3 is set up. Otherwise, stage status ist set to the minimum match status> = 0. ' - ), - array( - 0 => 'When rankings are updated?', - 1 => 'After saving final or preliminary scores in the user or admin area, the stage ranking is updated. Then, the -overall ranking is calculated and the places are stored in stage data. The remaining data in the overall ranking are not stored, they are currently calculated.
-For stage status 0 or 1, the ranking will be deleted for this stage. The ranking status is set identical to stage status. ' - ), - array( - 0 => 'How do I delete final scores? ', - 1 => 'Clear final score field(s) or choose delete option and final score ist deleted for this match. The match state will be set to 1. ' - ), - array( - 0 => 'How do I get games from rating? ', - 1 => 'Set switch "without rating" before saving the match. no one will receive points for that match. If there is -no result yet, the game will be saved with state 4, preliminary scores will be state 5, final scores without rating will be state 6. ' - ), - array( - 0 => 'Who can see all tips?', - 1 => 'User with admin rights a_football_editbets = "Can the admin section view, enter all tips and change" can see and edit all tips of all users in the admin area. ' - ), - array( - 0 => 'What is Tip entry in the admin area to observe the case?', - 1 => 'Will to games already available results stored Tips is ranked does not automatically update the. The rankings take into account new tip not. -The display the individual tips and "All Reviews" will be amended tips and the resulting points displayed. If the modified tips rankings included are the in, -match the results of the match day and the subsequent store again, the rankings newly calculated that. games must not selected or altered it. ' - ), - array( - 0 => 'What is "KO-round winners identify"? ', - 1 => 'order for the schedule management only teams to choose from in the corresponding round reaches have also must match the team will be registered -to the team to remain competitive. That, and the transfer to third runners-up teams in the Champions League group stage in the Champions League can be -performed automatically on this page. As in particular in the calculation of group placement, not all rules were taken into account in the system, -any errors are corrected manually. This will involve teams of the status message is logged in. -If ' - ), - array( - 0 => 'How to determine the winner of a knock-out round? ', - 1 => 'For each knockout games, or knock-out rounds with a return game, it is sufficient to match the determination to select where these games have -taken place as the target game day. Matchday to choose the last to which the team at least competition remains. ' - ), - array( - 0 => 'How do I determine the group winner and second group ', - 1 => 'In Group Play are all group match to determine select and the last match day round as the target match day to be deposited next to the. The -"determination on the basis of table space for group games" to choose and the place to which the teams qualify. If teams other league transferred to one in , -League is the corresponding selected, otherwise not. If no league selected, place and match ignored and not transferred Team. ' - ), - array( - 0 => 'The teams are already entered in the next round ', - 1 => 'Have Schedule the formulas W (Winner) or L (Looser) deposited in, is already in the display of the encounter between the winners and losers of -the formula stored in lot (s) are determined and entered in the schedule. Nevertheless, you should "round KO winner determined "called to be, otherwise when -you saved the game encounter in the game schedule (in game transfer or other change), the teams to choose from and are not therefore be deleted.
-The formula G does not lead to an automatic identification, as currently used in the determination of group placement, not all special rules are included in -the smallest up. The determination must be in the admin section on "knock-out rounds to determine winners" will be implemented and monitored. ' - ), - array( - 0 => 'without Tipster Tips still get points ', - 1 => 'You have the league settings stored in that Nichttipper the last of the points to get automatically. ' - ), - array( - 0 => '--', - 1 => 'Schedule Administration ' - ), - array( - 0 => 'How do I create a new Schedule? ', - 1 => 'To Schedule creation is each page compulsory for bottom-up work off of. In particular Games is the correct filing of the number of match days -and observed, so the generation process of schedule creation works in the. It was only after generation of the games in Fixtures can Tipper be included as -previously to the number of games are missing information. Just schedule the switch "tip tax until their game starts" only after generation of the games in -the visible. This switch should be made only after the deposit of the participating teams and all game dates Yes set to be to ensure that all deadlines set -will be able to automatically match the in. ' - ), - array( - 0 => 'How do I set a new season? ', - 1 => 'Under "Seasons Manage" you create a new season with the year, in the season ends. The season -2010/2011 at the season 2011 so as to create. On the following page will then set appropriate default values. ' - ), - array( - 0 => 'How do I set up a new league? ', - 1 => 'Under "leagues manage" you create a new league with an indication of a league point. The league number -should apply to the seasons the same award and are over league one must run away within the season to be>. The first league so should always be the League -number one, the second league, the league number two always get. ' - ), - array( - 0 => 'How do I set up a match that? ', - 1 => 'button to generate. In a new league must match the first the missing when the match day one from the standard ". Matchday" get to name -different, so the field is the appropriate fill, otherwise not. If a submission date filed, participating teams, this Abgabetemin in the generation of the -start of the game used as. ' - ), - array( - 0 => 'How I am in a league team? ', - 1 => 'knockout rounds before the case must necessarily match days are recorded, so the team can be assigned to a match, to which the team will remain -in the competition. The team ID of a team leagues and should be chosen identical across all seasons over so that the statistics work in historical -comparisons. -All gif files in the directory / football / images flags / are selecting a team emblem or a flag to display. The arms should be the size 28px x 28px have. -It is pointed out, the club crest copyrights are subject to, and not the rights holder used to be allowed the consent without. ' - ), - array( - 0 => 'How do I create the teams participating in the game schedule? ', - 1 => 'After all match days and men were recorded, the database entries for the participating teams will be generated. was before the match a deadline -deposited with, this is all the games of the match day as the game begins deposited with. Did not have any team a game pairing deposited in, then in the -summary instead of the Team name a possibly deposited calculation formula. ' - ), - array( - 0 => 'Can a game plan gradually build me? ', - 1 => 'Yes, you can use during the season more match in the league to add. This one carries the "Leagues Manage the change in the number of match days, -and then goes to "match" manage where you can to match messages generate new ones. and then edit. After entering the deadlines and number of games in -knockout rounds, have the games still be generated schedule in . To do this select new added match from and click on the generation button. The lack of -games will be generated and also missing empty entry all tipsters in the tip table. ' - ), - array( - 0 => 'When can a league Tipper take in? ', - 1 => 'games on the schedule Tipper can be added after creating the first place. Only then is the function "Manage Leagues" released. ' - ), - array( - 0 => 'Can I also delete match? ', - 1 => 'Yes, chosen either match "match Manage" on the "Delete" or the last match by the number of match days in the -league, and then reduces the "match on" Manage and there is then pressed the button displayed. Deleted is always the match with all the games and all tips. ' - ), - array( - 0 => 'can not play games or nobles I collect? ', - 1 => 'If you have created a knock-out round, you have the number of games at each match deposit. Only then Button appears to complete the game board -game board Manage. ' - ), - array( - 0 => 'What’s in a game installation? ', - 1 => 'change a game date is after in "tip-out to each start of the game " back to the status of the game and the match day and there deposited -deadline adapted to. ' - ), - array( - 0 => 'What are special tips? ', - 1 => 'special tips are single tips with separate scoring. You can be a to a league season to be defined and / or flow thus either in the scoring at -or in the overall standings one. Matchday the issue to a special tip can match are stored individually, but it should be clear. ' - ), - array( - 0 => 'What answer - and profit opportunities are available? ', - 1 => 'on the question type is more in response to the selection of a team in the league, a number or text available. The result is still a number of -values are in addition, each by " ; be separated. "Thus, with a multiple-answer questions can be deposited Choice. If question type 3 or 4 in question, -the choice of A: B: C: ... H: be marked with the appear in the typing and Score input automatically corresponding values in a dropdown box. ' - ), - array( - 0 => 'What a question and answer opportunity question type 1? ', - 1 => 'By type of question one can in response and outcome, only one team from the League team list will be selected. The maximum score is only -awarded in full compliance, otherwise gives the Tipper 0 points.
-Sample question: Who will be the Champion ' - ), - array( - 0 => 'What a question and answer opportunity type of question 2? ', - 1 => 'type of question 2, the question type 1, but the result in writing (or a more team-IDs separated by ";" separately entered). The maximum score -is awarded if the answer to the selection team associated ID value from the result of a match.
-Sample question: Name a relegated team (ranked 16-18 on the seasons end) ' - ), - array( - 0 => 'What a question and answer opportunity type of question 3? ', - 1 => 'type of question 3 In response and result only value (text or numbers) are stored one. The maximum score is awarded if the answer agrees with -the result, otherwise gives the Tipper 0 points.
-Sample question: How much red (no yellow-red) cards are given to this match? A = 0 B = 1 C = 2 D = more than 2 ' - ), - array( - 0 => 'What a question and answer opportunity> type of question 4? ', - 1 => 'type of question 4, In response a number or a text and as a result of more numbers or more texts (but not a combination of numbers and text) -by ";" to be entered separately. The maximum score is awarded if the number or the text in the response with a value of the outcome of matches.
-Sample question: Hannover 96 = B = A rises from the cup gets C = C = is not playing international German champions' - ), - array( - 0 => 'What a question and answer opportunity type of question 5?', - 1 => 'If question type 5 can result in response and only one number can be stored. The maximum points will be awarded if the answer to the outcome -is in accordance with, or receives maximum number of tipsters, the less the absolute difference between the response and result, no negative points.
-Sample question: How many goals are in this match? ' - ), - array( - 0 => 'Which ranking is flowing Special Tip a one?', - 1 => 'If delivery and evaluation Matchday be identical, scoring runs in the match score and a ranking. If the evaluation Matchday chosen different, -special tip flows in the overall classification and ranking one. ' - ), - array( - 0 => 'I Can Seasonal Tips Creating while? ', - 1 => 'Yes, but only to match which can still be typed. Stored special tips can be moved even then. However, the status of special tips examined -separately and corrected, if necessary, as with a shift to a no longer tippbaren match the status of the Special tips will automatically be adjusted not.' - ), - array( - 0 => 'When special tip is one of the tip release blocked?', - 1 => 'Special tips will be the first delivery date of a match day for the tip tax agreements with. If we want such a Champion tip on 3.Spieltag make -up, it sets If the levy on Matchday 3 and evaluation on the final day. ' - ), - array( - 0 => '--', - 1 => 'prediction leagues configuration ' - ), - array( - 0 => 'What time zone do I have to tip round set? ', - 1 => 'If the host the same time zone of the forum is, is betting the same time zone as the forum to vote in the. If the host in a different time -zone, then the time zone of the betting difference to set according to the . This is necessary because of supply and result input of the games system time -functions are used. ' - ), - array( - 0 => 'Why is betting code uses the? ', - 1 => 'To the memory function via cron_remember.php not outsiders can be misused, is the call of the parameters with the betting deposit code compared -code. Take for instance the code in the admin area deposited 19032038, so should the cronjob cron_remember.php? code = for the reminder call 19,032,038th ' - ), - array( - 0 => 'How do I show the rankings in the main view, clearly shape the?', - 1 => 'With the switch "Table Tipper in the overview Rankings", the match day overall list will be limited. If the rank by the not notified of an ad -to run, so the placement will be added to the rankings below. ' - ), - array( - 0 => '--', - 1 => 'Account overview / Ultimate Points (UP)' - ), - array( - 0 => 'It is necessary of the Ultimate Points Extension?', - 1 => 'No if you liked to indicate a balance, nevertheless, the Tippern of your tip round, you should instal the Ultimate Points Extension.
-Independent of Ultimate Points Extension league profits are credited to the account in phpBB3 football Extension and the Admin can register applications, payments -and payment.' - ), - array( - 0 => 'What does cause the setting "Ultimate Points integrate" in the prediction league functionalities in the Administration?', - 1 => 'This setting has only consequences on the automatic settlement of the profits in the balance of Ultimate Points. Here one can choose -whether profits, points or nothing from phpBB3 football Extension should flow in onto the Ultimate Points balance. The settlement of the achieved prediction -league points can be steered, in addition, still about a factor. ' - ), - array( - 0 => 'Can see other my account overview?', - 1 => 'Only who owns suitable rights, the account overview of another Tippers can question in the prediction league area.' - ), - array( - 0 => 'How are wagers, deposits and payment and profits registered?', - 1 => 'Wagers charge the account and the balance of UP and can be compensated by payments again. In the season credited profits can be paid by the - account and the payment likewise charge the balance in UP. Profits are registered automatically about the profit distribution of the prediction - league with the memory of the play results with the account and UP (with sedate counter). With renewed storing away of results the old reservations - are cancelled and booked anew. Should results already exist in the following matchdays, the matching ranking lists and reservations are corrected. - Deposits and payments-out are only for real payments.' - ), - array( - 0 => 'booking wagers', - 1 => 'If UP is installed and is activated with the beech, the wager is drawn off from the balance UP. The wager can be debited a sum to an account - for a complete league or for single user. With the reservation for the whole league quite booked wagers are already taken into consideration before, - so that all together at most the wager deposited in the league is debited a sum to an account. With single debit ever well-chosen user the back - wager are put down as a default on the respective input fields. If these values are changed no examination on under or over charging occurs.' - ), - array( - 0 => 'booking deposits', - 1 => 'If UP is installed and is activated with the beech, the deposit is credited to the balance. Therefore resulted negative account balances can -be compensated by deposits again. Deposits can be booked for a complete league or for single user. With the reservation for the whole league booked -deposits are already taken into consideration before, so that all together at most the application deposited in the league is booked. With single -reservation ever well-chosen user the final deposits are put down as a default on the respective input fields. If these values are changed no examination -on under or over charging occurs.' - ), - array( - 0 => 'booking payments', - 1 => 'If UP is installed and is activated with the beech, the payment loads the balance. Therefore achieved profits can be paid in the season and -the balance be equalised. Payments can be booked for a complete league or for single user. With the reservation for the whole league booked payment is -already taken into consideration before, so that all together at most the profit get in the league is booked up. With single reservation ever well-chosen -user the back payment is put down as a default on the respective input fields. If these values are changed no examination on under or over charging occurs.' - ), - array( - 0 => 'Approach after the update on version 0.9.2', - 1 => 'With the update phpBB3 football MODs on version 0.9.2 ranking lists are anew calculated (also from the years before) and the profits are -registered automatically in the account. Besides, a settlement with the UP balance is not carried out. If this is welcome, the -option "integrate Ultimate Points" are put accordingly and the match results of the first matchday league once more are stored away. Wagers, -deposits and payment must be postsettled by hand in the Administration for each season. Before one should decide whether these reservations should be -also taken into consideration in the UP balance and put accordingly the option for UP.' - ), - array( - 0 => '--', - 1 => 'Fixture list Update' - ), - array( - 0 => 'How to Schedule Update', - 1 => 'An update on the fixture list can be carried out only with data from another Football Extension site. An overview of the available seasons -and leagues is seen on /football/xml/football_xml_season.php starting from the phpbb root directory. If this complete address entered directly -in the browser, the XML data will be displayed. After click on a league the current data from the League shown here. If you click in this view on -disk icon, you can download the data of the league as an XML file.
-When you start the update in the admin area under Fixture List update the saved settings for season overview is listed as an update source. If no -Source is stored, the Football Extension Demo site is registered as a source. After loading the season overview the available leagues are offered for selection. -If access is not supported on a different URL from your hoster you must take to download from desired leagues as an XML file and store it under root/store. -In this case, save localhost in football settings for future calls.
-Access to the season and the league data can be protected by a code. Users of the updates must use the code xxxx when calling the Season overview by -appending ?code=xxxx. So call /football/xml/football_xml_season.php?code=xxxx. During the subsequent call to the League data the code will be passed. -As target, you can choose an existing league or a league by entering the new league ID. To set up a new league, the target season must exist. -In this case, all data of the update file transferred to database after switching season and league ID.
-If an existing league is selected, first season and league-ID will be replaced and the teams compared with the database. For differing Team IDs -or different number of teams is to do in the next step, a team mapping. Then, any deviations between update and database is displayed and you can select -rows and columns the data to be transferred. Note different defaults for the column selection. After updating the database deadlines and status -are automatically corrected on matchdays and the the ranking of the league is recalculated.
-In the admin log a summary of the changes are logged.' - ), - array( - 0 => 'Team Mapping', - 1 => 'The team mapping is necessary if the team IDs are not identical or the number of teams is different. Recently added teams -e.g. in the EL the third of CL, are inserted in the database. After the mapping the program check whether all the existing teams are -assigned. The Team IDs are exchanged on the basis of the mapping in the update data. New teams are added only during the actual update.' - ), - array( - 0 => 'Match Status', - 1 => 'When generating the XML data, the status 4-6 will be changed to 1-3, ie in the update, there are no games without evaluation. -For games with game status < 2, the goal Fields and the state itself is not accepted. Is database sttaus larger than 3, this status is maintained -and the update program treats the data as with the corresponding status 1-3. Prerequisite for data acquisition under consideration of the status, however, -remains the selection of appropriate columns and records on matches.' - ), - array( - 0 => 'Take over negative status', - 1 => 'If this option is set, the negative status, but not the goals will be taken. This enables the staggered deadlines -to take on the update. The deadlines are to take either of the update (column options in matchdays) or manually in the admin area. -In a league with "Bet in time" the option "Take over negative status" can not be selected.' - ), - array( - 0 => 'Update results with same status', - 1 => 'Only if this option is set, the goal fields from the update with the same status in update and database will be updated. This -overwrites already recorded (preliminary) results in the database. This also applies to games in the database without evaluation. -Status 3 overwrites the final results with status 6 in the database. Analog overrides status 2 in the update -preliminary results from the classification made by state 4, but only if "Take over only final results" option is not selected.' - ), - array( - 0 => 'Take over only final results', - 1 => 'If this option is set, only the goal-fields from the update record must be taken when the status of the match in the update is 3. -Preliminary results from the update are not used. If these should be taken, this option is explicitly set off. ' - ), - array( - 0 => 'Using the Cache', - 1 => 'The seasons- and the leagues-data are stored for 5 minutes in the cache, so that the data are downloaded from Source only once. If you need -updated data within that time anyway, you have to delete the cache to force a new download from the Source.' - ), -))); -?> \ No newline at end of file + array( + array( + 0 => '--', + 1 => 'First steps' + ), + array( + 0 => 'How do I install a league?', + 1 => 'When you install this Extension any fixtures are included. Fixture lists can be loaded by "update fixture lists" into the database. +For details, see under this heading. +After installing a fixture list, the settings of the league should be processed and the delivery dates of the match days checked and adjusted if necessary. +Select manage league to put single users or group members to the prediction league. ' + ), + array( + 0 => 'Other settings?', + 1 => 'For handle the prediction league(s) you should review and assigned administrative privileges to the members. For automatic sending of +reminder emails you can set up an external Cornjob. Look that up in the various elements of this help.' + ), + array( + 0 => '--', + 1 => 'General' + ), + array( + 0 => 'Which prediction leagues are supported?', + 1 => 'All prediction leagues on a championship or KO Round aim. So, soccer leagues, cup competitions, Champions League, Champions League, +European Championship or World Cup. Even a mix of different competitions is supported, to this table and the statistics show, however, nothing meaningful. +Only through the point mode Handball is the Extension and other leagues are not suitable for. ' + ), + array( + 0 => 'What rights exist in the Extension ', + 1 => 'a_football_results = Can enter, modify and delete final game results
+a_football_editbets = Can See in the admin area to enter all the tips, and change it
+a_football_plan = Unable to create change game plans. Schedule and manage delete (without) and knockout rounds to determine winners
+a_football_delete = Can Fixtures and delete parts of it. Delete permission in the schedule management
+a_football_config = Can change prediction league settings: prediction league configuration
+a_football_points = Can set, change and delete points for Ultimate Points
+u_use_football = Can use Prediction League.' + ), + array( + 0 => 'What roles exist in this Extension? ', + 1 => 'The football Administrator has just the right match results enter final, otherwise no admin rights. ' + ), + array( + 0 => 'Which rights were roles assigned to existing ones? ', + 1 => 'The default administrator can enter final Scores, change and delete them. +The Global Administrator has all the rights of MODS. ' + ), + array( + 0 => 'Which custom profile fields have been generated by the Extension? ', + 1 => 'footb_email = additional second email address for email alerts
+footb_rem_f = switch for sending the reminder email to the primary e-mail address.
+footb_rem_s = switch for sending the reminder email to the second E-mail address. ' + ), + array( + 0 => 'How do I activate the reminder e-mail function? ', + 1 => 'In the admin area in the Prediction League functionality the mail reminder cron job and the next run must be activated.
+The cron job is run on the first access after this date and sends an e-mail reminder for the missing tip duties that lie in the period 24-48 hours after cron date . +If not sufficient accesses the page, the cron job should automatically run on script "YOUR_URL/cron.php?cron_type=football.football.cron.task.football_remember".
+The ship of the email takes place only once . After calling up the cron job, the next scheduled is automatically planned for the following day . +With the appended parameters " & mode = test & days = n " can be tested the shipment for the offset to n days predictions . Only mails to board email address will be shipped . + In ACP a user defined prediction leagues code is to define.
+This code XXX must be a cronjob as www.cronjob.de by calling the script "/ football / cron_remember.php? Code = XXX" start.
+The call must be at least 24 hours and maximum 33 hours before the final matchday of the place. When multiple calls during the period reminder email will +be sent again. +Is the Tip levy as of Friday 20:00 clock must call on Thursday between Thu 11 and 20 clock made.
+If the cron job running daily at 13:00 clock, all the deadlines on the following day zwischen 13:00 und 22 clock and no one considered twice. ' + ), + array( + 0 => 'Who gets a reminder ', + 1 => 'If enabled, reminder function get all the tipsters who play a match with status 0 not fully tapped have to hand +in on a reminder to the shared (n) e-mail address (es).
+In addition, an e-mail with the recipient list to the Board e-mail sent (but only if at least one reminder was sent).
+The documentation process is logged to the log. ' + ), + array( + 0 => '--', + 1 => 'Tip Deadline ' + ), + array( + 0 => 'Tip When the tax is suspended? ', + 1 => 'As soon as someone Data from the prediction leagues will retrieve checks that match status 0 and expired tax time exist with. The to closing +matches will state 1 and suspend for bet. ' + ), + array( + 0 => 'The match or matches are not delivery date closed to ', + 1 => 'The tax date is the current host time + time difference between board and host time zone compared. If your host in the set board zone is +located, it must be time zone in the prediction leagues settings also deposited be. ' + ), + array( + 0 => 'I can a matchday not edit the submission date ', + 1 => 'You have the league settings "tip submit on each game start" is selected with. This automatically submitting time based games managed. the if +you remember the game plan preparation, are in should "tip tax until their game starts" only after recognition of the entire game board set is. Then, the +delivery time is automatically corrected. ' + ), + array( + 0 => 'The game has already begun, but I can not type yet ', + 1 => 'The match was not yet closed, since the charge time or in the future, and the first game but has already started. Saving the charge time in +the match day is currently the Time synchronized with the seasons and not reviewed. ' + ), + array( + 0 => 'checks to save the match day settings ', + 1 => 'When saving a match day, the system checks whether the status of the game day must be corrected. If the 1 . release date in the future, +the status of the match day 0 set to, he is in the past, 3 the status depending on the status of its games to 1, 2 or Set. ' + ), + array( + 0 => 'How do I make further deadlines in a game day one? ', + 1 => 'This is only possible if "tip tax until their game starts" in the league settings to "no". Then, two more deadlines deposited will match the. +The games to 2 deadline to be closed must schedule manual status -1 set to be on the. For the third Deadline Games is the status of the manually set to -2. ' + ), + array( + 0 => 'What does tip tax until their game starts', + 1 => 'In this mode, each game for the start of the game, typed up by one. When you close the tip submit a game is determined whether any" open +"games Matchday exist in the. If so, the charge time of the match day to the next start of the game is set, otherwise it remains on the last game and the +match began with the congestion gets first Predictions for a fixed time before each game is not currently supported. ' + ), + array( + 0 => '--', + 1 => 'Operating ' + ), + array( + 0 => 'How to save final scores? ', + 1 => 'Final scores can only be stored in the admin area. Only the results of the selected matches are saved. ' + ), + array( + 0 => 'I can not enter final scores ', + 1 => 'On prediction leagues functionalities "enter final scores only after match" final scores could entered only after the match (90 minutes).
+It is not possibleto enter final scores for matches with status 0. For these matches with status 0, please check delivery time. ' + ), + array( + 0 => 'I want to save a preliminary results', + 1 => 'Preliminary results can be entered only in the User area. ' + ), + array( + 0 => 'Why do I get different leagues after calling score page? ', + 1 => 'Calling the page "scores" the league which longest waits for a scores is automatically displayed. ' + ), + array( + 0 => 'Which stage status is set after saving final scores? ', + 1 => 'After saving final scores, the stage status according to the matches is set. +When all the matches have a status greater than 2, the stage status 3 is set up. Otherwise, stage status ist set to the minimum match status> = 0. ' + ), + array( + 0 => 'When rankings are updated?', + 1 => 'After saving final or preliminary scores in the user or admin area, the stage ranking is updated. Then, the +overall ranking is calculated and the places are stored in stage data. The remaining data in the overall ranking are not stored, they are currently calculated.
+For stage status 0 or 1, the ranking will be deleted for this stage. The ranking status is set identical to stage status. ' + ), + array( + 0 => 'How do I delete final scores? ', + 1 => 'Clear final score field(s) or choose delete option and final score ist deleted for this match. The match state will be set to 1. ' + ), + array( + 0 => 'How do I get games from rating? ', + 1 => 'Set switch "without rating" before saving the match. no one will receive points for that match. If there is +no result yet, the game will be saved with state 4, preliminary scores will be state 5, final scores without rating will be state 6. ' + ), + array( + 0 => 'Who can see all tips?', + 1 => 'User with admin rights a_football_editbets = "Can the admin section view, enter all tips and change" can see and edit all tips of all users in the admin area. ' + ), + array( + 0 => 'What is Tip entry in the admin area to observe the case?', + 1 => 'Will to games already available results stored Tips is ranked does not automatically update the. The rankings take into account new tip not. +The display the individual tips and "All Reviews" will be amended tips and the resulting points displayed. If the modified tips rankings included are the in, +match the results of the match day and the subsequent store again, the rankings newly calculated that. games must not selected or altered it. ' + ), + array( + 0 => 'What is "KO-round winners identify"? ', + 1 => 'order for the schedule management only teams to choose from in the corresponding round reaches have also must match the team will be registered +to the team to remain competitive. That, and the transfer to third runners-up teams in the Champions League group stage in the Champions League can be +performed automatically on this page. As in particular in the calculation of group placement, not all rules were taken into account in the system, +any errors are corrected manually. This will involve teams of the status message is logged in. +If ' + ), + array( + 0 => 'How to determine the winner of a knock-out round? ', + 1 => 'For each knockout games, or knock-out rounds with a return game, it is sufficient to match the determination to select where these games have +taken place as the target game day. Matchday to choose the last to which the team at least competition remains. ' + ), + array( + 0 => 'How do I determine the group winner and second group ', + 1 => 'In Group Play are all group match to determine select and the last match day round as the target match day to be deposited next to the. The +"determination on the basis of table space for group games" to choose and the place to which the teams qualify. If teams other league transferred to one in , +League is the corresponding selected, otherwise not. If no league selected, place and match ignored and not transferred Team. ' + ), + array( + 0 => 'The teams are already entered in the next round ', + 1 => 'Have Schedule the formulas W (Winner) or L (Looser) deposited in, is already in the display of the encounter between the winners and losers of +the formula stored in lot (s) are determined and entered in the schedule. Nevertheless, you should "round KO winner determined "called to be, otherwise when +you saved the game encounter in the game schedule (in game transfer or other change), the teams to choose from and are not therefore be deleted.
+The formula G does not lead to an automatic identification, as currently used in the determination of group placement, not all special rules are included in +the smallest up. The determination must be in the admin section on "knock-out rounds to determine winners" will be implemented and monitored. ' + ), + array( + 0 => 'without Tipster Tips still get points ', + 1 => 'You have the league settings stored in that Nichttipper the last of the points to get automatically. ' + ), + array( + 0 => '--', + 1 => 'Schedule Administration ' + ), + array( + 0 => 'How do I create a new Schedule? ', + 1 => 'To Schedule creation is each page compulsory for bottom-up work off of. In particular Games is the correct filing of the number of match days +and observed, so the generation process of schedule creation works in the. It was only after generation of the games in Fixtures can Tipper be included as +previously to the number of games are missing information. Just schedule the switch "tip tax until their game starts" only after generation of the games in +the visible. This switch should be made only after the deposit of the participating teams and all game dates Yes set to be to ensure that all deadlines set +will be able to automatically match the in. ' + ), + array( + 0 => 'How do I set a new season? ', + 1 => 'Under "Seasons Manage" you create a new season with the year, in the season ends. The season +2010/2011 at the season 2011 so as to create. On the following page will then set appropriate default values. ' + ), + array( + 0 => 'How do I set up a new league? ', + 1 => 'Under "leagues manage" you create a new league with an indication of a league point. The league number +should apply to the seasons the same award and are over league one must run away within the season to be>. The first league so should always be the League +number one, the second league, the league number two always get. ' + ), + array( + 0 => 'How do I set up a match that? ', + 1 => 'button to generate. In a new league must match the first the missing when the match day one from the standard ". Matchday" get to name +different, so the field is the appropriate fill, otherwise not. If a submission date filed, participating teams, this Abgabetemin in the generation of the +start of the game used as. ' + ), + array( + 0 => 'How I am in a league team? ', + 1 => 'knockout rounds before the case must necessarily match days are recorded, so the team can be assigned to a match, to which the team will remain +in the competition. The team ID of a team leagues and should be chosen identical across all seasons over so that the statistics work in historical +comparisons. +All gif files in the directory / football / images flags / are selecting a team emblem or a flag to display. The arms should be the size 28px x 28px have. +It is pointed out, the club crest copyrights are subject to, and not the rights holder used to be allowed the consent without. ' + ), + array( + 0 => 'How do I create the teams participating in the game schedule? ', + 1 => 'After all match days and men were recorded, the database entries for the participating teams will be generated. was before the match a deadline +deposited with, this is all the games of the match day as the game begins deposited with. Did not have any team a game pairing deposited in, then in the +summary instead of the Team name a possibly deposited calculation formula. ' + ), + array( + 0 => 'Can a game plan gradually build me? ', + 1 => 'Yes, you can use during the season more match in the league to add. This one carries the "Leagues Manage the change in the number of match days, +and then goes to "match" manage where you can to match messages generate new ones. and then edit. After entering the deadlines and number of games in +knockout rounds, have the games still be generated schedule in . To do this select new added match from and click on the generation button. The lack of +games will be generated and also missing empty entry all tipsters in the tip table. ' + ), + array( + 0 => 'When can a league Tipper take in? ', + 1 => 'games on the schedule Tipper can be added after creating the first place. Only then is the function "Manage Leagues" released. ' + ), + array( + 0 => 'Can I also delete match? ', + 1 => 'Yes, chosen either match "match Manage" on the "Delete" or the last match by the number of match days in the +league, and then reduces the "match on" Manage and there is then pressed the button displayed. Deleted is always the match with all the games and all tips. ' + ), + array( + 0 => 'can not play games or nobles I collect? ', + 1 => 'If you have created a knock-out round, you have the number of games at each match deposit. Only then Button appears to complete the game board +game board Manage. ' + ), + array( + 0 => 'What’s in a game installation? ', + 1 => 'change a game date is after in "tip-out to each start of the game " back to the status of the game and the match day and there deposited +deadline adapted to. ' + ), + array( + 0 => 'What are special tips? ', + 1 => 'special tips are single tips with separate scoring. You can be a to a league season to be defined and / or flow thus either in the scoring at +or in the overall standings one. Matchday the issue to a special tip can match are stored individually, but it should be clear. ' + ), + array( + 0 => 'What answer - and profit opportunities are available? ', + 1 => 'on the question type is more in response to the selection of a team in the league, a number or text available. The result is still a number of +values are in addition, each by " ; be separated. "Thus, with a multiple-answer questions can be deposited Choice. If question type 3 or 4 in question, +the choice of A: B: C: ... H: be marked with the appear in the typing and Score input automatically corresponding values in a dropdown box. ' + ), + array( + 0 => 'What a question and answer opportunity question type 1? ', + 1 => 'By type of question one can in response and outcome, only one team from the League team list will be selected. The maximum score is only +awarded in full compliance, otherwise gives the Tipper 0 points.
+Sample question: Who will be the Champion ' + ), + array( + 0 => 'What a question and answer opportunity type of question 2? ', + 1 => 'type of question 2, the question type 1, but the result in writing (or a more team-IDs separated by ";" separately entered). The maximum score +is awarded if the answer to the selection team associated ID value from the result of a match.
+Sample question: Name a relegated team (ranked 16-18 on the seasons end) ' + ), + array( + 0 => 'What a question and answer opportunity type of question 3? ', + 1 => 'type of question 3 In response and result only value (text or numbers) are stored one. The maximum score is awarded if the answer agrees with +the result, otherwise gives the Tipper 0 points.
+Sample question: How much red (no yellow-red) cards are given to this match? A = 0 B = 1 C = 2 D = more than 2 ' + ), + array( + 0 => 'What a question and answer opportunity> type of question 4? ', + 1 => 'type of question 4, In response a number or a text and as a result of more numbers or more texts (but not a combination of numbers and text) +by ";" to be entered separately. The maximum score is awarded if the number or the text in the response with a value of the outcome of matches.
+Sample question: Hannover 96 = B = A rises from the cup gets C = C = is not playing international German champions' + ), + array( + 0 => 'What a question and answer opportunity type of question 5?', + 1 => 'If question type 5 can result in response and only one number can be stored. The maximum points will be awarded if the answer to the outcome +is in accordance with, or receives maximum number of tipsters, the less the absolute difference between the response and result, no negative points.
+Sample question: How many goals are in this match? ' + ), + array( + 0 => 'Which ranking is flowing Special Tip a one?', + 1 => 'If delivery and evaluation Matchday be identical, scoring runs in the match score and a ranking. If the evaluation Matchday chosen different, +special tip flows in the overall classification and ranking one. ' + ), + array( + 0 => 'I Can Seasonal Tips Creating while? ', + 1 => 'Yes, but only to match which can still be typed. Stored special tips can be moved even then. However, the status of special tips examined +separately and corrected, if necessary, as with a shift to a no longer tippbaren match the status of the Special tips will automatically be adjusted not.' + ), + array( + 0 => 'When special tip is one of the tip release blocked?', + 1 => 'Special tips will be the first delivery date of a match day for the tip tax agreements with. If we want such a Champion tip on 3.Spieltag make +up, it sets If the levy on Matchday 3 and evaluation on the final day. ' + ), + array( + 0 => '--', + 1 => 'prediction leagues configuration ' + ), + array( + 0 => 'What time zone do I have to tip round set? ', + 1 => 'If the host the same time zone of the forum is, is betting the same time zone as the forum to vote in the. If the host in a different time +zone, then the time zone of the betting difference to set according to the . This is necessary because of supply and result input of the games system time +functions are used. ' + ), + array( + 0 => 'Why is betting code uses the? ', + 1 => 'To the memory function via cron_remember.php not outsiders can be misused, is the call of the parameters with the betting deposit code compared +code. Take for instance the code in the admin area deposited 19032038, so should the cronjob cron_remember.php? code = for the reminder call 19,032,038th ' + ), + array( + 0 => 'How do I show the rankings in the main view, clearly shape the?', + 1 => 'With the switch "Table Tipper in the overview Rankings", the match day overall list will be limited. If the rank by the not notified of an ad +to run, so the placement will be added to the rankings below. ' + ), + array( + 0 => '--', + 1 => 'Account overview / Ultimate Points (UP)' + ), + array( + 0 => 'It is necessary of the Ultimate Points Extension?', + 1 => 'No if you liked to indicate a balance, nevertheless, the Tippern of your tip round, you should instal the Ultimate Points Extension.
+Independent of Ultimate Points Extension league profits are credited to the account in phpBB3 football Extension and the Admin can register applications, payments +and payment.' + ), + array( + 0 => 'What does cause the setting "Ultimate Points integrate" in the prediction league functionalities in the Administration?', + 1 => 'This setting has only consequences on the automatic settlement of the profits in the balance of Ultimate Points. Here one can choose +whether profits, points or nothing from phpBB3 football Extension should flow in onto the Ultimate Points balance. The settlement of the achieved prediction +league points can be steered, in addition, still about a factor. ' + ), + array( + 0 => 'Can see other my account overview?', + 1 => 'Only who owns suitable rights, the account overview of another Tippers can question in the prediction league area.' + ), + array( + 0 => 'How are wagers, deposits and payment and profits registered?', + 1 => 'Wagers charge the account and the balance of UP and can be compensated by payments again. In the season credited profits can be paid by the + account and the payment likewise charge the balance in UP. Profits are registered automatically about the profit distribution of the prediction + league with the memory of the play results with the account and UP (with sedate counter). With renewed storing away of results the old reservations + are cancelled and booked anew. Should results already exist in the following matchdays, the matching ranking lists and reservations are corrected. + Deposits and payments-out are only for real payments.' + ), + array( + 0 => 'booking wagers', + 1 => 'If UP is installed and is activated with the beech, the wager is drawn off from the balance UP. The wager can be debited a sum to an account + for a complete league or for single user. With the reservation for the whole league quite booked wagers are already taken into consideration before, + so that all together at most the wager deposited in the league is debited a sum to an account. With single debit ever well-chosen user the back + wager are put down as a default on the respective input fields. If these values are changed no examination on under or over charging occurs.' + ), + array( + 0 => 'booking deposits', + 1 => 'If UP is installed and is activated with the beech, the deposit is credited to the balance. Therefore resulted negative account balances can +be compensated by deposits again. Deposits can be booked for a complete league or for single user. With the reservation for the whole league booked +deposits are already taken into consideration before, so that all together at most the application deposited in the league is booked. With single +reservation ever well-chosen user the final deposits are put down as a default on the respective input fields. If these values are changed no examination +on under or over charging occurs.' + ), + array( + 0 => 'booking payments', + 1 => 'If UP is installed and is activated with the beech, the payment loads the balance. Therefore achieved profits can be paid in the season and +the balance be equalised. Payments can be booked for a complete league or for single user. With the reservation for the whole league booked payment is +already taken into consideration before, so that all together at most the profit get in the league is booked up. With single reservation ever well-chosen +user the back payment is put down as a default on the respective input fields. If these values are changed no examination on under or over charging occurs.' + ), + array( + 0 => 'Approach after the update on version 0.9.2', + 1 => 'With the update phpBB3 football MODs on version 0.9.2 ranking lists are anew calculated (also from the years before) and the profits are +registered automatically in the account. Besides, a settlement with the UP balance is not carried out. If this is welcome, the +option "integrate Ultimate Points" are put accordingly and the match results of the first matchday league once more are stored away. Wagers, +deposits and payment must be postsettled by hand in the Administration for each season. Before one should decide whether these reservations should be +also taken into consideration in the UP balance and put accordingly the option for UP.' + ), + array( + 0 => '--', + 1 => 'Fixture list Update' + ), + array( + 0 => 'How to Schedule Update', + 1 => 'An update on the fixture list can be carried out only with data from another Football Extension site. An overview of the available seasons +and leagues is seen on /football/xml/football_xml_season.php starting from the phpbb root directory. If this complete address entered directly +in the browser, the XML data will be displayed. After click on a league the current data from the League shown here. If you click in this view on +disk icon, you can download the data of the league as an XML file.
+When you start the update in the admin area under Fixture List update the saved settings for season overview is listed as an update source. If no +Source is stored, the Football Extension Demo site is registered as a source. After loading the season overview the available leagues are offered for selection. +If access is not supported on a different URL from your hoster you must take to download from desired leagues as an XML file and store it under root/store. +In this case, save localhost in football settings for future calls.
+Access to the season and the league data can be protected by a code. Users of the updates must use the code xxxx when calling the Season overview by +appending ?code=xxxx. So call /football/xml/football_xml_season.php?code=xxxx. During the subsequent call to the League data the code will be passed. +As target, you can choose an existing league or a league by entering the new league ID. To set up a new league, the target season must exist. +In this case, all data of the update file transferred to database after switching season and league ID.
+If an existing league is selected, first season and league-ID will be replaced and the teams compared with the database. For differing Team IDs +or different number of teams is to do in the next step, a team mapping. Then, any deviations between update and database is displayed and you can select +rows and columns the data to be transferred. Note different defaults for the column selection. After updating the database deadlines and status +are automatically corrected on matchdays and the the ranking of the league is recalculated.
+In the admin log a summary of the changes are logged.' + ), + array( + 0 => 'Team Mapping', + 1 => 'The team mapping is necessary if the team IDs are not identical or the number of teams is different. Recently added teams +e.g. in the EL the third of CL, are inserted in the database. After the mapping the program check whether all the existing teams are +assigned. The Team IDs are exchanged on the basis of the mapping in the update data. New teams are added only during the actual update.' + ), + array( + 0 => 'Match Status', + 1 => 'When generating the XML data, the status 4-6 will be changed to 1-3, ie in the update, there are no games without evaluation. +For games with game status < 2, the goal Fields and the state itself is not accepted. Is database sttaus larger than 3, this status is maintained +and the update program treats the data as with the corresponding status 1-3. Prerequisite for data acquisition under consideration of the status, however, +remains the selection of appropriate columns and records on matches.' + ), + array( + 0 => 'Take over negative status', + 1 => 'If this option is set, the negative status, but not the goals will be taken. This enables the staggered deadlines +to take on the update. The deadlines are to take either of the update (column options in matchdays) or manually in the admin area. +In a league with "Bet in time" the option "Take over negative status" can not be selected.' + ), + array( + 0 => 'Update results with same status', + 1 => 'Only if this option is set, the goal fields from the update with the same status in update and database will be updated. This +overwrites already recorded (preliminary) results in the database. This also applies to games in the database without evaluation. +Status 3 overwrites the final results with status 6 in the database. Analog overrides status 2 in the update +preliminary results from the classification made by state 4, but only if "Take over only final results" option is not selected.' + ), + array( + 0 => 'Take over only final results', + 1 => 'If this option is set, only the goal-fields from the update record must be taken when the status of the match in the update is 3. +Preliminary results from the update are not used. If these should be taken, this option is explicitly set off. ' + ), + array( + 0 => 'Using the Cache', + 1 => 'The seasons- and the leagues-data are stored for 5 minutes in the cache, so that the data are downloaded from Source only once. If you need +updated data within that time anyway, you have to delete the cache to force a new download from the Source.' + ), +))); diff --git a/language/en/info_acp_update.php b/language/en/info_acp_update.php index b0c3f15..0388b01 100644 --- a/language/en/info_acp_update.php +++ b/language/en/info_acp_update.php @@ -81,6 +81,7 @@ $lang = array_merge($lang, array( 'INSERT_TEAMS' => 'Insert new teams', 'LEAGUE_SHORTCUT' => 'League shortcut', 'LOAD' => 'load', + 'LOG_FOOTB_UPDATE' => 'Football Prediction League fixure list update
» %s', 'MAP_TEAMS' => 'Map teams', 'MATCH_OF_GROUP' => 'Match on group', 'MATCHES' => 'Matches', diff --git a/migrations/v094_beta.php b/migrations/v094_beta.php index 67633e1..08e0d1b 100644 --- a/migrations/v094_beta.php +++ b/migrations/v094_beta.php @@ -1,502 +1,502 @@ -config['football_version']) && version_compare($this->config['football_version'], '0.9.4', '>='); - } - - // first try to update the old MOD and run this migration if update didn't change version number - static public function depends_on() - { - return array('\football\football\migrations\v094_beta_update'); - } - - public function update_schema() - { - //Create the football tables - return array( - 'add_columns' => array( - $this->table_prefix . 'sessions' => array( - 'football_season' => array('USINT', 0), - 'football_league' => array('TINT:2', 0), - 'football_matchday' => array('TINT:2', 0), - 'football_mobile' => array('UINT:1', 0), - 'football_mobile_device' => array('VCHAR:255', NULL), - ), - ), - 'add_tables' => array( - $this->table_prefix . 'footb_bets' => array( - 'COLUMNS' => array( - 'season' => array('USINT', 0), - 'league' => array('TINT:2', 0), - 'match_no' => array('USINT', 0), - 'user_id' => array('UINT', 0), - 'goals_home' => array('CHAR:2',''), - 'goals_guest' => array('CHAR:2',''), - 'bet_time' => array('UINT:11', 0), - ), - 'PRIMARY_KEY' => array('season', 'league', 'match_no', 'user_id'), - ), - $this->table_prefix . 'footb_extra' => array( - 'COLUMNS' => array( - 'season' => array('USINT', 0), - 'league' => array('TINT:2', 0), - 'extra_no' => array('USINT', 0), - 'question_type' => array('TINT:2', 0), - 'question' => array('VCHAR:255', ''), - 'result' => array('VCHAR:255', ''), - 'matchday' => array('TINT:2', 0), - 'matchday_eval' => array('TINT:2', 0), - 'extra_points' => array('TINT:2', 0), - 'extra_status' => array('TINT:2', 0), - ), - 'PRIMARY_KEY' => array('season', 'league', 'extra_no'), - 'KEYS' => array( - 'matchday' => array('INDEX', 'matchday'), - 'eval' => array('INDEX', 'matchday_eval'), - ), - ), - $this->table_prefix . 'footb_extra_bets' => array( - 'COLUMNS' => array( - 'season' => array('USINT', 0), - 'league' => array('TINT:2', 0), - 'extra_no' => array('USINT', 0), - 'user_id' => array('UINT', 0), - 'bet' => array('VCHAR:255', ''), - 'bet_points' => array('TINT:2', 0), - ), - 'PRIMARY_KEY' => array('season', 'league', 'extra_no', 'user_id'), - ), - $this->table_prefix . 'footb_leagues' => array( - 'COLUMNS' => array( - 'season' => array('USINT', 0), - 'league' => array('TINT:2', 0), - 'league_name' => array('VCHAR:20', ''), - 'league_name_short' => array('VCHAR:3', ''), - 'league_type' => array('TINT:1', 1), - 'matchdays' => array('TINT:2', 0), - 'matches_on_matchday' => array('TINT:2', 0), - 'win_result' => array('VCHAR:10', ''), - 'win_result_02' => array('VCHAR:10', ''), - 'win_matchday' => array('VCHAR:255', ''), - 'win_season' => array('VCHAR:255', ''), - 'points_mode' => array('TINT:2', 1), - 'points_result' => array('TINT:2', 0), - 'points_tendency' => array('TINT:2', 0), - 'points_diff' => array('TINT:2', 0), - 'points_last' => array('BOOL', 1), - 'join_by_user' => array('BOOL', 0), - 'join_in_season' => array('BOOL', 0), - 'bet_in_time' => array('BOOL', 0), - 'rules_post_id' => array('UINT', 0), - 'bet_ko_type' => array('TINT:1', 1), - 'bet_points' => array('DECIMAL', 0), - ), - 'PRIMARY_KEY' => array('season', 'league'), - ), - $this->table_prefix . 'footb_matchdays' => array( - 'COLUMNS' => array( - 'season' => array('USINT', 0), - 'league' => array('TINT:2', 0), - 'matchday' => array('TINT:2', 0), - 'status' => array('TINT:2', 0), - 'delivery_date' => array('CHAR:19', ''), - 'delivery_date_2' => array('CHAR:19', ''), - 'delivery_date_3' => array('CHAR:19', ''), - 'matchday_name' => array('VCHAR:30', ''), - 'matches' => array('CHAR:2',''), - ), - 'PRIMARY_KEY' => array('season', 'league', 'matchday'), - 'KEYS' => array( - 'status' => array('INDEX', 'status'), - 'date' => array('INDEX', 'delivery_date'), - ), - ), - $this->table_prefix . 'footb_matches' => array( - 'COLUMNS' => array( - 'season' => array('USINT', 0), - 'league' => array('TINT:2', 0), - 'match_no' => array('USINT', 0), - 'team_id_home' => array('USINT', 0), - 'team_id_guest' => array('USINT', 0), - 'goals_home' => array('CHAR:2',''), - 'goals_guest' => array('CHAR:2',''), - 'matchday' => array('TINT:2', 0), - 'status' => array('TINT:2', 0), - 'match_datetime' => array('CHAR:19', ''), - 'group_id' => array('CHAR:1', ''), - 'formula_home' => array('CHAR:9', ''), - 'formula_guest' => array('CHAR:9', ''), - 'ko_match' => array('BOOL', 0), - 'goals_overtime_home' => array('CHAR:2',''), - 'goals_overtime_guest' => array('CHAR:2',''), - 'trend' => array('CHAR:8', ''), - 'odd_1' => array('DECIMAL', 0.00), - 'odd_x' => array('DECIMAL', 0.00), - 'odd_2' => array('DECIMAL', 0.00), - 'rating' => array('DECIMAL', 0.00), - ), - 'PRIMARY_KEY' => array('season', 'league', 'match_no'), - 'KEYS' => array( - 'gid' => array('INDEX', 'team_id_guest'), - 'hid' => array('INDEX', 'team_id_home'), - 'md' => array('INDEX', 'matchday'), - ), - ), - $this->table_prefix . 'footb_matches_hist' => array( - 'COLUMNS' => array( - 'match_date' => array('CHAR:10', ''), - 'team_id_home' => array('USINT', 1), - 'team_id_guest' => array('USINT', 1), - 'match_type' => array('VCHAR:5', ''), - 'goals_home' => array('CHAR:2', ''), - 'goals_guest' => array('CHAR:2', ''), - ), - 'PRIMARY_KEY' => array('match_date', 'team_id_home', 'team_id_guest'), - 'KEYS' => array( - 'gid' => array('INDEX', 'team_id_guest'), - 'hid' => array('INDEX', 'team_id_home'), - ), - ), - $this->table_prefix . 'footb_points' => array( - 'COLUMNS' => array( - 'points_id' => array('UINT', NULL, 'auto_increment'), - 'season' => array('USINT', 0), - 'league' => array('TINT:2', 0), - 'matchday' => array('TINT:2', 0), - 'points_type' => array('TINT:1', 0), - 'user_id' => array('UINT', 0), - 'points' => array('DECIMAL:20', 0.00), - 'points_comment' => array('MTEXT_UNI', ''), - 'cash' => array('BOOL', 0), - ), - 'PRIMARY_KEY' => array('points_id'), - 'KEYS' => array( - 'user' => array('INDEX', array('season', 'league', 'user_id')), - 'matchday' => array('INDEX', array('season', 'league', 'matchday')), - 'type' => array('INDEX', array('season', 'league', 'points_type')), - ), - ), - $this->table_prefix . 'footb_rank_matchdays' => array( - 'COLUMNS' => array( - 'season' => array('USINT', 0), - 'league' => array('TINT:2', 0), - 'matchday' => array('TINT:2', 0), - 'user_id' => array('UINT', 0), - 'status' => array('TINT:2', 0), - 'rank' => array('USINT', 0), - 'points' => array('USINT', 0), - 'win' => array('DECIMAL', 0), - 'rank_total' => array('USINT', 0), - 'tendencies' => array('TINT:2', 0), - 'correct_result' => array('TINT:2', 0), - 'points_total' => array('USINT', 0), - 'win_total' => array('DECIMAL', 0), - ), - 'PRIMARY_KEY' => array('season', 'league', 'matchday', 'user_id'), - ), - $this->table_prefix . 'footb_seasons' => array( - 'COLUMNS' => array( - 'season' => array('USINT', 0), - 'season_name' => array('VCHAR:20', ''), - 'season_name_short' => array('VCHAR:10', ''), - ), - 'PRIMARY_KEY' => array('season'), - ), - $this->table_prefix . 'footb_teams' => array( - 'COLUMNS' => array( - 'season' => array('USINT', 0), - 'league' => array('TINT:2', 0), - 'team_id' => array('USINT', 1), - 'team_name' => array('VCHAR:30', ''), - 'team_name_short' => array('VCHAR:10', ''), - 'team_symbol' => array('VCHAR:25', ''), - 'group_id' => array('CHAR:1', ''), - 'matchday' => array('TINT:2', 0), - ), - 'PRIMARY_KEY' => array('season', 'league', 'team_id'), - ), - $this->table_prefix . 'footb_teams_hist' => array( - 'COLUMNS' => array( - 'team_id' => array('USINT', 0), - 'team_name' => array('VCHAR:30', ''), - ), - 'PRIMARY_KEY' => array('team_id'), - ), - ), - ); - } - - public function revert_schema() - { - return array( - 'drop_tables' => array( - $this->table_prefix . 'footb_bets', - $this->table_prefix . 'footb_extra', - $this->table_prefix . 'footb_extra_bets', - $this->table_prefix . 'footb_leagues', - $this->table_prefix . 'footb_matchdays', - $this->table_prefix . 'footb_matches', - $this->table_prefix . 'footb_matches_hist', - $this->table_prefix . 'footb_points', - $this->table_prefix . 'footb_rank_matchdays', - $this->table_prefix . 'footb_seasons', - $this->table_prefix . 'footb_teams', - $this->table_prefix . 'footb_teams_hist', - ), - ); - } - - public function update_data() - { - return array( - array('config.remove', array('football_google_league')), - array('config.remove', array('football_menu_forumdesc1')), - array('config.remove', array('football_menu_forumdesc2')), - array('config.remove', array('football_menu_forumdesc3')), - array('config.remove', array('football_menu_forumdesc4')), - array('config.remove', array('football_menu_forumdesc5')), - array('config.remove', array('football_menu_forumdesc6')), - array('config.remove', array('football_menu_forumid1')), - array('config.remove', array('football_menu_forumid2')), - array('config.remove', array('football_menu_forumid3')), - array('config.remove', array('football_menu_forumid4')), - array('config.remove', array('football_menu_forumid5')), - array('config.remove', array('football_menu_forumid6')), - array('config.add', array('football_bank', '0', '0')), - array('config.add', array('football_code', '0000', '0')), - array('config.add', array('football_disable', '0', '0')), - array('config.add', array('football_disable_msg', 'Wartung der Tipprunde. Bitte später erneut versuchen.', '0')), - array('config.add', array('football_display_ranks', '30', '0')), - array('config.add', array('football_founder_delete', '1', '0')), - array('config.add', array('football_fullscreen', '1', '0')), - array('config.add', array('football_guest_view', '1', '0')), - array('config.add', array('football_header_enable', '0', '0')), - array('config.add', array('football_host_timezone', $this->config['board_timezone'], '0')), - array('config.add', array('football_info', '', '0')), - array('config.add', array('football_info_display', '0', '0')), - array('config.add', array('football_last_backup', '0', '0')), - array('config.add', array('football_left_column_width', '180', '0')), - array('config.add', array('football_menu', '1', '0')), - array('config.add', array('football_menu_desc1', 'XML Seasons', '0')), - array('config.add', array('football_menu_desc2', '', '0')), - array('config.add', array('football_menu_desc3', 'XML League', '0')), - array('config.add', array('football_menu_link1', $this->config['server_protocol'] . $this->config['server_name'] . $this->config['script_path'] . '/ext/football/football/xml/seasons.php?code=0000', '0')), - array('config.add', array('football_menu_link2', '', '0')), - array('config.add', array('football_menu_link3', $this->config['server_protocol'] . $this->config['server_name'] . $this->config['script_path'] . '/ext/football/football/xml/league.php?code=0000', '0')), - array('config.add', array('football_name', 'Tipprunde', '0')), - array('config.add', array('football_override_style', '0', '0')), - array('config.add', array('football_remember_enable', '0', '0')), - array('config.add', array('football_remember_next_run', '0', '0')), - array('config.add', array('football_results_at_time', '1', '0')), - array('config.add', array('football_right_column_width', '184', '0')), - array('config.add', array('football_same_allowed', '0', '0')), - array('config.add', array('football_season_start', '0', '0')), - array('config.add', array('football_ult_points', '0', '0')), - array('config.add', array('football_ult_points_factor', '1.0', '0')), - array('config.add', array('football_update_code', '0000', '0')), - array('config.add', array('football_update_source', '', '0')), - array('config.add', array('football_user_view', '1', '0')), - array('config.add', array('football_users_per_page', '30', '0')), - array('config.add', array('football_version', '0.9.4', '0')), - array('config.add', array('football_view_bets', '0', '0')), - array('config.add', array('football_view_current', '1', '0')), - array('config.add', array('football_view_tendencies', '0', '0')), - array('config.add', array('football_win_name', 'PTS', '0')), - array('config.add', array('football_win_hits02', '0', '0')), - array('config.add', array('football_style', $this->config['default_style'], '0')), - - // Add football administrator permission role - array('permission.role_add', array('ROLE_ADMIN_FOOTBALL', 'a_', 'ROLE_DESCRIPTION_ADMIN_FOOTBALL')), // New role "ADMIN_FOOTBALL" - - // Add football permission settings - array('permission.add', array('a_football_config', true)), - array('permission.add', array('a_football_delete', true)), - array('permission.add', array('a_football_editbets', true)), - array('permission.add', array('a_football_plan', true)), - array('permission.add', array('a_football_results', true)), - array('permission.add', array('u_use_football', true)), - array('permission.add', array('a_football_points', true)), - - // We give some default permissions then as well? - array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_config')), - array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_delete')), - array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_editbets')), - array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_plan')), - array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_results')), - array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_points')), - array('permission.permission_set', array('ROLE_ADMIN_STANDARD', 'a_football_results')), - array('permission.permission_set', array('ROLE_ADMIN_FOOTBALL', 'a_football_results')), - array('permission.permission_set', array('ROLE_USER_STANDARD', 'u_use_football')), - - - // Add a new tab named ACP_FOOTBALL - array('module.add', array('acp', 0, 'ACP_FOOTBALL')), - - // Add a new category named ACP_FOOTBALL_OPERATION to ACP_FOOTBALL - array('module.add', array('acp', 'ACP_FOOTBALL', 'ACP_FOOTBALL_OPERATION')), - - // Add the manage mode from football_results to the ACP_FOOTBALL_OPERATION category. - array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( - 'module_basename' => '\football\football\acp\results_module', - 'module_langname' => 'ACP_FOOTBALL_RESULTS_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_results', - ), - )), - - // Add the manage mode from football_all_bets to the ACP_FOOTBALL_OPERATION category. - array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( - 'module_basename' => '\football\football\acp\all_bets_module', - 'module_langname' => 'ACP_FOOTBALL_ALL_BETS_VIEW', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_editbets', - ), - )), - - // Add the manage mode from football_bets to the ACP_FOOTBALL_OPERATION category. - array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( - 'module_basename' => '\football\football\acp\bets_module', - 'module_langname' => 'ACP_FOOTBALL_BETS_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_editbets', - ), - )), - - // Add the manage mode from football_ko to the ACP_FOOTBALL_OPERATION category. - array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( - 'module_basename' => '\football\football\acp\ko_module', - 'module_langname' => 'ACP_FOOTBALL_KO_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', - ), - )), - - // Add the manage mode from football_bank to the ACP_FOOTBALL_OPERATION category. - array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( - 'module_basename' => '\football\football\acp\bank_module', - 'module_langname' => 'ACP_FOOTBALL_BANK_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_points', - ), - )), - - - // Add a new category named ACP_FOOTBALL_MANAGE to ACP_FOOTBALL - array('module.add', array('acp', 'ACP_FOOTBALL', 'ACP_FOOTBALL_MANAGE')), - - // Add the manage mode from football_seasons to the ACP_FOOTBALL_MANAGE category. - array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\seasons_module', - 'module_langname' => 'ACP_FOOTBALL_SEASONS_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', - ), - )), - - // Add the manage mode from football_leagues to the ACP_FOOTBALL_MANAGE category. - array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\leagues_module', - 'module_langname' => 'ACP_FOOTBALL_LEAGUES_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', - ), - )), - - // Add the manage mode from football_matchdays to the ACP_FOOTBALL_MANAGE category. - array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\matchdays_module', - 'module_langname' => 'ACP_FOOTBALL_MATCHDAYS_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', - ), - )), - - // Add the manage mode from football_teams to the ACP_FOOTBALL_MANAGE category. - array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\teams_module', - 'module_langname' => 'ACP_FOOTBALL_TEAMS_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', - ), - )), - - // Add the manage mode from football_matches to the ACP_FOOTBALL_MANAGE category. - array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\matches_module', - 'module_langname' => 'ACP_FOOTBALL_MATCHES_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', - ), - )), - - // Add the manage mode from football_extra to the ACP_FOOTBALL_MANAGE category. - array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\extra_module', - 'module_langname' => 'ACP_FOOTBALL_EXTRA_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', - ), - )), - - // Add the manage mode from football_update to the ACP_FOOTBALL_MANAGE category using the "manual" method. - array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\update_module', - 'module_langname' => 'ACP_FOOTBALL_UPDATE_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', - ), - )), - - // Add a new category named ACP_FOOTBALL_CONFIGURATION to ACP_FOOTBALL - array('module.add', array('acp', 'ACP_FOOTBALL', 'ACP_FOOTBALL_CONFIGURATION')), - - // Add the settings mode from football to the ACP_FOOTBALL_CONFIGURATION category. - array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( - 'module_basename' => 'football\football\acp\football_module', - 'module_langname' => 'ACP_FOOTBALL_SETTINGS', - 'module_mode' => 'settings', - 'module_auth' => 'acl_a_football_config', - ), - )), - - // Add the features mode from football to the ACP_FOOTBALL_CONFIGURATION category. - array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( - 'module_basename' => 'football\football\acp\football_module', - 'module_langname' => 'ACP_FOOTBALL_FEATURES', - 'module_mode' => 'features', - 'module_auth' => 'acl_a_football_config', - ), - )), - - // Add the menu mode from football to the ACP_FOOTBALL_CONFIGURATION category. - array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( - 'module_basename' => 'football\football\acp\football_module', - 'module_langname' => 'ACP_FOOTBALL_MENU', - 'module_mode' => 'menu', - 'module_auth' => 'acl_a_football_config', - ), - )), - - // Add the userguide mode from football to the ACP_FOOTBALL_CONFIGURATION category. - array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( - 'module_basename' => 'football\football\acp\football_module', - 'module_langname' => 'ACP_FOOTBALL_USERGUIDE', - 'module_mode' => 'userguide', - 'module_auth' => 'acl_a_football_plan' - ), - )), - ); - } +config['football_version']) && version_compare($this->config['football_version'], '0.9.4', '>='); + } + + // first try to update the old MOD and run this migration if update didn't change version number + static public function depends_on() + { + return array('\football\football\migrations\v094_beta_update'); + } + + public function update_schema() + { + //Create the football tables + return array( + 'add_columns' => array( + $this->table_prefix . 'sessions' => array( + 'football_season' => array('USINT', 0), + 'football_league' => array('TINT:2', 0), + 'football_matchday' => array('TINT:2', 0), + 'football_mobile' => array('UINT:1', 0), + 'football_mobile_device' => array('VCHAR:255', NULL), + ), + ), + 'add_tables' => array( + $this->table_prefix . 'footb_bets' => array( + 'COLUMNS' => array( + 'season' => array('USINT', 0), + 'league' => array('TINT:2', 0), + 'match_no' => array('USINT', 0), + 'user_id' => array('UINT', 0), + 'goals_home' => array('CHAR:2',''), + 'goals_guest' => array('CHAR:2',''), + 'bet_time' => array('UINT:11', 0), + ), + 'PRIMARY_KEY' => array('season', 'league', 'match_no', 'user_id'), + ), + $this->table_prefix . 'footb_extra' => array( + 'COLUMNS' => array( + 'season' => array('USINT', 0), + 'league' => array('TINT:2', 0), + 'extra_no' => array('USINT', 0), + 'question_type' => array('TINT:2', 0), + 'question' => array('VCHAR:255', ''), + 'result' => array('VCHAR:255', ''), + 'matchday' => array('TINT:2', 0), + 'matchday_eval' => array('TINT:2', 0), + 'extra_points' => array('TINT:2', 0), + 'extra_status' => array('TINT:2', 0), + ), + 'PRIMARY_KEY' => array('season', 'league', 'extra_no'), + 'KEYS' => array( + 'matchday' => array('INDEX', 'matchday'), + 'eval' => array('INDEX', 'matchday_eval'), + ), + ), + $this->table_prefix . 'footb_extra_bets' => array( + 'COLUMNS' => array( + 'season' => array('USINT', 0), + 'league' => array('TINT:2', 0), + 'extra_no' => array('USINT', 0), + 'user_id' => array('UINT', 0), + 'bet' => array('VCHAR:255', ''), + 'bet_points' => array('TINT:2', 0), + ), + 'PRIMARY_KEY' => array('season', 'league', 'extra_no', 'user_id'), + ), + $this->table_prefix . 'footb_leagues' => array( + 'COLUMNS' => array( + 'season' => array('USINT', 0), + 'league' => array('TINT:2', 0), + 'league_name' => array('VCHAR:20', ''), + 'league_name_short' => array('VCHAR:3', ''), + 'league_type' => array('TINT:1', 1), + 'matchdays' => array('TINT:2', 0), + 'matches_on_matchday' => array('TINT:2', 0), + 'win_result' => array('VCHAR:10', ''), + 'win_result_02' => array('VCHAR:10', ''), + 'win_matchday' => array('VCHAR:255', ''), + 'win_season' => array('VCHAR:255', ''), + 'points_mode' => array('TINT:2', 1), + 'points_result' => array('TINT:2', 0), + 'points_tendency' => array('TINT:2', 0), + 'points_diff' => array('TINT:2', 0), + 'points_last' => array('BOOL', 1), + 'join_by_user' => array('BOOL', 0), + 'join_in_season' => array('BOOL', 0), + 'bet_in_time' => array('BOOL', 0), + 'rules_post_id' => array('UINT', 0), + 'bet_ko_type' => array('TINT:1', 1), + 'bet_points' => array('DECIMAL', 0), + ), + 'PRIMARY_KEY' => array('season', 'league'), + ), + $this->table_prefix . 'footb_matchdays' => array( + 'COLUMNS' => array( + 'season' => array('USINT', 0), + 'league' => array('TINT:2', 0), + 'matchday' => array('TINT:2', 0), + 'status' => array('TINT:2', 0), + 'delivery_date' => array('CHAR:19', ''), + 'delivery_date_2' => array('CHAR:19', ''), + 'delivery_date_3' => array('CHAR:19', ''), + 'matchday_name' => array('VCHAR:30', ''), + 'matches' => array('CHAR:2',''), + ), + 'PRIMARY_KEY' => array('season', 'league', 'matchday'), + 'KEYS' => array( + 'status' => array('INDEX', 'status'), + 'date' => array('INDEX', 'delivery_date'), + ), + ), + $this->table_prefix . 'footb_matches' => array( + 'COLUMNS' => array( + 'season' => array('USINT', 0), + 'league' => array('TINT:2', 0), + 'match_no' => array('USINT', 0), + 'team_id_home' => array('USINT', 0), + 'team_id_guest' => array('USINT', 0), + 'goals_home' => array('CHAR:2',''), + 'goals_guest' => array('CHAR:2',''), + 'matchday' => array('TINT:2', 0), + 'status' => array('TINT:2', 0), + 'match_datetime' => array('CHAR:19', ''), + 'group_id' => array('CHAR:1', ''), + 'formula_home' => array('CHAR:9', ''), + 'formula_guest' => array('CHAR:9', ''), + 'ko_match' => array('BOOL', 0), + 'goals_overtime_home' => array('CHAR:2',''), + 'goals_overtime_guest' => array('CHAR:2',''), + 'trend' => array('CHAR:8', ''), + 'odd_1' => array('DECIMAL', 0.00), + 'odd_x' => array('DECIMAL', 0.00), + 'odd_2' => array('DECIMAL', 0.00), + 'rating' => array('DECIMAL', 0.00), + ), + 'PRIMARY_KEY' => array('season', 'league', 'match_no'), + 'KEYS' => array( + 'gid' => array('INDEX', 'team_id_guest'), + 'hid' => array('INDEX', 'team_id_home'), + 'md' => array('INDEX', 'matchday'), + ), + ), + $this->table_prefix . 'footb_matches_hist' => array( + 'COLUMNS' => array( + 'match_date' => array('CHAR:10', ''), + 'team_id_home' => array('USINT', 1), + 'team_id_guest' => array('USINT', 1), + 'match_type' => array('VCHAR:5', ''), + 'goals_home' => array('CHAR:2', ''), + 'goals_guest' => array('CHAR:2', ''), + ), + 'PRIMARY_KEY' => array('match_date', 'team_id_home', 'team_id_guest'), + 'KEYS' => array( + 'gid' => array('INDEX', 'team_id_guest'), + 'hid' => array('INDEX', 'team_id_home'), + ), + ), + $this->table_prefix . 'footb_points' => array( + 'COLUMNS' => array( + 'points_id' => array('UINT', NULL, 'auto_increment'), + 'season' => array('USINT', 0), + 'league' => array('TINT:2', 0), + 'matchday' => array('TINT:2', 0), + 'points_type' => array('TINT:1', 0), + 'user_id' => array('UINT', 0), + 'points' => array('DECIMAL:20', 0.00), + 'points_comment' => array('MTEXT_UNI', ''), + 'cash' => array('BOOL', 0), + ), + 'PRIMARY_KEY' => array('points_id'), + 'KEYS' => array( + 'user' => array('INDEX', array('season', 'league', 'user_id')), + 'matchday' => array('INDEX', array('season', 'league', 'matchday')), + 'type' => array('INDEX', array('season', 'league', 'points_type')), + ), + ), + $this->table_prefix . 'footb_rank_matchdays' => array( + 'COLUMNS' => array( + 'season' => array('USINT', 0), + 'league' => array('TINT:2', 0), + 'matchday' => array('TINT:2', 0), + 'user_id' => array('UINT', 0), + 'status' => array('TINT:2', 0), + 'rank' => array('USINT', 0), + 'points' => array('USINT', 0), + 'win' => array('DECIMAL', 0), + 'rank_total' => array('USINT', 0), + 'tendencies' => array('TINT:2', 0), + 'correct_result' => array('TINT:2', 0), + 'points_total' => array('USINT', 0), + 'win_total' => array('DECIMAL', 0), + ), + 'PRIMARY_KEY' => array('season', 'league', 'matchday', 'user_id'), + ), + $this->table_prefix . 'footb_seasons' => array( + 'COLUMNS' => array( + 'season' => array('USINT', 0), + 'season_name' => array('VCHAR:20', ''), + 'season_name_short' => array('VCHAR:10', ''), + ), + 'PRIMARY_KEY' => array('season'), + ), + $this->table_prefix . 'footb_teams' => array( + 'COLUMNS' => array( + 'season' => array('USINT', 0), + 'league' => array('TINT:2', 0), + 'team_id' => array('USINT', 1), + 'team_name' => array('VCHAR:30', ''), + 'team_name_short' => array('VCHAR:10', ''), + 'team_symbol' => array('VCHAR:25', ''), + 'group_id' => array('CHAR:1', ''), + 'matchday' => array('TINT:2', 0), + ), + 'PRIMARY_KEY' => array('season', 'league', 'team_id'), + ), + $this->table_prefix . 'footb_teams_hist' => array( + 'COLUMNS' => array( + 'team_id' => array('USINT', 0), + 'team_name' => array('VCHAR:30', ''), + ), + 'PRIMARY_KEY' => array('team_id'), + ), + ), + ); + } + + public function revert_schema() + { + return array( + 'drop_tables' => array( + $this->table_prefix . 'footb_bets', + $this->table_prefix . 'footb_extra', + $this->table_prefix . 'footb_extra_bets', + $this->table_prefix . 'footb_leagues', + $this->table_prefix . 'footb_matchdays', + $this->table_prefix . 'footb_matches', + $this->table_prefix . 'footb_matches_hist', + $this->table_prefix . 'footb_points', + $this->table_prefix . 'footb_rank_matchdays', + $this->table_prefix . 'footb_seasons', + $this->table_prefix . 'footb_teams', + $this->table_prefix . 'footb_teams_hist', + ), + ); + } + + public function update_data() + { + return array( + array('config.remove', array('football_google_league')), + array('config.remove', array('football_menu_forumdesc1')), + array('config.remove', array('football_menu_forumdesc2')), + array('config.remove', array('football_menu_forumdesc3')), + array('config.remove', array('football_menu_forumdesc4')), + array('config.remove', array('football_menu_forumdesc5')), + array('config.remove', array('football_menu_forumdesc6')), + array('config.remove', array('football_menu_forumid1')), + array('config.remove', array('football_menu_forumid2')), + array('config.remove', array('football_menu_forumid3')), + array('config.remove', array('football_menu_forumid4')), + array('config.remove', array('football_menu_forumid5')), + array('config.remove', array('football_menu_forumid6')), + array('config.add', array('football_bank', '0', '0')), + array('config.add', array('football_code', '0000', '0')), + array('config.add', array('football_disable', '0', '0')), + array('config.add', array('football_disable_msg', 'Wartung der Tipprunde. Bitte später erneut versuchen.', '0')), + array('config.add', array('football_display_ranks', '30', '0')), + array('config.add', array('football_founder_delete', '1', '0')), + array('config.add', array('football_fullscreen', '1', '0')), + array('config.add', array('football_guest_view', '1', '0')), + array('config.add', array('football_header_enable', '0', '0')), + array('config.add', array('football_host_timezone', $this->config['board_timezone'], '0')), + array('config.add', array('football_info', '', '0')), + array('config.add', array('football_info_display', '0', '0')), + array('config.add', array('football_last_backup', '0', '0')), + array('config.add', array('football_left_column_width', '180', '0')), + array('config.add', array('football_menu', '1', '0')), + array('config.add', array('football_menu_desc1', 'XML Seasons', '0')), + array('config.add', array('football_menu_desc2', '', '0')), + array('config.add', array('football_menu_desc3', 'XML League', '0')), + array('config.add', array('football_menu_link1', $this->config['server_protocol'] . $this->config['server_name'] . $this->config['script_path'] . '/ext/football/football/xml/seasons.php?code=0000', '0')), + array('config.add', array('football_menu_link2', '', '0')), + array('config.add', array('football_menu_link3', $this->config['server_protocol'] . $this->config['server_name'] . $this->config['script_path'] . '/ext/football/football/xml/league.php?code=0000', '0')), + array('config.add', array('football_name', 'Tipprunde', '0')), + array('config.add', array('football_override_style', '0', '0')), + array('config.add', array('football_remember_enable', '0', '0')), + array('config.add', array('football_remember_next_run', '0', '0')), + array('config.add', array('football_results_at_time', '1', '0')), + array('config.add', array('football_right_column_width', '184', '0')), + array('config.add', array('football_same_allowed', '0', '0')), + array('config.add', array('football_season_start', '0', '0')), + array('config.add', array('football_ult_points', '0', '0')), + array('config.add', array('football_ult_points_factor', '1.0', '0')), + array('config.add', array('football_update_code', '0000', '0')), + array('config.add', array('football_update_source', '', '0')), + array('config.add', array('football_user_view', '1', '0')), + array('config.add', array('football_users_per_page', '30', '0')), + array('config.add', array('football_version', '0.9.4', '0')), + array('config.add', array('football_view_bets', '0', '0')), + array('config.add', array('football_view_current', '1', '0')), + array('config.add', array('football_view_tendencies', '0', '0')), + array('config.add', array('football_win_name', 'PTS', '0')), + array('config.add', array('football_win_hits02', '0', '0')), + array('config.add', array('football_style', $this->config['default_style'], '0')), + + // Add football administrator permission role + array('permission.role_add', array('ROLE_ADMIN_FOOTBALL', 'a_', 'ROLE_DESCRIPTION_ADMIN_FOOTBALL')), // New role "ADMIN_FOOTBALL" + + // Add football permission settings + array('permission.add', array('a_football_config', true)), + array('permission.add', array('a_football_delete', true)), + array('permission.add', array('a_football_editbets', true)), + array('permission.add', array('a_football_plan', true)), + array('permission.add', array('a_football_results', true)), + array('permission.add', array('u_use_football', true)), + array('permission.add', array('a_football_points', true)), + + // We give some default permissions then as well? + array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_config')), + array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_delete')), + array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_editbets')), + array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_plan')), + array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_results')), + array('permission.permission_set', array('ROLE_ADMIN_FULL', 'a_football_points')), + array('permission.permission_set', array('ROLE_ADMIN_STANDARD', 'a_football_results')), + array('permission.permission_set', array('ROLE_ADMIN_FOOTBALL', 'a_football_results')), + array('permission.permission_set', array('ROLE_USER_STANDARD', 'u_use_football')), + + + // Add a new tab named ACP_FOOTBALL + array('module.add', array('acp', 0, 'ACP_FOOTBALL')), + + // Add a new category named ACP_FOOTBALL_OPERATION to ACP_FOOTBALL + array('module.add', array('acp', 'ACP_FOOTBALL', 'ACP_FOOTBALL_OPERATION')), + + // Add the manage mode from football_results to the ACP_FOOTBALL_OPERATION category. + array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( + 'module_basename' => '\football\football\acp\results_module', + 'module_langname' => 'ACP_FOOTBALL_RESULTS_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_results', + ), + )), + + // Add the manage mode from football_all_bets to the ACP_FOOTBALL_OPERATION category. + array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( + 'module_basename' => '\football\football\acp\all_bets_module', + 'module_langname' => 'ACP_FOOTBALL_ALL_BETS_VIEW', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_editbets', + ), + )), + + // Add the manage mode from football_bets to the ACP_FOOTBALL_OPERATION category. + array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( + 'module_basename' => '\football\football\acp\bets_module', + 'module_langname' => 'ACP_FOOTBALL_BETS_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_editbets', + ), + )), + + // Add the manage mode from football_ko to the ACP_FOOTBALL_OPERATION category. + array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( + 'module_basename' => '\football\football\acp\ko_module', + 'module_langname' => 'ACP_FOOTBALL_KO_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', + ), + )), + + // Add the manage mode from football_bank to the ACP_FOOTBALL_OPERATION category. + array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( + 'module_basename' => '\football\football\acp\bank_module', + 'module_langname' => 'ACP_FOOTBALL_BANK_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_points', + ), + )), + + + // Add a new category named ACP_FOOTBALL_MANAGE to ACP_FOOTBALL + array('module.add', array('acp', 'ACP_FOOTBALL', 'ACP_FOOTBALL_MANAGE')), + + // Add the manage mode from football_seasons to the ACP_FOOTBALL_MANAGE category. + array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( + 'module_basename' => '\football\football\acp\seasons_module', + 'module_langname' => 'ACP_FOOTBALL_SEASONS_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', + ), + )), + + // Add the manage mode from football_leagues to the ACP_FOOTBALL_MANAGE category. + array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( + 'module_basename' => '\football\football\acp\leagues_module', + 'module_langname' => 'ACP_FOOTBALL_LEAGUES_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', + ), + )), + + // Add the manage mode from football_matchdays to the ACP_FOOTBALL_MANAGE category. + array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( + 'module_basename' => '\football\football\acp\matchdays_module', + 'module_langname' => 'ACP_FOOTBALL_MATCHDAYS_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', + ), + )), + + // Add the manage mode from football_teams to the ACP_FOOTBALL_MANAGE category. + array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( + 'module_basename' => '\football\football\acp\teams_module', + 'module_langname' => 'ACP_FOOTBALL_TEAMS_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', + ), + )), + + // Add the manage mode from football_matches to the ACP_FOOTBALL_MANAGE category. + array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( + 'module_basename' => '\football\football\acp\matches_module', + 'module_langname' => 'ACP_FOOTBALL_MATCHES_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', + ), + )), + + // Add the manage mode from football_extra to the ACP_FOOTBALL_MANAGE category. + array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( + 'module_basename' => '\football\football\acp\extra_module', + 'module_langname' => 'ACP_FOOTBALL_EXTRA_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', + ), + )), + + // Add the manage mode from football_update to the ACP_FOOTBALL_MANAGE category using the "manual" method. + array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( + 'module_basename' => '\football\football\acp\update_module', + 'module_langname' => 'ACP_FOOTBALL_UPDATE_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', + ), + )), + + // Add a new category named ACP_FOOTBALL_CONFIGURATION to ACP_FOOTBALL + array('module.add', array('acp', 'ACP_FOOTBALL', 'ACP_FOOTBALL_CONFIGURATION')), + + // Add the settings mode from football to the ACP_FOOTBALL_CONFIGURATION category. + array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( + 'module_basename' => 'football\football\acp\football_module', + 'module_langname' => 'ACP_FOOTBALL_SETTINGS', + 'module_mode' => 'settings', + 'module_auth' => 'acl_a_football_config', + ), + )), + + // Add the features mode from football to the ACP_FOOTBALL_CONFIGURATION category. + array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( + 'module_basename' => 'football\football\acp\football_module', + 'module_langname' => 'ACP_FOOTBALL_FEATURES', + 'module_mode' => 'features', + 'module_auth' => 'acl_a_football_config', + ), + )), + + // Add the menu mode from football to the ACP_FOOTBALL_CONFIGURATION category. + array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( + 'module_basename' => 'football\football\acp\football_module', + 'module_langname' => 'ACP_FOOTBALL_MENU', + 'module_mode' => 'menu', + 'module_auth' => 'acl_a_football_config', + ), + )), + + // Add the userguide mode from football to the ACP_FOOTBALL_CONFIGURATION category. + array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( + 'module_basename' => 'football\football\acp\football_module', + 'module_langname' => 'ACP_FOOTBALL_USERGUIDE', + 'module_mode' => 'userguide', + 'module_auth' => 'acl_a_football_plan' + ), + )), + ); + } } \ No newline at end of file diff --git a/migrations/v094_beta_update.php b/migrations/v094_beta_update.php index f3104db..694a36d 100644 --- a/migrations/v094_beta_update.php +++ b/migrations/v094_beta_update.php @@ -16,7 +16,7 @@ class v094_beta_update extends \phpbb\db\migration\migration { return !$this->db_tools->sql_column_exists($this->table_prefix . 'sessions', 'session_matchday'); } - + static public function depends_on() { return array('\phpbb\db\migration\data\v310\extensions'); @@ -26,14 +26,14 @@ class v094_beta_update extends \phpbb\db\migration\migration { return array( 'drop_columns' => array( - $this->table_prefix . 'sessions' => array( + $this->table_prefix . 'sessions' => array( 'session_season', 'session_league', 'session_matchday', ) ), 'add_columns' => array( - $this->table_prefix . 'sessions' => array( + $this->table_prefix . 'sessions' => array( 'football_season' => array('USINT', 0), 'football_league' => array('TINT:2', 0), 'football_matchday' => array('TINT:2', 0), @@ -57,7 +57,7 @@ class v094_beta_update extends \phpbb\db\migration\migration public function revert_schema() { return array( - 'drop_columns' => array( + 'drop_columns' => array( $this->table_prefix . 'sessions' => array( 'football_season', 'football_league', @@ -113,46 +113,46 @@ class v094_beta_update extends \phpbb\db\migration\migration // Add the manage mode from football_results to the ACP_FOOTBALL_OPERATION category. array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( - 'module_basename' => '\football\football\acp\results_module', - 'module_langname' => 'ACP_FOOTBALL_RESULTS_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_results', + 'module_basename' => '\football\football\acp\results_module', + 'module_langname' => 'ACP_FOOTBALL_RESULTS_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_results', ), )), // Add the manage mode from football_all_bets to the ACP_FOOTBALL_OPERATION category. array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( - 'module_basename' => '\football\football\acp\all_bets_module', - 'module_langname' => 'ACP_FOOTBALL_ALL_BETS_VIEW', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_editbets', + 'module_basename' => '\football\football\acp\all_bets_module', + 'module_langname' => 'ACP_FOOTBALL_ALL_BETS_VIEW', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_editbets', ), )), // Add the manage mode from football_bets to the ACP_FOOTBALL_OPERATION category. array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( - 'module_basename' => '\football\football\acp\bets_module', - 'module_langname' => 'ACP_FOOTBALL_BETS_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_editbets', + 'module_basename' => '\football\football\acp\bets_module', + 'module_langname' => 'ACP_FOOTBALL_BETS_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_editbets', ), )), // Add the manage mode from football_ko to the ACP_FOOTBALL_OPERATION category. array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( - 'module_basename' => '\football\football\acp\ko_module', - 'module_langname' => 'ACP_FOOTBALL_KO_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', + 'module_basename' => '\football\football\acp\ko_module', + 'module_langname' => 'ACP_FOOTBALL_KO_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', ), )), // Add the manage mode from football_bank to the ACP_FOOTBALL_OPERATION category. array('module.add', array('acp', 'ACP_FOOTBALL_OPERATION', array( - 'module_basename' => '\football\football\acp\bank_module', - 'module_langname' => 'ACP_FOOTBALL_BANK_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_points', + 'module_basename' => '\football\football\acp\bank_module', + 'module_langname' => 'ACP_FOOTBALL_BANK_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_points', ), )), @@ -162,64 +162,64 @@ class v094_beta_update extends \phpbb\db\migration\migration // Add the manage mode from football_seasons to the ACP_FOOTBALL_MANAGE category. array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\seasons_module', - 'module_langname' => 'ACP_FOOTBALL_SEASONS_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', + 'module_basename' => '\football\football\acp\seasons_module', + 'module_langname' => 'ACP_FOOTBALL_SEASONS_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', ), )), // Add the manage mode from football_leagues to the ACP_FOOTBALL_MANAGE category. array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\leagues_module', - 'module_langname' => 'ACP_FOOTBALL_LEAGUES_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', + 'module_basename' => '\football\football\acp\leagues_module', + 'module_langname' => 'ACP_FOOTBALL_LEAGUES_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', ), )), // Add the manage mode from football_matchdays to the ACP_FOOTBALL_MANAGE category. array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\matchdays_module', - 'module_langname' => 'ACP_FOOTBALL_MATCHDAYS_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', + 'module_basename' => '\football\football\acp\matchdays_module', + 'module_langname' => 'ACP_FOOTBALL_MATCHDAYS_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', ), )), // Add the manage mode from football_teams to the ACP_FOOTBALL_MANAGE category. array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\teams_module', - 'module_langname' => 'ACP_FOOTBALL_TEAMS_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', + 'module_basename' => '\football\football\acp\teams_module', + 'module_langname' => 'ACP_FOOTBALL_TEAMS_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', ), )), // Add the manage mode from football_matches to the ACP_FOOTBALL_MANAGE category. array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\matches_module', - 'module_langname' => 'ACP_FOOTBALL_MATCHES_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', + 'module_basename' => '\football\football\acp\matches_module', + 'module_langname' => 'ACP_FOOTBALL_MATCHES_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', ), )), // Add the manage mode from football_extra to the ACP_FOOTBALL_MANAGE category. array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\extra_module', - 'module_langname' => 'ACP_FOOTBALL_EXTRA_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', + 'module_basename' => '\football\football\acp\extra_module', + 'module_langname' => 'ACP_FOOTBALL_EXTRA_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', ), )), // Add the manage mode from football_update to the ACP_FOOTBALL_MANAGE category using the "manual" method. array('module.add', array('acp', 'ACP_FOOTBALL_MANAGE', array( - 'module_basename' => '\football\football\acp\update_module', - 'module_langname' => 'ACP_FOOTBALL_UPDATE_MANAGE', - 'module_mode' => 'manage', - 'module_auth' => 'acl_a_football_plan', + 'module_basename' => '\football\football\acp\update_module', + 'module_langname' => 'ACP_FOOTBALL_UPDATE_MANAGE', + 'module_mode' => 'manage', + 'module_auth' => 'acl_a_football_plan', ), )), @@ -228,37 +228,37 @@ class v094_beta_update extends \phpbb\db\migration\migration // Add the settings mode from football to the ACP_FOOTBALL_CONFIGURATION category. array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( - 'module_basename' => 'football\football\acp\football_module', - 'module_langname' => 'ACP_FOOTBALL_SETTINGS', - 'module_mode' => 'settings', - 'module_auth' => 'acl_a_football_config', + 'module_basename' => 'football\football\acp\football_module', + 'module_langname' => 'ACP_FOOTBALL_SETTINGS', + 'module_mode' => 'settings', + 'module_auth' => 'acl_a_football_config', ), )), // Add the features mode from football to the ACP_FOOTBALL_CONFIGURATION category. array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( - 'module_basename' => 'football\football\acp\football_module', - 'module_langname' => 'ACP_FOOTBALL_FEATURES', - 'module_mode' => 'features', - 'module_auth' => 'acl_a_football_config', + 'module_basename' => 'football\football\acp\football_module', + 'module_langname' => 'ACP_FOOTBALL_FEATURES', + 'module_mode' => 'features', + 'module_auth' => 'acl_a_football_config', ), )), // Add the menu mode from football to the ACP_FOOTBALL_CONFIGURATION category. array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( - 'module_basename' => 'football\football\acp\football_module', - 'module_langname' => 'ACP_FOOTBALL_MENU', - 'module_mode' => 'menu', - 'module_auth' => 'acl_a_football_config', + 'module_basename' => 'football\football\acp\football_module', + 'module_langname' => 'ACP_FOOTBALL_MENU', + 'module_mode' => 'menu', + 'module_auth' => 'acl_a_football_config', ), )), // Add the userguide mode from football to the ACP_FOOTBALL_CONFIGURATION category. array('module.add', array('acp', 'ACP_FOOTBALL_CONFIGURATION', array( - 'module_basename' => 'football\football\acp\football_module', - 'module_langname' => 'ACP_FOOTBALL_USERGUIDE', - 'module_mode' => 'userguide', - 'module_auth' => 'acl_a_football_plan' + 'module_basename' => 'football\football\acp\football_module', + 'module_langname' => 'ACP_FOOTBALL_USERGUIDE', + 'module_mode' => 'userguide', + 'module_auth' => 'acl_a_football_plan' ), )), ); diff --git a/styles/prosilver/template/all_bets.html b/styles/prosilver/template/all_bets.html index 3a6f774..0044775 100644 --- a/styles/prosilver/template/all_bets.html +++ b/styles/prosilver/template/all_bets.html @@ -1,125 +1,125 @@ - -
- {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED} -
- - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

{match_panel.match_entry.HOME_NAME}
{match_panel.match_entry.GUEST_NAME}
{L_RESULT}{match_panel.match_entry.RESULT}{L_TOTAL}
{L_TENDENCY}{match_panel.tendency_footer.tendency.TENDENCY}{match_panel.tendency_footer.SUMTOTAL}
{match_panel.user_row.USER_NAME}{match_panel.user_row.bet.BET}{match_panel.user_row.bet.POINTS}{match_panel.user_row.points.POINTS_TOTAL}
-
-
- -
- - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_EXTRA_BET}{extra_panel.QUESTION}{L_EVALUATION}{L_POINTS}
{L_RESULT}{extra_panel.RESULT}{extra_panel.EVALUATION}{extra_panel.POINTS}
{extra_panel.user_row.USER_NAME}{extra_panel.user_row.BET} {extra_panel.user_row.BET_POINTS}
-
- -
- - - - - - - - - - -
-
{L_NO_MATCHES_ON_MATCHDAY}
-
+ +
+ {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED} +
+ + + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

{match_panel.match_entry.HOME_NAME}
{match_panel.match_entry.GUEST_NAME}
{L_RESULT}{match_panel.match_entry.RESULT}{L_TOTAL}
{L_TENDENCY}{match_panel.tendency_footer.tendency.TENDENCY}{match_panel.tendency_footer.SUMTOTAL}
{match_panel.user_row.USER_NAME}{match_panel.user_row.bet.BET}{match_panel.user_row.bet.POINTS}{match_panel.user_row.points.POINTS_TOTAL}
+
+
+ +
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_EXTRA_BET}{extra_panel.QUESTION}{L_EVALUATION}{L_POINTS}
{L_RESULT}{extra_panel.RESULT}{extra_panel.EVALUATION}{extra_panel.POINTS}
{extra_panel.user_row.USER_NAME}{extra_panel.user_row.BET} {extra_panel.user_row.BET_POINTS}
+
+ +
+ + + + + + + + + + +
+
{L_NO_MATCHES_ON_MATCHDAY}
+
\ No newline at end of file diff --git a/styles/prosilver/template/bank.html b/styles/prosilver/template/bank.html index 4a3fade..079ac16 100644 --- a/styles/prosilver/template/bank.html +++ b/styles/prosilver/template/bank.html @@ -1,65 +1,65 @@ - - -
-

{L_BANK_OF} :

-
-
- - - - - -
-
-
- -

{L_BANK_OF} {USERNAME}:

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_SEASON}{L_LEAGUE}{L_MATCHDAY}{L_BOOK_TYPE}{POINTS}{L_LOGS_COMMENT}
{football.SEASON_NAME}{football.LEAGUE_NAME}{football.MATCHDAY_NAME}{football.POINTS_TYPE}{football.POINTS_SIGN}{football.POINTS}{football.COMMENT}
{L_FOOTBALL_NO_BOOKS}
-
- -
- - - - - -
-
{L_NO_MEMBER}
-
- + + +
+

{L_BANK_OF} :

+
+
+ + + + + +
+
+
+ +

{L_BANK_OF} {USERNAME}:

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_SEASON}{L_LEAGUE}{L_MATCHDAY}{L_BOOK_TYPE}{POINTS}{L_LOGS_COMMENT}
{football.SEASON_NAME}{football.LEAGUE_NAME}{football.MATCHDAY_NAME}{football.POINTS_TYPE}{football.POINTS_SIGN}{football.POINTS}{football.COMMENT}
{L_FOOTBALL_NO_BOOKS}
+
+ +
+ + + + + +
+
{L_NO_MEMBER}
+
+ diff --git a/styles/prosilver/template/bet_popup.html b/styles/prosilver/template/bet_popup.html index ea32189..7d87ff4 100644 --- a/styles/prosilver/template/bet_popup.html +++ b/styles/prosilver/template/bet_popup.html @@ -1,92 +1,92 @@ - - - -
-
- -
- - {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED}
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_DATE}{L_NR}{L_GR}{L_VS}{L_BET_OF}{L_RESULT}{L_POINTS}
{bet_view.MATCH_TIME}{bet_view.MATCH_NUMBER}{bet_view.GROUP}{bet_view.HOME_NAME}:{bet_view.GUEST_NAME}{bet_view.BET_HOME}:{bet_view.BET_GUEST}{bet_view.GOALS_HOME}:{bet_view.GOALS_GUEST}{bet_view.POINTS}
-
- - -
-
- - - - - - - - - - - - - - - - - - - - - - - -
{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_BET_OF}{L_RESULT}{L_POINTS}
{extra_view.QUESTION}{extra_view.EXTRA_POINTS}{extra_view.EVALUATION}{extra_view.BET}{extra_view.RESULT}{extra_view.BET_POINTS}
-
- - - -
-
{S_ERROR_MESSAGE}
-
- -
- {L_CLOSE_WINDOW} -
-
+ + + +
+
+ +
+ + {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED}
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_DATE}{L_NR}{L_GR}{L_VS}{L_BET_OF}{L_RESULT}{L_POINTS}
{bet_view.MATCH_TIME}{bet_view.MATCH_NUMBER}{bet_view.GROUP}{bet_view.HOME_NAME}:{bet_view.GUEST_NAME}{bet_view.BET_HOME}:{bet_view.BET_GUEST}{bet_view.GOALS_HOME}:{bet_view.GOALS_GUEST}{bet_view.POINTS}
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_BET_OF}{L_RESULT}{L_POINTS}
{extra_view.QUESTION}{extra_view.EXTRA_POINTS}{extra_view.EVALUATION}{extra_view.BET}{extra_view.RESULT}{extra_view.BET_POINTS}
+
+ + + +
+
{S_ERROR_MESSAGE}
+
+ +
+ {L_CLOSE_WINDOW} +
+
\ No newline at end of file diff --git a/styles/prosilver/template/frame_results.html b/styles/prosilver/template/frame_results.html index 79a8292..f1bd90d 100644 --- a/styles/prosilver/template/frame_results.html +++ b/styles/prosilver/template/frame_results.html @@ -1,13 +1,13 @@ - -Diese Datei existiert doppelt: Einmal im fooball\football\styles\prsilver\template und einmal im fooball\football\adm\style Ordner -Mit Hilfe dieser Datei werden Fussballergebnisse zum Abgleich und schnelleren Erfassung von externen Seiten, -wie z.B. den Weltfussball.de Torverteiler, eingebunden. -Wenn ihr einen Weltfussball.de Account habt, könnt ihr dort in der Community einen Torverteiler erstellen und den Code hier -unter der entsprechenden Liganummer reinhängen (also 999999 mit der Liganummer bzw. wfb_tv_id ersetzen). -Der Frame wird dann bei der Ergebnisseingabe in der Liga angezeigt, wenn der Spieltag editierbar ist. - - - -
Der Torverteiler - präsentiert von weltfussball.de 
Alles über Fußball oder direkt zur Bundesliga 
- - + +Diese Datei existiert doppelt: Einmal im fooball\football\styles\prsilver\template und einmal im fooball\football\adm\style Ordner +Mit Hilfe dieser Datei werden Fussballergebnisse zum Abgleich und schnelleren Erfassung von externen Seiten, +wie z.B. den Weltfussball.de Torverteiler, eingebunden. +Wenn ihr einen Weltfussball.de Account habt, könnt ihr dort in der Community einen Torverteiler erstellen und den Code hier +unter der entsprechenden Liganummer reinhängen (also 999999 mit der Liganummer bzw. wfb_tv_id ersetzen). +Der Frame wird dann bei der Ergebnisseingabe in der Liga angezeigt, wenn der Spieltag editierbar ist. + + + +
Der Torverteiler - präsentiert von weltfussball.de 
Alles über Fußball oder direkt zur Bundesliga 
+ + diff --git a/styles/prosilver/template/hist_popup.html b/styles/prosilver/template/hist_popup.html index e4cf52e..967049a 100644 --- a/styles/prosilver/template/hist_popup.html +++ b/styles/prosilver/template/hist_popup.html @@ -1,288 +1,288 @@ - -
-
- -
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_SEASON}{L_LEAGUE}{L_VS}{L_RESULT}
{historie.SEASON}{historie.LEAGUE}{historie.HNAME}:{historie.GNAME}{historie.GOALS_HOME}:{historie.GOALS_GUEST}
-
-
{STAT_HIST}
-
-
- - {chart_hist_total.CHARTIMAGE} - - - - - -
- -
- -
{L_NO_HIST}
- -
- - - - - - - - - - - - - - - - - - - - - -
-
{TEAM_HOME}
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_TABLE}{L_RANK_FORECAST}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_DOT}
{table_hometeam.TABLE}{table_hometeam.PLFP}{table_hometeam.MATCHES}{table_hometeam.WINS}{table_hometeam.DRAW}{table_hometeam.LOST}{table_hometeam.GOALS_HOME}:{table_hometeam.GOALS_GUEST}{table_hometeam.GDIFF}{table_hometeam.POINTS}
-
- -
{L_NO_MATCHES_TEAM}
- -
-
  -
{TEAM_GUEST}
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_TABLE}{L_RANK_FORECAST}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_DOT}
{table_guestteam.TABLE}{table_guestteam.PLFP}{table_guestteam.MATCHES}{table_guestteam.WINS}{table_guestteam.DRAW}{table_guestteam.LOST}{table_guestteam.GOALS_HOME}:{table_guestteam.GOALS_GUEST}{table_guestteam.GDIFF}{table_guestteam.POINTS}
-
- -
{L_NO_MATCHES_TEAM}
- -
-
- - {chart_home.CHARTIMAGE} - - - - - -
- -
  - - {chart_guest.CHARTIMAGE} - - - - - -
- -
-
- - - - - - - - - - - - - - - - - -
{L_LAST_GAMES}
{last_hometeam.PLACE}{last_hometeam.AGAINST}{last_hometeam.GOALS_HOME}:{last_hometeam.GOALS_GUEST}
-
- -
{L_NO_MATCHES_TEAM}
- -
  -
- - - - - - - - - - - - - - - - - -
{L_LAST_GAMES}
{last_guestteam.PLACE}{last_guestteam.AGAINST}{last_guestteam.GOALS_HOME}:{last_guestteam.GOALS_GUEST}
-
- -
{L_NO_MATCHES_TEAM}
- -
-
- - - - - - - - - - - - - - - - -
{L_LAST_GAMES_HOME}
{lasthome_hometeam.AGAINST}{lasthome_hometeam.GOALS_HOME}:{lasthome_hometeam.GOALS_GUEST}
-
- -
{L_NO_HOMEMATCHES_TEAM}
- -
  -
- - - - - - - - - - - - - - - - -
{L_LAST_GAMES_AWAY}
{lastaway_guestteam.AGAINST}{lastaway_guestteam.GOALS_HOME}:{lastaway_guestteam.GOALS_GUEST}
-
- -
{L_NO_AWAYMATCHES_TEAM}
- -
- - - -
-
{S_ERROR_MESSAGE}
-
- -
- {L_CLOSE_WINDOW} -
-
+ +
+
+ +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_SEASON}{L_LEAGUE}{L_VS}{L_RESULT}
{historie.SEASON}{historie.LEAGUE}{historie.HNAME}:{historie.GNAME}{historie.GOALS_HOME}:{historie.GOALS_GUEST}
+
+
{STAT_HIST}
+
+
+ + {chart_hist_total.CHARTIMAGE} + + + + + +
+ +
+ +
{L_NO_HIST}
+ +
+ + + + + + + + + + + + + + + + + + + + + +
+
{TEAM_HOME}
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_TABLE}{L_RANK_FORECAST}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_DOT}
{table_hometeam.TABLE}{table_hometeam.PLFP}{table_hometeam.MATCHES}{table_hometeam.WINS}{table_hometeam.DRAW}{table_hometeam.LOST}{table_hometeam.GOALS_HOME}:{table_hometeam.GOALS_GUEST}{table_hometeam.GDIFF}{table_hometeam.POINTS}
+
+ +
{L_NO_MATCHES_TEAM}
+ +
+
  +
{TEAM_GUEST}
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_TABLE}{L_RANK_FORECAST}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_DOT}
{table_guestteam.TABLE}{table_guestteam.PLFP}{table_guestteam.MATCHES}{table_guestteam.WINS}{table_guestteam.DRAW}{table_guestteam.LOST}{table_guestteam.GOALS_HOME}:{table_guestteam.GOALS_GUEST}{table_guestteam.GDIFF}{table_guestteam.POINTS}
+
+ +
{L_NO_MATCHES_TEAM}
+ +
+
+ + {chart_home.CHARTIMAGE} + + + + + +
+ +
  + + {chart_guest.CHARTIMAGE} + + + + + +
+ +
+
+ + + + + + + + + + + + + + + + + +
{L_LAST_GAMES}
{last_hometeam.PLACE}{last_hometeam.AGAINST}{last_hometeam.GOALS_HOME}:{last_hometeam.GOALS_GUEST}
+
+ +
{L_NO_MATCHES_TEAM}
+ +
  +
+ + + + + + + + + + + + + + + + + +
{L_LAST_GAMES}
{last_guestteam.PLACE}{last_guestteam.AGAINST}{last_guestteam.GOALS_HOME}:{last_guestteam.GOALS_GUEST}
+
+ +
{L_NO_MATCHES_TEAM}
+ +
+
+ + + + + + + + + + + + + + + + +
{L_LAST_GAMES_HOME}
{lasthome_hometeam.AGAINST}{lasthome_hometeam.GOALS_HOME}:{lasthome_hometeam.GOALS_GUEST}
+
+ +
{L_NO_HOMEMATCHES_TEAM}
+ +
  +
+ + + + + + + + + + + + + + + + +
{L_LAST_GAMES_AWAY}
{lastaway_guestteam.AGAINST}{lastaway_guestteam.GOALS_HOME}:{lastaway_guestteam.GOALS_GUEST}
+
+ +
{L_NO_AWAYMATCHES_TEAM}
+ +
+ + + +
+
{S_ERROR_MESSAGE}
+
+ +
+ {L_CLOSE_WINDOW} +
+
\ No newline at end of file diff --git a/styles/prosilver/template/last_results.html b/styles/prosilver/template/last_results.html index 1ba76ca..ce9a758 100644 --- a/styles/prosilver/template/last_results.html +++ b/styles/prosilver/template/last_results.html @@ -1,13 +1,13 @@ - -

{L_LAST_RESULTS}

- -
- {last_results.LOGO_HOME} {last_results.GOALS_HOME}:{last_results.GOALS_GUEST} {last_results.LOGO_GUEST} -
- -
({last_results.KOGOALS_HOME}:{last_results.KOGOALS_GUEST})
- -
{last_results.HOME_SHORT} - {last_results.GUEST_SHORT}

-
+ +

{L_LAST_RESULTS}

+ +
+ {last_results.LOGO_HOME} {last_results.GOALS_HOME}:{last_results.GOALS_GUEST} {last_results.LOGO_GUEST} +
+ +
({last_results.KOGOALS_HOME}:{last_results.KOGOALS_GUEST})
+ +
{last_results.HOME_SHORT} - {last_results.GUEST_SHORT}

+
\ No newline at end of file diff --git a/styles/prosilver/template/mobile_all_bets.html b/styles/prosilver/template/mobile_all_bets.html index 5883954..3df5c12 100644 --- a/styles/prosilver/template/mobile_all_bets.html +++ b/styles/prosilver/template/mobile_all_bets.html @@ -1,98 +1,98 @@ - -
- {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED} -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

{match_panel.match_entry.HOME_NAME}
{match_panel.match_entry.GUEST_NAME}
{L_RESULT}{match_panel.match_entry.RESULT}∑ 
{L_TENDENCY}{match_panel.tendency_footer.tendency.TENDENCY}{match_panel.tendency_footer.SUMTOTAL}
{match_panel.user_row.USER_NAME}{match_panel.user_row.bet.BET}{match_panel.user_row.bet.POINTS}{match_panel.user_row.points.POINTS_TOTAL}
-
- - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_EXTRA_BET}{extra_panel.QUESTION}{L_EVALUATION}{L_POINTS_SHORT}
{L_RESULT}{extra_panel.RESULT}{extra_panel.EVALUATION}{extra_panel.POINTS}
{extra_panel.user_row.USER_NAME}{extra_panel.user_row.BET} {extra_panel.user_row.BET_POINTS}
-
- - - - -
-
{L_NO_MATCHES_ON_MATCHDAY}
-
- + +
+ {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED} +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

{match_panel.match_entry.HOME_NAME}
{match_panel.match_entry.GUEST_NAME}
{L_RESULT}{match_panel.match_entry.RESULT}∑ 
{L_TENDENCY}{match_panel.tendency_footer.tendency.TENDENCY}{match_panel.tendency_footer.SUMTOTAL}
{match_panel.user_row.USER_NAME}{match_panel.user_row.bet.BET}{match_panel.user_row.bet.POINTS}{match_panel.user_row.points.POINTS_TOTAL}
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_EXTRA_BET}{extra_panel.QUESTION}{L_EVALUATION}{L_POINTS_SHORT}
{L_RESULT}{extra_panel.RESULT}{extra_panel.EVALUATION}{extra_panel.POINTS}
{extra_panel.user_row.USER_NAME}{extra_panel.user_row.BET} {extra_panel.user_row.BET_POINTS}
+
+ + + + +
+
{L_NO_MATCHES_ON_MATCHDAY}
+
+ diff --git a/styles/prosilver/template/mobile_bank.html b/styles/prosilver/template/mobile_bank.html index b664224..ad9f1a5 100644 --- a/styles/prosilver/template/mobile_bank.html +++ b/styles/prosilver/template/mobile_bank.html @@ -1,61 +1,61 @@ - -
- -
-

{L_BANK_OF} :

-
-
- - - - - -
-
-
- -

{L_BANK_OF} {USERNAME}:

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_LEAGUE}{L_MATCHDAY_SHORT}{L_BOOK_TYPE}{POINTS}{L_LOGS_COMMENT}
{football.LEAGUE_SHORT}{football.MATCHDAY}.{football.POINTS_TYPE}{football.POINTS}{football.COMMENT}
{L_FOOTBALL_NO_BOOKS}
-
- - - - -
-
{L_NO_MEMBER}
-
- + +
+ +
+

{L_BANK_OF} :

+
+
+ + + + + +
+
+
+ +

{L_BANK_OF} {USERNAME}:

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_LEAGUE}{L_MATCHDAY_SHORT}{L_BOOK_TYPE}{POINTS}{L_LOGS_COMMENT}
{football.LEAGUE_SHORT}{football.MATCHDAY}.{football.POINTS_TYPE}{football.POINTS}{football.COMMENT}
{L_FOOTBALL_NO_BOOKS}
+
+ + + + +
+
{L_NO_MEMBER}
+
+ diff --git a/styles/prosilver/template/mobile_bet.html b/styles/prosilver/template/mobile_bet.html index 79c7728..33bb131 100644 --- a/styles/prosilver/template/mobile_bet.html +++ b/styles/prosilver/template/mobile_bet.html @@ -1,182 +1,182 @@ - - -
- - - - - - - {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED}
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_VS}{L_BET_OF}Rat.{L_RESULTS_SHORT_DOT}{L_POINTS_SHORT}
- {bet_view.HOME_SHORT}: - {bet_view.GUEST_SHORT}{bet_view.BET_HOME}:{bet_view.BET_GUEST}{bet_view.RATING}{bet_view.GOALS_HOME}:{bet_view.GOALS_GUEST}{bet_view.POINTS}
- {bet_edit.HOME_SHORT} - : - {bet_edit.GUEST_SHORT} - - - : - - {bet_edit.DELIVERTAG} - -     
-
- -
- - *  {L_DELIVERY_UNTIL} {S_DELIVERY2}
- - - **  {L_DELIVERY_UNTIL} {S_DELIVERY3}
- -
- - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_BET_OF}{L_RESULT}{L_POINTS_SHORT}
{extra_view.QUESTION}{extra_view.EXTRA_POINTS}{extra_view.EVALUATION}{extra_view.BET}{extra_view.RESULT}{extra_view.BET_POINTS}
{extra_edit.QUESTION}{extra_edit.EXTRA_POINTS}{extra_edit.EVALUATION} - - - - - - -
-
- - - -
-
{S_DBMSG}   
-
-
-
- -
- - - - -
- -
{L_NO_MATCHES_ON_MATCHDAY}
- -
{L_NO_MEMBER}
- -
-
-
-
- - - - - - {JOIN_LEAGUE}
-
- -
-
- - -
- + + +
+ + + + + + + {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_VS}{L_BET_OF}Rat.{L_RESULTS_SHORT_DOT}{L_POINTS_SHORT}
+ {bet_view.HOME_SHORT}: + {bet_view.GUEST_SHORT}{bet_view.BET_HOME}:{bet_view.BET_GUEST}{bet_view.RATING}{bet_view.GOALS_HOME}:{bet_view.GOALS_GUEST}{bet_view.POINTS}
+ {bet_edit.HOME_SHORT} + : + {bet_edit.GUEST_SHORT} + + + : + + {bet_edit.DELIVERTAG} + +     
+
+ +
+ + *  {L_DELIVERY_UNTIL} {S_DELIVERY2}
+ + + **  {L_DELIVERY_UNTIL} {S_DELIVERY3}
+ +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_BET_OF}{L_RESULT}{L_POINTS_SHORT}
{extra_view.QUESTION}{extra_view.EXTRA_POINTS}{extra_view.EVALUATION}{extra_view.BET}{extra_view.RESULT}{extra_view.BET_POINTS}
{extra_edit.QUESTION}{extra_edit.EXTRA_POINTS}{extra_edit.EVALUATION} + + + + + + +
+
+ + + +
+
{S_DBMSG}   
+
+
+
+ +
+ + + + +
+ +
{L_NO_MATCHES_ON_MATCHDAY}
+ +
{L_NO_MEMBER}
+ +
+
+
+
+ + + + + + {JOIN_LEAGUE}
+
+ +
+
+ + +
+ diff --git a/styles/prosilver/template/mobile_delivery.html b/styles/prosilver/template/mobile_delivery.html index ce7ca05..33b9222 100644 --- a/styles/prosilver/template/mobile_delivery.html +++ b/styles/prosilver/template/mobile_delivery.html @@ -1,12 +1,12 @@ - - - - {delivery.DELIVERY}
- {delivery.LEAGUE_SHORT} {delivery.MATCHDAY_NAME} -

- - -
-
{L_NO_DELIVERY}
-
- + + + + {delivery.DELIVERY}
+ {delivery.LEAGUE_SHORT} {delivery.MATCHDAY_NAME} +

+ + +
+
{L_NO_DELIVERY}
+
+ diff --git a/styles/prosilver/template/mobile_football_body.html b/styles/prosilver/template/mobile_football_body.html index d347ac4..08dc5bb 100644 --- a/styles/prosilver/template/mobile_football_body.html +++ b/styles/prosilver/template/mobile_football_body.html @@ -1,4 +1,4 @@ - + diff --git a/styles/prosilver/template/mobile_football_print.html b/styles/prosilver/template/mobile_football_print.html index aef99b9..642e9bd 100644 --- a/styles/prosilver/template/mobile_football_print.html +++ b/styles/prosilver/template/mobile_football_print.html @@ -1,116 +1,116 @@ - - - - - - - - - - - - - - -{META} -{SITENAME} • {PAGE_TITLE} - - - - -
- - - - -
-
{PAGE_NUMBER}
- - - - - - - - - - - -
- - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
- - + + + + + + + + + + + + + + +{META} +{SITENAME} • {PAGE_TITLE} + + + + +
+ + + + +
+
{PAGE_NUMBER}
+ + + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + diff --git a/styles/prosilver/template/mobile_last_users.html b/styles/prosilver/template/mobile_last_users.html index e6137e2..b24553a 100644 --- a/styles/prosilver/template/mobile_last_users.html +++ b/styles/prosilver/template/mobile_last_users.html @@ -1,3 +1,3 @@ - - {last_users.USER_NAME}
{last_users.LAST_VISIT_DATE}
- + + {last_users.USER_NAME}
{last_users.LAST_VISIT_DATE}
+ diff --git a/styles/prosilver/template/mobile_my_bets.html b/styles/prosilver/template/mobile_my_bets.html index c240bcf..723e9f2 100644 --- a/styles/prosilver/template/mobile_my_bets.html +++ b/styles/prosilver/template/mobile_my_bets.html @@ -1,158 +1,158 @@ - - -
-

{L_BETS_OF} :

-
-
- - - - - -
-
-
- -
-

{L_BETS_OF} {USERNAME}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_BET}{L_NUMBER}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}Ø {L_POINTS_SHORT}
{bets.GOALSHOME}:{bets.GOALSGUEST}{bets.COUNT}{bets.TENDENCIES}{bets.DIRECTHITS}{bets.TOTAL}{bets.POINTS}{bets.AVERAGE}
-
- -
{L_NO_DATA}
- -
-
-

{L_BETS_OF_ALL}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_BET}{L_NUMBER}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}Ø {L_POINTS_SHORT}
{allbets.GOALSHOME}:{allbets.GOALSGUEST}{allbets.COUNT}{allbets.TENDENCIES}{allbets.DIRECTHITS}{allbets.TOTAL}{allbets.POINTS}{allbets.AVERAGE}
-
- -
{L_NO_DATA}
- -
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
 {L_HOME}{L_DRAW}{L_AWAY}
{bets_wdl.SCORE}{bets_wdl.HOMEWIN}{bets_wdl.DRAW}{bets_wdl.GUESTWIN}
-
- -
{L_NO_DATA}
- -
-
- -
- - - - - - - - - - - - - - - - - - - -
 {L_HOME}{L_DRAW}{L_AWAY}
{bets_wdl_all.SCORE}{bets_wdl_all.HOMEWIN}{bets_wdl_all.DRAW}{bets_wdl_all.GUESTWIN}
-
- -
{L_NO_DATA}
- -
-
-
- - -
-
{L_NO_BETS}
-
-
- - - + + +
+

{L_BETS_OF} :

+
+
+ + + + + +
+
+
+ +
+

{L_BETS_OF} {USERNAME}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_BET}{L_NUMBER}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}Ø {L_POINTS_SHORT}
{bets.GOALSHOME}:{bets.GOALSGUEST}{bets.COUNT}{bets.TENDENCIES}{bets.DIRECTHITS}{bets.TOTAL}{bets.POINTS}{bets.AVERAGE}
+
+ +
{L_NO_DATA}
+ +
+
+

{L_BETS_OF_ALL}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_BET}{L_NUMBER}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}Ø {L_POINTS_SHORT}
{allbets.GOALSHOME}:{allbets.GOALSGUEST}{allbets.COUNT}{allbets.TENDENCIES}{allbets.DIRECTHITS}{allbets.TOTAL}{allbets.POINTS}{allbets.AVERAGE}
+
+ +
{L_NO_DATA}
+ +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
 {L_HOME}{L_DRAW}{L_AWAY}
{bets_wdl.SCORE}{bets_wdl.HOMEWIN}{bets_wdl.DRAW}{bets_wdl.GUESTWIN}
+
+ +
{L_NO_DATA}
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + +
 {L_HOME}{L_DRAW}{L_AWAY}
{bets_wdl_all.SCORE}{bets_wdl_all.HOMEWIN}{bets_wdl_all.DRAW}{bets_wdl_all.GUESTWIN}
+
+ +
{L_NO_DATA}
+ +
+
+
+ + +
+
{L_NO_BETS}
+
+
+ + + diff --git a/styles/prosilver/template/mobile_my_chart.html b/styles/prosilver/template/mobile_my_chart.html index f7997de..c1db836 100644 --- a/styles/prosilver/template/mobile_my_chart.html +++ b/styles/prosilver/template/mobile_my_chart.html @@ -1,131 +1,131 @@ - -
-

{L_CHART_OF} :

- - -
-
- - - - - - - - -
-
- - {USERNAME1} - - - -
-
- - - - - - - - -
-
- - {USERNAME2} - - - -
-
- - - - - - - - -
-
- - {USERNAME3} - - - -
-
- - - - - - - - -
-
- - {USERNAME4} - -
- -
- {L_MYCHART_TEXT} - -
-
-
- -

{L_TOTAL_RANKS_OF_ALL}

-
- {chart_rank.CHARTIMAGE} -
- -
-
-
-
- -

{L_DAY_RANKS_OF_ALL}

-
- {chart_matchtdays.CHARTIMAGE} -
- -
-
-
-
- -

{L_DAY_POINTS_OF_ALL}

-
- {chart_points.CHARTIMAGE} -
- -
-
-
- - -
-
{L_NO_BETS}
-
-
+ +
+

{L_CHART_OF} :

+ + +
+
+ + + + + + + + +
+
+ + {USERNAME1} + + + +
+
+ + + + + + + + +
+
+ + {USERNAME2} + + + +
+
+ + + + + + + + +
+
+ + {USERNAME3} + + + +
+
+ + + + + + + + +
+
+ + {USERNAME4} + +
+ +
+ {L_MYCHART_TEXT} + +
+
+
+ +

{L_TOTAL_RANKS_OF_ALL}

+
+ {chart_rank.CHARTIMAGE} +
+ +
+
+
+
+ +

{L_DAY_RANKS_OF_ALL}

+
+ {chart_matchtdays.CHARTIMAGE} +
+ +
+
+
+
+ +

{L_DAY_POINTS_OF_ALL}

+
+ {chart_points.CHARTIMAGE} +
+ +
+
+
+ + +
+
{L_NO_BETS}
+
+
\ No newline at end of file diff --git a/styles/prosilver/template/mobile_my_koeff.html b/styles/prosilver/template/mobile_my_koeff.html index 1eef129..61a3a12 100644 --- a/styles/prosilver/template/mobile_my_koeff.html +++ b/styles/prosilver/template/mobile_my_koeff.html @@ -1,101 +1,101 @@ - - -
-

{L_KOEFF_OF} :

-
-
- - - - - -
-
-
- - - - -

{L_KOEFF_OF} {USERNAME}:

- -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

{match_panel.match_entry.HOME_NAME}
{match_panel.match_entry.GUEST_NAME}
{L_RESULT}{match_panel.match_entry.RESULT}{L_TOTAL}
{L_TENDENCY}{match_panel.tendency_footer.tendency.TENDENCY}{match_panel.tendency_footer.SUMTOTAL}
{match_panel.user_row.USER_NAME}{match_panel.user_row.bet.BET}{match_panel.user_row.bet.POINTS}{match_panel.user_row.points.POINTS_TOTAL}
-
-
- -
- - - - - - - - - -
-
{L_NO_MATCHES_ON_MATCHDAY}
-
- + + +
+

{L_KOEFF_OF} :

+
+
+ + + + + +
+
+
+ + + + +

{L_KOEFF_OF} {USERNAME}:

+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

{match_panel.match_entry.HOME_NAME}
{match_panel.match_entry.GUEST_NAME}
{L_RESULT}{match_panel.match_entry.RESULT}{L_TOTAL}
{L_TENDENCY}{match_panel.tendency_footer.tendency.TENDENCY}{match_panel.tendency_footer.SUMTOTAL}
{match_panel.user_row.USER_NAME}{match_panel.user_row.bet.BET}{match_panel.user_row.bet.POINTS}{match_panel.user_row.points.POINTS_TOTAL}
+
+
+ +
+ + + + + + + + + +
+
{L_NO_MATCHES_ON_MATCHDAY}
+
+ diff --git a/styles/prosilver/template/mobile_my_points.html b/styles/prosilver/template/mobile_my_points.html index 4795fa7..38e1dc0 100644 --- a/styles/prosilver/template/mobile_my_points.html +++ b/styles/prosilver/template/mobile_my_points.html @@ -1,112 +1,112 @@ - - -
-

{L_POINTS_OF} :

-
-
- - - - - -
-
-
- -
-

{L_POINTS_OF} {USERNAME}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_BETS}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_DIRECTHITS_SHORT}{L_TENDENCY_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}
{points.RANK}{points.TEAM}{points.COUNT}{points.WIN}{points.DRAW}{points.LOST}{points.DIRECTHITS}{points.TENDENCIES}{points.TOTAL}{points.POINTS}
-
- -
{L_NO_DATA}
- -
-
-

{L_POINTS_OF_ALL}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_DIRECTHITS_SHORT}{L_TENDENCY_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}
{allpoints.RANK}{allpoints.TEAM}{allpoints.WIN}{allpoints.DRAW}{allpoints.LOST}{allpoints.DIRECTHITS}{allpoints.TENDENCIES}{allpoints.TOTAL}{allpoints.POINTS}
-
- -
{L_NO_DATA}
- -
-
-
- - -
-
{L_NO_BETS}
-
-
- - - + + +
+

{L_POINTS_OF} :

+
+
+ + + + + +
+
+
+ +
+

{L_POINTS_OF} {USERNAME}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_BETS}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_DIRECTHITS_SHORT}{L_TENDENCY_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}
{points.RANK}{points.TEAM}{points.COUNT}{points.WIN}{points.DRAW}{points.LOST}{points.DIRECTHITS}{points.TENDENCIES}{points.TOTAL}{points.POINTS}
+
+ +
{L_NO_DATA}
+ +
+
+

{L_POINTS_OF_ALL}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_DIRECTHITS_SHORT}{L_TENDENCY_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}
{allpoints.RANK}{allpoints.TEAM}{allpoints.WIN}{allpoints.DRAW}{allpoints.LOST}{allpoints.DIRECTHITS}{allpoints.TENDENCIES}{allpoints.TOTAL}{allpoints.POINTS}
+
+ +
{L_NO_DATA}
+ +
+
+
+ + +
+
{L_NO_BETS}
+
+
+ + + diff --git a/styles/prosilver/template/mobile_my_rank.html b/styles/prosilver/template/mobile_my_rank.html index 7e44395..9b43095 100644 --- a/styles/prosilver/template/mobile_my_rank.html +++ b/styles/prosilver/template/mobile_my_rank.html @@ -1,107 +1,107 @@ - - -
-

{L_RANKS_OF} :

-
-
- - - - - -
-
-
- -
-

{L_RANKS_OF} {USERNAME}

-
- - - - - - - - - - - - - - - - - - - - - - - -
{L_SEASON}{L_PARTICIPANTS_SHORT}{L_POINTS_SHORT}{L_RANK1}{L_RANK2}{L_RANK3}
{myrank.SEASON}{myrank.MATCHDAYS}{myrank.POINTS}{myrank.RANK1}{myrank.RANK2}{myrank.RANK3}
-
-
-
- - - - - - - - - - - - - - - -
{L_PLACE}{L_NUMBER}
{season_ranks.RANK}{season_ranks.MATCHDAYS}
-
-
-
-

{L_RANKS_OF_ALL}

-
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_NAME}{L_PARTICIPANTS_SHORT}{L_POINTS_SHORT}Ø {L_POINTS_SHORT}{L_RANK1}{L_RANK2}{L_RANK3}
{allranks.NAME}{allranks.MATCHDAYS}{allranks.POINTS}{allranks.AVERAGE}{allranks.RANK1}{allranks.RANK2}{allranks.RANK3}
-
-
-
-
- - -
-
{L_NO_BETS}
-
-
+ + +
+

{L_RANKS_OF} :

+
+
+ + + + + +
+
+
+ +
+

{L_RANKS_OF} {USERNAME}

+
+ + + + + + + + + + + + + + + + + + + + + + + +
{L_SEASON}{L_PARTICIPANTS_SHORT}{L_POINTS_SHORT}{L_RANK1}{L_RANK2}{L_RANK3}
{myrank.SEASON}{myrank.MATCHDAYS}{myrank.POINTS}{myrank.RANK1}{myrank.RANK2}{myrank.RANK3}
+
+
+
+ + + + + + + + + + + + + + + +
{L_PLACE}{L_NUMBER}
{season_ranks.RANK}{season_ranks.MATCHDAYS}
+
+
+
+

{L_RANKS_OF_ALL}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_NAME}{L_PARTICIPANTS_SHORT}{L_POINTS_SHORT}Ø {L_POINTS_SHORT}{L_RANK1}{L_RANK2}{L_RANK3}
{allranks.NAME}{allranks.MATCHDAYS}{allranks.POINTS}{allranks.AVERAGE}{allranks.RANK1}{allranks.RANK2}{allranks.RANK3}
+
+
+
+
+ + +
+
{L_NO_BETS}
+
+
\ No newline at end of file diff --git a/styles/prosilver/template/mobile_my_table.html b/styles/prosilver/template/mobile_my_table.html index 8872a9a..28ad7a0 100644 --- a/styles/prosilver/template/mobile_my_table.html +++ b/styles/prosilver/template/mobile_my_table.html @@ -1,216 +1,216 @@ - -
-

{L_USER_TABLE} :

- -
-
- - - - - -
-
- -

{USERNAME}

- -
-
-

{L_TABLE_TOTAL}

- {L_POINTS_DIFF} = {S_PDIFF} {L_POINTS} -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_POINTS_SHORT}
{total.GROUP}
{total.RANK}{total.TEAM}{total.GAMES}{total.WIN}{total.DRAW}{total.LOST}{total.GOALS}:{total.GOALS_AGAINST}{total.POINTS}
-
-
-
-

{L_TABLE_FORM}

- {TEXT_FORM} - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{form.GROUP}
{form.RANK}{form.TEAM}{form.GAMES}{form.WIN}{form.DRAW}{form.LOST}{form.GOALS}:{form.GOALS_AGAINST}{form.GOALS_DIFF}{form.POINTS}
-
- -
-
-
{L_NO_TABLEFORM}
-
-
- -
-
-
-
-

{L_TABLE_HOME}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{home.GROUP}
{home.RANK}{home.TEAM}{home.GAMES}{home.WIN}{home.DRAW}{home.LOST}{home.GOALS}:{home.GOALS_AGAINST}{home.GOALS_DIFF}{home.POINTS}
-
-
-
-

{L_TABLE_AWAY}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{away.GROUP}
{away.RANK}{away.TEAM}{away.GAMES}{away.WIN}{away.DRAW}{away.LOST}{away.GOALS}:{away.GOALS_AGAINST}{away.GOALS_DIFF}{away.POINTS}
-
-
-
-
- - -
-
{L_NO_TABLE}
-
-
+ +
+

{L_USER_TABLE} :

+ +
+
+ + + + + +
+
+ +

{USERNAME}

+ +
+
+

{L_TABLE_TOTAL}

+ {L_POINTS_DIFF} = {S_PDIFF} {L_POINTS} +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_POINTS_SHORT}
{total.GROUP}
{total.RANK}{total.TEAM}{total.GAMES}{total.WIN}{total.DRAW}{total.LOST}{total.GOALS}:{total.GOALS_AGAINST}{total.POINTS}
+
+
+
+

{L_TABLE_FORM}

+ {TEXT_FORM} + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{form.GROUP}
{form.RANK}{form.TEAM}{form.GAMES}{form.WIN}{form.DRAW}{form.LOST}{form.GOALS}:{form.GOALS_AGAINST}{form.GOALS_DIFF}{form.POINTS}
+
+ +
+
+
{L_NO_TABLEFORM}
+
+
+ +
+
+
+
+

{L_TABLE_HOME}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{home.GROUP}
{home.RANK}{home.TEAM}{home.GAMES}{home.WIN}{home.DRAW}{home.LOST}{home.GOALS}:{home.GOALS_AGAINST}{home.GOALS_DIFF}{home.POINTS}
+
+
+
+

{L_TABLE_AWAY}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{away.GROUP}
{away.RANK}{away.TEAM}{away.GAMES}{away.WIN}{away.DRAW}{away.LOST}{away.GOALS}:{away.GOALS_AGAINST}{away.GOALS_DIFF}{away.POINTS}
+
+
+
+
+ + +
+
{L_NO_TABLE}
+
+
\ No newline at end of file diff --git a/styles/prosilver/template/mobile_nav_delivery.html b/styles/prosilver/template/mobile_nav_delivery.html index 8501d62..d9ab647 100644 --- a/styles/prosilver/template/mobile_nav_delivery.html +++ b/styles/prosilver/template/mobile_nav_delivery.html @@ -1,22 +1,22 @@ - - -
+ + +
\ No newline at end of file diff --git a/styles/prosilver/template/mobile_odds.html b/styles/prosilver/template/mobile_odds.html index cb6ff2a..021863e 100644 --- a/styles/prosilver/template/mobile_odds.html +++ b/styles/prosilver/template/mobile_odds.html @@ -1,35 +1,35 @@ - -
- - - - - - - - - - - - - - - - - - - - - -
{L_VS}%Quoten
- {odds.HOME_NAME}: - {odds.GUEST_NAME}{odds.TREND}{odds.ODD_1}{odds.ODD_X}{odds.ODD_2}
-
-
- - -
-
{L_NO_PLAN}
-
-
+ +
+ + + + + + + + + + + + + + + + + + + + + +
{L_VS}%Quoten
+ {odds.HOME_NAME}: + {odds.GUEST_NAME}{odds.TREND}{odds.ODD_1}{odds.ODD_X}{odds.ODD_2}
+
+
+ + +
+
{L_NO_PLAN}
+
+
\ No newline at end of file diff --git a/styles/prosilver/template/mobile_ranks.html b/styles/prosilver/template/mobile_ranks.html index c49e92b..a311197 100644 --- a/styles/prosilver/template/mobile_ranks.html +++ b/styles/prosilver/template/mobile_ranks.html @@ -1,51 +1,51 @@ - - -
-

{S_HEADER}

-
- -
- {L_FINALLY} - {L_PROVISIONALLY} -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_PLACE}{L_TENDENCY}{L_NAME}{L_BETS}{L_POINTS}{WIN_NAME}
{rankstotal.RANK}{rankstotal.CHANGE_IMG} {rankstotal.CHANGE_DIFFER}{rankstotal.USERNAME}{rankstotal.BETS}{rankstotal.POINTS}{rankstotal.WIN}
-
- -
-
{L_NO_RESULTS}
-
- - + + +
+

{S_HEADER}

+
+ +
+ {L_FINALLY} - {L_PROVISIONALLY} +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_PLACE}{L_TENDENCY}{L_NAME}{L_BETS}{L_POINTS}{WIN_NAME}
{rankstotal.RANK}{rankstotal.CHANGE_IMG} {rankstotal.CHANGE_DIFFER}{rankstotal.USERNAME}{rankstotal.BETS}{rankstotal.POINTS}{rankstotal.WIN}
+
+ +
+
{L_NO_RESULTS}
+
+ + diff --git a/styles/prosilver/template/mobile_results.html b/styles/prosilver/template/mobile_results.html index 96b0c4e..01d352f 100644 --- a/styles/prosilver/template/mobile_results.html +++ b/styles/prosilver/template/mobile_results.html @@ -1,141 +1,141 @@ - - -
-
- - - - - - - {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED} - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_VS}{L_RESULT} ({RESULT_EXPLAIN}){LABEL_FINALRESULT}
- {result.HOME_SHORT}: - {result.GUEST_SHORT} - - - : - - - - - - - -   - - : - - - - -   - - {result.GOALS_HOME}:{result.GOALS_GUEST}{result.KOGOALS_HOME}:{result.KOGOALS_GUEST}
-
- -
-
- - - - - - - - - - - - - - - - - - - -
{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_RESULT}
{extra_result.QUESTION}{extra_result.EXTRA_POINTS}{extra_result.EVALUATION} - - - - - - _{extra_result.RESULT}_ - - - - - - - {extra_result.RESULT} - -
-
- - - -
-
{S_DBMSG}   
-
-
-
- -
- -
{L_NO_MEMBER}
- -
-
- - - -
{L_NO_PLAN}
-
+ + +
+
+ + + + + + + {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED} + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_VS}{L_RESULT} ({RESULT_EXPLAIN}){LABEL_FINALRESULT}
+ {result.HOME_SHORT}: + {result.GUEST_SHORT} + + + : + + + + + + + +   + + : + + + + +   + + {result.GOALS_HOME}:{result.GOALS_GUEST}{result.KOGOALS_HOME}:{result.KOGOALS_GUEST}
+
+ +
+
+ + + + + + + + + + + + + + + + + + + +
{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_RESULT}
{extra_result.QUESTION}{extra_result.EXTRA_POINTS}{extra_result.EVALUATION} + + + + + + _{extra_result.RESULT}_ + + + + + + + {extra_result.RESULT} + +
+
+ + + +
+
{S_DBMSG}   
+
+
+
+ +
+ +
{L_NO_MEMBER}
+ +
+
+ + + +
{L_NO_PLAN}
+
\ No newline at end of file diff --git a/styles/prosilver/template/mobile_stat_points.html b/styles/prosilver/template/mobile_stat_points.html index b718449..f0a89f5 100644 --- a/styles/prosilver/template/mobile_stat_points.html +++ b/styles/prosilver/template/mobile_stat_points.html @@ -1,136 +1,136 @@ - -
-

{L_TOP20_POINTS}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_NAME}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}{L_EUR}
{top20.NAME}{top20.MATCHDAY}{top20.TENDENCIES}{top20.DIRECTHITS}{top20.TOTAL}{top20.POINTS}{top20.WIN}
-
-
-
-

{L_FLOP20_POINTS}

-
- - - - - - - - - - - - - - - - - - - - - - - -
{L_NAME}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}
{flop20.NAME}{flop20.MATCHDAY}{flop20.TENDENCIES}{flop20.DIRECTHITS}{flop20.TOTAL}{flop20.POINTS}
-
-
-
-
-
-

{L_TOP20_POINTS_ALL}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_NAME}{L_SEASON}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}{L_EUR}
{alltop20.NAME}{alltop20.SEASON}{alltop20.MATCHDAY}{alltop20.TENDENCIES}{alltop20.DIRECTHITS}{alltop20.TOTAL}{alltop20.POINTS}{alltop20.WIN}
-
-
-
-

{L_FLOP20_POINTS_ALL}

-
- - - - - - - - - - - - - - - -
{L_NAME}{L_ZERO_POINTS}
{allflop20.NAME}{allflop20.COUNTZERO}
-
-
-
-
- - -
-
{L_NO_BETS}
-
-
- - - + +
+

{L_TOP20_POINTS}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_NAME}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}{L_EUR}
{top20.NAME}{top20.MATCHDAY}{top20.TENDENCIES}{top20.DIRECTHITS}{top20.TOTAL}{top20.POINTS}{top20.WIN}
+
+
+
+

{L_FLOP20_POINTS}

+
+ + + + + + + + + + + + + + + + + + + + + + + +
{L_NAME}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}
{flop20.NAME}{flop20.MATCHDAY}{flop20.TENDENCIES}{flop20.DIRECTHITS}{flop20.TOTAL}{flop20.POINTS}
+
+
+
+
+
+

{L_TOP20_POINTS_ALL}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_NAME}{L_SEASON}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}{L_EUR}
{alltop20.NAME}{alltop20.SEASON}{alltop20.MATCHDAY}{alltop20.TENDENCIES}{alltop20.DIRECTHITS}{alltop20.TOTAL}{alltop20.POINTS}{alltop20.WIN}
+
+
+
+

{L_FLOP20_POINTS_ALL}

+
+ + + + + + + + + + + + + + + +
{L_NAME}{L_ZERO_POINTS}
{allflop20.NAME}{allflop20.COUNTZERO}
+
+
+
+
+ + +
+
{L_NO_BETS}
+
+
+ + + diff --git a/styles/prosilver/template/mobile_stat_results.html b/styles/prosilver/template/mobile_stat_results.html index a5f913e..23db3ba 100644 --- a/styles/prosilver/template/mobile_stat_results.html +++ b/styles/prosilver/template/mobile_stat_results.html @@ -1,85 +1,85 @@ - -
-

{L_STAT_GAME_RESULTS}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RESULT}{L_NUMBER}{L_BETS}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}Ø {L_POINTS_SHORT}
{result.GOALS_HOME}:{result.GOALS_GUEST}{result.RESULTS}{result.BETS}{result.TENDENCIES}{result.HITS}{result.TOTAL}{result.POINTS}{result.AVERAGE}
-
-
-
-

{L_DIFF_COUNT}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}<-2-1 0+1+2>{L_GOALS_DIFF_SHORT}
{points.RANK}{points.TEAM}{points.MATCHES}{points.MINUS3}{points.MINUS2}{points.MINUS1}{points.DRAW}{points.PLUS1}{points.PLUS2}{points.PLUS3}{points.GOALS_DIFF}
-
-
-
-
- - -
-
{L_NO_RESULTS}
-
-
- - - + +
+

{L_STAT_GAME_RESULTS}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RESULT}{L_NUMBER}{L_BETS}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL_SHORT}{L_POINTS_SHORT}Ø {L_POINTS_SHORT}
{result.GOALS_HOME}:{result.GOALS_GUEST}{result.RESULTS}{result.BETS}{result.TENDENCIES}{result.HITS}{result.TOTAL}{result.POINTS}{result.AVERAGE}
+
+
+
+

{L_DIFF_COUNT}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}<-2-1 0+1+2>{L_GOALS_DIFF_SHORT}
{points.RANK}{points.TEAM}{points.MATCHES}{points.MINUS3}{points.MINUS2}{points.MINUS1}{points.DRAW}{points.PLUS1}{points.PLUS2}{points.PLUS3}{points.GOALS_DIFF}
+
+
+
+
+ + +
+
{L_NO_RESULTS}
+
+
+ + + diff --git a/styles/prosilver/template/mobile_table.html b/styles/prosilver/template/mobile_table.html index 67d83c0..1f1ec37 100644 --- a/styles/prosilver/template/mobile_table.html +++ b/styles/prosilver/template/mobile_table.html @@ -1,203 +1,203 @@ - -
-

{L_TABLE_TOTAL}

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{total.GROUP}
{total.RANK}{total.TEAM_SHORT}{total.GAMES}{total.WIN}{total.DRAW}{total.LOST}{total.GOALS}:{total.GOALS_AGAINST}{total.GOALS_DIFF}{total.POINTS}
-
-
- -
-

{L_TABLE_FORM}

- {TEXT_FORM} - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{form.GROUP}
{form.RANK}{form.TEAM_SHORT}{form.GAMES}{form.WIN}{form.DRAW}{form.LOST}{form.GOALS}:{form.GOALS_AGAINST}{form.GOALS_DIFF}{form.POINTS}
-
- -
-
-
{L_NO_TABLEFORM}
-
-
- -
-
-
-
-

{L_TABLE_HOME}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{home.GROUP}
{home.RANK}{home.TEAM_SHORT}{home.GAMES}{home.WIN}{home.DRAW}{home.LOST}{home.GOALS}:{home.GOALS_AGAINST}{home.GOALS_DIFF}{home.POINTS}
-
-
-
-

{L_TABLE_AWAY}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{away.GROUP}
{away.RANK}{away.TEAM_SHORT}{away.GAMES}{away.WIN}{away.DRAW}{away.LOST}{away.GOALS}:{away.GOALS_AGAINST}{away.GOALS_DIFF}{away.POINTS}
-
-
- -
-
- - - -
-
{L_NO_TABLE}
-
-
- - - + +
+

{L_TABLE_TOTAL}

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{total.GROUP}
{total.RANK}{total.TEAM_SHORT}{total.GAMES}{total.WIN}{total.DRAW}{total.LOST}{total.GOALS}:{total.GOALS_AGAINST}{total.GOALS_DIFF}{total.POINTS}
+
+
+ +
+

{L_TABLE_FORM}

+ {TEXT_FORM} + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{form.GROUP}
{form.RANK}{form.TEAM_SHORT}{form.GAMES}{form.WIN}{form.DRAW}{form.LOST}{form.GOALS}:{form.GOALS_AGAINST}{form.GOALS_DIFF}{form.POINTS}
+
+ +
+
+
{L_NO_TABLEFORM}
+
+
+ +
+
+
+
+

{L_TABLE_HOME}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{home.GROUP}
{home.RANK}{home.TEAM_SHORT}{home.GAMES}{home.WIN}{home.DRAW}{home.LOST}{home.GOALS}:{home.GOALS_AGAINST}{home.GOALS_DIFF}{home.POINTS}
+
+
+
+

{L_TABLE_AWAY}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{away.GROUP}
{away.RANK}{away.TEAM_SHORT}{away.GAMES}{away.WIN}{away.DRAW}{away.LOST}{away.GOALS}:{away.GOALS_AGAINST}{away.GOALS_DIFF}{away.POINTS}
+
+
+ +
+
+ + + +
+
{L_NO_TABLE}
+
+
+ + + diff --git a/styles/prosilver/template/mobile_under_construction.html b/styles/prosilver/template/mobile_under_construction.html index a5d4c3a..154a05c 100644 --- a/styles/prosilver/template/mobile_under_construction.html +++ b/styles/prosilver/template/mobile_under_construction.html @@ -1,6 +1,6 @@ -
-

{L_UNDER_CONSTRUCTION}

-
-
- {L_UNDER_CONSTRUCTION_EXPLAIN} -
+
+

{L_UNDER_CONSTRUCTION}

+
+
+ {L_UNDER_CONSTRUCTION_EXPLAIN} +
diff --git a/styles/prosilver/template/my_bets.html b/styles/prosilver/template/my_bets.html index cecc4f8..9b301b8 100644 --- a/styles/prosilver/template/my_bets.html +++ b/styles/prosilver/template/my_bets.html @@ -1,158 +1,158 @@ - - -
-

{L_BETS_OF} :

-
-
- - - - - -
-
-
- -
-

{L_BETS_OF} {USERNAME}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_BET}{L_NUMBER}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS}Ø {L_POINTS_SHORT}
{bets.GOALSHOME}:{bets.GOALSGUEST}{bets.COUNT}{bets.TENDENCIES}{bets.DIRECTHITS}{bets.TOTAL}{bets.POINTS}{bets.AVERAGE}
-
- -
{L_NO_DATA}
- -
-
-

{L_BETS_OF_ALL}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_BET}{L_NUMBER}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS}Ø {L_POINTS_SHORT}
{allbets.GOALSHOME}:{allbets.GOALSGUEST}{allbets.COUNT}{allbets.TENDENCIES}{allbets.DIRECTHITS}{allbets.TOTAL}{allbets.POINTS}{allbets.AVERAGE}
-
- -
{L_NO_DATA}
- -
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
 {L_HOME}{L_DRAW}{L_AWAY}
{bets_wdl.SCORE}{bets_wdl.HOMEWIN}{bets_wdl.DRAW}{bets_wdl.GUESTWIN}
-
- -
{L_NO_DATA}
- -
-
- -
- - - - - - - - - - - - - - - - - - - -
 {L_HOME}{L_DRAW}{L_AWAY}
{bets_wdl_all.SCORE}{bets_wdl_all.HOMEWIN}{bets_wdl_all.DRAW}{bets_wdl_all.GUESTWIN}
-
- -
{L_NO_DATA}
- -
-
-
- - -
-
{L_NO_BETS}
-
-
- - - + + +
+

{L_BETS_OF} :

+
+
+ + + + + +
+
+
+ +
+

{L_BETS_OF} {USERNAME}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_BET}{L_NUMBER}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS}Ø {L_POINTS_SHORT}
{bets.GOALSHOME}:{bets.GOALSGUEST}{bets.COUNT}{bets.TENDENCIES}{bets.DIRECTHITS}{bets.TOTAL}{bets.POINTS}{bets.AVERAGE}
+
+ +
{L_NO_DATA}
+ +
+
+

{L_BETS_OF_ALL}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_BET}{L_NUMBER}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS}Ø {L_POINTS_SHORT}
{allbets.GOALSHOME}:{allbets.GOALSGUEST}{allbets.COUNT}{allbets.TENDENCIES}{allbets.DIRECTHITS}{allbets.TOTAL}{allbets.POINTS}{allbets.AVERAGE}
+
+ +
{L_NO_DATA}
+ +
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
 {L_HOME}{L_DRAW}{L_AWAY}
{bets_wdl.SCORE}{bets_wdl.HOMEWIN}{bets_wdl.DRAW}{bets_wdl.GUESTWIN}
+
+ +
{L_NO_DATA}
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + +
 {L_HOME}{L_DRAW}{L_AWAY}
{bets_wdl_all.SCORE}{bets_wdl_all.HOMEWIN}{bets_wdl_all.DRAW}{bets_wdl_all.GUESTWIN}
+
+ +
{L_NO_DATA}
+ +
+
+
+ + +
+
{L_NO_BETS}
+
+
+ + + diff --git a/styles/prosilver/template/my_chart.html b/styles/prosilver/template/my_chart.html index 9add9e1..a66f62f 100644 --- a/styles/prosilver/template/my_chart.html +++ b/styles/prosilver/template/my_chart.html @@ -1,131 +1,131 @@ - -
-

{L_CHART_OF} :

- - -
-
- - - - - - - - -
-
- - {USERNAME1} - - - -
-
- - - - - - - - -
-
- - {USERNAME2} - - - -
-
- - - - - - - - -
-
- - {USERNAME3} - - - -
-
- - - - - - - - -
-
- - {USERNAME4} - -
- -
- {L_MYCHART_TEXT} - -
-
-
- -

{L_TOTAL_RANKS_OF_ALL}

-
- {chart_rank.CHARTIMAGE} -
- -
-
-
-
- -

{L_DAY_RANKS_OF_ALL}

-
- {chart_matchtdays.CHARTIMAGE} -
- -
-
-
-
- -

{L_DAY_POINTS_OF_ALL}

-
- {chart_points.CHARTIMAGE} -
- -
-
-
- - -
-
{L_NO_BETS}
-
-
+ +
+

{L_CHART_OF} :

+ + +
+
+ + + + + + + + +
+
+ + {USERNAME1} + + + +
+
+ + + + + + + + +
+
+ + {USERNAME2} + + + +
+
+ + + + + + + + +
+
+ + {USERNAME3} + + + +
+
+ + + + + + + + +
+
+ + {USERNAME4} + +
+ +
+ {L_MYCHART_TEXT} + +
+
+
+ +

{L_TOTAL_RANKS_OF_ALL}

+
+ {chart_rank.CHARTIMAGE} +
+ +
+
+
+
+ +

{L_DAY_RANKS_OF_ALL}

+
+ {chart_matchtdays.CHARTIMAGE} +
+ +
+
+
+
+ +

{L_DAY_POINTS_OF_ALL}

+
+ {chart_points.CHARTIMAGE} +
+ +
+
+
+ + +
+
{L_NO_BETS}
+
+
\ No newline at end of file diff --git a/styles/prosilver/template/my_koeff.html b/styles/prosilver/template/my_koeff.html index 0e41078..f9d6d20 100644 --- a/styles/prosilver/template/my_koeff.html +++ b/styles/prosilver/template/my_koeff.html @@ -1,106 +1,106 @@ - - -
-

{L_KOEFF_OF} :

-
-
- - - - - -
-
-
- - - - - - -

{L_KOEFF_OF} {USERNAME}:

- -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

{match_panel.match_entry.HOME_NAME}
{match_panel.match_entry.GUEST_NAME}
{L_RESULT}{match_panel.match_entry.RESULT}{L_TOTAL}
{L_TENDENCY}{match_panel.tendency_footer.tendency.TENDENCY}{match_panel.tendency_footer.SUMTOTAL}
{match_panel.user_row.USER_NAME}{match_panel.user_row.bet.BET}{match_panel.user_row.bet.POINTS}{match_panel.user_row.points.POINTS_TOTAL}
-
-
- -
- - - - - - - - - -
-
{L_NO_MATCHES_ON_MATCHDAY}
-
- + + +
+

{L_KOEFF_OF} :

+
+
+ + + + + +
+
+
+ + + + + + +

{L_KOEFF_OF} {USERNAME}:

+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

{match_panel.match_entry.HOME_NAME}
{match_panel.match_entry.GUEST_NAME}
{L_RESULT}{match_panel.match_entry.RESULT}{L_TOTAL}
{L_TENDENCY}{match_panel.tendency_footer.tendency.TENDENCY}{match_panel.tendency_footer.SUMTOTAL}
{match_panel.user_row.USER_NAME}{match_panel.user_row.bet.BET}{match_panel.user_row.bet.POINTS}{match_panel.user_row.points.POINTS_TOTAL}
+
+
+ +
+ + + + + + + + + +
+
{L_NO_MATCHES_ON_MATCHDAY}
+
+ diff --git a/styles/prosilver/template/my_points.html b/styles/prosilver/template/my_points.html index 9c2bfd8..18644bb 100644 --- a/styles/prosilver/template/my_points.html +++ b/styles/prosilver/template/my_points.html @@ -1,118 +1,118 @@ - - -
-

{L_POINTS_OF} :

-
-
- - - - - -
-
-
- -
-

{L_POINTS_OF} {USERNAME}

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_BETS}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_DIRECTHITS_SHORT}{L_TENDENCY_SHORT}{L_TOTAL}{L_POINTS_SHORT}
{points.RANK}{points.TEAM}{points.COUNT}{points.WIN}{points.DRAW}{points.LOST}{points.DIRECTHITS}{points.TENDENCIES}{points.TOTAL}{points.POINTS}
-
-
- -
{L_NO_DATA}
- -
-
-

{L_POINTS_OF_ALL}

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_BETS}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_DIRECTHITS_SHORT}{L_TENDENCY_SHORT}{L_TOTAL}{L_POINTS_SHORT}
{allpoints.RANK}{allpoints.TEAM}{allpoints.COUNT}{allpoints.WIN}{allpoints.DRAW}{allpoints.LOST}{allpoints.DIRECTHITS}{allpoints.TENDENCIES}{allpoints.TOTAL}{allpoints.POINTS}
-
-
- -
{L_NO_DATA}
- -
-
-
- - -
-
{L_NO_BETS}
-
-
- - - + + +
+

{L_POINTS_OF} :

+
+
+ + + + + +
+
+
+ +
+

{L_POINTS_OF} {USERNAME}

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_BETS}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_DIRECTHITS_SHORT}{L_TENDENCY_SHORT}{L_TOTAL}{L_POINTS_SHORT}
{points.RANK}{points.TEAM}{points.COUNT}{points.WIN}{points.DRAW}{points.LOST}{points.DIRECTHITS}{points.TENDENCIES}{points.TOTAL}{points.POINTS}
+
+
+ +
{L_NO_DATA}
+ +
+
+

{L_POINTS_OF_ALL}

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_BETS}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_DIRECTHITS_SHORT}{L_TENDENCY_SHORT}{L_TOTAL}{L_POINTS_SHORT}
{allpoints.RANK}{allpoints.TEAM}{allpoints.COUNT}{allpoints.WIN}{allpoints.DRAW}{allpoints.LOST}{allpoints.DIRECTHITS}{allpoints.TENDENCIES}{allpoints.TOTAL}{allpoints.POINTS}
+
+
+ +
{L_NO_DATA}
+ +
+
+
+ + +
+
{L_NO_BETS}
+
+
+ + + diff --git a/styles/prosilver/template/my_rank.html b/styles/prosilver/template/my_rank.html index 297a98b..02572b1 100644 --- a/styles/prosilver/template/my_rank.html +++ b/styles/prosilver/template/my_rank.html @@ -1,107 +1,107 @@ - - -
-

{L_RANKS_OF} :

-
-
- - - - - -
-
-
- -
-

{L_RANKS_OF} {USERNAME}

-
- - - - - - - - - - - - - - - - - - - - - - - -
{L_SEASON}{L_PARTICIPANTS_SHORT}{L_POINTS_SHORT}{L_RANK1}{L_RANK2}{L_RANK3}
{myrank.SEASON}{myrank.MATCHDAYS}{myrank.POINTS}{myrank.RANK1}{myrank.RANK2}{myrank.RANK3}
-
-
-
- - - - - - - - - - - - - - - -
{L_PLACE}{L_NUMBER}
{season_ranks.RANK}{season_ranks.MATCHDAYS}
-
-
-
-

{L_RANKS_OF_ALL}

-
- - - - - - - - - - - - - - - - - - - - - - - - - -
{L_NAME}{L_PARTICIPANTS_SHORT}{L_POINTS_SHORT}Ø {L_POINTS_SHORT}{L_RANK1}{L_RANK2}{L_RANK3}
{allranks.NAME}{allranks.MATCHDAYS}{allranks.POINTS}{allranks.AVERAGE}{allranks.RANK1}{allranks.RANK2}{allranks.RANK3}
-
-
-
-
- - -
-
{L_NO_BETS}
-
-
+ + +
+

{L_RANKS_OF} :

+
+
+ + + + + +
+
+
+ +
+

{L_RANKS_OF} {USERNAME}

+
+ + + + + + + + + + + + + + + + + + + + + + + +
{L_SEASON}{L_PARTICIPANTS_SHORT}{L_POINTS_SHORT}{L_RANK1}{L_RANK2}{L_RANK3}
{myrank.SEASON}{myrank.MATCHDAYS}{myrank.POINTS}{myrank.RANK1}{myrank.RANK2}{myrank.RANK3}
+
+
+
+ + + + + + + + + + + + + + + +
{L_PLACE}{L_NUMBER}
{season_ranks.RANK}{season_ranks.MATCHDAYS}
+
+
+
+

{L_RANKS_OF_ALL}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{L_NAME}{L_PARTICIPANTS_SHORT}{L_POINTS_SHORT}Ø {L_POINTS_SHORT}{L_RANK1}{L_RANK2}{L_RANK3}
{allranks.NAME}{allranks.MATCHDAYS}{allranks.POINTS}{allranks.AVERAGE}{allranks.RANK1}{allranks.RANK2}{allranks.RANK3}
+
+
+
+
+ + +
+
{L_NO_BETS}
+
+
\ No newline at end of file diff --git a/styles/prosilver/template/my_table.html b/styles/prosilver/template/my_table.html index 0b30d37..c93f918 100644 --- a/styles/prosilver/template/my_table.html +++ b/styles/prosilver/template/my_table.html @@ -1,218 +1,218 @@ - -
-

{L_USER_TABLE} :

- -
-
- - - - - -
-
- -

{USERNAME}

- -
-
-

{L_TABLE_TOTAL}

- {L_POINTS_DIFF} = {S_PDIFF} {L_POINTS} -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{total.GROUP}
{total.RANK}{total.TEAM}{total.GAMES}{total.WIN}{total.DRAW}{total.LOST}{total.GOALS}:{total.GOALS_AGAINST}{total.GOALS_DIFF}{total.POINTS}
-
-
-
-

{L_TABLE_FORM}

- {TEXT_FORM} - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{form.GROUP}
{form.RANK}{form.TEAM}{form.GAMES}{form.WIN}{form.DRAW}{form.LOST}{form.GOALS}:{form.GOALS_AGAINST}{form.GOALS_DIFF}{form.POINTS}
-
- -
-
-
{L_NO_TABLEFORM}
-
-
- -
-
-
-
-

{L_TABLE_HOME}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{home.GROUP}
{home.RANK}{home.TEAM}{home.GAMES}{home.WIN}{home.DRAW}{home.LOST}{home.GOALS}:{home.GOALS_AGAINST}{home.GOALS_DIFF}{home.POINTS}
-
-
-
-

{L_TABLE_AWAY}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{away.GROUP}
{away.RANK}{away.TEAM}{away.GAMES}{away.WIN}{away.DRAW}{away.LOST}{away.GOALS}:{away.GOALS_AGAINST}{away.GOALS_DIFF}{away.POINTS}
-
-
-
-
- - -
-
{L_NO_TABLE}
-
-
+ +
+

{L_USER_TABLE} :

+ +
+
+ + + + + +
+
+ +

{USERNAME}

+ +
+
+

{L_TABLE_TOTAL}

+ {L_POINTS_DIFF} = {S_PDIFF} {L_POINTS} +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{total.GROUP}
{total.RANK}{total.TEAM}{total.GAMES}{total.WIN}{total.DRAW}{total.LOST}{total.GOALS}:{total.GOALS_AGAINST}{total.GOALS_DIFF}{total.POINTS}
+
+
+
+

{L_TABLE_FORM}

+ {TEXT_FORM} + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{form.GROUP}
{form.RANK}{form.TEAM}{form.GAMES}{form.WIN}{form.DRAW}{form.LOST}{form.GOALS}:{form.GOALS_AGAINST}{form.GOALS_DIFF}{form.POINTS}
+
+ +
+
+
{L_NO_TABLEFORM}
+
+
+ +
+
+
+
+

{L_TABLE_HOME}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{home.GROUP}
{home.RANK}{home.TEAM}{home.GAMES}{home.WIN}{home.DRAW}{home.LOST}{home.GOALS}:{home.GOALS_AGAINST}{home.GOALS_DIFF}{home.POINTS}
+
+
+
+

{L_TABLE_AWAY}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{away.GROUP}
{away.RANK}{away.TEAM}{away.GAMES}{away.WIN}{away.DRAW}{away.LOST}{away.GOALS}:{away.GOALS_AGAINST}{away.GOALS_DIFF}{away.POINTS}
+
+
+
+
+ + +
+
{L_NO_TABLE}
+
+
\ No newline at end of file diff --git a/styles/prosilver/template/nav_delivery.html b/styles/prosilver/template/nav_delivery.html index 848ac5c..3efcc51 100644 --- a/styles/prosilver/template/nav_delivery.html +++ b/styles/prosilver/template/nav_delivery.html @@ -1,21 +1,21 @@ - - - + + + diff --git a/styles/prosilver/template/odds.html b/styles/prosilver/template/odds.html index bb31a36..b46ceaa 100644 --- a/styles/prosilver/template/odds.html +++ b/styles/prosilver/template/odds.html @@ -8,6 +8,9 @@ {L_GR} {L_VS} + + {L_BET_OF} + {L_RESULT} ({RESULT_EXPLAIN}) {LABEL_FINALRESULT} @@ -31,6 +34,11 @@ {odds.LOGO_GUEST} {odds.GUEST_NAME} + + {odds.BET_HOME} + : + {odds.BET_GUEST} + {odds.GOALS_HOME} : {odds.GOALS_GUEST} diff --git a/styles/prosilver/template/results.html b/styles/prosilver/template/results.html index 026e5bb..14c80d5 100644 --- a/styles/prosilver/template/results.html +++ b/styles/prosilver/template/results.html @@ -1,171 +1,171 @@ - - -
-
- - {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED}
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_DATE}{L_NR}{L_GR}{L_VS}{L_RESULT} ({RESULT_EXPLAIN}){LABEL_FINALRESULT}
{result.MATCH_TIME}{result.MATCH_NUMBER}{result.GROUP} - {result.HOME_NAME}: - {result.GUEST_NAME} - - - - - _{result.RESULT_HOME}_ - - : - - - - - _{result.RESULT_GUEST}_ - - - - - - - -   - - - _{result.KORESULT_HOME}_ - - : - - - - - -   - - - _{result.KORESULT_GUEST}_ - - {result.GOALS_HOME}:{result.GOALS_GUEST}{result.KOGOALS_HOME}:{result.KOGOALS_GUEST}
-
- - -
-
- - - - - - - - - - - - - - - - - - - -
{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_RESULT}
{extra_result.QUESTION}{extra_result.EXTRA_POINTS}{extra_result.EVALUATION} - - - - - - _{extra_result.RESULT}_ - - - - - - - _{extra_result.RESULT}_ - - - - {extra_result.RESULT} - -
-
- - - - -
-
{S_DBMSG}   
-
- -
- -
- -
{L_NO_MEMBER}
- -
-
- - - - -
-
{L_NO_PLAN}
-
-
+ + +
+
+ + {L_FINALLY} - {L_PROVISIONALLY} - {L_NOT_RATED}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_DATE}{L_NR}{L_GR}{L_VS}{L_RESULT} ({RESULT_EXPLAIN}){LABEL_FINALRESULT}
{result.MATCH_TIME}{result.MATCH_NUMBER}{result.GROUP} + {result.HOME_NAME}: + {result.GUEST_NAME} + + + + + _{result.RESULT_HOME}_ + + : + + + + + _{result.RESULT_GUEST}_ + + + + + + + +   + + + _{result.KORESULT_HOME}_ + + : + + + + + +   + + + _{result.KORESULT_GUEST}_ + + {result.GOALS_HOME}:{result.GOALS_GUEST}{result.KOGOALS_HOME}:{result.KOGOALS_GUEST}
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + +
{L_QUESTION}{L_POSSIBLE_POINTS}{L_EVALUATION}{L_RESULT}
{extra_result.QUESTION}{extra_result.EXTRA_POINTS}{extra_result.EVALUATION} + + + + + + _{extra_result.RESULT}_ + + + + + + + _{extra_result.RESULT}_ + + + + {extra_result.RESULT} + +
+
+ + + + +
+
{S_DBMSG}   
+
+ +
+ +
+ +
{L_NO_MEMBER}
+ +
+
+ + + + +
+
{L_NO_PLAN}
+
+
\ No newline at end of file diff --git a/styles/prosilver/template/rules_popup.html b/styles/prosilver/template/rules_popup.html index c6c5b30..c4794dc 100644 --- a/styles/prosilver/template/rules_popup.html +++ b/styles/prosilver/template/rules_popup.html @@ -1,70 +1,70 @@ - - - -
-
- -
- -

- - {LINK_RULES} - - {L_NO_LINK_RULES} - -

- {L_RULES_EXPLAIN} -
- -

{L_JOIN_MODE}

- {JOIN_MODE}
- -

{L_POINTS}

- {POINTS_HIT} - {POINTS_DIFF} - {POINTS_TENDENCY} - {POINTS_LAST} - -

{L_DELIVERY}

- - {L_BET_IN_TIME} - - {L_BET_UNTIL_DELIVERY} - - -

{wintable.WIN_DESC}

-
-
- - - - - - - - - - - - - - - -
{L_PLACE}{WIN_NAME}
{wintable.entry.RANK}{wintable.entry.WIN}
-
-
-
- - -
-
{S_ERROR_MESSAGE}
-
- -
-
- {L_CLOSE_WINDOW} -
-
+ + + +
+
+ +
+ +

+ + {LINK_RULES} + + {L_NO_LINK_RULES} + +

+ {L_RULES_EXPLAIN} +
+ +

{L_JOIN_MODE}

+ {JOIN_MODE}
+ +

{L_POINTS}

+ {POINTS_HIT} + {POINTS_DIFF} + {POINTS_TENDENCY} + {POINTS_LAST} + +

{L_DELIVERY}

+ + {L_BET_IN_TIME} + + {L_BET_UNTIL_DELIVERY} + + +

{wintable.WIN_DESC}

+
+
+ + + + + + + + + + + + + + + +
{L_PLACE}{WIN_NAME}
{wintable.entry.RANK}{wintable.entry.WIN}
+
+
+
+ + +
+
{S_ERROR_MESSAGE}
+
+ +
+
+ {L_CLOSE_WINDOW} +
+
\ No newline at end of file diff --git a/styles/prosilver/template/stat_points.html b/styles/prosilver/template/stat_points.html index 4288052..8136d15 100644 --- a/styles/prosilver/template/stat_points.html +++ b/styles/prosilver/template/stat_points.html @@ -1,137 +1,137 @@ - -
-
-

{L_TOP20_POINTS}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_NAME}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS_SHORT}{L_WIN}
{top20.NAME}{top20.MATCHDAY}{top20.TENDENCIES}{top20.DIRECTHITS}{top20.TOTAL}{top20.POINTS}{top20.WIN}
-
-
-
-

{L_FLOP20_POINTS}

-
- - - - - - - - - - - - - - - - - - - - - - - -
{L_NAME}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS_SHORT}
{flop20.NAME}{flop20.MATCHDAY}{flop20.TENDENCIES}{flop20.DIRECTHITS}{flop20.TOTAL}{flop20.POINTS}
-
-
-
-
-
-

{L_TOP20_POINTS_ALL}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_NAME}{L_SEASON}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS_SHORT}{L_WIN}
{alltop20.NAME}{alltop20.SEASON}{alltop20.MATCHDAY}{alltop20.TENDENCIES}{alltop20.DIRECTHITS}{alltop20.TOTAL}{alltop20.POINTS}{alltop20.WIN}
-
-
-
-

{L_FLOP20_POINTS_ALL}

-
- - - - - - - - - - - - - - - -
{L_NAME}{L_ZERO_POINTS}
{allflop20.NAME}{allflop20.COUNTZERO}
-
-
-
-
- - -
-
{L_NO_BETS}
-
-
- - - + +
+
+

{L_TOP20_POINTS}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_NAME}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS_SHORT}{L_WIN}
{top20.NAME}{top20.MATCHDAY}{top20.TENDENCIES}{top20.DIRECTHITS}{top20.TOTAL}{top20.POINTS}{top20.WIN}
+
+
+
+

{L_FLOP20_POINTS}

+
+ + + + + + + + + + + + + + + + + + + + + + + +
{L_NAME}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS_SHORT}
{flop20.NAME}{flop20.MATCHDAY}{flop20.TENDENCIES}{flop20.DIRECTHITS}{flop20.TOTAL}{flop20.POINTS}
+
+
+
+
+
+

{L_TOP20_POINTS_ALL}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_NAME}{L_SEASON}{L_MATCHDAY_SHORT}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS_SHORT}{L_WIN}
{alltop20.NAME}{alltop20.SEASON}{alltop20.MATCHDAY}{alltop20.TENDENCIES}{alltop20.DIRECTHITS}{alltop20.TOTAL}{alltop20.POINTS}{alltop20.WIN}
+
+
+
+

{L_FLOP20_POINTS_ALL}

+
+ + + + + + + + + + + + + + + +
{L_NAME}{L_ZERO_POINTS}
{allflop20.NAME}{allflop20.COUNTZERO}
+
+
+
+
+ + +
+
{L_NO_BETS}
+
+
+ + + diff --git a/styles/prosilver/template/stat_results.html b/styles/prosilver/template/stat_results.html index 13044fc..4d6eb16 100644 --- a/styles/prosilver/template/stat_results.html +++ b/styles/prosilver/template/stat_results.html @@ -1,87 +1,87 @@ - -
-

{L_STAT_GAME_RESULTS}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RESULT}{L_NUMBER}{L_BETS}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS}Ø {L_POINTS_SHORT}
{result.GOALS_HOME}:{result.GOALS_GUEST}{result.RESULTS}{result.BETS}{result.TENDENCIES}{result.HITS}{result.TOTAL}{result.POINTS}{result.AVERAGE}
-
-
-
-

{L_DIFF_COUNT}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}<-2-1 0+1+2>{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{points.RANK}{points.TEAM}{points.MATCHES}{points.MINUS3}{points.MINUS2}{points.MINUS1}{points.DRAW}{points.PLUS1}{points.PLUS2}{points.PLUS3}{points.GOALS_DIFF}{points.POINTS}
-
-
-
-
- - -
-
{L_NO_RESULTS}
-
-
- - - + +
+

{L_STAT_GAME_RESULTS}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RESULT}{L_NUMBER}{L_BETS}{L_TENDENCY_SHORT}{L_HITS_SHORT}{L_TOTAL}{L_POINTS}Ø {L_POINTS_SHORT}
{result.GOALS_HOME}:{result.GOALS_GUEST}{result.RESULTS}{result.BETS}{result.TENDENCIES}{result.HITS}{result.TOTAL}{result.POINTS}{result.AVERAGE}
+
+
+
+

{L_DIFF_COUNT}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}<-2-1 0+1+2>{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{points.RANK}{points.TEAM}{points.MATCHES}{points.MINUS3}{points.MINUS2}{points.MINUS1}{points.DRAW}{points.PLUS1}{points.PLUS2}{points.PLUS3}{points.GOALS_DIFF}{points.POINTS}
+
+
+
+
+ + +
+
{L_NO_RESULTS}
+
+
+ + + diff --git a/styles/prosilver/template/table.html b/styles/prosilver/template/table.html index 5556e41..55af364 100644 --- a/styles/prosilver/template/table.html +++ b/styles/prosilver/template/table.html @@ -1,206 +1,206 @@ - -
-

{L_TABLE_TOTAL}

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{total.GROUP}
{total.RANK}{total.TEAM_SHORT}{total.GAMES}{total.WIN}{total.DRAW}{total.LOST}{total.GOALS}:{total.GOALS_AGAINST}{total.GOALS_DIFF}{total.POINTS}
-
-
- -
-

{L_TABLE_FORM}

- {TEXT_FORM} - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{form.GROUP}
{form.RANK}{form.TEAM_SHORT}{form.GAMES}{form.WIN}{form.DRAW}{form.LOST}{form.GOALS}:{form.GOALS_AGAINST}{form.GOALS_DIFF}{form.POINTS}
-
- -
-
-
{L_NO_TABLEFORM}
-
-
- -
-
-
-
-

{L_TABLE_HOME}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{home.GROUP}
{home.RANK}{home.TEAM_SHORT}{home.GAMES}{home.WIN}{home.DRAW}{home.LOST}{home.GOALS}:{home.GOALS_AGAINST}{home.GOALS_DIFF}{home.POINTS}
-
-
-
-

{L_TABLE_AWAY}

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{away.GROUP}
{away.RANK}{away.TEAM_SHORT}{away.GAMES}{away.WIN}{away.DRAW}{away.LOST}{away.GOALS}:{away.GOALS_AGAINST}{away.GOALS_DIFF}{away.POINTS}
-
-
- -
-
- - -
-
{L_NO_TABLE}
-
-
- - - + +
+

{L_TABLE_TOTAL}

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{total.GROUP}
{total.RANK}{total.TEAM_SHORT}{total.GAMES}{total.WIN}{total.DRAW}{total.LOST}{total.GOALS}:{total.GOALS_AGAINST}{total.GOALS_DIFF}{total.POINTS}
+
+
+ +
+

{L_TABLE_FORM}

+ {TEXT_FORM} + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{form.GROUP}
{form.RANK}{form.TEAM_SHORT}{form.GAMES}{form.WIN}{form.DRAW}{form.LOST}{form.GOALS}:{form.GOALS_AGAINST}{form.GOALS_DIFF}{form.POINTS}
+
+ +
+
+
{L_NO_TABLEFORM}
+
+
+ +
+
+
+
+

{L_TABLE_HOME}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{home.GROUP}
{home.RANK}{home.TEAM_SHORT}{home.GAMES}{home.WIN}{home.DRAW}{home.LOST}{home.GOALS}:{home.GOALS_AGAINST}{home.GOALS_DIFF}{home.POINTS}
+
+
+
+

{L_TABLE_AWAY}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_RANK_SHORT}{L_TEAM}{L_GAMES_SHORT}{L_WIN_SHORT}{L_DRAW_SHORT}{L_LOST_SHORT}{L_GOALS}{L_GOALS_DIFF_SHORT}{L_POINTS_SHORT}
{away.GROUP}
{away.RANK}{away.TEAM_SHORT}{away.GAMES}{away.WIN}{away.DRAW}{away.LOST}{away.GOALS}:{away.GOALS_AGAINST}{away.GOALS_DIFF}{away.POINTS}
+
+
+ +
+
+ + +
+
{L_NO_TABLE}
+
+
+ + + diff --git a/styles/prosilver/template/under_construction.html b/styles/prosilver/template/under_construction.html index a5d4c3a..154a05c 100644 --- a/styles/prosilver/template/under_construction.html +++ b/styles/prosilver/template/under_construction.html @@ -1,6 +1,6 @@ -
-

{L_UNDER_CONSTRUCTION}

-
-
- {L_UNDER_CONSTRUCTION_EXPLAIN} -
+
+

{L_UNDER_CONSTRUCTION}

+
+
+ {L_UNDER_CONSTRUCTION_EXPLAIN} +
diff --git a/styles/prosilver/template/viewplan_popup.html b/styles/prosilver/template/viewplan_popup.html index 0f519a8..3b4d997 100644 --- a/styles/prosilver/template/viewplan_popup.html +++ b/styles/prosilver/template/viewplan_popup.html @@ -1,57 +1,57 @@ - - - -
-
- -
- - {L_WON} - {L_DRAW} - {L_LOST} -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{L_DATE}{L_GR}{L_VS}{L_RESULT}
{match.MATCH_TIME}{match.GROUP}{match.HOME_NAME}:{match.GUEST_NAME}{match.GOALS_HOME}:{match.GOALS_GUEST}
-
- -
-
{S_ERROR_MESSAGE}
-
- -
- {L_CLOSE_WINDOW} -
-
+ + + +
+
+ +
+ + {L_WON} - {L_DRAW} - {L_LOST} +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_DATE}{L_GR}{L_VS}{L_RESULT}
{match.MATCH_TIME}{match.GROUP}{match.HOME_NAME}:{match.GUEST_NAME}{match.GOALS_HOME}:{match.GOALS_GUEST}
+
+ +
+
{S_ERROR_MESSAGE}
+
+ +
+ {L_CLOSE_WINDOW} +
+
\ No newline at end of file diff --git a/styles/prosilver/theme/football.css b/styles/prosilver/theme/football.css index 441bc04..06eda7d 100644 --- a/styles/prosilver/theme/football.css +++ b/styles/prosilver/theme/football.css @@ -4,8 +4,8 @@ * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 * ----------------------------------------------------------------------------------------- */ .fa-paragraph:before { - font-weight: bold; - content: '§'; + font-weight: bold; + content: '§'; } ul.dropdown-contents i.icon { @@ -14,8 +14,8 @@ ul.dropdown-contents i.icon { } .football-table-scroll { - overflow-x:auto; - overflow-y:visible; + overflow-x:auto; + overflow-y:visible; width: 100%; } diff --git a/styles/prosilver/theme/football_side.css b/styles/prosilver/theme/football_side.css index 185870e..fe5b9c7 100644 --- a/styles/prosilver/theme/football_side.css +++ b/styles/prosilver/theme/football_side.css @@ -1,42 +1,42 @@ -#footballside { - width: 200px; - position: fixed; - z-index: 1001; - left: -185px; - top: 100px; - min-height: 200px; - background-color: #fff; -} -* html #footballside { - position: absolute; - height: 200px; -} -#footballside .forabg { - margin-bottom: 0; -} -#footballside:hover, #footballside.iehover { - left: -5px; -} -#footballside ul { - list-style: none; - margin-right: 15px; -} -#footballside li { - padding: 3px; -} -* html #footballside li.header, * html #footballside li.header dl, * html #footballside li.header dl dt { - height: 18px; -} -#footballside li.header { - padding: 0 5px; -} -#dirty { - margin: 0; - padding: 10px 0; - position: relative; - float: right; - right: 0; - text-align: center; - font-weight: bold; - color: #FFF; +#footballside { + width: 200px; + position: fixed; + z-index: 1001; + left: -185px; + top: 100px; + min-height: 200px; + background-color: #fff; +} +* html #footballside { + position: absolute; + height: 200px; +} +#footballside .forabg { + margin-bottom: 0; +} +#footballside:hover, #footballside.iehover { + left: -5px; +} +#footballside ul { + list-style: none; + margin-right: 15px; +} +#footballside li { + padding: 3px; +} +* html #footballside li.header, * html #footballside li.header dl, * html #footballside li.header dl dt { + height: 18px; +} +#footballside li.header { + padding: 0 5px; +} +#dirty { + margin: 0; + padding: 10px 0; + position: relative; + float: right; + right: 0; + text-align: center; + font-weight: bold; + color: #FFF; } \ No newline at end of file diff --git a/styles/prosilver/theme/fullscreen.css b/styles/prosilver/theme/fullscreen.css index 4a8d09f..c0b2e18 100644 --- a/styles/prosilver/theme/fullscreen.css +++ b/styles/prosilver/theme/fullscreen.css @@ -1,15 +1,15 @@ -/* ----------------------------------------------------------------------------------------- - * @package phpBB Extension - Football Football - * @copyright (c) 2016 football (http://football.bplaced.net) - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 - * ----------------------------------------------------------------------------------------- */ -#wrap { - max-width: none !important; - margin: 0; - padding: 5px !important; -} - -body { - padding: 0px !important; - -} +/* ----------------------------------------------------------------------------------------- + * @package phpBB Extension - Football Football + * @copyright (c) 2016 football (http://football.bplaced.net) + * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 + * ----------------------------------------------------------------------------------------- */ +#wrap { + max-width: none !important; + margin: 0; + padding: 5px !important; +} + +body { + padding: 0px !important; + +} diff --git a/styles/prosilver/theme/images/index.htm b/styles/prosilver/theme/images/index.htm index e0cc5f3..ee1f723 100644 --- a/styles/prosilver/theme/images/index.htm +++ b/styles/prosilver/theme/images/index.htm @@ -1,10 +1,10 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/xml/de.txt b/xml/de.txt index 3796712..084494a 100644 --- a/xml/de.txt +++ b/xml/de.txt @@ -1,71 +1,71 @@ -dir=ltr -foot=Copyright © 2011 phpBB3 Football Extension. -s_title=Spielpläne dieser Seite -l_title=Spielplan -h1l=Der Spielplan -h1s=Auf dieser Seite zum Download angebotene Spielpläne -h3-pointswins=Punkte und Gewinne -link-l=Sprache -l-l=Liga -nls=Keine Spielpläne vorhanden -nll=Keine Spielplandaten vorhanden -s-fixl=Spielpläne der Saison -s-season=Saison -slg=Sprache auswählen: -t-leagues=Ligadaten -t-matchdays=Spieltage -t-matches=Spielpaarungen -t-seasons=Saisondaten -t-teams=Mannschaften -tf-match_datetime=Datum -tf-match_no=SpNr -tf-match_matchday=SpTag -tf-match=Begegnung -tf-result=Ergebnis -tf-extratime=Verl. -tf-match_status=Status -tf-group=Gruppe -tf-ko=KO -tf-formula=Formel -tf-team_id=Team-ID -tf-team_name=Mannschaftsbezeichnung -tf-team_name_short=Kurzbezeichnung -tf-team_symbol=Wappen -tf-group_id=Gruppe -tf-participate=Teiln. bis Spieltag -tf-league=Saison -tf-league_name=Liga Bezeichnung -tf-league_name_short=Liga Kürzel -tf-league_type=Typ -tf-matchdays=Spieltage -tf-matches_on_matchday=Spiele/Sptag -tf-win_result=G. Volltreffer -tf-win_result_02=G. Volltreffer 02 -tf-win_matchday=G. Spieltag -tf-win_season=G. Saison -tf-points_mode=P. Modus -tf-points_result=P. Volltreffer -tf-points_tendency=P. Tendenz -tf-points_diff=P. Differenz -tf-points_last=P. Nichttipper -tf-join_by_user=User Beitritt -tf-join_in_season=Beitritt in Saison -tf-bet_in_time=Tippen bis Spielbeginn -tf-rules_post_id=Regeln -tf-bet_ko_type=Tippart -tf-bet_points=Einsatz -tf-matchday=Spieltag -tf-status=Status -tf-delivery_date=1. Abgabetermin -tf-delivery_date_2=2. Abgabetermin -tf-delivery_date_3=3. Abgabetermin -tf-matchday_name=Spieltagsbezeichnung -tf-matches=Anzahl Spiele -tf-season=Saison -tf-season_name=Saison Bezeichnung -tf-season_name_short=Saison Kurzbezeichnung -tnl=Keine Ligadaten vorhanden -tnmd=Keine Spieltagsdaten vorhanden -tnm=Keine Spiele vorhanden -tns=Keine Saisondaten vorhanden +dir=ltr +foot=Copyright © 2011 phpBB3 Football Extension. +s_title=Spielpläne dieser Seite +l_title=Spielplan +h1l=Der Spielplan +h1s=Auf dieser Seite zum Download angebotene Spielpläne +h3-pointswins=Punkte und Gewinne +link-l=Sprache +l-l=Liga +nls=Keine Spielpläne vorhanden +nll=Keine Spielplandaten vorhanden +s-fixl=Spielpläne der Saison +s-season=Saison +slg=Sprache auswählen: +t-leagues=Ligadaten +t-matchdays=Spieltage +t-matches=Spielpaarungen +t-seasons=Saisondaten +t-teams=Mannschaften +tf-match_datetime=Datum +tf-match_no=SpNr +tf-match_matchday=SpTag +tf-match=Begegnung +tf-result=Ergebnis +tf-extratime=Verl. +tf-match_status=Status +tf-group=Gruppe +tf-ko=KO +tf-formula=Formel +tf-team_id=Team-ID +tf-team_name=Mannschaftsbezeichnung +tf-team_name_short=Kurzbezeichnung +tf-team_symbol=Wappen +tf-group_id=Gruppe +tf-participate=Teiln. bis Spieltag +tf-league=Saison +tf-league_name=Liga Bezeichnung +tf-league_name_short=Liga Kürzel +tf-league_type=Typ +tf-matchdays=Spieltage +tf-matches_on_matchday=Spiele/Sptag +tf-win_result=G. Volltreffer +tf-win_result_02=G. Volltreffer 02 +tf-win_matchday=G. Spieltag +tf-win_season=G. Saison +tf-points_mode=P. Modus +tf-points_result=P. Volltreffer +tf-points_tendency=P. Tendenz +tf-points_diff=P. Differenz +tf-points_last=P. Nichttipper +tf-join_by_user=User Beitritt +tf-join_in_season=Beitritt in Saison +tf-bet_in_time=Tippen bis Spielbeginn +tf-rules_post_id=Regeln +tf-bet_ko_type=Tippart +tf-bet_points=Einsatz +tf-matchday=Spieltag +tf-status=Status +tf-delivery_date=1. Abgabetermin +tf-delivery_date_2=2. Abgabetermin +tf-delivery_date_3=3. Abgabetermin +tf-matchday_name=Spieltagsbezeichnung +tf-matches=Anzahl Spiele +tf-season=Saison +tf-season_name=Saison Bezeichnung +tf-season_name_short=Saison Kurzbezeichnung +tnl=Keine Ligadaten vorhanden +tnmd=Keine Spieltagsdaten vorhanden +tnm=Keine Spiele vorhanden +tns=Keine Saisondaten vorhanden tnt=Keine Mannschaftsdaten vorhanden \ No newline at end of file diff --git a/xml/en.txt b/xml/en.txt index 0f3a7d0..631319b 100644 --- a/xml/en.txt +++ b/xml/en.txt @@ -1,71 +1,71 @@ -dir=ltr -foot=Copyright © 2011 phpBB3 Football Extension. -s_title=All fixtures of this site -l_title=Fixture list -h1l=The fixture list -h1s=On this page downloadable fixtures -h3-pointswins=Points and wins -link-l=Language -l-l=League -nls=No fixture lists available -nll=No fixture list data available -s-fixl=Fixture Lists of the season -s-season=Season -slg=Choose language: -t-leagues=League data -t-matchdays=Rounds -t-matches=Fixtures -t-seasons=Season data -t-teams=Teams -tf-match_datetime=Date -tf-match_no=MatchNo -tf-match_matchday=Round -tf-match=Match -tf-result=Score -tf-extratime=Extratime -tf-match_status=Status -tf-group=Group -tf-ko=KO -tf-formula=Formula -tf-team_id=Team ID -tf-team_name=Team Name -tf-team_name_short=Shortname -tf-team_symbol=Coat of Arms -tf-group_id=Group -tf-participate=To participate -tf-league=Season -tf-league_name=League Name -tf-league_name_short=League shortcut -tf-league_type=Type -tf-matchdays=Rounds -tf-matches_on_matchday=Games / Round -tf-win_result=W. hit -tf-win_result_02=W. hit 02 -tf-win_matchday=W. round -tf-win_season=W. season -tf-points_mode=P. mode -tf-points_result=P. hit -tf-points_tendency=P. tendency -tf-points_diff=P. difference -tf-points_last=P. no bet -tf-join_by_user=User accession -tf-join_in_season=Accession season -tf-bet_in_time=Tap to kick-off -tf-rules_post_id=Rules -tf-bet_ko_type=Bet type -tf-bet_points=Bet -tf-matchday=Round -tf-status=Status -tf-delivery_date=1. Delivery -tf-delivery_date_2=2. Delivery -tf-delivery_date_3=3. Delivery -tf-matchday_name=Round Description -tf-matches=No of matches -tf-season=Season -tf-season_name=Season name -tf-season_name_short=Season shortname -tnl=No league available -tnmd=No round available -tnm=No matches available -tns=No season available -tnt=No team available +dir=ltr +foot=Copyright © 2011 phpBB3 Football Extension. +s_title=All fixtures of this site +l_title=Fixture list +h1l=The fixture list +h1s=On this page downloadable fixtures +h3-pointswins=Points and wins +link-l=Language +l-l=League +nls=No fixture lists available +nll=No fixture list data available +s-fixl=Fixture Lists of the season +s-season=Season +slg=Choose language: +t-leagues=League data +t-matchdays=Rounds +t-matches=Fixtures +t-seasons=Season data +t-teams=Teams +tf-match_datetime=Date +tf-match_no=MatchNo +tf-match_matchday=Round +tf-match=Match +tf-result=Score +tf-extratime=Extratime +tf-match_status=Status +tf-group=Group +tf-ko=KO +tf-formula=Formula +tf-team_id=Team ID +tf-team_name=Team Name +tf-team_name_short=Shortname +tf-team_symbol=Coat of Arms +tf-group_id=Group +tf-participate=To participate +tf-league=Season +tf-league_name=League Name +tf-league_name_short=League shortcut +tf-league_type=Type +tf-matchdays=Rounds +tf-matches_on_matchday=Games / Round +tf-win_result=W. hit +tf-win_result_02=W. hit 02 +tf-win_matchday=W. round +tf-win_season=W. season +tf-points_mode=P. mode +tf-points_result=P. hit +tf-points_tendency=P. tendency +tf-points_diff=P. difference +tf-points_last=P. no bet +tf-join_by_user=User accession +tf-join_in_season=Accession season +tf-bet_in_time=Tap to kick-off +tf-rules_post_id=Rules +tf-bet_ko_type=Bet type +tf-bet_points=Bet +tf-matchday=Round +tf-status=Status +tf-delivery_date=1. Delivery +tf-delivery_date_2=2. Delivery +tf-delivery_date_3=3. Delivery +tf-matchday_name=Round Description +tf-matches=No of matches +tf-season=Season +tf-season_name=Season name +tf-season_name_short=Season shortname +tnl=No league available +tnmd=No round available +tnm=No matches available +tns=No season available +tnt=No team available diff --git a/xml/index.htm b/xml/index.htm index e0cc5f3..ee1f723 100644 --- a/xml/index.htm +++ b/xml/index.htm @@ -1,10 +1,10 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/xml/languages.txt b/xml/languages.txt index 4e0e64d..7842bbb 100644 --- a/xml/languages.txt +++ b/xml/languages.txt @@ -1,2 +1,2 @@ -de=Deutsch -en=English +de=Deutsch +en=English diff --git a/xml/league-data-0.9.4.xsd b/xml/league-data-0.9.4.xsd index 884c8c3..6adddeb 100644 --- a/xml/league-data-0.9.4.xsd +++ b/xml/league-data-0.9.4.xsd @@ -1,100 +1,100 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xml/league.php b/xml/league.php index 4b3e4ec..bcd1c9e 100644 --- a/xml/league.php +++ b/xml/league.php @@ -1,150 +1,150 @@ -session_begin(); - $auth->acl($user->data); - $user->setup(); - $user->add_lang_ext('football/football', 'info_acp_update'); - include('../includes/constants.' . $phpEx); - - if ($config['board_disable']) - { - $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE'; - trigger_error($message); - } - - $season = $request->variable('season', 0); - $league = $request->variable('league', 0); - if (!$season or !$league) - { - exit; - } - - $download = $request->variable('d', false); - $string = xml_data($season, $league); - - if ( $string == '') - { - trigger_error('Fehler! Die XML-Datei konnte nicht erzeugt werden.'); - } - - if ($download) - { - // Download header - header('Pragma: no-cache'); - header('Content-Type: application/xml name=\"league_' . $season . '_' . $league . '.xml'); - header('Content-disposition: attachment; filename=league_' . $season . '_' . $league . '.xml'); - } - else - { - // XML header - header ("content-type: text/xml"); - } - echo $string; -} - -function xml_data($season, $league) -{ - global $db, $phpbb_root_path, $phpEx, $table_prefix; - - $xml_data = ''; - - $xml_league_data = xml_table($season, $league, 'FOOTB_SEASONS'); - $xml_league_data .= xml_table($season, $league, 'FOOTB_LEAGUES'); - $xml_league_data .= xml_table($season, $league, 'FOOTB_MATCHDAYS'); - $xml_league_data .= xml_table($season, $league, 'FOOTB_TEAMS'); - $xml_league_data .= xml_table($season, $league, 'FOOTB_MATCHES'); - - if ( $xml_league_data <> '' ) - { - $xml_data = '' . "\n"; - $xml_data .= '' . "\n"; - $xml_data .= '' . "\n"; - $xml_data .= '' . "\n"; - $xml_data .= $xml_league_data; - $xml_data .= ''; - } - return $xml_data; -} - - -function xml_table($season, $league, $table) -{ - global $db, $phpbb_root_path, $phpEx, $table_prefix; - - $xml_table = ''; - $skip_fields = array("trend", "odd_1", "odd_x", "odd_2", "rating"); - - $table_name = constant($table); - $where_league = ($table == 'FOOTB_SEASONS') ? '' : " AND league = $league"; - $sql = 'SELECT * - FROM ' . $table_name . " - WHERE season = $season - $where_league - ORDER BY 1, 2, 3;"; - if ( $result = $db->sql_query($sql) ) - { - while($row = $db->sql_fetchrow($result)) - { - $xml_table .= " <" . strtolower($table) . ">" . "\n"; - foreach($row as $fieldname => $value) - { - switch ($fieldname) - { - case 'win_result': - case 'win_result_02': - case 'win_matchday': - case 'win_season': - case 'points_last': - case 'join_by_user': - case 'join_in_season': - case 'rules_post_id': - case 'bet_points': - { - $value = 0; - } - break; - case 'status': - { - // only match status 0-3 - $value = ($value > 3) ? $value - 3 : $value; - } - break; - } - if (!in_array($fieldname, $skip_fields, TRUE) ) - { - if (!isset($value) || is_null($value)) - { - $xml_table .= " <$fieldname>'NULL'" . "\n"; - } - else - { - $xml_table .= " <$fieldname>" . $value . "" . "\n"; - } - } - } - $xml_table .= " " . "\n"; - } - } - return $xml_table; -} -?> \ No newline at end of file +session_begin(); + $auth->acl($user->data); + $user->setup(); + $user->add_lang_ext('football/football', 'info_acp_update'); + include('../includes/constants.' . $phpEx); + + if ($config['board_disable']) + { + $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE'; + trigger_error($message); + } + + $season = $request->variable('season', 0); + $league = $request->variable('league', 0); + if (!$season or !$league) + { + exit; + } + + $download = $request->variable('d', false); + $string = xml_data($season, $league); + + if ( $string == '') + { + trigger_error('Fehler! Die XML-Datei konnte nicht erzeugt werden.'); + } + + if ($download) + { + // Download header + header('Pragma: no-cache'); + header('Content-Type: application/xml name=\"league_' . $season . '_' . $league . '.xml'); + header('Content-disposition: attachment; filename=league_' . $season . '_' . $league . '.xml'); + } + else + { + // XML header + header ("content-type: text/xml"); + } + echo $string; +} + +function xml_data($season, $league) +{ + global $db, $phpbb_root_path, $phpEx, $table_prefix; + + $xml_data = ''; + + $xml_league_data = xml_table($season, $league, 'FOOTB_SEASONS'); + $xml_league_data .= xml_table($season, $league, 'FOOTB_LEAGUES'); + $xml_league_data .= xml_table($season, $league, 'FOOTB_MATCHDAYS'); + $xml_league_data .= xml_table($season, $league, 'FOOTB_TEAMS'); + $xml_league_data .= xml_table($season, $league, 'FOOTB_MATCHES'); + + if ( $xml_league_data <> '' ) + { + $xml_data = '' . "\n"; + $xml_data .= '' . "\n"; + $xml_data .= '' . "\n"; + $xml_data .= '' . "\n"; + $xml_data .= $xml_league_data; + $xml_data .= ''; + } + return $xml_data; +} + + +function xml_table($season, $league, $table) +{ + global $db, $phpbb_root_path, $phpEx, $table_prefix; + + $xml_table = ''; + $skip_fields = array("trend", "odd_1", "odd_x", "odd_2", "rating"); + + $table_name = constant($table); + $where_league = ($table == 'FOOTB_SEASONS') ? '' : " AND league = $league"; + $sql = 'SELECT * + FROM ' . $table_name . " + WHERE season = $season + $where_league + ORDER BY 1, 2, 3;"; + if ( $result = $db->sql_query($sql) ) + { + while($row = $db->sql_fetchrow($result)) + { + $xml_table .= " <" . strtolower($table) . ">" . "\n"; + foreach($row as $fieldname => $value) + { + switch ($fieldname) + { + case 'win_result': + case 'win_result_02': + case 'win_matchday': + case 'win_season': + case 'points_last': + case 'join_by_user': + case 'join_in_season': + case 'rules_post_id': + case 'bet_points': + { + $value = 0; + } + break; + case 'status': + { + // only match status 0-3 + $value = ($value > 3) ? $value - 3 : $value; + } + break; + } + if (!in_array($fieldname, $skip_fields, TRUE) ) + { + if (!isset($value) || is_null($value)) + { + $xml_table .= " <$fieldname>'NULL'" . "\n"; + } + else + { + $xml_table .= " <$fieldname>" . $value . "" . "\n"; + } + } + } + $xml_table .= " " . "\n"; + } + } + $db->sql_freeresult($result); + return $xml_table; +} diff --git a/xml/seasons-data-0.9.4.xsd b/xml/seasons-data-0.9.4.xsd index fc830a9..c62750d 100644 --- a/xml/seasons-data-0.9.4.xsd +++ b/xml/seasons-data-0.9.4.xsd @@ -1,28 +1,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xml/seasons.php b/xml/seasons.php index c8befe3..757f022 100644 --- a/xml/seasons.php +++ b/xml/seasons.php @@ -1,101 +1,101 @@ -session_begin(); - $auth->acl($user->data); - $user->setup(); - $user->add_lang_ext('football/football', 'info_acp_update'); - include('../includes/constants.' . $phpEx); - - if ($config['board_disable']) - { - $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE'; - trigger_error($message); - } - - //Check Access Code - global $code; - $code = $request->variable('code', ''); - if (strcmp($code, trim($config['football_update_code'])) <> 0) - { - trigger_error('ERROR_XML_CODE'); - } - - $string = xml_seasons(); - - if ( $string == '') - { - trigger_error('ERROR_XML_CREATE'); - } - - header ("content-type: text/xml"); - echo $string; -} - -function xml_seasons() -{ - global $db, $phpbb_root_path, $phpEx, $table_prefix, $code, $ext_path; - - $xml_seasons = ''; - $sql = 'SELECT s.season, s.season_name_short, l.league, l.league_name - FROM ' . FOOTB_SEASONS . ' AS s - JOIN ' . FOOTB_LEAGUES . ' AS l ON (l.season = s.season) - WHERE 1 - ORDER BY s.season DESC, l.league ASC;'; - $last_season = 0; - $data = false; - if ( $result = $db->sql_query($sql) ) - { - $xml_seasons = '' . "\n"; - $xml_seasons .= '' . "\n"; - $xml_seasons .= '' . "\n"; - $xml_seasons .= '' . "\n"; - $xml_seasons .= ' ' . $code . "\n"; - - while($row = $db->sql_fetchrow($result)) - { - if ( $row['season'] <> $last_season ) - { - if ($data) - { - $xml_seasons .= ' ' . "\n"; - } - $xml_seasons .= ' ' . "\n"; - $xml_seasons .= " " . $row['season'] . "" . "\n"; - $xml_seasons .= " " . $row['season_name_short'] . "" . "\n"; - $data = true; - $last_season = $row['season']; - } - $xml_seasons .= ' ' . "\n"; - $xml_seasons .= " " . $row['league'] . "" . "\n"; - $xml_seasons .= " " . $row['league_name'] . "" . "\n"; - $xml_seasons .= ' ' . "\n"; - } - if ($data) - { - $xml_seasons .= ' ' . "\n"; - } - $xml_seasons .= '' . "\n"; - } - return $xml_seasons; -} -?> \ No newline at end of file +session_begin(); + $auth->acl($user->data); + $user->setup(); + $user->add_lang_ext('football/football', 'info_acp_update'); + include('../includes/constants.' . $phpEx); + + if ($config['board_disable']) + { + $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE'; + trigger_error($message); + } + + //Check Access Code + global $code; + $code = $request->variable('code', ''); + if (strcmp($code, trim($config['football_update_code'])) <> 0) + { + trigger_error('ERROR_XML_CODE'); + } + + $string = xml_seasons(); + + if ( $string == '') + { + trigger_error('ERROR_XML_CREATE'); + } + + header ("content-type: text/xml"); + echo $string; +} + +function xml_seasons() +{ + global $db, $phpbb_root_path, $phpEx, $table_prefix, $code, $ext_path; + + $xml_seasons = ''; + $sql = 'SELECT s.season, s.season_name_short, l.league, l.league_name + FROM ' . FOOTB_SEASONS . ' AS s + JOIN ' . FOOTB_LEAGUES . ' AS l ON (l.season = s.season) + WHERE 1 + ORDER BY s.season DESC, l.league ASC;'; + $last_season = 0; + $data = false; + if ( $result = $db->sql_query($sql) ) + { + $xml_seasons = '' . "\n"; + $xml_seasons .= '' . "\n"; + $xml_seasons .= '' . "\n"; + $xml_seasons .= '' . "\n"; + $xml_seasons .= ' ' . $code . "\n"; + + while($row = $db->sql_fetchrow($result)) + { + if ( $row['season'] <> $last_season ) + { + if ($data) + { + $xml_seasons .= ' ' . "\n"; + } + $xml_seasons .= ' ' . "\n"; + $xml_seasons .= " " . $row['season'] . "" . "\n"; + $xml_seasons .= " " . $row['season_name_short'] . "" . "\n"; + $data = true; + $last_season = $row['season']; + } + $xml_seasons .= ' ' . "\n"; + $xml_seasons .= " " . $row['league'] . "" . "\n"; + $xml_seasons .= " " . $row['league_name'] . "" . "\n"; + $xml_seasons .= ' ' . "\n"; + } + if ($data) + { + $xml_seasons .= ' ' . "\n"; + } + $xml_seasons .= '' . "\n"; + } + $db->sql_freeresult($result); + return $xml_seasons; +}