Last change
on this file was 0791611, checked in by sstalevska <sara.stalevska@…>, 2 years ago |
Push the entire project.
|
-
Property mode
set to
100644
|
File size:
697 bytes
|
Rev | Line | |
---|
[0791611] | 1 | <?php
|
---|
| 2 | /**
|
---|
| 3 | * If the "err" parameter is in the page URL, display the corresponding error message.
|
---|
| 4 | */
|
---|
| 5 | ?>
|
---|
| 6 | <?php if ((isset($_GET['err'])) && (! empty($_GET['err']))) { ?>
|
---|
| 7 | <div class="alert alert-danger" role="alert">
|
---|
| 8 | <strong>ERROR:</strong>
|
---|
| 9 | <?php
|
---|
| 10 | switch ($_GET['err']) {
|
---|
| 11 | case 'no_id':
|
---|
| 12 | echo 'Missing parameter.'; break;
|
---|
| 13 | case 'bad_id':
|
---|
| 14 | echo 'Item not found.'; break;
|
---|
| 15 | case 'missing_params':
|
---|
| 16 | echo 'Some parameters are missing.'; break;
|
---|
| 17 | case 'wrong_params':
|
---|
| 18 | echo 'Some parameters are incorrect.'; break;
|
---|
| 19 | case 'permission_error':
|
---|
| 20 | echo 'You do not have enough permissions.'; break;
|
---|
| 21 | default:
|
---|
| 22 | echo 'An unknown error has occurred.';
|
---|
| 23 | }
|
---|
| 24 | ?>
|
---|
| 25 | </div>
|
---|
| 26 | <?php } ?> |
---|
Note:
See
TracBrowser
for help on using the repository browser.