| 11 |
- |
1 |
<?php
|
| 65 |
- |
2 |
include_once ('php/dnsexit.php');
|
|
|
3 |
include_once ('php/sessions_db.php');
|
|
|
4 |
include_once ('php/cryptor.php');
|
|
|
5 |
include_once ('php/tools.php');
|
| 11 |
- |
6 |
|
|
|
7 |
error_reporting(E_ALL);
|
|
|
8 |
|
| 70 |
- |
9 |
$configFile = parse_ini_file($_SERVER['DOCUMENT_ROOT'] . FCM_CONFIGFILE, true);
|
| 11 |
- |
10 |
$crypt = Cryptor::getInstance($configFile['cryptor']);
|
|
|
11 |
$tmpSessionTab = (isset($_POST["sessionTab"]) && $_POST["sessionTab"] > 0 ? $_POST["sessionTab"] : null);
|
|
|
12 |
$handler = MySessionHandler::getInstance($tmpSessionTab, $configFile['mysqli']);
|
|
|
13 |
unset($configFile);
|
|
|
14 |
|
|
|
15 |
ini_set("session.cookie_httponly", 1);
|
|
|
16 |
ini_set("session.cookie_secure", 1);
|
|
|
17 |
session_set_save_handler($handler, true);
|
| 32 |
- |
18 |
if (!empty($_COOKIE['PHPSESSID'])) {
|
|
|
19 |
session_id($_COOKIE['PHPSESSID']);
|
|
|
20 |
}
|
| 11 |
- |
21 |
session_start();
|
|
|
22 |
|
|
|
23 |
initSessionVariables();
|
|
|
24 |
|
|
|
25 |
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
| 65 |
- |
26 |
if (in_array($_POST["submit"], $buttonArr)) {
|
|
|
27 |
$_SESSION["currentView"] = $_POST["submit"];
|
|
|
28 |
filterResults();
|
| 59 |
- |
29 |
echo printResultHeader();
|
| 65 |
- |
30 |
echo printResult();
|
| 21 |
- |
31 |
MySessionHandler::commit(session_id());
|
| 65 |
- |
32 |
}
|
|
|
33 |
else if (in_array($_POST["submit"], array(
|
|
|
34 |
'TableView',
|
|
|
35 |
'CardView'
|
|
|
36 |
))) {
|
|
|
37 |
$_SESSION["currentLayout"] = $_POST["submit"];
|
| 59 |
- |
38 |
echo printResultHeader();
|
| 65 |
- |
39 |
echo printResult();
|
| 59 |
- |
40 |
MySessionHandler::commit(session_id());
|
| 66 |
- |
41 |
} else if (in_array($_POST["submit"], array("Apply", "Reset"))) {
|
|
|
42 |
if ($_POST["submit"] == "Reset") {
|
|
|
43 |
$_SESSION["currentView"] = "All";
|
|
|
44 |
resetDetailFilter();
|
|
|
45 |
} else {
|
|
|
46 |
$_SESSION["currentView"] = $_POST["submit"];
|
|
|
47 |
detailFilterResults($_POST);
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
echo printResultHeader();
|
|
|
51 |
echo printResult();
|
|
|
52 |
MySessionHandler::commit(session_id());
|
| 65 |
- |
53 |
}
|
| 70 |
- |
54 |
}
|