demo: http://www.gsbasket.org/forum/bookies.php##############################################################
## MOD Title: Forum Bookmakers (Betting With Points)
##
## MOD Author: majorflam < majorflam@majormod.com > (Garry Hughes) http://www.majormod.com
##
## MOD Description: This Mod creates a Bookmakers on your Forums. Users can place bets on anything, using their
## points as currency. This Mod requires a points system, and any points system that uses
## "user_points" as the field in the DB will be compatable.
##
## MOD Version: 3.0.0
##
## Installation Level: Easy
##
## Installation Time: 20 Minutes
##
## Files To Edit: includes/constants.php
## includes/page_header.php
## language/lang_english/lang_main.php
## templates/subSilver/index_body.tpl
## templates/subSilver/overall_header.tpl
## templates/subSilver/subSilver.cfg
## index.php
## viewonline.php
##
## Included Files: admin/admin_bookies.php
## admin/admin_bookies_commission.php
## admin/admin_bookies_config.php
## admin/admin_bookies_edit_past.php
## admin/admin_bookies_plus_categories.php
## admin/admin_bookies_plus_meetings.php
## admin/admin_bookies_plus_selections.php
## admin/admin_bookies_purge.php
## admin/admin_bookies_setbet.php
## admin/admin_bookies_sync.php
## includes/bookies_build_bet.php
## includes/bookies_delete_bet.php
## includes/bookies_edit_bet.php
## includes/bookies_new_meeting.php
## includes/bookies_place_bet.php
## includes/functions_bookies.php
## language/lang_english/lang_bookmakers.php
## language/lang_english/lang_admin_bookmakers.php
## templates/subSilver/admin/admin_bookie_confirm_body.tpl
## templates/subSilver/admin/admin_bookie_edit_past.tpl
## templates/subSilver/admin/admin_bookie_multiple_bet.tpl
## templates/subSilver/admin/admin_bookie_plus_add_sel_template.tpl
## templates/subSilver/admin/admin_bookie_plus_add_sel_template_do.tpl
## templates/subSilver/admin/admin_bookie_setbet.tpl
## templates/subSilver/admin/admin_bookie_setbet_delete.tpl
## templates/subSilver/admin/admin_bookie_setbet_edit.tpl
## templates/subSilver/admin/admin_bookie_setbet_new_meeting.tpl
## templates/subSilver/admin/admin_bookie_setbet_new_meeting2.tpl
## templates/subSilver/admin/admin_bookies.tpl
## templates/subSilver/admin/admin_bookies_commission.tpl
## templates/subSilver/admin/admin_bookies_config.tpl
## templates/subSilver/admin/admin_bookies_plus_categories.tpl
## templates/subSilver/admin/admin_bookies_plus_categories_add.tpl
## templates/subSilver/admin/admin_bookies_plus_categories_edit.tpl
## templates/subSilver/admin/admin_bookies_plus_meetings.tpl
## templates/subSilver/admin/admin_bookies_plus_meetings_edit.tpl
## templates/subSilver/admin/admin_bookies_plus_selections.tpl
## templates/subSilver/admin/admin_bookies_plus_selections_add.tpl
## templates/subSilver/admin/admin_bookies_plus_selections_delete.tpl
## templates/subSilver/admin/admin_bookies_plus_selections_edit.tpl
## templates/subSilver/admin/admin_bookies_purge.tpl
## templates/subSilver/admin/admin_bookies_selection_review.tpl
## templates/subSilver/admin/admin_bookies_selection_review_body.tpl
## templates/subSilver/admin/admin_bookies_sync.tpl
## templates/subSilver/images/lang_english/bookie_all_stats.gif
## templates/subSilver/images/lang_english/bookie_place_bet.gif
## templates/subSilver/images/lang_english/bookie_your_stats.gif
## templates/subSilver/images/lang_english/icon_bookie_add_category.gif
## templates/subSilver/images/lang_english/icon_bookie_add_meeting.gif
## templates/subSilver/images/lang_english/icon_bookie_add_selection.gif
## templates/subSilver/images/lang_english/icon_bookie_add_selection_template.gif
## templates/subSilver/images/lang_english/icon_bookie_drop_meeting.gif
## templates/subSilver/images/icon_bookie_star.gif
## templates/subSilver/bookie_allstats.tpl
## templates/subSilver/bookie_yourstats.tpl
## templates/subSilver/bookies.tpl
## templates/subSilver/bookies_place_bet.tpl
## bookies.php
## bookie_allstats.php
## bookie_yourstats.php
## db_update.php
##
##############################################################
## For Security Purposes, Please Check: http://www.majormod.com/viewtopic.php?t=4 for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum.
##############################################################
## Author Notes: The contrib directory contains additional, optional files that require
## the installation of third party mods. Details of where to download the
## third party mods are contained in the install.txt for the relevant add-on.
##
## The update scripts provided with this install and also upgrade instructions should be
## uploaded to your root directory for phpBB, and then called from a browser by
## a site administrator. Upload and run ONLY the update script that is relevant for
## the install you are doing. Read the instructions carefully...
##
##############################################################
## MOD History:
## version 3.0.0: Bet processing changed to make life easier. Multiple bets now processed at once
## version 2.0.9: Points Mod added to the contrib dir
## version 2.0.9: Users now see their pending bets even when bet editing is switched off
## version 2.0.9: various minor bug fixes
## version 2.0.9: Fixed bug that allowed users to delete a bad bet before admin processes
## version 2.0.9: Points name now shows when placing bets
## version 2.0.9: Default category now added to db_update.php for new installs
## version 2.0.9: Compatibility with phpBB ver. 2.0.18 confirmed
## version 2.0.8: Compatibility with phpBB ver. 2.0.13 confirmed
## version 2.0.8: Admin can now restrict users to one bet per meeting, preventing
## "spread betting" and "nuisance" bets.
## version 2.0.8: Default odds now available, saving admin from allocating odds to
## many selections when the odds will be the same anyway.
## version 2.0.8: Admin can now define minimum or maximum stakes.
## version 2.0.8: Confirmation now requested when purging old bets. Statistics are now
## recalculated on purge.
## version 2.0.8: More intelligent time and date handling, saving Admin repetitive work plus
## abilty to set a default time and date now available.
## version 2.0.8: Info on Users Points now shown on all relevant pages.
## version 2.0.8: User can now view complete Leaderboard showing alltime standings.
## version 2.0.8: Accurate calculation of results, replacing previous system.
## version 2.0.8: Bets now categorised to tidy up the system and ease the
## database load on larger sites with many bets available.
## version 2.0.8: Commission system now available and optional
## (Admin can now recieve commission from bets they set)
## version 2.0.8: Minor bug fixes
## version 2.0.7: Synchronisation now possiblle, to deal with statistical errors
## version 2.0.7: Bets now ordered by Starbets first
## version 2.0.7: More detailed statistics now avaialable
## version 2.0.7: Users can now set their own bets
## version 2.0.7: Welcome message on Bookmakers Page now configurable
## version 2.0.7: Usernames on leaderboard now link to that user's Statistics Page
## version 2.0.7: Setting bets now done on it's own page, to improve Bookmakers page load and look
## version 2.0.7: Users can now choose to delete a bet they have set if it is pending
## version 2.0.7: Statistics Module Added (see contrib directory)
## version 2.0.7: Moderator Control Panel files added (see contrib directory)
## version 2.0.7: Much better "each way" betting integration added
## version 2.0.6: Now able to handle decimal odds
## version 2.0.6: Numerous astethic changes to Admin Controls
## version 2.0.5a: Bug Fix release.
## version 2.0.5: Configuration for user set bets, and decimal odds added for future upgrade.
## version 2.0.5: Configuration for each way bets added.
## version 2.0.5: Various asthetic changes.
## version 2.0.5: Star bets added.
## version 2.0.5: Admin Panel re-write. Many, many features added.
## version 2.0.4: Minor bug fixes
## version 2.0.3: Bug fix in auto PM feature
## version 2.0.3: How to file removed, replaced by support thread
## version 2.0.3: Many, many features added
## version 2.0.2: Mod Re-write, English language support only.
## Many additional features. Check support forum for details.
## version 2.0.1: French language support added.
## - Thanks to Pascal Castrataro for the translation
## version 2.0.1: Created links to profiles for usernames
## version 2.0.0: Added option to purge old bets
## version 2.0.0: Refresh added for admin_bookies.php
## version 2.0.0: German language support added.
## - Thanks to Provokatiker for the translation
## version 2.0.0: Various other minor bug fixes
## version 2.0.0: index.php changed to reflect admin only plus lang files added
## version 2.0.0: phpbb 2.0.10 compatibility
## version 2.0.0: Minor bug fix for admin odds facility
## version 2.0.0: Created independant language files
## version 1.0.1: Minor bug fixes, and a "How To" file added. Anti-cheat solution also added.
## Version 1.0.0: Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy root/admin/admin_bookies.php to admin/admin_bookies.php
copy root/admin/admin_bookies_commission.php to admin/admin_bookies_commission.php
copy root/admin/admin_bookies_config.php to admin/admin_bookies_config.php
copy root/admin/admin_bookies_edit_past.php to admin/admin_bookies_edit_past.php
copy root/admin/admin_bookies_plus_categories.php to admin/admin_bookies_plus_categories.php
copy root/admin/admin_bookies_plus_meetings.php to admin/admin_bookies_plus_meetings.php
copy root/admin/admin_bookies_plus_selections.php to admin/admin_bookies_plus_selections.php
copy root/admin/admin_bookies_purge.php to admin/admin_bookies_purge.php
copy root/admin/admin_bookies_setbet.php to admin/admin_bookies_setbet.php
copy root/admin/admin_bookies_sync.php to admin/admin_bookies_sync.php
copy root/includes/bookies_build_bet.php to includes/bookies_build_bet.php
copy root/includes/bookies_delete_bet.php to includes/bookies_delete_bet.php
copy root/includes/bookies_edit_bet.php to includes/bookies_edit_bet.php
copy root/includes/bookies_new_meeting.php to includes/bookies_new_meeting.php
copy root/includes/bookies_place_bet.php to includes/bookies_place_bet.php
copy root/includes/functions_bookies.php to includes/functions_bookies.php
copy root/language/lang_english/lang_bookmakers.php to language/lang_english/lang_bookmakers.php
copy root/language/lang_english/lang_admin_bookmakers.php to language/lang_english/lang_admin_bookmakers.php
copy root/templates/subSilver/admin/admin_bookie_confirm_body.tpl to templates/subSilver/admin/admin_bookie_confirm_body.tpl
copy root/templates/subSilver/admin/admin_bookie_edit_past.tpl to templates/subSilver/admin/admin_bookie_edit_past.tpl
copy root/templates/subSilver/admin/admin_bookie_multiple_bet.tpl to templates/subSilver/admin/admin_bookie_multiple_bet.tpl
copy root/templates/subSilver/admin/admin_bookie_plus_add_sel_template.tpl to templates/subSilver/admin/admin_bookie_plus_add_sel_template.tpl
copy root/templates/subSilver/admin/admin_bookie_plus_add_sel_template_do.tpl to templates/subSilver/admin/admin_bookie_plus_add_sel_template_do.tpl
copy root/templates/subSilver/admin/admin_bookie_setbet.tpl to templates/subSilver/admin/admin_bookie_setbet.tpl
copy root/templates/subSilver/admin/admin_bookie_setbet_delete.tpl to templates/subSilver/admin/admin_bookie_setbet_delete.tpl
copy root/templates/subSilver/admin/admin_bookie_setbet_edit.tpl to templates/subSilver/admin/admin_bookie_setbet_edit.tpl
copy root/templates/subSilver/admin/admin_bookie_setbet_new_meeting.tpl to templates/subSilver/admin/admin_bookie_setbet_new_meeting.tpl
copy root/templates/subSilver/admin/admin_bookie_setbet_new_meeting2.tpl to templates/subSilver/admin/admin_bookie_setbet_new_meeting2.tpl
copy root/templates/subSilver/admin/admin_bookies.tpl to templates/subSilver/admin/admin_bookies.tpl
copy root/templates/subSilver/admin/admin_bookies_commission.tpl to templates/subSilver/admin/admin_bookies_commission.tpl
copy root/templates/subSilver/admin/admin_bookies_config.tpl to templates/subSilver/admin/admin_bookies_config.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_categories.tpl to templates/subSilver/admin/admin_bookies_plus_categories.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_categories_add.tpl to templates/subSilver/admin/admin_bookies_plus_categories_add.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_categories_edit.tpl to templates/subSilver/admin/admin_bookies_plus_categories_edit.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_meetings.tpl to templates/subSilver/admin/admin_bookies_plus_meetings.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_meetings_edit.tpl to templates/subSilver/admin/admin_bookies_plus_meetings_edit.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_selections.tpl to templates/subSilver/admin/admin_bookies_plus_selections.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_selections_add.tpl to templates/subSilver/admin/admin_bookies_plus_selections_add.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_selections_delete.tpl to templates/subSilver/admin/admin_bookies_plus_selections_delete.tpl
copy root/templates/subSilver/admin/admin_bookies_plus_selections_edit.tpl to templates/subSilver/admin/admin_bookies_plus_selections_edit.tpl
copy root/templates/subSilver/admin/admin_bookies_purge.tpl to templates/subSilver/admin/admin_bookies_purge.tpl
copy root/templates/subSilver/admin/admin_bookies_selection_review.tpl to templates/subSilver/admin/admin_bookies_selection_review.tpl
copy root/templates/subSilver/admin/admin_bookies_selection_review_body.tpl to templates/subSilver/admin/admin_bookies_selection_review_body.tpl
copy root/templates/subSilver/admin/admin_bookies_sync.tpl to templates/subSilver/admin/admin_bookies_sync.tpl
copy root/templates/subSilver/images/lang_english/bookie_all_stats.gif to templates/subSilver/images/lang_english/bookie_all_stats.gif
copy root/templates/subSilver/images/lang_english/bookie_place_bet.gif to templates/subSilver/images/lang_english/bookie_place_bet.gif
copy root/templates/subSilver/images/lang_english/bookie_your_stats.gif to templates/subSilver/images/lang_english/bookie_your_stats.gif
copy root/templates/subSilver/images/lang_english/icon_bookie_add_category.gif to templates/subSilver/images/lang_english/icon_bookie_add_category.gif
copy root/templates/subSilver/images/lang_english/icon_bookie_add_meeting.gif to templates/subSilver/images/lang_english/icon_bookie_add_meeting.gif
copy root/templates/subSilver/images/lang_english/icon_bookie_add_selection.gif to templates/subSilver/images/lang_english/icon_bookie_add_selection.gif
copy root/templates/subSilver/images/lang_english/icon_bookie_add_selection_template.gif to templates/subSilver/images/lang_english/icon_bookie_add_selection_template.gif
copy root/templates/subSilver/images/lang_english/icon_bookie_drop_meeting.gif to templates/subSilver/images/lang_english/icon_bookie_drop_meeting.gif
copy root/templates/subSilver/images/icon_bookie_star.gif to templates/subSilver/images/icon_bookie_star.gif
copy root/templates/subSilver/bookie_allstats.tpl to templates/subSilver/bookie_allstats.tpl
copy root/templates/subSilver/bookie_yourstats.tpl to templates/subSilver/bookie_yourstats.tpl
copy root/templates/subSilver/bookies.tpl to templates/subSilver/bookies.tpl
copy root/templates/subSilver/bookies_place_bet.tpl to templates/subSilver/bookies_place_bet.tpl
copy root/bookies.php to bookies.php
copy root/bookie_allstats.php to bookie_allstats.php
copy root/bookie_yourstats.php to bookie_yourstats.php
copy root/db_update.php to db_update.php
##############################################################
## Author Notes: The update script db_update.php should be called from a browser by
## a site administrator in order to make the database changes automatically.
## The script should then be deleted. If you want to do the SQL changes manually,
## then make sure the update script is deleted now.
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_BOOKIES:
$location = $lang['bookies'];
$location_url = "bookies.$phpEx";
break;
case PAGE_BOOKIE_YOURSTATS:
$location = $lang['bookie_yourstats'];
$location_url = "bookie_yourstats.$phpEx";
break;
case PAGE_BOOKIE_ALLSTATS:
$location = $lang['bookie_allstats'];
$location_url = "bookie_allstats.$phpEx";
break;
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_BOOKIES:
$location = $lang['bookies'];
$location_url = "bookies.$phpEx";
break;
case PAGE_BOOKIE_YOURSTATS:
$location = $lang['bookie_yourstats'];
$location_url = "bookie_yourstats.$phpEx";
break;
case PAGE_BOOKIE_ALLSTATS:
$location = $lang['bookie_allstats'];
$location_url = "bookie_allstats.$phpEx";
break;
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('PAGE_GROUPCP', -11);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// bookies Mod
define('PAGE_BOOKIES', -1883);
define('PAGE_BOOKIE_ALLSTATS', -1882);
define('PAGE_BOOKIE_YOURSTATS', -1881);
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Bookies Mod
define('BOOKIE_BETS_TABLE', $table_prefix.'bookie_bets');
define('BOOKIE_STATS_TABLE', $table_prefix.'bookie_stats');
define('BOOKIE_ADMIN_BETS_TABLE', $table_prefix.'bookie_admin_bets');
define('BOOKIE_MEETINGS_TABLE', $table_prefix.'bookie_meetings');
define('BOOKIE_SELECTIONS_TABLE', $table_prefix.'bookie_selections');
define('BOOKIE_SELECTIONS_DATA_TABLE', $table_prefix.'bookie_selections_data');
define('BOOKIE_BET_SETTER_TABLE', $table_prefix.'bookie_bet_setter');
define('BOOKIE_CAT_TABLE', $table_prefix.'bookie_categories');
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Bookies Mod
'L_BOOKIES' => $lang['bookies'],
'U_BOOKIES' => append_sid('bookies.'.$phpEx),
'L_BOOKIE_ALLSTATS' => $lang['bookie_allstats'],
'U_BOOKIE_ALLSTATS' => append_sid('bookie_allstats.'.$phpEx),
'L_BOOKIE_YOURSTATS' => $lang['bookie_yourstats'],
'U_BOOKIE_YOURSTATS' => append_sid('bookie_yourstats.'.$phpEx),
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Bookie Mod
$lang['bookies'] = 'Bookmakers';
$lang['bookie_allstats'] = 'Forum Bookmakers - All Stats';
$lang['bookie_yourstats'] = 'Forum Bookmakers - Your Stats';
// End Bookie Mod
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN bookie_bets_due -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th height="25" class="thHead" nowrap="nowrap" colspan="2">{BOOKIE_HEADER}</th>
</tr>
<tr>
<td class="row1">{BOOKIE_IMAGE}</td>
<td class="row1" width="100%"><span class="genmed">{BOOKIE_START} <b>{BOOKIE_COUNT}</b> {BOOKIE_END}</span></td>
</tr>
</table>
<br />
<!-- END bookie_bets_due -->
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<a href="{U_BOOKIES}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_BOOKIES}" hspace="3" />{L_BOOKIES}</a>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------
#
$images['icon_msnm'] = "$current_template_images/{LANG}/icon_msnm.gif";
#
#-----[ AFTER, ADD ]------------------------------------------
#
// bookie mod
$images['icon_bookie_allstats'] = "$current_template_images/{LANG}/bookie_all_stats.gif";
$images['icon_bookie_yourstats'] = "$current_template_images/{LANG}/bookie_your_stats.gif";
$images['icon_bookie_star'] = "$current_template_images/icon_bookie_star.gif";
$images['icon_bookie_add_selection'] = "$current_template_images/{LANG}/icon_bookie_add_selection.gif";
$images['icon_bookie_add_meeting'] = "$current_template_images/{LANG}/icon_bookie_add_meeting.gif";
$images['icon_bookie_drop_meeting'] = "$current_template_images/{LANG}/icon_bookie_drop_meeting.gif";
$images['icon_bookie_add_selection_template'] = "$current_template_images/{LANG}/icon_bookie_add_selection_template.gif";
// for 2.0.7
$images['icon_bookie_place_bet'] = "$current_template_images/{LANG}/bookie_place_bet.gif";
// for 2.0.8
$images['icon_bookie_add_category'] = "$current_template_images/{LANG}/icon_bookie_add_category.gif";
// end bookie mod
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : -1;
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Bookie Mod
if ( $userdata['user_level'] == ADMIN )
{
include_once($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_bookmakers.' . $phpEx);
$time_now = time();
$total_bets = 0;
$count_assigned = 0;
$sql = "SELECT * FROM " . BOOKIE_ADMIN_BETS_TABLE . " WHERE bet_time<'$time_now' AND checked=0 ";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error getting total for Bookie Mod', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$total_bets = $total_bets +1;
}
if ( $total_bets > 0 )
{
$bookie_image = '<img src="' . $images['folder_hot_new'] . '" alt="New" title="New" hspace="3" border="0" />';
$template->assign_block_vars('bookie_bets_due', array());
}
}
// End Bookie Mod
#
#-----[ FIND ]------------------------------------------
#
'L_ONLINE_EXPLAIN' => $lang['Online_explain'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Bookie Mod
'BOOKIE_START' => $lang['bookie_start'],
'BOOKIE_COUNT' => $total_bets,
'BOOKIE_END' => $lang['bookie_finish'],
'ASSIGN_START' => $lang['bookie_assign_start'],
'ASSIGN_COUNT' => $count_assigned,
'ASSIGN_END' => $lang['bookie_assign_finish'],
'BOOKIE_HEADER' => $lang['bookie_header'],
'BOOKIE_IMAGE' => $bookie_image,
'ASSIGN_IMAGE' => $assign_image,
// End Bookie Mod
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_BOOKIES:
$location = $lang['bookies'];
$location_url = "bookies.$phpEx";
break;
case PAGE_BOOKIE_YOURSTATS:
$location = $lang['bookie_yourstats'];
$location_url = "bookie_yourstats.$phpEx";
break;
case PAGE_BOOKIE_ALLSTATS:
$location = $lang['bookie_allstats'];
$location_url = "bookie_allstats.$phpEx";
break;
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
DOWNLOAD