Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sucs-site
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Alexander Moras
sucs-site
Commits
b9db1f21
Commit
b9db1f21
authored
7 years ago
by
Kit Manners
Committed by
Imran Hussain
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remember the student number if they entered it in a previous form
parent
459d1ed8
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
components/signup.php
+4
-0
4 additions, 0 deletions
components/signup.php
components/susignup.php
+2
-0
2 additions, 0 deletions
components/susignup.php
templates/signup.tpl
+1
-1
1 addition, 1 deletion
templates/signup.tpl
templates/susignup.tpl
+2
-1
2 additions, 1 deletion
templates/susignup.tpl
with
9 additions
and
2 deletions
components/signup.php
+
4
−
0
View file @
b9db1f21
...
...
@@ -50,6 +50,10 @@ if (isset($_REQUEST['signupid']) && isset($_REQUEST['signuppw'])) {
// pass on the id and passwd and id the validation is overridable
$smarty
->
assign
(
"signupid"
,
$signupid
);
$smarty
->
assign
(
"signuppw"
,
$signuppw
);
// pass on the student id if it exists
if
(
isset
(
$_REQUEST
[
'signupsid'
]))
{
$smarty
->
assign
(
"signupsid"
,
$signupsid
);
}
$smarty
->
assign
(
"overridable"
,
$overridable
);
$smarty
->
assign
(
"usertype"
,
$row
[
type
]);
// if accepting the form
...
...
This diff is collapsed.
Click to expand it.
components/susignup.php
+
2
−
0
View file @
b9db1f21
...
...
@@ -51,6 +51,7 @@ if (!empty($_REQUEST['sid']) && !empty($_REQUEST['transactionID'])) {
$mode
=
"form"
;
$smarty
->
assign
(
"id"
,
$signuptmpresult
->
fields
[
"id"
]);
$smarty
->
assign
(
"pass"
,
$signuptmpresult
->
fields
[
"password"
]);
$smarty
->
assign
(
"sid"
,
$signuptmpresult
->
fields
[
"sid"
]);
// else if they aren't in the SUCS DB, then bootstrap signup process
}
else
if
(
$tmpresult
->
fields
==
false
)
{
$mode
=
"form"
;
...
...
@@ -59,6 +60,7 @@ if (!empty($_REQUEST['sid']) && !empty($_REQUEST['transactionID'])) {
$id
=
$iddata
->
fields
[
'id'
];
$smarty
->
assign
(
"id"
,
$id
);
$smarty
->
assign
(
"pass"
,
$pass
);
$smarty
->
assign
(
"sid"
,
$sid
);
}
else
{
// they should never get here
die
(
"You'll see this if there has been a database error. Someone probably knows and is trying to fix it. Sorry."
);
...
...
This diff is collapsed.
Click to expand it.
templates/signup.tpl
+
1
−
1
View file @
b9db1f21
...
...
@@ -36,7 +36,7 @@
<div
class=
"row"
id=
"studentiddiv"
>
<label
for=
"studentid"
>
Student Number
</label>
<span
class=
"textinput"
><input
type=
"text"
id=
"studentid"
name=
"studentid"
size=
"30"
{
if
$mode
==
're-form'
}
value=
'
{
$fields.studentid
}
'
{/
if
}
/></span>
{
if
$mode
==
're-form'
}
value=
'
{
$fields.studentid
}
'
{
elseif
isset
(
$signupsid
)
}
value=
'
{
$signupsid
}
'
{
/
if
}
/></span>
<div
id=
"studentidmessage"
{
if
$mode
==
're-form'
}{
if
isset
(
$errors.studentid
)
}
style=
"color:red; float:right; clear:right;"
>
{
$errors.studentid
}{
else
}
style="color:green;
...
...
This diff is collapsed.
Click to expand it.
templates/susignup.tpl
+
2
−
1
View file @
b9db1f21
...
...
@@ -39,6 +39,7 @@
<form
action=
"
{
$baseurl
}
/signup/"
method=
"post"
>
<input
type=
hidden
name=
"signupid"
id=
"id"
value=
"
{
$id
}
"
/>
<input
type=
hidden
name=
"signuppw"
id=
"pass"
value=
"
{
$pass
}
"
/>
<input
type=
hidden
name=
"signupsid"
id=
"sid"
value=
"
{
$sid
}
"
/>
<input
type=
submit
name=
"submit"
value=
"Proceed"
/>
</form>
{
else
}
...
...
@@ -49,4 +50,4 @@
An error occured during signup, please email, with as much information as you can provide,
<a
href=
'mailto:admin@sucs.org'
>
admin@sucs.org
</a>
for assistance.
{/
if
}
\ No newline at end of file
{/
if
}
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