19 lines
511 B
PHP
19 lines
511 B
PHP
<?php
|
|
chdir(__DIR__);
|
|
require 'config/settings.php';
|
|
require 'lib/ulib.php';
|
|
require 'lib/components.php';
|
|
|
|
URL::$route = array_merge($GLOBALS['config']['url'], ['page' => 'index', 'l-path' => '']);
|
|
if (isset($_GET['api'])) {
|
|
require 'views/api/index.php';
|
|
exit;
|
|
}
|
|
Profiler::log('main content: start', 1);
|
|
ob_start();
|
|
require 'views/index.php';
|
|
URL::$fragments['main'] = ob_get_clean();
|
|
Profiler::log('main content: end', -1);
|
|
require cfg('theme/path') . '/page.html.php';
|
|
Log::audit('page:index', '');
|