<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="./contrib/xsl/modx.prosilver.en.xsl"?>
<!-- 
	NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.
-->
<!--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.2.0.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
		<title lang="en">Prime Quick Login</title>
		<description lang="en">Adds a login area to the top of every page.</description>
	    <author-notes lang="en">Support is given for both prosilver and subsilver2 templates. If you are using other templates then you will need to modify the template instructions to fit your templates.

Creating, maintaining, and updating MODs requires a lot of time and effort, so if you like this MOD and have the desire to express your thanks through donations, that would be greatly appreciated. My Paypal ID is primehalo@gmail.com, or contact me for my mailing address. The suggested donation amount for this MOD is $3.00 (but any amount will help).</author-notes>
		<author-group>
			<author>
				<realname>Ken F. Innes IV</realname>
				<email>primehalo@gmail.com</email>
				<username>primehalo</username>
				<homepage><![CDATA[http://www.absoluteanime.com/admin/mods.htm#quick_login]]></homepage>
			</author>
		</author-group>
		<mod-version>1.2.1</mod-version>
		<installation>
			<level>easy</level>
			<time>120</time>
			<target-version>3.0.2</target-version>
		</installation>
		<history>
			<entry>
				<date>2007-08-11</date>
				<rev-version>0.0.0</rev-version>
				<changelog lang="en">
					<change>Initial test release</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-08-12</date>
				<rev-version>0.0.1</rev-version>
				<changelog lang="en">
					<change>The login confirmation page will now redirect a user to the page from which they logged on.</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-08-14</date>
				<rev-version>0.0.2</rev-version>
				<changelog lang="en">
					<change>Fixed a bug that prevented administrators from being able to re-authenticate themselves.</change>
					<change>Stopped the form from displaying when the page is going to be automatically refreshed.</change>
					<change>Added tab-index numbers to the form elements.</change>
					<change>Fixed a bug that caused Firefox to make only the first half of the Submit button clickable, and caused Internet Explorer to place the form on its own line instead of being left-aligned on the same line as the right-aligned links.</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-08-26</date>
				<rev-version>0.0.3</rev-version>
				<changelog lang="en">
					<change>Updated for phpBB RC5.</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-09-17</date>
				<rev-version>1.0.0</rev-version>
				<changelog lang="en">
					<change>Changed the MOD's name from Prime Login Anywhere to Prime Quick Login.</change>
					<change>Added my own template variable to indicate if a page is going to be automatically refreshed.</change>
					<change>Added my own text for the auto-login option, so that it could be made much shorter than the default text.</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-09-18</date>
				<rev-version>1.0.1</rev-version>
				<changelog lang="en">
					<change>Fixed a bug that would cause the page to auto-redirect outside of the board if using the quick login within a subdirectory of the board.</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-10-01</date>
				<rev-version>1.0.1a</rev-version>
				<changelog lang="en">
					<change>Repackaged to comply with MOD Team Leader wGEric's specifications for proper packaging.</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-10-22</date>
				<rev-version>1.0.1b</rev-version>
				<changelog lang="en">
					<change>Confirmed compatibility with phpBB3.0.RC7.</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-10-26</date>
				<rev-version>1.0.1c</rev-version>
				<changelog lang="en">
					<change>Added a check for IN_PHPBB to the language file, as per RC7.</change>
				</changelog>
			</entry>
			<entry>
				<date>2007-11-29</date>
				<rev-version>1.0.1d</rev-version>
				<changelog lang="en">
					<change>Fixed a typo in the subsilver2 installation instructions which prevented the "In-line Add after" instruction from showing up.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-07-02</date>
				<rev-version>1.0.1e</rev-version>
				<changelog lang="en">
					<change>Repackaged for MODX 1.2.0.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-07-24</date>
				<rev-version>1.2.0</rev-version>
				<changelog lang="en">
					<change>Made fully compatible with another one of my MODs, Prime Login via E-Mail.</change>
					<change>Can be used with any language without requiring translations (if no translation is available, it will use the board's default text).</change>
					<change>Fixed a minor Internet Explorer bug that would cause links to the right of the quick login form to wrap unnecessarily when the window reached a certain width.</change>
					<change>Repackaged to fix the Firefox 3 restricted parent directory issue.</change>
				</changelog>
			</entry>
			<entry>
				<date>2008-07-30</date>
				<rev-version>1.2.1</rev-version>
				<changelog lang="en">
					<change>Fixed a minor bug which prevented the "Username or E-Mail" text from showing up when the Prime Login via E-Mail MOD was installed and active.</change>
				</changelog>
			</entry>
		</history>
		<link-group>
			<link type="template" href="contrib/template subsilver2.xml" lang="en">subsilver2</link>
		</link-group>
	</header>
	<action-group>
		<copy>
			<file from="root/includes/prime_quick_login.php" to="includes/prime_quick_login.php" />
			<file from="root/language/en/mods/prime_quick_login.php" to="language/en/mods/prime_quick_login.php" />
		</copy>

		<open src="includes/functions.php">
			<edit>
				<find><![CDATA[	$url = redirect($url, true);]]></find>
				<action type="after-add"><![CDATA[//-- mod: Prime Quick Login -------------------------------------------------//
	$template->assign_var('AUTO_REFRESH', $time);
//-- end: Prime Quick Login -------------------------------------------------//]]></action>
			</edit>

			<edit>
				<find><![CDATA[	// application/xhtml+xml not used because of IE]]></find>
				<action type="before-add"><![CDATA[//-- mod: Prime Quick Login -------------------------------------------------//
	include($phpbb_root_path . 'includes/prime_quick_login.' . $phpEx);
//-- end: Prime Quick Login -------------------------------------------------//
]]></action>
			</edit>
		</open>

		<open src="styles/prosilver/template/overall_header.html">
			<edit>
				<find><![CDATA[			<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->]]></find>
				<action type="before-add"><![CDATA[			<!-- IF S_PRIME_QUICK_LOGIN and not AUTO_REFRESH and not S_USER_LOGGED_IN and not S_IS_BOT -->
			<form method="post" action="{S_PRIME_QUICK_LOGIN}" style="float:left;width:60%;overflow:visible;">
				<fieldset class="quick-login" style="float:left;white-space:nowrap">
					<label for="prime_login_username">{L_PRIME_QUICK_LOGIN_USERNAME}:</label>&nbsp;<input tabindex="100" type="text" name="username" id="prime_login_username" size="10" class="inputbox" style="min-width:100px" title="{L_PRIME_QUICK_LOGIN_USERNAME}" />  
					<label for="prime_login_password">{L_PRIME_QUICK_LOGIN_PASSWORD}:</label>&nbsp;<input tabindex="101" type="password" name="password" id="prime_login_password" size="10" class="inputbox" style="min-width:100px" title="{L_PRIME_QUICK_LOGIN_PASSWORD}" />
					<!-- IF S_AUTOLOGIN_ENABLED --><label for="prime_login_autologin"><input tabindex="102" type="checkbox" name="autologin" id="prime_login_autologin" /> {L_PRIME_QUICK_LOGIN_REMEMBER}</label><!-- ENDIF -->
					<input tabindex="103" type="submit" name="login" value="{L_LOGIN}" class="button2" />
				</fieldset>
			</form>
			<!-- ENDIF -->
]]></action>
			</edit>
		</open>
	</action-group>
</mod>