Skip to content
Snippets Groups Projects
getemail.php 1.53 KiB
Newer Older
Eric Rasmussen's avatar
Eric Rasmussen committed
<?php

     /**
	 * Elgg Get Email Only SSO register form
	 * 
	 * @package Elgg
	 * @subpackage Core
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider Ltd
	 * @copyright Curverider Ltd 2008-2009
	 * @link http://elgg.org/
	 */
	 
	// if we're returning from a failed email validation, we'll put the failed email in the email form field
	if( isset($_REQUEST['e']) )
	{
		$vars['unl_email'] = $_REQUEST['e'];
	}

	$form_body = '<p class="required">Indicates a required field.</p>';
	$form_body .= '<fieldset>
    				<legend>Email Verification</legend>
    				<ol>';
	$form_body .= "<li class='required'><label class='element'>" . elgg_echo('email') . "</label><div class='element'>" . elgg_view('input/text' , array('internalname' => 'email', 'class' => "general-textarea", 'value' => $vars['unl_email'])) . "</div></li>";
	$form_body .= "</ol></fieldset>";
	$form_body .= '<p class="submit">' .elgg_view('input/submit', array('internalname' => 'submit', 'value' => 'Complete Registration and Login!')) . "</p>";
Eric Rasmussen's avatar
Eric Rasmussen committed
?>

	<h2 class="sec_header">Email Verification</h2>
	<div class="three_col left formCool">
	<p>We just want to make sure we have your correct e-mail and then we'll log you in.</p>
Eric Rasmussen's avatar
Eric Rasmussen committed
	<?php echo elgg_view('input/form', array('action' => "{$vars['url']}action/cas_auth/getemail", 'body' => $form_body)) ?>
	</div>
	<div class="col right">
	<div class="zenbox cool">
	<h3>Email Address Usage</h3>
	<p>Your email address is only used to send notifications from Planet Red.</p>
	</div>
Eric Rasmussen's avatar
Eric Rasmussen committed
	</div>