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