Subversion Repositories ALCASAR

Rev

Rev 3037 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3037 Rev 3287
Line 30... Line 30...
30
 
30
 
31
// Load configuration
31
// Load configuration
32
require_once PSI_APP_ROOT.'/read_config.php';
32
require_once PSI_APP_ROOT.'/read_config.php';
33
 
33
 
34
if (!defined('PSI_CONFIG_FILE') || !defined('PSI_DEBUG')) {
34
if (!defined('PSI_CONFIG_FILE') || !defined('PSI_DEBUG')) {
35
    $tpl = new Template("/templates/html/error_config.html");
35
    $tpl = new Template("/templates/error_config.html");
36
    echo $tpl->fetch();
36
    echo $tpl->fetch();
37
    die();
37
    die();
38
}
38
}
39
 
39
 
40
// redirect to page with and without javascript
40
// redirect to page with and without javascript
Line 59... Line 59...
59
    header('Content-Type: application/json');
59
    header('Content-Type: application/json');
60
    echo $json;
60
    echo $json;
61
    break;
61
    break;
62
case "bootstrap":
62
case "bootstrap":
63
/*
63
/*
64
    $tpl = new Template("/templates/html/index_bootstrap.html");
64
    $tpl = new Template("/templates/index_bootstrap.html");
65
    echo $tpl->fetch();
65
    echo $tpl->fetch();
66
*/
66
*/
67
    $webpage = new Webpage("bootstrap");
67
    $webpage = new Webpage("bootstrap");
68
    $webpage->run();
68
    $webpage->run();
69
    break;
69
    break;
70
case "auto":
70
case "auto":
71
    $tpl = new Template("/templates/html/index_all.html");
71
    $tpl = new Template("/templates/index_all.html");
72
    echo $tpl->fetch();
72
    echo $tpl->fetch();
73
    break;
73
    break;
74
default:
74
default:
75
    $defaultdisplay = strtolower(PSI_DEFAULT_DISPLAY_MODE);
75
    $defaultdisplay = strtolower(PSI_DEFAULT_DISPLAY_MODE);
76
    switch ($defaultdisplay) {
76
    switch ($defaultdisplay) {
Line 85... Line 85...
85
    case "bootstrap":
85
    case "bootstrap":
86
        $webpage = new Webpage("bootstrap");
86
        $webpage = new Webpage("bootstrap");
87
        $webpage->run();
87
        $webpage->run();
88
        break;
88
        break;
89
    default:
89
    default:
90
        $tpl = new Template("/templates/html/index_all.html");
90
        $tpl = new Template("/templates/index_all.html");
91
        echo $tpl->fetch();
91
        echo $tpl->fetch();
92
    }
92
    }
93
}
93
}