From 34e0ce649e87d1889ebcefc78887c9c09bb8ebe4 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 17 Aug 2005 13:35:09 +0000 Subject: [PATCH] some more GUI improvements --- config.php | 46 ++++++++++++++++++++++++++++++----------- events-display.php | 2 +- forms/logs-per-page.php | 5 ++++- index.php | 19 +++++++++++++++++ lang/de.php | 2 +- lang/en.php | 4 ++-- layout/theme.php | 18 +++++++++++----- 7 files changed, 74 insertions(+), 22 deletions(-) diff --git a/config.php b/config.php index 0a58e8e..0f5e4e7 100644 --- a/config.php +++ b/config.php @@ -1,23 +1,31 @@ . See AUTHORS to learn who helped make -it become a reality. +If you have questions about phpLogCon in general, please email info@adiscon.com. +To learn more about phpLogCon, please visit http://www.phplogcon.com. -*/#### #### #### #### #### #### #### #### #### #### +This Project was intiated and is maintened by Rainer Gerhards . +See AUTHORS to learn who helped make it become a reality. + +*/#### #### #### #### #### #### #### #### #### #### // Set some defaults @@ -95,6 +103,8 @@ it become a reality. /* ***** BEGIN VARIOUS SETTINGS ***** */ + //Set to 1 and the Header (image/introduce sentence) will be used! Set 0 to disable it. + define('_ENABLEHEADER', 1); //Set to 1 and User Interface will be used! Set 0 to disable it. define('_ENABLEUI', 0); @@ -103,7 +113,7 @@ it become a reality. define('_DEFLANG', 'en'); // Use UTC time - define('_UTCtime', 1); + define('_UTCtime', 0); // Get messages date by ReceivedAt or DeviceReportedTime define('_DATE', 'ReceivedAt'); @@ -111,6 +121,18 @@ it become a reality. // Coloring priority define('_COLPriority', 1); + // Custom Admin Message (appears on the homepage) + define('_AdminMessage', "Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<
+ Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<
+ Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<
+ Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<
+ Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<
+ Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<
+ Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<
+ Ich bin Timm Herget und dies ist mein phpLogCon, ich bin hier der Admin >_<
+ ja, dieser Satz steht absichtlich 8 mal untereinander :P Damit ich nicht nur eine Zeile hab, mir fiel nicht mehr ein ^^"); + + /* ***** END VARIOUS SETTINGS ***** */ diff --git a/events-display.php b/events-display.php index 7fba4fb..f07bca9 100644 --- a/events-display.php +++ b/events-display.php @@ -53,7 +53,7 @@ See AUTHORS to learn who helped make it become a reality. */ //amount of data records displayed - if($_SESSION['epp'] < 1 || $_SESSION['epp'] > 100) + if($_SESSION['epp'] < 1 || $_SESSION['epp'] > 2000) $myEventsNavigation = new EventsNavigation(20); else $myEventsNavigation = new EventsNavigation($_SESSION['epp']); diff --git a/forms/logs-per-page.php b/forms/logs-per-page.php index 4fc2131..5776afe 100644 --- a/forms/logs-per-page.php +++ b/forms/logs-per-page.php @@ -36,5 +36,8 @@ See AUTHORS to learn who helped make it become a reality. - + + + + diff --git a/index.php b/index.php index a5f8fb9..e9d6bf2 100644 --- a/index.php +++ b/index.php @@ -136,6 +136,11 @@ See AUTHORS to learn who helped make it become a reality. $rowIndex = 'num'; else $rowIndex = 0; + + if (_AdminMessage != "") + { + echo "

"._AdminMessage."
"; + } echo "

" . _MSGQuiInf . ":"; echo "
"; @@ -205,6 +210,20 @@ See AUTHORS to learn who helped make it become a reality. echo ""; } echo "
"; + echo "[more...]"; + + // 2005-08-17 by therget ---> + // If any date is in the future, show a message on the homepage. + $now = date("Y-m-d g:i:s"); + $sqlstatement = "SELECT COUNT(*) AS datecount FROM "._DBTABLENAME ." WHERE "._DATE." > '".$now."'"; + $result = db_exec($global_Con,$sqlstatement); + $db_datecount = db_fetch_array($result, "datecount"); + + if ($db_datecount[0] > 0) + { + echo "

Note: There are ".$db_datecount[0]." Events in the Database, which are in the future"; + } + // <--- End 2005-08-17 by therget } WriteFooter(); diff --git a/lang/de.php b/lang/de.php index 668d824..2058b48 100644 --- a/lang/de.php +++ b/lang/de.php @@ -38,7 +38,7 @@ define('_MSGLogSuc', 'Login erfolgreich'); define('_MSGWel', 'Willkommen bei phpLogCon'); define('_MSGChoOpt', '! Wählen sie unter den Optionen aus dem obrigen Menü aus'); define('_MSGQuiInf', 'Kurz-Info (Unter Berücksichtigung der Filtereinstellungen)'); -define('_MSGTop5', 'Top fünf Logs (Unter Berücksichtigung der Filtereinstellungen)'); +define('_MSGTop5', 'Letzte fünf Logs (Unter Berücksichtigung der Filtereinstellungen)'); define('_MSGNoData', 'Keine Daten gefunden'); define('_MSGDate', 'Datum'); define('_MSGFac', 'Facility'); diff --git a/lang/en.php b/lang/en.php index bcbe27b..ea12dd8 100644 --- a/lang/en.php +++ b/lang/en.php @@ -37,8 +37,8 @@ define('_MSGpas', 'Password'); define('_MSGLogSuc', 'Login successfully'); define('_MSGWel', 'Welcome to phpLogCon'); define('_MSGChoOpt', '! Choose an option from the menu above'); -define('_MSGQuiInf', 'Quick info (under respect of filter settings)'); -define('_MSGTop5', 'Top five logs (under respect of filter settings)'); +define('_MSGQuiInf', 'Quick info (filter settings apply)'); +define('_MSGTop5', '5 most recent logs (filter settings apply)'); define('_MSGNoData', 'No data found'); define('_MSGDate', 'Date'); define('_MSGFac', 'Facility'); diff --git a/layout/theme.php b/layout/theme.php index dd771c5..acdd787 100644 --- a/layout/theme.php +++ b/layout/theme.php @@ -43,7 +43,6 @@ See AUTHORS to learn who helped make it become a reality. */ /*! - * Include the stylesheeh * */ @@ -52,6 +51,10 @@ See AUTHORS to learn who helped make it become a reality. * generate the url for pint version * /return The Url refer to the pint version of the current page. */ + + // very important to include config settings at beginning! (enable header setting) + // include 'config.php'; + function GetPrinterURL() { global $PHP_SELF, $QUERY_STRING; @@ -81,10 +84,15 @@ See AUTHORS to learn who helped make it become a reality. - - + + "; + } + ?>
-

phpLogCon monitoring

-
+

phpLogCon monitoring

+