<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
<!--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/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.1.xsd">

	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>

		<title lang="en-gb">Add Disclaimer</title>

		<description lang="en-gb">Adds a disclaimer panel to the bottom of each page.</description>

		<author-notes lang="en-gb">To change the text of the disclaimer message either edit the language file (info_acp_add_disclaimer.php) or change the text via the ACP > System > Language packs.

		This mod utilises the Mod Version Check mod that can be found at www.phpbb.com/community/viewtopic.php?f=69&amp;t=691155
		The required file for the Mod Version Check mod can be found in the contrib/root/adm/mods folder - the inclusion of this is optional.
		</author-notes>
		<author-group>
			<author>
				<realname>David Wood</realname>
				<email>david.wood@mywebworld.org.uk</email>
				<username>david63</username>
				<homepage></homepage>
				<contributions />
			</author>
		</author-group>

		<mod-version>
			<major>1</major>
			<minor>0</minor>
			<revision>0</revision>
		</mod-version>

		<installation>
			<level>easy</level>
			<time>180</time>
			<target-version>
				<target-primary>3.0.1</target-primary>
				<target-major allow="exact">3</target-major>
				<target-minor allow="exact">0</target-minor>
			</target-version>
		</installation>

		<history>
			<entry>
				<date>2008-05-11</date>
				<rev-version>
					<major>1</major>
					<minor>0</minor>
					<revision>0</revision>
				</rev-version>
				<changelog lang="en-gb">
					<change>Initial release</change>
				</changelog>
			</entry>
		</history>
	</header>

	<action-group>
		<copy>
			<file from="root/install_add_disclaimer.php" to="install_add_disclaimer.php" />
			<file from="root/language/en/mods/info_acp_add_disclaimer.php" to="language/en/mods/info_acp_add_disclaimer.php" />
		</copy>

		<open src="includes/functions.php">
			<edit>
				<find><![CDATA[$debug_output .= ' | <a href="' . build_url() . '&amp;explain=1">Explain</a>';
		}
	}]]></find>
				<action type="after-add"><![CDATA[// Disclaimer mod
	$user->add_lang('mods/info_acp_add_disclaimer');]]></action>
			</edit>
			<edit>
				<find><![CDATA['TRANSLATION_INFO'		=> (!empty($user->lang['TRANSLATION_INFO'])) ? $user->lang['TRANSLATION_INFO'] : '',]]></find>
				<action type="after-add"><![CDATA[// Disclaimer mod
		'S_DISCLAIMER'			=> $config['show_disclaimer'],]]></action>
			</edit>
		</open>

		<open src="includes/acp/acp_board.php">
			<edit>
				<find><![CDATA['override_user_style'	=> array('lang' => 'OVERRIDE_STYLE',		'validate' => 'bool',	'type' => 'radio:yes_no', 'explain' => true),]]></find>
				<action type="after-add"><![CDATA[// Disclaimer mod
						'show_disclaimer'	=> array('lang' => 'SHOW_DISCLAIMER',			'validate' => 'bool',	'type' => 'radio:yes_no', 'explain' => true),]]></action>
			</edit>
		</open>

		<open src="styles/prosilver/template/overall_footer.html">
			<edit>
				<find><![CDATA[<div id="page-footer">]]></find>
				<action type="after-add"><![CDATA[<!-- IF S_DISCLAIMER -->
	<div class="rules">
		<div class="inner"><span class="corners-top"><span></span></span>
		<dl>
			<dd><strong>{L_DISCLAIMER} : </strong></dd><dd>{L_DISCLAIMER_TEXT}</dd>
		</dl>
		<span class="corners-bottom"><span></span></span></div>
	</div>
<!-- ENDIF -->]]></action>
			</edit>
		</open>

		<diy-instructions lang="en-gb">Open your web browser and run install_add_disclaimer.php.
Delete install_add_disclaimer.php when it has run succesfully.</diy-instructions>
	</action-group>
</mod>
