diff --git a/src/admin/index.php b/src/admin/index.php index 33507f2..b804850 100644 --- a/src/admin/index.php +++ b/src/admin/index.php @@ -55,15 +55,17 @@ InitFilterHelpers(); // Helpers for frontend filtering! // Init admin langauge file now! IncludeLanguageFile( $gl_root_path . '/lang/' . $LANG . '/admin.php' ); -// --- Define Extra Stylesheet! -//$content['EXTRA_STYLESHEET'] = '' . "\r\n"; -//$content['EXTRA_STYLESHEET'] .= ''; -// --- - // --- BEGIN Custom Code -// Check for changes first -if ( isset($_POST['op']) ) +if ( isset($_SESSION['SESSION_ISADMIN']) && $_SESSION['SESSION_ISADMIN'] == 1 ) + $content['EditAllowed'] = true; +else + $content['EditAllowed'] = false; + + + +// Check for changes first | Abort if Edit is not allowed +if ( isset($_POST['op']) && $content['EditAllowed'] ) { if ( $_POST['op'] == "edit" ) { @@ -135,8 +137,6 @@ if ($content['MiscShowDebugGridCounter'] == 1) { $content['MiscShowDebugGridCoun if ($content['MiscShowPageRenderStats'] == 1) { $content['MiscShowPageRenderStats_checked'] = "checked"; } else { $content['MiscShowPageRenderStats_checked'] = ""; } if ($content['MiscEnableGzipCompression'] == 1) { $content['MiscEnableGzipCompression_checked'] = "checked"; } else { $content['MiscEnableGzipCompression_checked'] = ""; } if ($content['DebugUserLogin'] == 1) { $content['DebugUserLogin_checked'] = "checked"; } else { $content['DebugUserLogin_checked'] = ""; } - - // --- // --- BEGIN CREATE TITLE diff --git a/src/lang/en/admin.php b/src/lang/en/admin.php index 3d0245a..364021f 100644 --- a/src/lang/en/admin.php +++ b/src/lang/en/admin.php @@ -51,13 +51,14 @@ $content['LN_GEN_GROUPONLYNAME'] = "Group '%1'"; // General Options +$content['LN_ADMIN_GLOBFRONTEND'] = "Global frontend options"; +$content['LN_ADMIN_USERFRONTEND'] = "User specific frontend options"; $content['LN_ADMIN_MISC'] = "Miscellaneous Options"; $content['LN_GEN_SHOWDEBUGMSG'] = "Show Debug messages"; $content['LN_GEN_DEBUGGRIDCOUNTER'] = "Show Debug Gridcounter"; $content['LN_GEN_SHOWPAGERENDERSTATS'] = "Show Pagerenderstats"; $content['LN_GEN_ENABLEGZIP'] = "Enable GZIP Compressed Output"; $content['LN_GEN_DEBUGUSERLOGIN'] = "Debug Userlogin"; -$content['LN_ADMIN_FRONTEND'] = "Frontend Options"; $content['LN_GEN_WEBSTYLE'] = "Default selected style"; $content['LN_GEN_SELLANGUAGE'] = "Default selected language"; $content['LN_GEN_PREPENDTITLE'] = "Prepend this string in title"; @@ -73,7 +74,7 @@ $content['LN_GEN_SUCCESSFULLYSAVED'] = "The configuration Values have been succe $content['LN_GEN_INTERNAL'] = "Internal"; $content['LN_GEN_DISABLED'] = "Function disabled"; $content['LN_GEN_CONFIGFILE'] = "Configuration File"; -$content['LN_GEN_'] = ""; +$content['LN_GEN_ACCESSDENIED'] = "Access denied to this function"; // User Center $content['LN_USER_CENTER'] = "User Options"; diff --git a/src/templates/admin/admin_index.html b/src/templates/admin/admin_index.html index 78c9bac..7f3e525 100644 --- a/src/templates/admin/admin_index.html +++ b/src/templates/admin/admin_index.html @@ -12,7 +12,7 @@ + {LN_ADMIN_GLOBFRONTEND} @@ -95,11 +95,16 @@ -
- {LN_ADMIN_FRONTEND}
{LN_GEN_WEBSTYLE}{LN_GEN_DEBUGUSERLOGIN}
+ + + + + +