-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcards.php
29 lines (27 loc) · 963 Bytes
/
cards.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
<?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;
$active_page = 11;
$title = "Cards - Administrator - Fow Deck Hub";
require_once ROOT_PATH . '/controllers/card_controller.php';
$cards = get_cards($mysqli, 0);
$show_type = false;
$show_attributes = false;
$show_quantity = false;
$show_deck = false;
$simple_card_table = false;
require_once ROOT_PATH . '/layout/header.php';
require_once ROOT_PATH . '/pages/cards_partial.php';
require_once ROOT_PATH . '/layout/footer.php';
} else {
var_dump($log_result);
header("Refresh: 2;URL=login.php");
}
?>