diff options
| author | Andy Staudacher <andy.st@gmail.com> | 2010-02-12 16:40:44 -0800 |
|---|---|---|
| committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-12 16:40:44 -0800 |
| commit | d53f6d0e052fb455059170a311640fcd06cad798 (patch) | |
| tree | 70541a2a2680b1febaf4383cdf9581b56bd66573 /modules/gallery/views/error_404.html.php | |
| parent | ce71ea6aa7eac72e54b1a9d7722c87beb61327de (diff) | |
Fix for tickets 1009 and 603: Show a themed error page to guests / registered users (not to admins though). And show a login form to guests for 404 (incl. insufficient view permissions) errors.
Diffstat (limited to 'modules/gallery/views/error_404.html.php')
| -rw-r--r-- | modules/gallery/views/error_404.html.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/gallery/views/error_404.html.php b/modules/gallery/views/error_404.html.php new file mode 100644 index 00000000..e5846e65 --- /dev/null +++ b/modules/gallery/views/error_404.html.php @@ -0,0 +1,21 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="g-error"> + <h1> + <?= t("Dang... Page not found!") ?> + </h1> + <? if ($is_guest): ?> + <h2> + <?= t("Hey wait, you're not signed in yet!") ?> + </h2> + <p> + <?= t("Maybe the page exists, but is only visible to authorized users.") ?> + <?= t("Please sign in to find out.") ?> + </p> + <?= $login_form ?> + <? else: ?> + <p> + <?= t("Maybe the page exists, but is only visible to authorized users.") ?> + <?= t("Talk to your Gallery administrator if you think this is an error for help fixing this!") ?> + </p> + <? endif; ?> +</div>
\ No newline at end of file |
