1 |
dpavlin |
1 |
<?php |
2 |
|
|
// Load globals |
3 |
|
|
require_once ("global_vars.php"); |
4 |
|
|
|
5 |
|
|
// If user was not logged in |
6 |
|
|
if ($sess_access_level == 0 ) { |
7 |
|
|
|
8 |
|
|
printf("<br>\n"); |
9 |
|
|
printf("<center>\n"); |
10 |
|
|
printf("<table width=\"50%%\" border=\"1\" class=\"backLight\" cellpadding=\"4\">\n"); |
11 |
|
|
printf("<tr><td class=\"cellPlain\">\n"); |
12 |
|
|
printf("Not Logged In"); |
13 |
|
|
printf("</td></tr>\n"); |
14 |
|
|
printf("<tr><td>\n"); |
15 |
|
|
printf("Invalid or expired session.<BR>\n"); |
16 |
|
|
printf("Please login here: <a href=\"%s\">", $GLOBAL_AUTH_URL); |
17 |
|
|
printf("%s</a><BR><br>\n", $GLOBAL_AUTH_URL); |
18 |
|
|
printf("Use your administrator-assigned account and password.<BR>\n"); |
19 |
|
|
printf("If you cannot login, please e-mail <a href=\"mailto:%s\">%s</a>\n", $GLOBAL_ADMIN_EMAIL, $GLOBAL_ADMIN_NAME); |
20 |
|
|
printf("<br><br>\n"); |
21 |
|
|
printf("</td></tr>\n"); |
22 |
|
|
printf("</table></center>\n"); |
23 |
|
|
|
24 |
|
|
} // end of not logged in message |
25 |
|
|
|
26 |
|
|
// Else access level was not high enough |
27 |
|
|
else { |
28 |
|
|
|
29 |
|
|
printf("<br>\n"); |
30 |
|
|
printf("<center>\n"); |
31 |
|
|
printf("<table width=\"50%%\" border=\"1\" class=\"backLight\" cellpadding=\"4\">\n"); |
32 |
|
|
printf("<tr><td class=\"cellPlain\">\n"); |
33 |
|
|
printf("Insufficient Access Level"); |
34 |
|
|
printf("</td></tr>\n"); |
35 |
|
|
printf("<tr><td>\n"); |
36 |
|
|
printf("This function requires a higher level of access. Please contact your supervisor "); |
37 |
|
|
printf("if you need this functionality to perform your work duties.<br><br>\n"); |
38 |
|
|
|
39 |
|
|
printf("You may have attempted to access a subject area for which you are not currently assigned, "); |
40 |
|
|
printf("or edit a resource which you did not initially create."); |
41 |
|
|
printf("<br><br>\n"); |
42 |
|
|
printf("</td></tr>\n"); |
43 |
|
|
printf("</table></center>\n"); |
44 |
|
|
|
45 |
|
|
} // end of insufficient access message |
46 |
|
|
?> |