forked from Webspell-RM/Webspell-RM-Base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
90 lines (77 loc) · 3.35 KB
/
index.php
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
/*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\
| _ _ ___ ___ ___ ___ ___ __ __ ___ __ __ |
|( \/\/ )( _)( ,)/ __)( ,\( _)( ) ( ) ( ,) ( \/ ) |
| \ / ) _) ) ,\\__ \ ) _/ ) _) )(__ )(__ ) \ ) ( |
| \/\/ (___)(___/(___/(_) (___)(____)(____) (_)\_)(_/\/\_) |
| ___ ___ |
| |__ \ / _ \ |
| ) | | | | | |
| / / | | | | |
| / /_ _ | |_| | |
| |____| (_) \___/ |
\___________________________________________________________________/
/ \
| Copyright 2005-2018 by webspell.org / webspell.info |
| Copyright 2018-2019 by webspell-rm.de |
| |
| - Script runs under the GNU GENERAL PUBLIC LICENCE |
| - It's NOT allowed to remove this copyright-tag |
| - http://www.fsf.org/licensing/licenses/gpl.html |
| |
| Code based on WebSPELL Clanpackage |
| (Michael Gruber - webspell.at) |
\___________________________________________________________________/
/ \
| WEBSPELL RM Version 2.0 |
| For Support, Mods and the Full Script visit |
| webspell-rm.de |
\__________________________________________________________________*/
// INCLUDE
// the neccessary files
include_once("system/sql.php");
include_once("system/settings.php");
include_once("system/functions.php");
include_once("system/themes.php");
include_once("system/template.php");
include_once("system/plugin.php");
include_once("system/widget.php");
include_once("system/multi_language.php");
// INITIALIZE
// Theme
$theme = new theme();
// Template
$tpl = new template();
$tpl->themes_path = $theme->get_active_theme();
$tpl->template_path = "templates/";
// Plugin Manager
$_pluginmanager = new plugin_manager();
// DEFINES
define("MODULE", "./includes/modules/");
// PLUGINS
define("PLUGIN", "./includes/plugins/");
// DATABASE
// >
// LANGUAGE
// Language
$_language->readModule('index');
$index_language = $_language->module;
// CHECK
// CROWDIN (removed)
// CSS / JS
// //!!\\ MOVE THIS FILES INTO THE THEME DIRECTORY !!
$components_css = "";
foreach ($components['css'] as $component) {
$components_css .= '<link href="' . $component . '" rel="stylesheet">';
}
$components_js = "";
foreach ($components['js'] as $component) {
$components_js .= '<script src="' . $component . '"></script>';
}
// load from theme directory the .css and .js filesize
$theme_css = headfiles("css", $tpl->themes_path);
$theme_js = headfiles("js", $tpl->themes_path);
// START
// include theme / content
include($theme->get_active_theme()."index.php");
?>