-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
60 lines (43 loc) · 1.4 KB
/
index.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* @package default
*/
/**
*
* index.php file
*
* @author Felix Rupp <[email protected]>
* @version $Id$
* @copyright Copyright (c) 2011, Felix Rupp, Nicole Reinhardt
* @license http://www.opensource.org/licenses/mit-license.php MIT-License
* @license http://www.gnu.org/licenses/gpl.html GNU GPL
*
*/
/**
* @var string BASEDIR Constant which represents the basedir of the server
*/
define("BASEDIR", substr($_SERVER["SCRIPT_FILENAME"], 0, strrpos($_SERVER["SCRIPT_FILENAME"],"/")));
/**
* @var string TEMPLATEDIR Constant which represents the template directory of Caramel CMS installation
*/
#define("TEMPLATEDIR", dirname($_SERVER["SCRIPT_NAME"])."template");
define("TEMPLATEDIR", substr($_SERVER["SCRIPT_NAME"], 0, strrpos($_SERVER["SCRIPT_NAME"],"/"))."/template");
require_once(BASEDIR.'/inc/controller/FrontendController.php');
# New frontend controller
$frontendController = new FrontendController();
# Automatical language redirect
$frontendController->languageRedirectAction();
# Error reporting for testing
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
?>
<!DOCTYPE HTML>
<?php /*echo($frontendController->versionInformationAction());*/ ?>
<html lang="<?php echo($frontendController->languageCodeAction()); ?>">
<head>
<?php echo($frontendController->headTagAction()); ?>
</head>
<body>
<?php echo $frontendController->frontendOutputAction(); ?>
</body>
</html>