Mercurial > hg > fapweb
changeset 720:4f334b3c884f
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 13 Nov 2014 09:30:40 +0200 |
parents | 47ac0a213fba |
children | 69a829f687a9 |
files | print.php |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/print.php Wed Nov 12 21:03:12 2014 +0200 +++ b/print.php Thu Nov 13 09:30:40 2014 +0200 @@ -18,15 +18,14 @@ if (!stCheckHTTPS() || !stAdmSessionAuth(TRUE)) { stSetupCacheControl(); - stSessionEnd(SESS_ADMIN); - stSetStatus(404, "Not Found"); cmPrintPageHeader("Error"); - echo "<h1>Permission denied</h1>\n". - "<p>You need to be logged in as administrator to access this data.</p>\n". - "<p><a href=\"admin.php\">Click here for login form</a></p>\n"; + echo + "<h1>Permission denied</h1>\n". + "<p>You need to be logged in as administrator to access this data.</p>\n". + "<p><a href=\"admin.php\">Click here for login form</a></p>\n"; cmPrintPageFooter(); exit; }