-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbug_report.php
42 lines (37 loc) · 1.18 KB
/
bug_report.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
34
35
36
37
38
39
40
41
42
<?php
require_once 'definings.php';
require_once ROOT_PATH . '/config/functions.php';
sec_session_start();
// Controllo di essere collegato, se sono in test eseguo automaticamente un login.
$log_result = login_check($mysqli);
// Controllo il livello senza tracciarlo, altrimenti qui sarebbe un morire.
$check_level = check_level($mysqli, 2, false);
if($log_result && $check_level == 0) {
$login_checked = true;
/*
* Carico qui diverse informazioni a seconda della pagina richiesta.
*/
$active_page = 14;
$title = "";
$page = "";
require_once ROOT_PATH . '/controllers/bug_report.php';
if(isset($_GET["bug_try"])) {
$title = "Bug Try - Administrator - Fow Deck Hub";
$page = "/pages/event/new_event.php";
} else {
$title = "Bug Reports - Administrator - Fow Deck Hub";
$page = "/pages/bug_report/bug_report_list.php";
$bugs = get_bug_list($mysqli);
$states = get_bug_state_list($mysqli);
}
/*
* Assemblo la pagina.
*/
require_once ROOT_PATH . '/layout/header.php';
require_once ROOT_PATH . $page;
require_once ROOT_PATH . '/layout/footer.php';
} else {
var_dump($log_result);
header("Refresh: 2;URL=login.php");
}
?>