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:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
|
##############
# thread.php #
##############
ARA:
--------------------------------------------------------------------------------------------------------
require("./acp/lib/class_parse.php");
--------------------------------------------------------------------------------------------------------
ALTINA EKLE:
--------------------------------------------------------------------------------------------------------
require("./acp/lib/ver_conf.inc.php");
--------------------------------------------------------------------------------------------------------
ARA:
--------------------------------------------------------------------------------------------------------
global $thread, $board, $tpl, $wbbuserdata, $style, $lang, $session, $userratings, $showuserratinginthread, $showuserlevels, $showonlineinthread, $useronlinetimeout, $showregdateinthread, $showuserfieldsinthread, $showgenderinthread, $showavatar, $_GET, $showthreadstarter, $showuserpostsinthread, $allowsigsmilies, $allowsightml, $allowsigbbcode, $max_sig_image, $authormarking, $picmaxwidth, $picmaxheight, $allowflashavatar, $thumbnailsperrow, $SID_ARG_1ST, $SID_ARG_2ND, $SID_ARG_2ND_UN;
--------------------------------------------------------------------------------------------------------
BUNUN ILE DEGISTIR:
--------------------------------------------------------------------------------------------------------
global $thread, $board, $tpl, $wbbuserdata, $style, $lang, $session, $userratings, $showuserratinginthread, $showuserlevels, $showonlineinthread, $useronlinetimeout, $showregdateinthread, $showuserfieldsinthread, $showgenderinthread, $showavatar, $_GET, $showthreadstarter, $showuserpostsinthread, $allowsigsmilies, $allowsightml, $allowsigbbcode, $max_sig_image, $authormarking, $picmaxwidth, $picmaxheight, $allowflashavatar, $thumbnailsperrow, $SID_ARG_1ST, $SID_ARG_2ND, $SID_ARG_2ND_UN, $n, $db, $banaus;
--------------------------------------------------------------------------------------------------------
ARA:
--------------------------------------------------------------------------------------------------------
if ($showuserpostsinthread == 1 && $posts['userposts'] >= 1000) $posts['userposts'] = number_format($posts['userposts'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
}
--------------------------------------------------------------------------------------------------------
ALTINA EKLE:
--------------------------------------------------------------------------------------------------------
////// para-scripts.de Verwarn-Hack START //////
require("acp/lib/ver_thread.inc.php");
////// para-scripts.de Verwarn-Hack ENDE //////
--------------------------------------------------------------------------------------------------------
###############
# profile.php #
###############
ARA:
--------------------------------------------------------------------------------------------------------
/* languagepack */
if ($showlanguageinprofile == 1) {
$languagepackname = getlangvar($user_info['languagepackname'], $lang);
}
else $languagepackname = '';
--------------------------------------------------------------------------------------------------------
ALTINA EKLE:
--------------------------------------------------------------------------------------------------------
////// para-scripts.de Verwarn-Hack START //////
require("acp/lib/ver_profile.inc.php");
////// para-scripts.de Verwarn-Hack ENDE //////
--------------------------------------------------------------------------------------------------------
#############
# index.php #
#############
ARA:
--------------------------------------------------------------------------------------------------------
eval("\$tpl->output(\"".$tpl->get("index")."\");");
--------------------------------------------------------------------------------------------------------
ÜSTÜNE EKLE:
--------------------------------------------------------------------------------------------------------
////// para-scripts.de Verwarn-Hack START //////
require("acp/lib/ver_index.inc.php");
////// para-scripts.de Verwarn-Hack ENDE //////
--------------------------------------------------------------------------------------------------------
#########################
# acp/lib/functions.php #
#########################
ARA:
--------------------------------------------------------------------------------------------------------
/**
* @desc Determine the appropriate additive constant for the current iteration
*/
function sha1_kt($t) {
if ($t < 20) return 1518500249;
elseif ($t < 40) return 1859775393;
elseif ($t < 60) return - 1894007588;
else return - 899497514;
}
}
--------------------------------------------------------------------------------------------------------
ALTINA EKLE:
--------------------------------------------------------------------------------------------------------
/** User-Check **/
function userExists($userid)
{
global $db, $n;
$result = $db->query("SELECT username FROM bb".$n."_users WHERE userid = '".$userid."'");
if($db->affected_rows($result)) return TRUE;
else
{
$result = $db->query("DELETE FROM bb".$n."_verwarnungen WHERE id_n = '".$userid."'");
return FALSE;
}
}
/** Verwarnungen löschen **/
function delVerw($tage)
{
global $db, $n;
if(!empty($tage))
{
$vl = $tage * 86400;
$time = time() - $vl;
$result = $db->query("DELETE FROM bb".$n."_verwarnungen WHERE datum < ".$time."");
}
}
/** Banns löschen **/
function delBan($tage)
{
global $db, $n;
if(!empty($tage))
{
$bl = $tage * 86400;
$time = time() - $bl;
$groupid = $db->query("SELECT oldrank, id_n FROM bb".$n."_verwarnungen WHERE blocked = '1' AND datum < '".$time."'");
while($row = $db->fetch_array($groupid))
{
$result = $db->query("UPDATE bb".$n."_users SET blocked = '0', groupcombinationid = '".$row['oldrank']."' WHERE userid = '".$row['id_n']."'");
$result1 = $db->query("UPDATE bb".$n."_verwarnungen SET blocked = '0' WHERE id_n = '".$row['id_n']."'");
}
}
}
/** Prozent-Anzeige **/
function makeVerproz($anzahl, $max, $template, $vres)
{
global $style, $tpl, $lang;
$prozent = ($anzahl / $max) * 100;
$prozent = round($prozent, 0);
for($i=1; $i <= $anzahl; $i++)
{
$pbilder .= "<img src=\"".$style['imagefolder']."/v_rot.gif\" border=\"0\">";
}
$h = $max - $anzahl;
for($i=1; $i <= $h; $i++)
{
$pbilder .= "<img src=\"".$style['imagefolder']."/v_blank.gif\" border=\"0\">";
}
$reason = (!empty($vres['text'])) ? "<b>".$vres['text']."</b> (".$vres['sonstiges'].")": "<b>".$vres['sonstiges']."</b>";
eval ("\$verwarnungen = \"".$tpl->get($template)."\";");
return $verwarnungen;
}
--------------------------------------------------------------------------------------------------------
##############
# thread.tpl #
##############
ARA:
--------------------------------------------------------------------------------------------------------
function rating(userid) {
window.open("misc.php?action=userrating&userid="+userid+"{$SID_ARG_2ND_UN}", "moo", "toolbar=no,scrollbars=yes,resizable=yes,width=350,height=205");
}
--------------------------------------------------------------------------------------------------------
ALTINA EKLE:
--------------------------------------------------------------------------------------------------------
function verwarnung(userid, postid) {
window.open("verwarnung.php?userid="+userid+"&postid="+postid+"&sid=$session[hash]", "Verwarnungen", "toolbars=no, scrollbars=yes, statusbars=no, menubars=no, resizable=yes, width=500, height=550");
}
--------------------------------------------------------------------------------------------------------
######################
# thread_postbit.tpl #
######################
ARA:
--------------------------------------------------------------------------------------------------------
<if($threadstarter==1)><then><br />{$lang->items['LANG_THREAD_THREADSTARTER']} <img src="{$style['imagefolder']}/threadstarter.gif" border="0" alt="{$LANG_THREAD_THREADSTARTER_ALT}" title="{$LANG_THREAD_THREADSTARTER_ALT}" /></then></if>
--------------------------------------------------------------------------------------------------------
ALTINA EKLE:
--------------------------------------------------------------------------------------------------------
$verwarnungen
--------------------------------------------------------------------------------------------------------
ARA:
--------------------------------------------------------------------------------------------------------
<a href="report.php?postid=$posts[postid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/report.gif" border="0" alt="{$lang->items['LANG_THREAD_REPORT']}" title="{$lang->items['LANG_THREAD_REPORT']}" /></a>
--------------------------------------------------------------------------------------------------------
ARKASINA EKLE:
--------------------------------------------------------------------------------------------------------
$verwarnung
--------------------------------------------------------------------------------------------------------
###############
# profile.tpl #
###############
ARA:
--------------------------------------------------------------------------------------------------------
<if($showlastpost==1)>
<then>
<tr align="left">
<td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_LASTPOST']}</b></span></td>
<td><span class="normalfont"><b>» <a href="thread.php?postid=$lastpost[postid]&sid=$session[hash]#post$lastpost[postid]">$lastpost[topic]</a></b></span><br />
<span class="smallfont">{$lang->items['LANG_MEMBERS_PROFILE_POSTED_ON']} $lastpostdate <span class="time">$lastposttime</span><br />
Forum: <b><a href="board.php?boardid=$lastpost[boardid]&sid=$session[hash]">$lastpost[title]</a></b></span></td>
</tr>
</then>
</if>
--------------------------------------------------------------------------------------------------------
ALTINA EKLE:
--------------------------------------------------------------------------------------------------------
$verwarnungen
--------------------------------------------------------------------------------------------------------
#############
# index.tpl #
#############
ARA:
--------------------------------------------------------------------------------------------------------
<if($showuseronline==1)>
<then>
<tr>
<td class="tabletitle" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>" align="left"><span class="smallfont"><b><a href="wiw.php?sid=$session[hash]">{$lang->items['LANG_START_SHOWUSERONLINE']}</a></b></span></td>
</tr>
<tr>
<td rowspan="2" class="tableb" align="center"><img src="{$style['imagefolder']}/online.gif" alt="" title="" /></td>
<td colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea" align="left"><span class="smallfont">{$lang->items['LANG_START_USERONLINE']}</span></td>
</tr>
<tr>
<td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><if($useronline=="")><then> </then></if>$useronline</span></td>
</tr>
</then>
</if>
--------------------------------------------------------------------------------------------------------
ALTINA EKLE:
--------------------------------------------------------------------------------------------------------
$verwarnleiste
---------------------------------------------------------------------------- |