-
Notifications
You must be signed in to change notification settings - Fork 0
/
imprint.php
124 lines (117 loc) · 4.7 KB
/
imprint.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# | /| / /___) / ) (_ ` / ) /___) / / #
# _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ #
# Free Content / Management System #
# / #
# #
# #
# Copyright 2005-2015 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - 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), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
##########################################################################
*/
$_language->readModule('imprint');
$title_imprint = $GLOBALS["_template"]->replaceTemplate("title_imprint", array());
echo $title_imprint;
$ergebnis =
safe_query(
"SELECT
u.firstname, u.lastname, u.nickname, u.userID
FROM
" . PREFIX . "user_groups as g, " . PREFIX . "user as u
WHERE
u.userID = g.userID
AND
(g.page='1'
OR
g.forum='1'
OR
g.user='1'
OR
g.news='1'
OR
g.clanwars='1'
OR
g.feedback='1'
OR
g.super='1'
OR
g.gallery='1'
OR
g.cash='1'
OR
g.files='1')"
);
$administrators = '';
while ($ds = mysqli_fetch_array($ergebnis)) {
$administrators .= "<a href='index.php?site=profile&id=" . $ds[ 'userID' ] . "'>" . $ds[ 'firstname' ] . " '" .
$ds[ 'nickname' ] . "' " . $ds[ 'lastname' ] . "</a><br>";
}
$ergebnis =
safe_query(
"SELECT
u.firstname, u.lastname, u.nickname, u.userID
FROM
" . PREFIX . "user_groups as g, " . PREFIX . "user as u
WHERE
u.userID = g.userID
AND
g.moderator='1'"
);
$moderators = '';
while ($ds = mysqli_fetch_array($ergebnis)) {
$moderators .= "<a href='index.php?site=profile&id=" . $ds[ 'userID' ] . "'>" . $ds[ 'firstname' ] . " '" .
$ds[ 'nickname' ] . "' " . $ds[ 'lastname' ] . "</a><br>";
}
// reading version
include('version.php');
$headline1 = $_language->module[ 'imprint' ];
$headline2 = $_language->module[ 'coding' ];
if ($imprint_type) {
$ds = mysqli_fetch_array(safe_query("SELECT imprint FROM `" . PREFIX . "imprint`"));
$imprint_head = htmloutput($ds[ 'imprint' ]);
} else {
$imprint_head = '<div class="form-horizontal">
<div class="form-group">
<label class="col-sm-3 control-label">' . $_language->module[ 'webmaster' ] . '</label>
<div class="col-sm-9">
<p class="form-control-static">
<a href="mailto:' . mail_protect($admin_email) . '">' . $admin_name . '</a>
</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">' . $_language->module[ 'admins' ] . '</label>
<div class="col-sm-9">
<p class="form-control-static">' . $administrators . '</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">' . $_language->module[ 'mods' ] . '</label>
<div class="col-sm-9">
<p class="form-control-static">' . $moderators . '</p>
</div>
</div>
</div>';
}
$data_array = array();
$data_array['$headline1'] = $headline1;
$data_array['$imprint_head'] = $imprint_head;
$data_array['$headline2'] = $headline2;
$data_array['$version'] = $version;
$imprint = $GLOBALS["_template"]->replaceTemplate("imprint", $data_array);
echo $imprint;