<div class="wordfenceModeElem" id="wordfenceMode_twoFactor"></div>
<div class="wrap" id="paidWrap">
	<div class="wordfence-lock-icon wordfence-icon32"><br /></div><h2 id="wfHeading">Cellphone Sign-in</h2>
<?php if(! wfConfig::get('isPaid')){ ?>
			<div class="wfPaidOnlyNotice">
				<strong>Cellphone Sign-in is only available to Premium Members at this time</strong><br /><br />
				Cellphone Sign-in is a premium feature because we are charged per SMS we send when a user signs in. If you would like to
				activate this feature, simply <a href="https://www.wordfence.com/wordfence-signup/" target="_blank">click here and get a premium Wordfence API Key</a>, and then copy and paste it into your options
				page.
			</div>
<?php } ?>

	<div class="wordfenceWrap" style="margin: 20px 20px 20px 30px;">
		<p style="width: 500px;">
			Wordfence's Cellphone Sign-in uses a technique called "Two Factor Authentication" which is used by banks, government agencies and military world-wide as one of the most secure forms of remote system authentication. 
			It's now available from Wordfence for your WordPress website. "Two Factor" relies on two things: Something you know (your password) and something you have (your cellphone). 
			To access your website, you need to know your password and have your cellphone with you.
			<br /><br />
			Cellphone sign-in is a two step sign-in process. When you enable this feature for a member, they first sign-in using their username and password.
			Then they receive an SMS on their cellphone containing a code. Then they sign in again using their username, and they reenter their
			password with a space and the code they received at the end of the password. 
			<br /><br />
			Cellphone Sign-in eliminates all common forms of brute force hacking. For a hacker to access a user account with Cellphone Sign-in enabled, they would have to steal
			a member's cellphone to access their account. 
			We recommend you enable Cellphone Sign-in for all Administrator level accounts.
		</p>
		<p>
			To enable Cellphone Sign-in Authentication for a user account:
			<ol>
				<li>Enter the username.</li>
				<li>Enter a phone number where the code will be sent when the member wants to sign in.</li>
				<li>Hit the enable button.</li>
				<li>An activation code is sent to the member's phone.</li>
				<li>Get the activation code from the member and enter it next to the username in the list below.</li>
				<li>Click the "Enable" button to enable Cellphone Sign-in for that member.</li>
				<li>From now on the user will only be able to sign-in by using Cellphone Sign-in.</li>
			</ol>
			<br />
			<table border="0">
			<tr><td>Enter a username to enable Cellphone Sign-in:</td><td><input type="text" id="wfUsername" value="" size="20" /></td></tr>
			<tr><td>Enter a phone number where the code will be sent:</td><td><input type="text" id="wfPhone" value="" size="20" />Format: +1-123-555-5034</td></tr>
			<tr><td colspan="2"><input type="button" value="Enable Cellphone Sign-in" onclick="WFAD.addTwoFactor(jQuery('#wfUsername').val(), jQuery('#wfPhone').val());" /></td></tr>
			</table>
		</p>
		<div style="height: 20px;">
			<div id="wfTwoFacMsg" style="color: #F00;">
			&nbsp;
			</div>
		</div>
		<div id="wfTwoFacUsers">

		</div>
	</div>
</div>

<script type="text/x-jquery-template" id="wfTwoFacUserTmpl">
<div>
	<table border="0"><tr>
		<td style="width: 100px;">${username}</td>
		<td style="width: 150px;">${phone}</td>
		<td>
			{{if status == 'activated'}}
				<span style="color: #0A0;">Cellphone Sign-in Enabled</span>
			{{else}}
				Enter activation code:<input type="text" id="wfActivate" size="4" /><input type="button" value="Activate" onclick="WFAD.twoFacActivate('${userID}', jQuery('#wfActivate').val());" />
			{{/if}}
		</td>
		<td>&nbsp;&nbsp;&nbsp;<a href="#" onclick="WFAD.delTwoFac('${userID}'); return false;">[Delete]</a></td>
	</tr>
	</table>
</div>
</script>
<script type="text/x-jquery-template" id="wfWelcomeTwoFactor">
<div>
<h3>Secure Sign-in using your Cellphone</h3>
<strong><p>Want to permanently block all brute-force hacks?</p></strong>
<p>
	The premium version of Wordfence includes Cellphone Sign-in, also called Two Factor Authentication in the security industry.
	When you enable Cellphone Sign-in on a member's account, they need to complete a 
	two step process to sign in. First they enter their username and password 
	as usual to sign-into your WordPress website. Then they're told
	that a code was sent to their phone. Once they get the code, they sign
	into your site again and this time they add a space and the code to the end of their password.
</p>
<p>
	This technique is called Two Factor Authentication because it relies on two factors: 
	Something you know (your password) and something you have (your phone).
	It is used by banks and military world-wide as a way to dramatically increase
	security.
</p>
<p>
<?php
if(wfConfig::get('isPaid')){
?>
	You have upgraded to the premium version of Wordfence and have full access
	to this feature along with our other premium features.
<?php
} else {
?>
	If you would like access to this premium feature, please 
	<a href="https://www.wordfence.com/wordfence-signup/" target="_blank">upgrade to our premium version</a>.
<?php
}
?>
</p>
</div>
</script>
