From 7b91045507463a54599823ea61aed644e9d5ff7e Mon Sep 17 00:00:00 2001 From: rob Date: Tue, 25 Feb 2003 15:23:40 +0000 Subject: [PATCH] Added functionality to deal with inability to set the action query string variable when submitting the search page via a get --- control.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/control.php b/control.php index 68e493f..c9a9713 100644 --- a/control.php +++ b/control.php @@ -22,14 +22,17 @@ require_once("./config/dmsDefaults.php"); // ------------------------------- // page start // ------------------------------- - +//echo $_SERVER["QUERY_STRING"]; // check the session, but don't redirect if the check fails if (checkSessionAndRedirect(false)) { - // session check succeeds, so default action should be the dashboard if no action was specified - if (!isset($action)) { - $action = "dashboard"; - } -} else { + //get around the problem with search + if (strcmp($fForStandardSearch, "yes") == 0) { + $action = "standardSearch"; + } else if (!isset($action)) { + // session check succeeds, so default action should be the dashboard if no action was specified + $action = "dashboard"; + } +} else { // session check fails, so default action should be the login form if no action was specified if (!isset($action)) { $action = "loginForm"; @@ -39,6 +42,7 @@ if (checkSessionAndRedirect(false)) { // need to strip query string params from action before attempting to retrieve from sitemap // check for the presence of additional params +//echo $_SERVER["QUERY_STRING"]; if (strstr($_SERVER["QUERY_STRING"], "&")) { // strip and save the querystring $queryString = substr($_SERVER["QUERY_STRING"], strpos($_SERVER["QUERY_STRING"], "&")+1, strlen($_SERVER["QUERY_STRING"])); -- libgit2 0.21.4