summaryrefslogtreecommitdiffstats
path: root/frontend/simple/index.php
blob: c8ff81af6986df24f53e558abb1caa7701f8f272 (plain) (blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php 
	
	session_start();
	
	//phpinfo();
	error_reporting(0);
	//ini_set('display_errors', 'On');
    

    include_once('classes/DisplayController.php');
        

    // Preverimo ce imamo uvozeno bazo in ce ne ponudbimo uvoz
	$import_db = new ImportDB();
	if($import_db->checkDBEmpty()){
		global $site_url;
		header('Location: '.$site_url.'frontend/install');
    }


    // Preprecimo vkljucevanje v iframe
    header('X-Frame-Options: SAMEORIGIN');
    
	
	// Inicializiramo razred za prikaz
	$dc = new DisplayController();
	
    
    echo '<!doctype html>';
    echo '<html lang="en">';
    

    /********** HEAD **********/
    echo '<head>';
    $dc->displayHead();
    echo '</head>';
    /********** HEAD - END **********/
	
	
    /********** BODY **********/
    if(isset($_GET['a']) && $_GET['a'] != '' && in_array($_GET['a'], array('landing_page', 'login', 'register', 'login_noEmail', 'reset_password', 'gdpr')))
        $body_class = $_GET['a'];
    else
        $body_class = 'landing_page body-2';
    echo '<body class="'.$body_class.'">';
    
    echo '<div id="content" '.(isAAI() ? 'class="aai"' : '').'>';

	// Glava
	echo '<header>';
	$dc->displayHeader();	
	echo '</header>';
    
    
    // Vsebina strani
    echo '<div id="main">';

    echo '<div class="main_content">';
	$dc->displayMain();	
    echo '</div>';
    
	echo '</div>';
	
	
    // Footer
    echo '<footer>';

    echo '<div class="footer_content">';
    $dc->displayFooter();	
    echo '</div>';

    echo '</footer>';


    // Cookie notice  
    $dc->displayCookieNotice();	
    
    
    echo '</div>';

    echo '</body>';
    /********** BODY - END **********/
    
    
	echo '</html>';
?>