Example #1
0
if (isset($_SESSION["acid_sig_refs"])) {
    $tmp_sig_refs = $_SESSION["acid_sig_refs"];
}
$_SESSION = NULL;
if (isset($user_ossim_tmp)) {
    $_SESSION["_user"] = $user_ossim_tmp;
}
if (isset($tmp_signatures)) {
    $_SESSION["acid_sig_names"] = $tmp_signatures;
}
if (isset($tmp_sig_refs)) {
    $_SESSION["acid_sig_refs"] = $tmp_sig_refs;
}*/
InitArray($_SESSION['back_list'], 1, 3, "");
$_SESSION['back_list_cnt'] = 0;
PushHistory();
// Check role out and redirect if needed -- Kevin
$roleneeded = 10000;
$BUser = new BaseUser();
//if (($Use_Auth_System == 1) && ($BUser->hasRole($roleneeded) == 0))
if ($Use_Auth_System == 1) {
    if ($BUser->hasRole($roleneeded) == 0) {
        base_header("Location: {$BASE_urlpath}/index.php");
    }
}
// Set cookie to use the correct db.
if (isset($_GET['archive'])) {
    "no" == $_GET['archive'] ? $value = 0 : ($value = 1);
    setcookie('archive', $value);
    base_header("Location: {$BASE_urlpath}/base_main.php");
}
 function ReadState()
 {
     RegisterGlobalState();
     /*
      * If the BACK button was clicked, shuffle the appropriate
      * criteria variables from the $back_list (history) array into
      * the current session ($_SESSION)
      */
     if ($GLOBALS['maintain_history'] == 1 && ImportHTTPVar("back", VAR_DIGIT) == 1) {
         PopHistory();
     }
     /*
      * Import, update and sanitize all persistant criteria variables
      */
     $valid_criteria_list = array_keys($this->criteria);
     foreach ($valid_criteria_list as $cname) {
         $this->criteria[$cname]->Import();
         $this->criteria[$cname]->Sanitize();
     }
     /*
      * Check whether criteria elements need to be cleared
      */
     $this->clear_criteria_name = ImportHTTPVar("clear_criteria", "", array_keys($this->criteria));
     $this->clear_criteria_element = ImportHTTPVar("clear_criteria_element", "", array_keys($this->criteria));
     $this->clear_allcriteria = ImportHTTPVar("clear_allcriteria", "1");
     if ($this->clear_criteria_name != "") {
         $this->ClearCriteriaStateElement($this->clear_criteria_name, $this->clear_criteria_element);
     }
     if ($this->clear_allcriteria != "") {
         $this->ClearAllCriteria();
     }
     /*
      * Save the current criteria into $back_list (history)
      */
     if ($GLOBALS['maintain_history'] == 1) {
         PushHistory();
     }
 }