Repository navigation
Expand file tree
/
Copy pathkusaba.php
More file actions
105 lines (105 loc) · 3.16 KB
/
Copy pathkusaba.php
File metadata and controls
105 lines (105 loc) · 3.16 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/*
* This file is part of arcNET
*
* arcNET uses core code from Kusaba X and Oneechan
*
* tsukihi.me kusabax.cultnet.net oneechan.org
*
* arcNET is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
*
* kusaba is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* kusaba; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* credits to jmyeom for improving this
*
*/
if (file_exists("install.php")) {
die('You are seeing this message because either you haven\'t ran the install file yet, and can do so <a href="install.php">here</a>, or already have, and <strong>must delete it</strong>.');
}
if (!isset($_GET['info'])) {
$preconfig_db_unnecessary = true;
}
require 'config.php';
$menufile = (KU_STATICMENU) ? 'menu.html' : 'menu.php';
$menusize = (KU_MENUTYPE == 'normal') ? '15%' : '10%';
$mainsize = 100-$menusize . '%';
header("Expires: Mon, 1 Jan 2030 05:00:00 GMT");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php echo KU_NAME; ?></title>
<link rel="shortcut icon" href="<?php echo KU_WEBPATH; ?>/favicon.ico" />
<style type="text/css">
body, html {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: auto;
}
#menu {
position: absolute;
left: 0px;
top: 0px;
margin: 0;
padding: 0;
border: 0px;
height: 100%;
width: <?php echo $menusize; ?>;
}
#main {
position: absolute;
left: <?php echo $menusize; ?>;
top: 0px;
border: 0px;
height: 100%;
width: <?php echo $mainsize; ?>;
}
</style>
</head>
<?php
if (isset($_GET['info'])) {
require KU_ROOTDIR . 'inc/functions.php';
echo '<body>';
echo '<h1>General info:</h1><ul>';
echo '<li>Version: kusaba x ' . KU_VERSION . '</li>';
$bans = $tc_db->GetOne("SELECT COUNT(*) FROM `".KU_DBPREFIX."banlist`");
echo '<li>Active bans: ' . $bans . '</li>';
$wordfilters = $tc_db->GetOne("SELECT COUNT(*) FROM `".KU_DBPREFIX."wordfilter`");
echo '<li>Wordfilters: ' . $wordfilters . '</li>';
echo '<li>Modules loaded: ';
$modules = modules_list();
if (count($modules) > 0) {
$moduleslist = '';
foreach ($modules as $module) {
$moduleslist .= $module . ', ';
}
echo substr($moduleslist, 0, -2);
} else {
echo 'none';
}
echo '</li>';
echo '</ul>';
echo '</body></html>';
die();
}
?>
<body>
<iframe src="<?php echo $menufile; ?>" name="menu" id="menu">
<a href="<?php echo KU_WEBPATH . '/' . $menufile; ?>"><?php echo KU_NAME; ?></a>
</iframe>
<iframe src="news.php" name="main" id="main">
<a href="<?php echo KU_WEBPATH;?>/news.php"><?php echo KU_NAME; ?> Navigation</a>
</iframe>
</body>
</html>