##############################################################
## MOD Title: phpBB Rivals
## MOD Author: A.I. BOT < aibotca@yahoo.ca > (Tyler N. King) http://www.gotbase.org
## MOD Description: An all-in-one clan, ladder and tournament system.
## MOD Version: 0.7.1
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit:	includes/page_header.php
##			common.php
##			templates/subSilver/overall_header.tpl
##
## Included Files:	N/A
## License: GNU GPL v2 or later (docs/COPYING)
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/ 
## for the latest version of this MOD. Although MODs are checked 
## before being allowed in the MODs Database there is no guarantee 
## that there are no security problems within the MOD. No support 
## will be given for MODs not found within the MODs Database which 
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##	- Trigun modified the templates to be more user-friendly,
##	so you can thank him for that ^^
##	- AntiSpam for all Fields by Ramon Fincken is used in this MOD
##	with his permission.
############################################################## 
## MOD History:
##
##   2006-05-05 - Version 0.1.0
##      - BETA released
##   2006-06-29 - Version 0.5.0
##      - BETA released
##		- Now completely object oriented.
##		- All known bugs fixed.
##		- 100% secure/cheat proof single and double elimination.
##		- 85% performance increase on bracket generation.
##   2006-07-28 - Version 0.7.0
##	- Different file structure.
##	- Improved preformance.
##	- Clan cloning.
##	- Member Control Panel added.
##   2006-09-12 - Version 0.7.1
##	- Minor code additions and changes.
##	- New templates by Trigun.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
common.php

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
function http_vars ( )
{
	global $_GET, $_POST;

	$vars_array	= array ( );
	foreach ( $_GET AS $name => $value )
	{
		if ( !is_array ( $value ) )
		{
			$vars_array[ $name ]	= ( is_int ( $value ) ) ? intval ( $value ) : htmlspecialchars ( $value );
		}
		else
		{
			$vars_array[ $name ]	= $value;
		}
	}

	foreach ( $_POST AS $name => $value )
	{
		if ( !is_array ( $value ) )
		{
			$vars_array[ $name ]	= ( is_int ( $value ) ) ? intval ( $value ) : htmlspecialchars ( $value );
		}
		else
		{
			$vars_array[ $name ]	= $value;
		}
	}

	return $vars_array;
}

include ( $phpbb_root_path . 'language/lang_' . $board_config[ 'default_lang' ] . '/lang_rivals.' . $phpEx );

#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#
	'L_SEARCH' => $lang['Search'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
	'L_LADDERS' => $lang[ 'Ladders' ],
	'U_LADDERS' => append_sid ( 'rivals.php?action=ladders' ),
	'L_CCP' => $lang[ 'CCP' ],
	'U_CCP' => append_sid ( 'rivals.php?action=ccp' ),
	'L_ADDCLAN' => $lang[ 'Add_Clan' ],
	'L_TOURNAMENTS' => $lang[ 'rivals_swiz' ],
	'U_TOURNAMENTS' => append_sid ( 'rivals.php?action=tournaments' ),
	'U_ADDCLAN' => append_sid ( 'rivals.php?action=create_clan' ),
	'L_ACP' => $lang[ 'Rivals_ACP' ],
	'U_ACP' => append_sid ( 'rivals.php?action=acp' ),
	'L_MCP' => $lang[ 'mcp' ],
	'U_MCP' => append_sid ( 'rivals.php?action=mcp' ),

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<br /><a href="{U_LADDERS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LADDERS}" hspace="3" />{L_LADDERS}</a>&nbsp; &nbsp;<a href="{U_CCP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_CCP}" hspace="3" />{L_CCP}</a>&nbsp; &nbsp;<a href="{U_ADDCLAN}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_ADDCLAN}" hspace="3" />{L_ADDCLAN}</a>&nbsp; &nbsp;<a href="{U_ACP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_ACP}" hspace="3" />{L_ACP}</a>&nbsp; &nbsp;<a href="{U_TOURNAMENTS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_TOURNAMENTS}" hspace="3" />{L_TOURNAMENTS}</a>&nbsp; &nbsp;<a href="{U_MCP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_MCP}" hspace="3" />{L_MCP}</a>


# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
# 
# EoM
