Rev 70 | Rev 120 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
include_once ('php/dnsexit.php');
include_once ('php/sessions_db.php');
include_once ('php/cryptor.php');
include_once ('php/tools.php');
error_reporting(E_ALL);
$configFile = parse_ini_file($_SERVER['DOCUMENT_ROOT'] . FCM_CONFIGFILE, true);
$crypt = Cryptor::getInstance($configFile['cryptor']);
$tmpSessionTab = (isset($_POST["sessionTab"]) && $_POST["sessionTab"] > 0 ? $_POST["sessionTab"] : null);
$handler = MySessionHandler::getInstance($tmpSessionTab, $configFile['mysqli']);
unset($configFile);
ini_set("session.cookie_httponly", 1);
ini_set("session.cookie_secure", 1);
session_set_save_handler($handler, true);
if (!empty($_COOKIE['PHPSESSID'])) {
session_id($_COOKIE['PHPSESSID']);
}
session_start();
initSessionVariables();
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (in_array($_POST["submit"], array(
'TableView',
'CardView'
))) {
$_SESSION["currentLayout"] = $_POST["submit"];
echo "<h2 class=\"text-center py-2\">Store Offers</h2>";
echo printResultHeader();
echo printResult();
MySessionHandler::commit(session_id());
} else if (in_array($_POST["submit"], array("Apply", "Reset"))) {
if ($_POST["submit"] == "Reset") {
$_SESSION["currentView"] = "All";
resetDetailFilter();
} else {
$_SESSION["currentView"] = $_POST["submit"];
detailFilterResults($_POST);
}
echo "<h2 class=\"text-center py-2\">Store Offers</h2>";
echo printResultHeader();
echo printResult();
MySessionHandler::commit(session_id());
}
}