source: pmb4.2/trunk/fuentes/pmb/recall.php @ 819

Last change on this file since 819 was 815, checked in by jrpelegrina, 4 years ago

Initial release of pmb 4.2

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1<?php
2// +-------------------------------------------------+
3// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
4// +-------------------------------------------------+
5// $Id: recall.php,v 1.12.4.1 2015-11-09 09:14:03 jpermanne Exp $
6
7header("Expires: Sat, 01 Jan 2000 00:00:00 GMT");
8header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
9header("Cache-Control: post-check=0, pre-check=0",false);
10session_cache_limiter('must-revalidate');
11session_name("pmb".$_COOKIE['PhpMyBibli-SESSID']);
12session_start();
13$_SESSION["last_required"]=$_GET["t"];
14if (!isset($current) || $current!==false) $_SESSION["CURRENT"]=$_GET["current"];
15$_SESSION["MAP_CURRENT"]=$_SESSION["CURRENT"];
16if ($_GET["tri"]) $_SESSION["tri"]=$_GET["tri"];
17//Appel du mode recherche externe
18if (isset($_GET["external"]) && $_GET["external"]==1) {
19        $_SESSION["last_required"]="";
20        if ($_SESSION["session_history"][$_SESSION["CURRENT"]][$_GET["t"]]["GET"]["mode"]!==false) {
21                $mode=$_SESSION["session_history"][$_SESSION["CURRENT"]][$_GET["t"]]["GET"]["mode"];
22                if ($mode<6) $external_type="simple"; else $external_type="multi";
23                echo "<script>document.location='catalog.php?categ=search&mode=7&from_mode=".$mode."&external_type=".$external_type."'</script>";
24        } else {
25                echo "<script>document.location='catalog.php';</script>";
26        }
27} else {
28        //Sinon appel normal
29        if ($_SESSION["session_history"][$_SESSION["CURRENT"]][$_GET["t"]]["URI"])
30                echo "<script>document.location='".$_SESSION["session_history"][$_SESSION["CURRENT"]][$_GET["t"]]["URI"]."';</script>";
31        else echo "<script>document.location='catalog.php';</script>";
32}
33?>
Note: See TracBrowser for help on using the repository browser.