-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (25 loc) · 890 Bytes
/
index.php
File metadata and controls
31 lines (25 loc) · 890 Bytes
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
<?php
/**
* @copyright (C) 2024, 299Ko, based on code (2010-2021) 99ko https://github.com/99kocms/
* @license https://www.gnu.org/licenses/gpl-3.0.en.html GPLv3
* @author Jonathan Coulet <j.coulet@gmail.com>
* @author Maxence Cauderlier <mx.koder@gmail.com>
* @author Frédéric Kaplon <frederic.kaplon@me.com>
* @author Florent Fortat <florent.fortat@maxgun.fr>
*
* @package 299Ko https://github.com/299Ko/299ko
*/
ob_start();
const ROOT = '.' . DIRECTORY_SEPARATOR;
const DS = DIRECTORY_SEPARATOR;
include_once(ROOT . 'common' . DS . 'common.php');
if (!$core->isInstalled()) {
header('location:' . ROOT . 'install.php');
die();
}
define('IS_LOGGED', UsersManager::isLogged());
// For futures versions
define('IS_ADMIN', IS_LOGGED);
Template::addGlobal('IS_LOGGED', IS_LOGGED);
Template::addGlobal('IS_ADMIN', IS_ADMIN);
$core->executeCallback($router, $runPlugin);