diff --git a/src/asktheoracle.php b/src/asktheoracle.php index 915884f..4c5d94a 100644 --- a/src/asktheoracle.php +++ b/src/asktheoracle.php @@ -89,6 +89,12 @@ else if ( $content['oracle_type'] == "domain" ) $content['oracle_kb_type'] = "name"; $content['showonlinesearches'] = true; } +else if ( $content['oracle_type'] == "searchstr" ) +{ + $content['oracle_type_readable'] = "custom search"; + $content['oracle_kb_type'] = "misc"; + $content['showonlinesearches'] = false; +} else { $content['oracle_type_readable'] = "unknown type"; diff --git a/src/index.php b/src/index.php index 7301ae1..635c6b1 100644 --- a/src/index.php +++ b/src/index.php @@ -119,16 +119,6 @@ $content['searchstr'] = ""; $content['highlightstr'] = ""; $content['EXPAND_HIGHLIGHT'] = "false"; -// --- BEGIN CREATE TITLE -$content['TITLE'] = InitPageTitle(); - -// Append custom title part! -if ( isset($content['searchstr']) && strlen($content['searchstr']) > 0 ) - $content['TITLE'] .= " :: Results for the search '" . $content['searchstr'] . "'"; // Append search -else - $content['TITLE'] .= " :: All Syslogmessages"; -// --- END CREATE TITLE - // --- Read and process filters from search dialog! if ( (isset($_POST['search']) || isset($_GET['search'])) || (isset($_POST['filter']) || isset($_GET['filter'])) ) { @@ -189,9 +179,27 @@ if ( (isset($_POST['search']) || isset($_GET['search'])) || (isset($_POST['filte // Default expand Highlight Arrea! $content['EXPAND_HIGHLIGHT'] = "true"; } + + // Enable oracle link! + if ( isset($content['searchstr']) && strlen($content['searchstr']) > 0 ) + { + $content['enabledoraclesearchstr'] = true; + $content['oraclesearchlink'] = $content['BASEPATH'] . "asktheoracle.php?type=searchstr&query=" . urlencode($content['searchstr']) . "&uid=" . $content['uid_current']; + } } // --- +// --- BEGIN CREATE TITLE +$content['TITLE'] = InitPageTitle(); + +// Append custom title part! +if ( isset($content['searchstr']) && strlen($content['searchstr']) > 0 ) + $content['TITLE'] .= " :: Results for the search '" . $content['searchstr'] . "'"; // Append search +else + $content['TITLE'] .= " :: All Syslogmessages"; +// --- END CREATE TITLE + + // --- BEGIN Custom Code if ( isset($content['Sources'][$currentSourceID]) ) { diff --git a/src/templates/index.html b/src/templates/index.html index 4e86f58..253e6d3 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -1,19 +1,23 @@ -
+ | +