boka3/index.php
Erik Thuning 692c2e0aeb Broke all classes into separate files and activated class autoloading.
All free functions are now in functions.php
2019-06-11 17:05:48 +02:00

22 lines
400 B
PHP
Executable File

<?php
set_include_path(get_include_path().PATH_SEPARATOR.'include/');
spl_autoload_register(function ($class) {
if($class == 'qrcode') {
include('./phpqrcode/qrlib.php');
}
});
require('./config.php');
require('functions.php');
header('Content-Type: text/html; charset=UTF-8');
$page = null;
if(isset($_GET['page'])) {
$page = $_GET['page'];
}
make_page($page)->render();
?>