login.php 2.77 KB
Newer Older
Eric Rasmussen's avatar
Eric Rasmussen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

     /**
	 * Elgg login form adapted for CAS Auth
	 * 
	 * @package cas_auth
	 * @license http://www.gnu.org/licenses/gpl.html
	 * @author Xavier Roussel
	 * @copyright UVSQ 2008
	 * @link http://www.uvsq.fr
	 */
	 
	global $CONFIG;
	
15
	/*
Eric Rasmussen's avatar
Eric Rasmussen committed
16
17
18
19
20
21
22
	$form_body = "<p class=\"login-box\"><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea')) . "</label>";
	$form_body .= "<br />";
	$form_body .= "<label>" . elgg_echo('password') . "<br />" . elgg_view('input/password', array('internalname' => 'password', 'class' => 'login-textarea')) . "</label><br />";
	$form_body .= elgg_view('input/submit', array('value' => elgg_echo('login'))) . " <div id=\"persistent_login\"><label><input type=\"checkbox\" name=\"persistent\" value=\"true\" />".elgg_echo('user:persistent')."</label></div></p>";
	$form_body .= "<p class=\"loginbox\">";
	$form_body .= (!isset($CONFIG->disable_registration) || !($CONFIG->disable_registration)) ? "<a href=\"{$vars['url']}account/register.php\">" . elgg_echo('register') . "</a> | " : "";
	$form_body .= "<a href=\"{$vars['url']}account/forgotten_password.php\">" . elgg_echo('user:password:lost') . "</a></p>";  
23
	*/
Eric Rasmussen's avatar
Eric Rasmussen committed
24
25
26
	//<input name=\"username\" type=\"text\" class="general-textarea" /></label>
?>
	
Eric Rasmussen's avatar
Eric Rasmussen committed
27
	<div id="login" class="loginPage">
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
		<div class="two_col left">
			<h2 class="sec_main">Students, Faculty, Staff</h2>
			
				<p>If you are a student, faculty or staff member, you already have an account. Use your my.UNL Single Sign-on account to begin.</p>
				<p style="margin-top: 50px; text-align:center;"><a class="wdn_loginLink" href="http://ucommjuhl.unl.edu/planetred/elgg/?loginwith=UNLlogin"><span>UNL Login</span></a></p>
				
				<p style="margin-top: 40px;"><a title="Find your my.UNL password" href="https://login.unl.edu/faq/account-resetpw.shtml">Lost your my.UNL password?</a></p>
			
		</div>
		<div class="two_col right">
				<h2 class="sec_main">Huskers Worldwide</h2>
				<?php 
					$form_body = "<p class=\"login-box\"><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea')) . "</label><br />";
					$form_body .= "<label>" . elgg_echo('password') . "<br />" . elgg_view('input/password', array('internalname' => 'password', 'class' => 'login-textarea')) . "</label><br />";
					$form_body .= elgg_view('input/submit', array('value' => elgg_echo('login'))) . "</p>";
					$form_body .= "<p><a href=\"". $vars['url'] ."account/register.php\">" . elgg_echo('register') . "</a> | <a href=\"". $vars['url'] ."account/forgotten_password.php\">" . elgg_echo('user:password:lost') . "</a></p>";
					echo elgg_view('input/form', array('body' => $form_body, 'action' => "". $vars['url'] ."action/login"));
				?>
		</div>
	</div>