-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
35 lines (27 loc) · 686 Bytes
/
index.php
File metadata and controls
35 lines (27 loc) · 686 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
32
33
34
35
<?php
/**
* Created by PhpStorm.
* User: Pashted
* Date: 15.02.2018
* Time: 21:17
*/
define('_GEN_JOOMLA_INTEGRATION', false);
define('_GEN_VER', '2.0.0');
define('_GEN_ROOT', __DIR__);
define('_GEN_URI_ROOT', "/hkn-gen/");
define('_GEN_DEBUG', 1);
if (_GEN_JOOMLA_INTEGRATION) {
if ($_SERVER['REQUEST_METHOD'] == 'POST')
define('_JEXEC', 1);
} else {
define('_JEXEC', 1);
}
require _GEN_ROOT . "/classes/HknController.php";
$gen = new HknController();
if (isset($_POST['script']) && $_POST['script'] === 'true') {
require _GEN_ROOT . "/classes/$gen->scheme/Script.php";
$script = new Script();
$script->render();
} else {
$gen->render();
}