From 009cc63d1f497ef8b14a160afa079c6004e609d9 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Fri, 14 Mar 2008 15:53:55 +0100 Subject: [PATCH] -splitted search from index site --- search.php | 54 +++++++++++ templates/include_menu.html | 3 +- templates/index.html | 2 +- templates/search.html | 184 ++++++++++++++++++++++++++++++++++++ 4 files changed, 241 insertions(+), 2 deletions(-) create mode 100644 search.php create mode 100644 templates/search.html diff --git a/search.php b/search.php new file mode 100644 index 0000000..f12cf8c --- /dev/null +++ b/search.php @@ -0,0 +1,54 @@ + www.phplogcon.org <- * + * * + * Use this script at your own risk! * + * ----------------------------------------------------------------- * + * Main Index File * + * * + * -> Loads the main PhpLogCon Site * + * * + * All directives are explained within this file * + ********************************************************************* +*/ + +// *** Default includes and procedures *** // +define('IN_PHPLOGCON', true); +$gl_root_path = './'; +include($gl_root_path . 'include/functions_common.php'); +include($gl_root_path . 'include/functions_frontendhelpers.php'); +include($gl_root_path . 'include/functions_filters.php'); + +InitPhpLogCon(); +InitSourceConfigs(); +InitFrontEndDefaults(); // Only in WebFrontEnd + +// Init Langauge first! +IncludeLanguageFile( $gl_root_path . '/lang/' . $LANG . '/main.php' ); + +// Helpers for frontend filtering! +InitFilterHelpers(); +// *** *** // + +// --- CONTENT Vars +// --- + +//if ( isset($content['myserver']) ) +// $content['TITLE'] = "PhpLogCon :: Home :: Server '" . $content['myserver']['Name'] . "'"; // Title of the Page +//else + $content['TITLE'] = "PhpLogCon :: Search"; +// --- + +// --- BEGIN Custom Code + +// --- + +// --- Parsen and Output +InitTemplateParser(); +$page -> parser($content, "search.html"); +$page -> output(); +// --- + +?> \ No newline at end of file diff --git a/templates/include_menu.html b/templates/include_menu.html index 4637adb..f3aff8d 100644 --- a/templates/include_menu.html +++ b/templates/include_menu.html @@ -1,6 +1,7 @@ - + + diff --git a/templates/index.html b/templates/index.html index d21cbfd..fa8f986 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,7 +16,7 @@
diff --git a/templates/search.html b/templates/search.html new file mode 100644 index 0000000..8cde23e --- /dev/null +++ b/templates/search.html @@ -0,0 +1,184 @@ + + +
Show EventsSearchShow Events Show SysLogTags User Options Database Options - {LN_SEARCH_ADVANCED} + {LN_SEARCH_ADVANCED}
(sample: faciliy:local0 severity:warn)
+ + + + +
+  {LN_SEARCH_FILTER} + +
+
+ +
+ + + + + + + + + + + + + + +
+ + + + + + + + + +
+ {LN_FILTER_DATE}
{LN_FILTER_DATEMODE} + +
+ +
+ + + + + + + + + +
{LN_FILTER_DATEFROM} + + - + + - + +
{LN_FILTER_DATETO} + + - + + - + +
+
+ +
+ + + + + +
{LN_FILTER_DATELASTX} + +
+
+ + +
  + + + + + + + + + + + +
+ {LN_FILTER_OTHERS}
{LN_FILTER_FACILITY} + + {LN_FILTER_SEVERITY} + +
+
+ + + + + + + + +
+ {LN_FILTER_MESSAGE}
+ +
+
  + + + + + + + + + + +
{LN_FILTER_SYSLOGTAG} + +
{LN_FILTER_SOURCE} + +
+
+
+ +
+
+ +
+ + \ No newline at end of file