diff --git a/src/admin/index.php b/src/admin/index.php new file mode 100644 index 0000000..11b01f6 --- /dev/null +++ b/src/admin/index.php @@ -0,0 +1,125 @@ + Shows ... + * + * All directives are explained within this file + * + * Copyright (C) 2008 Adiscon GmbH. + * + * This file is part of phpLogCon. + * + * PhpLogCon is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * PhpLogCon is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with phpLogCon. If not, see . + * + * A copy of the GPL can be found in the file "COPYING" in this + * distribution + ********************************************************************* +*/ + +// *** Default includes and procedures *** // +define('IN_PHPLOGCON', true); +$gl_root_path = './../'; + +// Now include necessary include files! +include($gl_root_path . 'include/functions_common.php'); +include($gl_root_path . 'include/functions_frontendhelpers.php'); +include($gl_root_path . 'include/functions_filters.php'); + +// Include LogStream facility +// include($gl_root_path . 'classes/logstream.class.php'); + +// Set PAGE to be ADMINPAGE! +define('IS_ADMINPAGE', true); +$content['IS_ADMINPAGE'] = true; + +InitPhpLogCon(); +InitSourceConfigs(); +InitFrontEndDefaults(); // Only in WebFrontEnd +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'] .= ''; +// --- + +// --- CONTENT Vars +/* +if ( isset($_GET['uid']) ) + $content['uid_current'] = intval($_GET['uid']); +else + $content['uid_current'] = UID_UNKNOWN; + +// Copy UID for later use ... +$content['uid_fromgetrequest'] = $content['uid_current']; + +// Init Pager variables +$content['uid_first'] = UID_UNKNOWN; +$content['uid_last'] = UID_UNKNOWN; +$content['main_pagerenabled'] = false; +$content['main_pager_first_found'] = false; +$content['main_pager_previous_found'] = false; +$content['main_pager_next_found'] = false; +$content['main_pager_last_found'] = false; + +// Set Default reading direction +$content['read_direction'] = EnumReadDirection::Backward; + +// If set read direction property! +if ( isset($_GET['direction']) ) +{ + if ( $_GET['direction'] == "next" ) + { + $content['skiprecords'] = 1; + $content['read_direction'] = EnumReadDirection::Backward; + } + else if ( $_GET['direction'] == "previous" ) + { + $content['skiprecords'] = 1; + $content['read_direction'] = EnumReadDirection::Forward; + } +} +*/ + +/* +// --- BEGIN CREATE TITLE +$content['TITLE'] = InitPageTitle(); + +if ( $content['messageenabled'] == "true" ) +{ + // Append custom title part! + $content['TITLE'] .= " :: Details for '" . $content['uid_current'] . "'"; +} +else +{ + // APpend to title Page title + $content['TITLE'] .= " :: Unknown uid"; +} +// --- END CREATE TITLE +*/ + +// --- Parsen and Output +InitTemplateParser(); +$page -> parser($content, "admin/admin_index.html"); +$page -> output(); +// --- + + +?> \ No newline at end of file diff --git a/src/images/icons/books.png b/src/images/icons/books.png new file mode 100644 index 0000000..dd1a491 Binary files /dev/null and b/src/images/icons/books.png differ diff --git a/src/images/icons/businessman.png b/src/images/icons/businessman.png new file mode 100644 index 0000000..efbc1af Binary files /dev/null and b/src/images/icons/businessman.png differ diff --git a/src/images/icons/businessmen.png b/src/images/icons/businessmen.png index 77ba7f0..23d0917 100644 Binary files a/src/images/icons/businessmen.png and b/src/images/icons/businessmen.png differ diff --git a/src/images/icons/data_edit.png b/src/images/icons/data_edit.png new file mode 100644 index 0000000..b450661 Binary files /dev/null and b/src/images/icons/data_edit.png differ diff --git a/src/images/icons/document_view.png b/src/images/icons/document_view.png new file mode 100644 index 0000000..6838489 Binary files /dev/null and b/src/images/icons/document_view.png differ diff --git a/src/images/icons/googleicon.png b/src/images/icons/googleicon.png new file mode 100644 index 0000000..04c72ea Binary files /dev/null and b/src/images/icons/googleicon.png differ diff --git a/src/images/icons/help.png b/src/images/icons/help.png new file mode 100644 index 0000000..75f2f8d Binary files /dev/null and b/src/images/icons/help.png differ diff --git a/src/include/functions_common.php b/src/include/functions_common.php index 10acfa6..9e8996c 100644 --- a/src/include/functions_common.php +++ b/src/include/functions_common.php @@ -466,7 +466,8 @@ function InitFrontEndVariables() $content['MENU_PREFERENCES'] = $content['BASEPATH'] . "images/icons/preferences.png"; $content['MENU_ADMINENTRY'] = $content['BASEPATH'] . "images/icons/star_blue.png"; $content['MENU_ADMINLOGOFF'] = $content['BASEPATH'] . "images/icons/exit.png"; - $content['MENU_ADMINUSERS'] = $content['BASEPATH'] . "images/icons/businessmen.png"; + $content['MENU_ADMINUSERS'] = $content['BASEPATH'] . "images/icons/businessman.png"; + $content['MENU_ADMINGROUPS'] = $content['BASEPATH'] . "images/icons/businessmen.png"; $content['MENU_SEARCH'] = $content['BASEPATH'] . "images/icons/view.png"; $content['MENU_SELECTION_DISABLED'] = $content['BASEPATH'] . "images/icons/selection.png"; $content['MENU_SELECTION_ENABLED'] = $content['BASEPATH'] . "images/icons/selection_delete.png"; @@ -474,6 +475,8 @@ function InitFrontEndVariables() $content['MENU_NETWORK'] = $content['BASEPATH'] . "images/icons/earth_network.png"; $content['MENU_HELP'] = $content['BASEPATH'] . "images/icons/help.png"; $content['MENU_KB'] = $content['BASEPATH'] . "images/icons/books.png"; + $content['MENU_DOCUMENTVIEW'] = $content['BASEPATH'] . "images/icons/document_view.png"; + $content['MENU_DATAEDIT'] = $content['BASEPATH'] . "images/icons/data_edit.png"; $content['MENU_PAGER_BEGIN'] = $content['BASEPATH'] . "images/icons/media_beginning.png"; $content['MENU_PAGER_PREVIOUS'] = $content['BASEPATH'] . "images/icons/media_rewind.png"; diff --git a/src/include/functions_users.php b/src/include/functions_users.php index 6634153..2e03043 100644 --- a/src/include/functions_users.php +++ b/src/include/functions_users.php @@ -62,6 +62,7 @@ function InitUserSession() { $content['SESSION_LOGGEDIN'] = true; $content['SESSION_USERNAME'] = $_SESSION['SESSION_USERNAME']; + $content['SESSION_ISADMIN'] = $_SESSION['SESSION_ISADMIN']; // Successfully logged in return true; diff --git a/src/templates/admin/admin_index.html b/src/templates/admin/admin_index.html new file mode 100644 index 0000000..9446a1c --- /dev/null +++ b/src/templates/admin/admin_index.html @@ -0,0 +1,11 @@ + + + + + + + + +
{LN_DETAILS_FORSYSLOGMSG}
+ + \ No newline at end of file diff --git a/src/templates/admin/admin_menu.html b/src/templates/admin/admin_menu.html new file mode 100644 index 0000000..b4f959f --- /dev/null +++ b/src/templates/admin/admin_menu.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + +
{LN_ADMINMENU_HOMEPAGE}{LN_ADMINMENU_GENOPT}{LN_ADMINMENU_SOURCEOPT}{LN_ADMINMENU_VIEWSOPT}{LN_ADMINMENU_SEARCHOPT}{LN_ADMINMENU_USEROPT}{LN_ADMINMENU_GROUPOPT} 
diff --git a/src/templates/include_footer.html b/src/templates/include_footer.html index 1723563..7da75ef 100644 --- a/src/templates/include_footer.html +++ b/src/templates/include_footer.html @@ -29,7 +29,7 @@ - +
diff --git a/src/templates/include_header.html b/src/templates/include_header.html index a4314ae..088dfe4 100644 --- a/src/templates/include_header.html +++ b/src/templates/include_header.html @@ -3,8 +3,8 @@ {TITLE} {EXTRA_METATAGS} - - + + {EXTRA_STYLESHEET} {EXTRA_JAVASCRIPT} @@ -13,32 +13,30 @@ - + - - @@ -48,43 +46,48 @@ + @@ -93,21 +96,23 @@ @@ -117,7 +122,14 @@
Satisfied with phpLogCon?
Donate and help keep the project alive!
-
- - - - - -
 {LN_MAIN_SELECTSTYLE}  - - -
-
+
+ + + + + +
 {LN_GEN_LANGUAGE}  + + +
+
-
- - - - - -
 {LN_GEN_LANGUAGE}  - - -
-
+ +
+ + + + + +
 {LN_MAIN_SELECTSTYLE}  + + +
+
+
-
- - - - - -
 {LN_GEN_SELECTSOURCE}  - -
-
+ +
+ + + + + +
 {LN_GEN_SELECTSOURCE}  + +
+
+
-
- - - - - -
 {LN_GEN_SELECTVIEW}  - - -
-
+ +
+ + + + + +
 {LN_GEN_SELECTVIEW}  + + +
+
+
- +
+ + + + + + +