Use Slim framework (fixes #33)

This commit is contained in:
Pierre Rudloff 2015-10-29 21:19:40 +01:00
parent f85f07a77b
commit 299634b023
14 changed files with 255 additions and 113 deletions

View file

@ -19,15 +19,3 @@ if (is_file('config.php')) {
include_once 'config.example.php';
}
define('FILENAME', basename($_SERVER["SCRIPT_FILENAME"]));
if (DISABLED && FILENAME != 'disabled.php') {
header('Location: disabled.php'); exit;
} else if (MAINTENANCE && FILENAME != 'maintenance.php') {
header('Location: maintenance.php'); exit;
}
$smarty = new Smarty();
$smarty->assign(
array(
'base_url'=>BASE_URL,
'convert'=>CONVERT
)
);