aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/index.php
blob: f1e8ebb6fc512d1c5bda3ba11eaf67bc6e776778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php require_once "./resources/private/relative.php"; getRelativeDetails("index.php"); ?>
<?php

/*

Neutron Homepage

If you see this text on your browser, PHP is not installed or
enabled on your server. Download it at https://php.net or
using your package manager.

*/

if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent")) {
    require_once $_SERVER['DOCUMENT_ROOT'] . "/api/renderer/main.php"; render('index');
} else {
    header("Location: {$GLOBALS["SYSTEM_ROOT"]}/cms-special/setup");
    require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit();
}