[geeklog-cvs] geeklog: For consistency: Make all plugins display the "Access d...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Nov 23 13:41:55 EST 2008
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/5c18a221429d
changeset: 6485:5c18a221429d
user: Dirk Haun <dirk at haun-online.de>
date: Sun Nov 23 19:40:33 2008 +0100
description:
For consistency: Make all plugins display the "Access denied" message in the same way
diffstat:
2 files changed, 5 insertions(+), 7 deletions(-)
public_html/admin/plugins/spamx/index.php | 7 +++----
public_html/admin/plugins/staticpages/index.php | 5 ++---
diffs (32 lines):
diff -r b2c3c0b8dbe1 -r 5c18a221429d public_html/admin/plugins/spamx/index.php
--- a/public_html/admin/plugins/spamx/index.php Sun Nov 23 19:36:30 2008 +0100
+++ b/public_html/admin/plugins/spamx/index.php Sun Nov 23 19:40:33 2008 +0100
@@ -42,10 +42,9 @@
// Only let admin users access this page
if (!SEC_hasRights('spamx.admin')) {
// Someone is trying to illegally access this page
- $display .= COM_siteHeader('menu', $LANG_SX00['access_denied'])
- . COM_showMessageText($LANG_SX00['access_denied_msg'],
- $LANG_SX00['access_denied'])
- . COM_siteFooter(true);
+ $display .= COM_siteHeader('menu', $MESSAGE[30])
+ . COM_showMessageText($MESSAGE[29], $MESSAGE[30])
+ . COM_siteFooter();
COM_accessLog("Someone has tried to illegally access the Spam-X Admin page. User id: {$_USER['uid']}, Username: {$_USER['username']}, IP: {$_SERVER['REMOTE_ADDR']}", 1);
echo $display;
exit;
diff -r b2c3c0b8dbe1 -r 5c18a221429d public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php Sun Nov 23 19:36:30 2008 +0100
+++ b/public_html/admin/plugins/staticpages/index.php Sun Nov 23 19:40:33 2008 +0100
@@ -40,9 +40,8 @@
$display = '';
if (!SEC_hasRights('staticpages.edit')) {
- $display .= COM_siteHeader('menu', $LANG_STATIC['access_denied'])
- . COM_showMessageText($LANG_STATIC['access_denied_msg'],
- $LANG_STATIC['access_denied'])
+ $display .= COM_siteHeader('menu', $MESSAGE[30])
+ . COM_showMessageText($MESSAGE[29], $MESSAGE[30])
. COM_siteFooter();
COM_accessLog("User {$_USER['username']} tried to illegally access the static pages administration screen.");
echo $display;
More information about the geeklog-cvs
mailing list