Version 0.9.9

- several bugfixes
- Code cleaning
This commit is contained in:
football
2021-04-04 22:15:15 +02:00
parent 7d8b92f1df
commit a2ea3364a4
154 changed files with 16463 additions and 16463 deletions

3
.gitignore vendored
View File

@@ -63,3 +63,6 @@ Icon
/images/arrow_down.gif
/images/arrow_up.gif
/migrations/v099_beta1.php
/.buildpath
/.project
/.settings/

View File

@@ -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 .= '<option value="' . $row['league'] . '"' . $selected . '>' . $row['league_name'] . '</option>';
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'] == '') ? '&nbsp;' : $user_bet['points'],
'BET' => $bet_home. ':'. $bet_guest,
'COLOR_STYLE' => $colorstyle_bet,
'POINTS' => ($user_bet['points'] == '') ? '&nbsp;' : $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'] == '') ? '&nbsp;' : $user_bet['points'],
'BET' => $bet_home. ':'. $bet_guest,
'COLOR_STYLE' => $colorstyle_bet,
'POINTS' => ($user_bet['points'] == '') ? '&nbsp;' : $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),
)
);
}
}
?>

View File

@@ -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 . "&amp;s=$season&amp;l=$league",
'U_BACK' => $this->u_action. "&amp;s=$season&amp;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&amp;action=edit&amp;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
}
}
}
?>

View File

@@ -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('<br />', $success) : '',
@@ -750,4 +750,3 @@ class bets_module
);
}
}
?>

View File

@@ -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
}
}
}
?>

View File

@@ -20,7 +20,7 @@ class football_info
'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')),
'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')),
),
);

View File

@@ -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' => '<img src="' . $phpbb_admin_path . 'images/icon_up.gif" style="vertical-align: middle;" alt="' . $user->lang['BACK_TO_TOP'] . '" title="' . $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
}
}
?>

View File

@@ -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('<br />', $error) : '',
'S_SUCCESS' => (sizeof($success)) ? true : false,
@@ -252,4 +252,3 @@ class ko_module
);
}
}
?>

View File

@@ -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
}
}
}
?>

View File

@@ -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
}
}
}
?>

View File

@@ -124,12 +124,12 @@ class matches_module
$league_options .= '<option value="' . $row['league'] . '"' . $selected . '>' . $row['league_name'] . '</option>';
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 . "&amp;s=$season&amp;l=$league&amp;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
}
}
}
?>

View File

@@ -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('<br />', $success) : '',
@@ -815,5 +815,3 @@ class results_module
);
}
}
?>

View File

@@ -335,6 +335,7 @@ class seasons_module
'SEASON_SHORT' => $season_row['season_name_short'],
'U_BACK' => $u_back,
'U_ACTION' => "{$this->u_action}&amp;action=$action&amp;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
}
}
}
?>

View 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
);
}
}
?>

View File

@@ -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 . "&amp;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('<br />', $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 .= '<input type="hidden" name="row_' . $id . '" value="' . urlencode(serialize($diff)) . '" />';
$tpl .= '<input type="hidden" name="row_' . $id . '" value="' . urlencode(json_encode($diff)) . '" />';
// match status update and database
if (substr($id, 0, 13) == 'FOOTB_MATCHES')
{
@@ -1160,7 +1160,7 @@ class update_module
else
{
// Insert team
$tpl .= '<input type="hidden" name="' . $id . '[]" value="' . urlencode(serialize($diff)) . '" />';
$tpl .= '<input type="hidden" name="' . $id . '[]" value="' . urlencode(json_encode($diff)) . '" />';
}
}
@@ -1171,7 +1171,7 @@ class update_module
{
if (sizeof($table_row))
{
$color_open = '<span title= "' . sprintf($user->lang['CURRENT_VALUE']) . ': ' . htmlspecialchars($table_row[$key], ENT_COMPAT, 'UTF-8') . '" style="color: red;">* ';
$color_open = '<span title= "' . sprintf($user->lang['CURRENT_VALUE']) . ': ' . utf8_htmlspecialchars($table_row[$key]) . '" style="color: red;">* ';
$color_close = '</span>';
}
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 . '&nbsp;</td>' :
'<td>' . $color_open . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . $color_close . '<br />';
$tpl_ary[$order[$key]] = ($order[$key] % 2) ? $color_open . utf8_htmlspecialchars($value) . $color_close . '&nbsp;</td>' :
'<td>' . $color_open . utf8_htmlspecialchars($value) . $color_close . '<br />';
}
else
{
@@ -1198,14 +1198,14 @@ class update_module
// Write table fields
if (sizeof($table_row))
{
$tpl .= '<td title= "' . htmlspecialchars($table_row[$key], ENT_COMPAT, 'UTF-8') . '">' .
$color_open . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . $color_close .
$tpl .= '<td title= "' . utf8_htmlspecialchars($table_row[$key]) . '">' .
$color_open . utf8_htmlspecialchars($value) . $color_close .
'</td>';
}
else
{
$tpl .= '<td title= "' . sprintf($user->lang['NEW_TEAM']) . '">' .
$color_open . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . $color_close .
$color_open . utf8_htmlspecialchars($value) . $color_close .
'</td>';
}
}
@@ -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') . '&nbsp;</td>' :
'<td>' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '<br />';
$tpl_ary[$order[$key]] = ($order[$key] % 2) ? utf8_htmlspecialchars($value) . '&nbsp;</td>' :
'<td>' . utf8_htmlspecialchars($value) . '<br />';
}
else
{
if ($key <> 'season' and $key <> 'league')
{
// Write XML-table fields
$tpl .= '<td>' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '</td>';
$tpl .= '<td>' . utf8_htmlspecialchars($value) . '</td>';
}
}
}
@@ -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;
}
}
?>

View File

@@ -94,7 +94,7 @@ $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));
$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'])
{
@@ -492,4 +492,3 @@ $template->assign_vars(array(
'TOTAL_USERS' => ($total_users == 1) ? $user->lang['VIEW_BET_USER'] : sprintf($user->lang['VIEW_BET_USERS'], $total_users),
)
);
?>

View File

@@ -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,

View File

@@ -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',

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -17,7 +17,7 @@ $action='';
if (!$season OR !$league)
{
redirect($this->helper->route('football_main_controller', array('side' => 'bet')));
redirect($this->helper->route('football_football_controller', array('side' => 'bet')));
}
else
{
@@ -45,8 +45,6 @@ else
}
else
{
redirect($this->helper->route('football_main_controller', array('side' => 'bet')));
redirect($this->helper->route('football_football_controller', array('side' => 'bet')));
}
}
?>

View File

@@ -114,7 +114,7 @@ while($row = $db->sql_fetchrow($result))
$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'])),
'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'],

View File

@@ -113,7 +113,7 @@ $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"));
$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);

View File

@@ -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'] == '') ? '&nbsp;' : $row['goals_guest'];
$kogoals_home = ($row['kogoals_home'] == '') ? '&nbsp;' : $row['kogoals_home'];
$kogoals_guest = ($row['kogoals_guest'] == '') ? '&nbsp;' : $row['kogoals_guest'];
$bet_home = ($row['bet_home'] == '') ? '&nbsp;' : $row['bet_home'];
$bet_guest = ($row['bet_guest'] == '') ? '&nbsp;' : $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,

View File

@@ -29,7 +29,7 @@ if ($league <> 0)
AND r.league = $league
AND r.matchday = $matchday
AND r.status IN (2,3)
ORDER BY rank ASC, LOWER(u.username) ASC";
ORDER BY r.rank ASC, LOWER(u.username) ASC";
$result = $db->sql_query($sql);
while($row = $db->sql_fetchrow($result))
@@ -69,4 +69,3 @@ if ($league <> 0)
'WIN_NAME' => $config['football_win_name'],
));
}
?>

View File

@@ -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'],
)
);
?>

View File

@@ -39,7 +39,7 @@ switch ($mode)
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";
GROUP BY b.user_id";
$result = $db->sql_query($sql);
$rows = $db->sql_fetchrowset($result);
@@ -61,7 +61,7 @@ switch ($mode)
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
GROUP BY r.user_id
ORDER BY r.user_id ASC";
$result = $db->sql_query($sql);
@@ -89,7 +89,7 @@ switch ($mode)
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
GROUP BY r.user_id
ORDER BY points_total DESC, LOWER(u.username) ASC";
$result = $db->sql_query($sql);
@@ -114,7 +114,7 @@ switch ($mode)
$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'));
$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);
@@ -171,9 +171,9 @@ switch ($mode)
'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_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_main_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'compare')),
'S_LINK_COMPARE' => $this->helper->route('football_football_controller', array('side' => 'ranks_total', 's' => $season, 'l' => $league, 'm' => $matchday, 'mode' => 'compare')),
)
);
break;
@@ -227,8 +227,8 @@ switch ($mode)
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";
GROUP BY r.season, r.user_id
ORDER BY r.user_id ASC, r.season ASC";
$result = $db->sql_query($sql);
@@ -275,7 +275,7 @@ switch ($mode)
$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'));
$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);
@@ -334,8 +334,8 @@ switch ($mode)
'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_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' => '',
)
);
@@ -369,7 +369,7 @@ switch ($mode)
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);
$rows = $db->sql_fetchrowset($result);
@@ -423,7 +423,7 @@ switch ($mode)
AND r.league = $league
AND r.matchday = $matchday
AND r.status IN (2,3)
GROUP BY user_id
GROUP BY r.user_id
ORDER BY r.points_total DESC, LOWER(u.username) ASC";
$result = $db->sql_query($sql);
@@ -447,7 +447,7 @@ switch ($mode)
$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));
$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'])
{
@@ -520,8 +520,8 @@ switch ($mode)
'ROW_CLASS' => $row_class,
'RANK' => $rank,
'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' => $curr_rank['user_id'],
@@ -554,11 +554,9 @@ switch ($mode)
'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')),
'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;
}
?>

View File

@@ -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,

View File

@@ -173,6 +173,7 @@ if ($data_rules)
'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/'),
@@ -186,6 +187,7 @@ if ($data_rules)
'LINK_RULES' => sprintf($user->lang['LINK_RULES'], $link_rules),
'SEASONNAME' => $season_info['season_name'],
'LEAGUENAME' => $league_name,
'BET_POINTS' => $league_info['bet_points'],
)
);
@@ -198,6 +200,7 @@ else
'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/'),
@@ -223,5 +226,3 @@ $template->set_filenames(array(
// $template->display('popup');
page_footer();
?>

View File

@@ -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"
}
}
}

View File

@@ -1,4 +1,4 @@
football_main_controller:
football_football_controller:
path: /football/{side}
defaults: { _controller: football.football.controller:handle }

View File

@@ -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:

View File

@@ -45,7 +45,7 @@ class main
/* @var \phpbb\user */
protected $user;
/** @var \phpbb\pagination */
/* @var \phpbb\pagination */
protected $pagination;
/* @var phpBB root path */
@@ -750,18 +750,18 @@ class main
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';
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 = htmlspecialchars($row['season_name_short']);
$season_name = utf8_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_SEASON' => utf8_htmlspecialchars($row['season']),
'S_SEASONNAME' => utf8_htmlspecialchars($row['season_name_short']),
'S_SELECTED' => $selected));
}
$db->sql_freeresult($result);
@@ -945,9 +945,9 @@ class main
$print_start = ($start) ? "start=$start&amp;" : '';
$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)),
'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,
@@ -966,13 +966,13 @@ class main
'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_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_main_controller', array('side' => $side, 's' => $season, 'l' => $league)),
'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,

View File

@@ -39,7 +39,7 @@ class popup
/* @var \phpbb\user */
protected $user;
/** @var \phpbb\pagination */
/* @var \phpbb\pagination */
protected $pagination;
/* @var phpBB root path */

View File

@@ -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

View File

@@ -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)),
));
}

View File

@@ -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;
}
?>

View File

@@ -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);
@@ -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;
}
?>

View File

@@ -13,12 +13,12 @@
*/
if (!defined('IN_PHPBB'))
{
exit;
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
$lang = array();
}
// DEVELOPERS PLEASE NOTE
@@ -346,6 +346,8 @@ $lang = array_merge($lang, array(
'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',
@@ -505,5 +507,3 @@ $lang = array_merge($lang, array(
*/
'FOOTBALL_COPY' => '<a href="http://football.bplaced.net/" title="Zur Demoseite">phpBB Extension - Football Prediction League</a> Version %1s'
));
?>

View File

@@ -528,4 +528,3 @@ Datenquelle erfolgen. Benötigt man innerhalb dieser Zeit trotzdem aktualisierte
Datenquelle zu erzwingen.'
),
)));
?>

View File

@@ -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',

View File

@@ -500,4 +500,3 @@ Preliminary results from the update are not used. If these should be taken, this
updated data within that time anyway, you have to delete the cache to force a new download from the Source.'
),
)));
?>

View File

@@ -81,6 +81,7 @@ $lang = array_merge($lang, array(
'INSERT_TEAMS' => 'Insert new teams',
'LEAGUE_SHORTCUT' => 'League shortcut',
'LOAD' => 'load',
'LOG_FOOTB_UPDATE' => '<strong>Football Prediction League fixure list update</strong><br />» %s',
'MAP_TEAMS' => 'Map teams',
'MATCH_OF_GROUP' => 'Match on group',
'MATCHES' => 'Matches',

View File

@@ -16,7 +16,7 @@ class v094_beta extends \phpbb\db\migration\migration
return isset($this->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
// 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');
@@ -28,9 +28,9 @@ class v094_beta extends \phpbb\db\migration\migration
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_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),
),
@@ -38,30 +38,30 @@ class v094_beta extends \phpbb\db\migration\migration
'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',''),
'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'),
'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),
'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'),
'PRIMARY_KEY' => array('season', 'league', 'extra_no'),
'KEYS' => array(
'matchday' => array('INDEX', 'matchday'),
'eval' => array('INDEX', 'matchday_eval'),
@@ -69,55 +69,55 @@ class v094_beta extends \phpbb\db\migration\migration
),
$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),
'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'),
'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),
'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'),
'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',''),
'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'),
'PRIMARY_KEY' => array('season', 'league', 'matchday'),
'KEYS' => array(
'status' => array('INDEX', 'status'),
'date' => array('INDEX', 'delivery_date'),
@@ -125,29 +125,29 @@ class v094_beta extends \phpbb\db\migration\migration
),
$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),
'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),
'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'),
'PRIMARY_KEY' => array('season', 'league', 'match_no'),
'KEYS' => array(
'gid' => array('INDEX', 'team_id_guest'),
'hid' => array('INDEX', 'team_id_home'),
@@ -156,14 +156,14 @@ class v094_beta extends \phpbb\db\migration\migration
),
$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', ''),
'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'),
'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'),
@@ -171,17 +171,17 @@ class v094_beta extends \phpbb\db\migration\migration
),
$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),
'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'),
'PRIMARY_KEY' => array('points_id'),
'KEYS' => array(
'user' => array('INDEX', array('season', 'league', 'user_id')),
'matchday' => array('INDEX', array('season', 'league', 'matchday')),
@@ -190,49 +190,49 @@ class v094_beta extends \phpbb\db\migration\migration
),
$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),
'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'),
'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', ''),
'season' => array('USINT', 0),
'season_name' => array('VCHAR:20', ''),
'season_name_short' => array('VCHAR:10', ''),
),
'PRIMARY_KEY' => array('season'),
'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),
'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'),
'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', ''),
'team_id' => array('USINT', 0),
'team_name' => array('VCHAR:30', ''),
),
'PRIMARY_KEY' => array('team_id'),
'PRIMARY_KEY' => array('team_id'),
),
),
);
@@ -349,46 +349,46 @@ class v094_beta 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',
),
)),
@@ -398,64 +398,64 @@ class v094_beta 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',
),
)),
@@ -464,37 +464,37 @@ class v094_beta 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'
),
)),
);

View File

@@ -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'
),
)),
);

View File

@@ -8,6 +8,9 @@
<th>{L_GR}</th>
<!-- ENDIF -->
<th style="text-align: center;" colspan="5">{L_VS}</th>
<!-- IF S_USER_IS_MEMBER -->
<th style="text-align: center;" colspan="3">{L_BET_OF}</th>
<!-- ENDIF -->
<th style="text-align: center;" colspan="3">{L_RESULT} ({RESULT_EXPLAIN})</th>
<!-- IF S_DISPLAY_KO -->
<th style="text-align: center;" colspan="3">{LABEL_FINALRESULT}</th>
@@ -31,6 +34,11 @@
<td class="td_logo">{odds.LOGO_GUEST}</td>
<td class="td_team" style="cursor:pointer;" title="{L_SHOW_PLAYED}" onclick="popup('{odds.U_PLAN_GUEST}', 625,625);return false;">
{odds.GUEST_NAME}</td>
<!-- IF S_USER_IS_MEMBER -->
<td class="td_goals_home">{odds.BET_HOME}</td>
<td class="td_vs">:</td>
<td class="td_goals_guest">{odds.BET_GUEST}</td>
<!-- ENDIF -->
<td class="td_goals_home {odds.COLOR_STYLE}">{odds.GOALS_HOME}</td>
<td class="td_vs">:</td>
<td class="td_goals_guest {odds.COLOR_STYLE}">{odds.GOALS_GUEST}</td>

View File

@@ -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%;
}

View File

@@ -2,99 +2,99 @@
<!-- Football Extension by football XSD file v0.9.4 copyright 2016 football.
$Id: league-data-0.9.4.xsd 1 2016-01-01 11:11:11Z football $ -->
<xs:schema id="league-data" targetNamespace="http://football.bplaced.net/ext/football/football/xml/league-data-0.9.4.xsd" xmlns="http://football.bplaced.net/ext/football/football/xml/league-data-0.9.4.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
<xsd:element name="league-data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="footb_seasons">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="season" type="xsd:int" />
<xsd:element name="season_name" type="xsd:string" />
<xsd:element name="season_name_short" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="footb_leagues">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="season" type="xsd:int" />
<xsd:element name="league" type="xsd:int" />
<xsd:element name="league_name" type="xsd:string" />
<xsd:element name="league_name_short" type="xsd:string" />
<xsd:element name="league_type" type="xsd:int" />
<xsd:element name="matchdays" type="xsd:int" />
<xsd:element name="matches_on_matchday" type="xsd:int" />
<xsd:element name="win_result" type="xsd:int" />
<xsd:element name="win_result_02" type="xsd:int" />
<xsd:element name="win_matchday" type="xsd:int" />
<xsd:element name="win_season" type="xsd:int" />
<xsd:element name="points_mode" type="xsd:int" />
<xsd:element name="points_result" type="xsd:int" />
<xsd:element name="points_tendency" type="xsd:int" />
<xsd:element name="points_diff" type="xsd:int" />
<xsd:element name="points_last" type="xsd:int" />
<xsd:element name="join_by_user" type="xsd:int" />
<xsd:element name="join_in_season" type="xsd:int" />
<xsd:element name="bet_in_time" type="xsd:int" />
<xsd:element name="rules_post_id" type="xsd:int" />
<xsd:element name="bet_ko_type" type="xsd:int" />
<xsd:element name="bet_points" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element maxOccurs="unbounded" name="footb_matchdays">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="season" type="xsd:int" />
<xsd:element name="league" type="xsd:int" />
<xsd:element name="matchday" type="xsd:int" />
<xsd:element name="status" type="xsd:int" />
<xsd:element name="delivery_date" type="xsd:dateTime" />
<xsd:element name="delivery_date_2" type="xsd:string" />
<xsd:element name="delivery_date_3" type="xsd:string" />
<xsd:element name="matchday_name" type="xsd:string" />
<xsd:element name="matches" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element maxOccurs="unbounded" name="footb_teams">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="season" type="xsd:int" />
<xsd:element name="league" type="xsd:int" />
<xsd:element name="team_id" type="xsd:int" />
<xsd:element name="team_name" type="xsd:string" />
<xsd:element name="team_name_short" type="xsd:string" />
<xsd:element name="team_symbol" type="xsd:string" />
<xsd:element name="group_id" type="xsd:string" />
<xsd:element name="matchday" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element maxOccurs="unbounded" name="footb_matches">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="season" type="xsd:int" />
<xsd:element name="league" type="xsd:int" />
<xsd:element name="match_no" type="xsd:int" />
<xsd:element name="team_id_home" type="xsd:int" />
<xsd:element name="team_id_guest" type="xsd:int" />
<xsd:element name="goals_home" type="xsd:int" />
<xsd:element name="goals_guest" type="xsd:int" />
<xsd:element name="matchday" type="xsd:int" />
<xsd:element name="status" type="xsd:int" />
<xsd:element name="match_datetime" type="xsd:dateTime" />
<xsd:element name="group_id" type="xsd:string" />
<xsd:element name="formula_home" type="xsd:string" />
<xsd:element name="formula_guest" type="xsd:string" />
<xsd:element name="ko_match" type="xsd:int" />
<xsd:element name="goals_overtime_home" type="xsd:string" />
<xsd:element name="goals_overtime_guest" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="league-data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="footb_seasons">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="season" type="xsd:int" />
<xsd:element name="season_name" type="xsd:string" />
<xsd:element name="season_name_short" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="footb_leagues">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="season" type="xsd:int" />
<xsd:element name="league" type="xsd:int" />
<xsd:element name="league_name" type="xsd:string" />
<xsd:element name="league_name_short" type="xsd:string" />
<xsd:element name="league_type" type="xsd:int" />
<xsd:element name="matchdays" type="xsd:int" />
<xsd:element name="matches_on_matchday" type="xsd:int" />
<xsd:element name="win_result" type="xsd:int" />
<xsd:element name="win_result_02" type="xsd:int" />
<xsd:element name="win_matchday" type="xsd:int" />
<xsd:element name="win_season" type="xsd:int" />
<xsd:element name="points_mode" type="xsd:int" />
<xsd:element name="points_result" type="xsd:int" />
<xsd:element name="points_tendency" type="xsd:int" />
<xsd:element name="points_diff" type="xsd:int" />
<xsd:element name="points_last" type="xsd:int" />
<xsd:element name="join_by_user" type="xsd:int" />
<xsd:element name="join_in_season" type="xsd:int" />
<xsd:element name="bet_in_time" type="xsd:int" />
<xsd:element name="rules_post_id" type="xsd:int" />
<xsd:element name="bet_ko_type" type="xsd:int" />
<xsd:element name="bet_points" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element maxOccurs="unbounded" name="footb_matchdays">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="season" type="xsd:int" />
<xsd:element name="league" type="xsd:int" />
<xsd:element name="matchday" type="xsd:int" />
<xsd:element name="status" type="xsd:int" />
<xsd:element name="delivery_date" type="xsd:dateTime" />
<xsd:element name="delivery_date_2" type="xsd:string" />
<xsd:element name="delivery_date_3" type="xsd:string" />
<xsd:element name="matchday_name" type="xsd:string" />
<xsd:element name="matches" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element maxOccurs="unbounded" name="footb_teams">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="season" type="xsd:int" />
<xsd:element name="league" type="xsd:int" />
<xsd:element name="team_id" type="xsd:int" />
<xsd:element name="team_name" type="xsd:string" />
<xsd:element name="team_name_short" type="xsd:string" />
<xsd:element name="team_symbol" type="xsd:string" />
<xsd:element name="group_id" type="xsd:string" />
<xsd:element name="matchday" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element maxOccurs="unbounded" name="footb_matches">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="season" type="xsd:int" />
<xsd:element name="league" type="xsd:int" />
<xsd:element name="match_no" type="xsd:int" />
<xsd:element name="team_id_home" type="xsd:int" />
<xsd:element name="team_id_guest" type="xsd:int" />
<xsd:element name="goals_home" type="xsd:int" />
<xsd:element name="goals_guest" type="xsd:int" />
<xsd:element name="matchday" type="xsd:int" />
<xsd:element name="status" type="xsd:int" />
<xsd:element name="match_datetime" type="xsd:dateTime" />
<xsd:element name="group_id" type="xsd:string" />
<xsd:element name="formula_home" type="xsd:string" />
<xsd:element name="formula_guest" type="xsd:string" />
<xsd:element name="ko_match" type="xsd:int" />
<xsd:element name="goals_overtime_home" type="xsd:string" />
<xsd:element name="goals_overtime_guest" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

View File

@@ -145,6 +145,6 @@ function xml_table($season, $league, $table)
$xml_table .= " </" . strtolower($table) . ">" . "\n";
}
}
$db->sql_freeresult($result);
return $xml_table;
}
?>

View File

@@ -2,27 +2,27 @@
<!-- Football Extension by football XSD file v0.9.4 copyright 2016 football.
$Id: seasons-data-0.9.4.xsd 1 2016-01-01 11:11:11Z football $ -->
<xs:schema id="seasons-data" targetNamespace="http://football.bplaced.net/ext/football/football/xml/seasons-data-0.9.4.xsd" xmlns="http://football.bplaced.net/ext/football/football/xml/seasons-data-0.9.4.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
<xs:element name="seasons-data">
<xs:element name="code" type="xsd:string" />
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="season">
<xs:complexType>
<xs:sequence>
<xs:element name="season_id" type="xsd:int" />
<xs:element name="season_name_short" type="xsd:string" />
<xs:element maxOccurs="unbounded" name="league">
<xs:complexType>
<xs:sequence>
<xs:element name="league_id" type="xsd:int" />
<xs:element name="league_name" type="xsd:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="seasons-data">
<xs:element name="code" type="xsd:string" />
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="season">
<xs:complexType>
<xs:sequence>
<xs:element name="season_id" type="xsd:int" />
<xs:element name="season_name_short" type="xsd:string" />
<xs:element maxOccurs="unbounded" name="league">
<xs:complexType>
<xs:sequence>
<xs:element name="league_id" type="xsd:int" />
<xs:element name="league_name" type="xsd:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -96,6 +96,6 @@ function xml_seasons()
}
$xml_seasons .= '</seasons-data>' . "\n";
}
$db->sql_freeresult($result);
return $xml_seasons;
}
?>