Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PlanetRed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
PlanetRed
Commits
06536ef9
Commit
06536ef9
authored
13 years ago
by
Seth Meranda
Browse files
Options
Downloads
Patches
Plain Diff
remove registration form in case anyone happens across the page.
parent
fdc088dc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/unl_theme/views/default/account/forms/register.php
+10
-44
10 additions, 44 deletions
plugins/unl_theme/views/default/account/forms/register.php
with
10 additions
and
44 deletions
plugins/unl_theme/views/default/account/forms/register.php
+
10
−
44
View file @
06536ef9
...
...
@@ -45,53 +45,19 @@
<h2
class=
"sec_header"
>
<?php
echo
elgg_echo
(
'register'
);
?>
</h2>
<div
class=
"three_col left formCool"
>
<div
id=
"nojs-notice"
><h1>
You must have JavaScript enabled to register. Please enable JavaScript and refresh the page.
</h1></div>
<div
id=
"register-nojs"
style=
"display:none;"
>
<p>
Huskers worldwide are encouraged to create an account in order to use the social network. Upon creating an account with the form below,
you will be sent an email with a verification link. Click the link to gain access by activating your account.
</p>
<?php
echo
elgg_view
(
'input/form'
,
array
(
'action'
=>
"
{
$vars
[
'url'
]
}
action/register"
,
'body'
=>
$form_body
))
?>
<p
style=
"clear:both"
><a
<?php
echo
" href=
\"
"
.
$vars
[
'url'
]
.
"account/forgotten_password.php
\"
>"
?>
Forgot
your
password
?</
a
></p>
</div>
<p>
Planet Red is a closed social network only available to current Faculty, Staff and Students at UNL.
</p>
</div>
<div
class=
"col right"
>
<div
class=
"zenbox cool"
>
<h3>
my.UNL Account Users
</h3>
<p>
If you have a my.UNL account (used for most UNL services, like Blackboard), then we have an account waiting for you without registering.
</p>
<?php
$form_body
=
"<p>"
;
$form_body
.
=
elgg_view
(
'input/submit'
,
array
(
'value'
=>
elgg_echo
(
'UNL Login'
)))
.
"</p>"
;
$form_body
.
=
"<p><a href=
\"
https://login.unl.edu/faq/account-resetpw.shtml
\"
>"
.
elgg_echo
(
'Forgot your my.UNL password?'
)
.
"</a></p>"
;
$ts
=
time
();
$token
=
generate_action_token
(
$ts
);
echo
elgg_view
(
'input/form'
,
array
(
'body'
=>
$form_body
,
'action'
=>
""
.
$vars
[
'url'
]
.
"action/login?usecas=yes&__elgg_ts=
$ts
&__elgg_token=
$token
"
));
?>
<?php
$form_body
=
"<p>"
;
$form_body
.
=
elgg_view
(
'input/submit'
,
array
(
'value'
=>
elgg_echo
(
'UNL Login'
)))
.
"</p>"
;
$form_body
.
=
"<p><a href=
\"
https://login.unl.edu/faq/account-resetpw.shtml
\"
>"
.
elgg_echo
(
'Forgot your my.UNL password?'
)
.
"</a></p>"
;
$ts
=
time
();
$token
=
generate_action_token
(
$ts
);
echo
elgg_view
(
'input/form'
,
array
(
'body'
=>
$form_body
,
'action'
=>
""
.
$vars
[
'url'
]
.
"action/login?usecas=yes&__elgg_ts=
$ts
&__elgg_token=
$token
"
));
?>
</div>
</div>
<script
type=
"text/javascript"
>
function
validate_required
(
field
){
with
(
field
){
if
(
value
.
match
(
/^unl_/i
)
!=
null
){
alert
(
"
Please select a username that does not begin with unl_
"
);
return
false
;
}
else
return
true
;
}
}
function
validate_form
(
thisform
){
with
(
thisform
){
if
(
validate_required
(
username
)
==
false
){
username
.
focus
();
return
false
;
}
}
}
WDN
.
jQuery
(
document
).
ready
(
function
(){
WDN
.
jQuery
(
'
#register-nojs
'
).
show
();
WDN
.
jQuery
(
'
#nojs-notice
'
).
hide
();
WDN
.
jQuery
(
'
div.formCool form
'
).
attr
(
'
onsubmit
'
,
'
return validate_form(this)
'
);
});
</script>
\ No newline at end of file
</div>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment