| 11 |
- |
1 |
<?php
|
| 20 |
- |
2 |
include_once('php/dnsexit.php');
|
| 11 |
- |
3 |
include_once('php/sessions_db.php');
|
|
|
4 |
include_once('php/cryptor.php');
|
|
|
5 |
include_once('php/tools.php');
|
|
|
6 |
|
|
|
7 |
error_reporting(E_ALL);
|
|
|
8 |
|
|
|
9 |
$configFile = parse_ini_file("../MyFiles/config/cheapmusic.ini",true);
|
|
|
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);
|
|
|
18 |
session_start();
|
|
|
19 |
|
|
|
20 |
initSessionVariables();
|
|
|
21 |
|
|
|
22 |
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
| 20 |
- |
23 |
|
| 11 |
- |
24 |
if (in_array($_POST["submit"], $buttonArr)) {
|
|
|
25 |
$_SESSION["currentView"] = $_POST["submit"];
|
|
|
26 |
|
|
|
27 |
filterResults();
|
|
|
28 |
echo printTableHeader();
|
|
|
29 |
echo buildTable();
|
| 21 |
- |
30 |
MySessionHandler::commit(session_id());
|
| 11 |
- |
31 |
}
|
|
|
32 |
}
|