Skip to content
Snippets Groups Projects
Commit 94d56329 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Move $ts and $token up on the page before calling them; Add in needed ?

parent 4597c3fa
No related branches found
No related tags found
No related merge requests found
......@@ -9,29 +9,28 @@
* @link http://www.unl.edu/
*/
if($vars['config']->input['view'] == 'mobile')
if ($vars['config']->input['view'] == 'mobile') {
$viewmobile = 'view=mobile';
else
$viewmobile = '';
} else {
$viewmobile = '';
}
$ts = time();
$token = generate_action_token($ts);
?>
<div id="actionBar" class="casLogin">
<div id="casOption">
<a href="<?php echo $vars['url'] ?>action/login?usecas=yes&__elgg_ts=<?php echo $ts; ?>&__elgg_token=<?php echo $token; ?>&<?php echo $viewmobile;?>" id="casLogin">Login</a>
<?php
$ts = time();
$token = generate_action_token($ts);
?>
<div class="loginMessage">
with your My.UNL Account<br />
<span>for Faculty, Staff and Students</span>
</div>
</div>
<div id="elggOption">
<a href="<?php echo $vars['url'] .'pg/login'.$viewmobile?>" class="switchAction"></a>
<a href="<?php echo $vars['url'] .'pg/login?'.$viewmobile?>" class="switchAction"></a>
<div class="optionMessage">
Don't have a My.UNL Account?
<ul>
<li><a href="<?php echo $vars['url'] .'pg/login'.$viewmobile?>" class="switchAction">Login</a></li>
<li><a href="<?php echo $vars['url'] .'pg/login?'.$viewmobile?>" class="switchAction">Login</a></li>
<li><a href="<?php echo $vars['url'] .'account/register.php?'.$viewmobile?>">Register</a></li>
</ul>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment