This repository has been archived by the owner on Oct 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtemplates.pl
514 lines (434 loc) · 21.4 KB
/
templates.pl
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
#!/usr/bin/perl
use strict;
use utf8;
use constant NORMAL_HEAD_INCLUDE => <<'HERE';
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><if $board_desc>/<var $board_name>/ - <var $board_desc></if><if $title> - <var $title></if></title>
<script type="text/javascript" src="<const MEDIA_LOCATION_HTTP>/board.js?v=1"></script>
<meta name="description" content="Fuuka Imageboard Archiver" />
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="<const MEDIA_LOCATION_HTTP>/fuuka.css" title="Fuuka" />
<link type="text/css" href="<const MEDIA_LOCATION_HTTP>/calendar.css" rel="stylesheet" />
<style type="text/css"><!--
html,body { background:#eefff2; color:#002200; }
img { border: none; }
a { color:#34345c; }
a:visited { color:#34345c; }
a:hover { color:#DD0000; }
.js, .js a { color:black;text-decoration:none; }
.js:hover, .js a:hover { color:black;font-weight:bold;text-decoration:underline; }
.thumb, .nothumb { float: left; margin: 2px 20px; }
.doubledash { vertical-align:top;clear:both;float:left; }
.inline { vertical-align:top; }
.reply { background:#d6f0da; }
.subreply { background-color:#cce1cf; }
.highlight { background:#d6bad0; }
.unkfunc{ color:#789922; }
.postername { color:#117743; font-weight:bold; text-decoration: none; }
.postertrip { color:#228854; text-decoration: none; }
a.tooltip span, a.tooltip-red span { display:none; }
--></style>
</head>
<body>
<var $navigation>
<div><if $board_desc><h1>/<var $board_name>/ - <var $board_desc></h1></if><if $title><h2><var $title></h2></if></div>
HERE
use constant NORMAL_FOOT_INCLUDE => <<'HERE';
</body>
</html>
HERE
use constant CENTER_HEAD_INCLUDE => <<'HERE';
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><var $title></title>
<script type="text/javascript" src="<const MEDIA_LOCATION_HTTP>/board.js?v=1"></script>
<style type="text/css">
html, body {
height: 100%; /* required */
}
body {
background: #eefff2;
color: #002200;
text-align: center; /* horizontal centering hack for IE */
padding: 0; /* required to "hide" distance div */
margin: 0; /* required to "hide" distance div */
}
div#distance {
margin-bottom: -<var $height/2>em; /* half of content height */
width: 1px; /* required to "hide" distance div */
height: 50%; /* required */
float: left; /* required */
}
div#content {
position: relative; /* positions content on top of distance */
text-align: left; /* horizontal centering hack for IE */
height: <var $height>em; /* required - desired height */
width: <var $width>em; /* required - desired width */
margin: 0 auto; /* required */
clear: left; /* required */
}
<var $custom_css>
</style>
</head>
<body>
<div id="distance"></div>
<div id="content">
HERE
use constant CENTER_FOOT_INCLUDE => <<'HERE';
</div>
</body>
</html>
HERE
use constant LATE_REDIRECT_INCLUDE => <<'HERE';
<h1><var $title></h1>
<div class="outer"><div class="inner">
<span class='aa'><var simple_format($message)></span>
</div></div>
<p><a href="<var $link>" style>Click here to be forwarded manually</a><br /><br /><a href="http://code.google.com/p/fuuka/">Fuuka</a> | All characters <acronym title="DO NOT STEAL MY ART">©</acronym> Darkpa's party</p>
HERE
use constant INDEX_INCLUDE => <<'HERE';
<h1>Welcome to the 4chan archiver</h1>
<h2>Choose a board:</h2>
<p>
<loop $list>
<a href="<var $link>" title="<var $description>">/<var $name>/</a>
</loop>
</p>
HERE
use constant SIDEBAR_ADVANCED_SEARCH => <<'HERE';
<script src="<const MEDIA_LOCATION_HTTP>/calendar.js" type="text/javascript"></script>
<form id="advanced-search-form" action="<var $self>/" method="get">
<div id="advanced-search" class="postspan" style="float:left;<if not $standalone>display:none;</if>">
<input type="hidden" name="task" value="search2" />
<input type="hidden" name="ghost" value="<var $ghost>" />
<table style="float:left"><tbody>
<tr><td colspan="2" class="theader">Advanced search</td></tr>
<tr>
<td class="postblock"><label for="adv_search_text">Text to find</label></td>
<td><input type="text" name="search_text" id="adv_search_text" size="32" value="<var html_encode($search_text)>" /></td>
</tr>
<if $board_engine eq 'Board::Sphinx_Mysql'>
<tr>
<td class="postblock"><label for="adv_search_subject">Subject</label> <a class="tooltip" href="#">[?]<span>Search by post subject. Leave empty for any.</span></a></td>
<td><input type="text" name="search_subject" id="adv_search_subject" size="32" value="<var html_encode($search_subject)>" /></td>
</tr>
</if>
<tr>
<td class="postblock"><label for="adv_search_username">Username</label> <a class="tooltip" href="#">[?]<span>Search for user name. Leave empty for any user name.</span></a></td>
<td><input type="text" name="search_username" id="adv_search_username" size="32" value="<var html_encode($search_username)>" /></td>
</tr>
<tr>
<td class="postblock"><label for="adv_search_tripcode">Tripcode</label> <a class="tooltip" href="#">[?]<span>Search for tripcode. Leave empty for any.</span></a></td>
<td><input type="text" name="search_tripcode" id="adv_search_tripcode" size="32" value="<var html_encode($search_tripcode)>" /></td>
</tr>
<tr>
<td class="postblock"><label for="adv_search_email">Email</label> <a class="tooltip" href="#">[?]<span>Search by email. Leave empty for any.</span></a></td>
<td><input type="text" name="search_email" id="adv_search_email" size="32" value="<var html_encode($search_email)>" /></td>
</tr>
<if $board_engine eq 'Board::Sphinx_Mysql'>
<tr>
<td class="postblock"><label for="adv_search_filename">Filename</label> <a class="tooltip" href="#">[?]<span>Search by image filename. Leave empty for any.</span></a></td>
<td><input type="text" name="search_filename" id="adv_search_filename" size="32" value="<var html_encode($search_filename)>" /></td>
</tr>
</if>
<tr>
<td class="postblock"><label for="adv_search_datefrom">From Date</label> <a class="tooltip" href="#">[?]<span>Enter what date to start searching from. Format is YYYY-MM-DD</span></a></td>
<td><input type="text" name="search_datefrom" id="adv_search_datefrom" size="32" onmousedown="showCalendarControl(this);" value="<var html_encode($search_datefrom)>" /></td>
</tr>
<tr>
<td class="postblock"><label for="adv_search_dateto">To Date</label> <a class="tooltip" href="#">[?]<span>Enter what date to start searching until. Format is YYYY-MM-DD</span></a></td>
<td><input type="text" name="search_dateto" id="adv_search_dateto" size="32" onmousedown="showCalendarControl(this);" value="<var html_encode($search_dateto)>" /></td>
</tr>
<if $search_media_hash>
<tr>
<td class="postblock"><label for="adv_search_media_hash">Image hash</label></td>
<td><input type="text" name="search_media_hash" id="adv_search_media_hash" size="32" value="<var html_encode($search_media_hash)>" /></td>
</tr>
</if>
<tr>
<td class="postblock"><label for="adv_search_op">Search in</label></td>
<td><input type="radio" <if $search_op eq 'all' or not $search_op>checked="checked" </if>name="search_op" id="adv_search_op" value="all" />All Posts<br /><input type="radio" <if $search_op eq 'op'>checked="checked" </if>name="search_op" value="op" />OPs Only<br /></td>
</tr>
<tr>
<td class="postblock"><label for="adv_search_del">Deleted posts</label></td>
<td><input type="radio" <if $search_del eq 'dontcare' or not $search_del>checked="checked" </if>name="search_del" id="adv_search_del" value="dontcare" />Show all posts<br /><input type="radio" <if $search_del eq 'yes'>checked="checked" </if>name="search_del" value="yes" />Show only deleted posts<br /><input type="radio" <if $search_del eq 'no'>checked="checked" </if>name="search_del" value="no" />Only show non-deleted posts</td>
</tr>
<tr>
<td class="postblock"><label for="adv_search_int">Internal posts</label></td>
<td><input type="radio" <if $search_int eq 'dontcare' or not $search_int>checked="checked" </if>name="search_int" id="adv_search_int" value="dontcare" />Show all posts<br /><input type="radio" <if $search_int eq 'yes'>checked="checked" </if>name="search_int" value="yes" />Show only internal posts<br /><input type="radio" <if $search_int eq 'no'>checked="checked" </if>name="search_int" value="no" />Show only archived posts</td>
</tr>
<tr>
<td class="postblock"><label for="adv_search_ord">Order</label></td>
<td><input type="radio" <if $search_ord eq 'new' or $search_ord eq 'rel' or not $search_ord>checked="checked" </if>name="search_ord" id="adv_search_ord" value="new" />New posts first<br /><input type="radio" <if $search_ord eq 'old'>checked="checked" </if>name="search_ord" value="old" />Old posts first<br /></td>
</tr>
<tr>
<td class="postblock"><label for="adv_search_capcode">Capcode</label></td>
<td>
<input type="radio" name="search_capcode" id="adv_search_capcode" value="all"<if $search_capcode eq 'all' or not $search_capcode> checked="checked"</if> />All Posts<br />
<input type="radio" name="search_capcode" value="normal"<if $search_capcode eq 'normal'> checked="checked"</if> />Only by Users<br />
<input type="radio" name="search_capcode" value="mod"<if $search_capcode eq 'mod'> checked="checked"</if> />Only by Mods<br />
<input type="radio" name="search_capcode" value="admin"<if $search_capcode eq 'admin'> checked="checked"</if> />Only by Admins<br />
<input type="radio" name="search_capcode" value="dev"<if $search_capcode eq 'dev'> checked="checked"</if> />Only by Developers<br />
</td>
</tr>
<if $board_engine eq 'Board::Sphinx_Mysql'>
<tr>
<td class="postblock"><label for="adv_search_res">Results</label></td>
<td><input type="radio" <if $search_res eq 'post' or not $search_res>checked="checked" </if>name="search_res" id="adv_search_res" value="post" />Posts<br /><input type="radio" <if $search_res eq 'op'>checked="checked" </if>name="search_res" value="op" />Threads<br /></td>
</tr>
</if>
<tr>
<td class="postblock">Action</td>
<td><input type="submit" value="Search" /> <a href="#" onclick="javascript:toggle_search('advanced-search', 'simple-search');return false;">[ Simple ]</a></td>
</tr>
</tbody></table>
</div></form>
HERE
use constant SIDEBAR_INCLUDE => <<'HERE'.SIDEBAR_ADVANCED_SEARCH.<<'THERE';
<hr />
<div style="overflow:hidden;">
<form id="simple-search-form" action="<var $self>/" method="get">
<div id="simple-search" class="postspan" style="float:left">
<input type="hidden" name="task" value="search" />
<input type="hidden" name="ghost" value="<var $ghost>" />
Text search
<a class="tooltip" href="#">[?]<span>Place a <tt>|</tt> in between expressions to get one of them in results, e.g. <tt>tripcode|email</tt> to locate posts that contain either the word tripcode or email in them.<br />Place a <tt>-</tt> before a word to exclude posts containing that word: <tt>-tripcode</tt><br />Place quotes around phrases to find pages containing the phrase: <tt>"I am a filthy tripcode user"</tt></span></a>
<input type="text" name="search_text" size="24" value="<var html_encode($search_text)>" />
<input type="submit" value="Go" />
<a href="<var $self>#" onclick="javascript:toggle_search('simple-search', 'advanced-search');return false;">[ Advanced ]</a>
</div>
</form>
HERE
<form action="<var $self>/" method="get">
<div class="postspan" style="float:left">
<input type="hidden" name="task" value="post" />
<input type="hidden" name="ghost" value="<var $ghost>" />
View post
<input type="text" name="post" size="9" value="" />
<input type="submit" value="Submit" />
</div></form>
<form action="<var $self>/" method="get">
<div class="postspan" style="float:left">
<input type="hidden" name="task" value="page" />
View page
<input type="text" name="page" size="6" value="<var $page or 1>" />
<input type="submit" value="View" />
<if not $disableposting>
<a class="tooltip" href="#">[?]<span>In ghost mode, only threads with non-archived posts will be shown</span></a>
<input type="submit" name="ghost" value="View in Ghost mode" />
</if>
</div></form>
</div>
<hr />
THERE
use constant POST_PANEL_INCLUDE => <<'HERE';
<if not $disableposting>
<div class="theader">Reply to thread <a class="tooltip-red" href="#">[?]<span>Don't expect anything heroic. Your post will not be uploaded to original board.</span></a></div>
<else>
<div class="theader">Delete posts</div>
</if>
<if not $disableposting>
<div><input type="hidden" name="task" value="reply" />
<input type="hidden" name="ghost" value="<var $ghost>" /></div>
<if $thread><div><input type="hidden" name="parent" value="<var $thread>" /></div></if>
</if>
<table><tbody>
<if not $disableposting>
<tr style="display:none"><td class="postblock">Name (leave empty)</td><td><input type="text" name="username" size="63" /></td></tr>
<tr style="display:none"><td class="postblock">Comment (leave empty)</td><td><textarea name="comment" cols="48" rows="4"></textarea></td></tr>
<tr><td class="postblock">Name</td><td><input type="text" name="NAMAE" size="63" /></td></tr>
<tr><td class="postblock">E-mail</td><td><input type="text" name="MERU" size="63" /></td></tr>
<tr><td class="postblock">Subject</td><td><input type="text" name="subject" size="63" /></td></tr>
<tr><td class="postblock">Comment</td><td><textarea name="KOMENTO" cols="48" rows="4"></textarea></td></tr>
</if>
<tr><td class="postblock">Password <a href="#" class="tooltip">[?]<span>Password used for file deletion.</span></a></td><td><input type="password" value="" size="24" name="delpass"/></td></tr>
<tr><td class="postblock">Action</td><td>
<if not $disableposting>
<input type="submit" value="Submit" />
</if>
<input type="submit" name="delposts" value="Delete selected posts" /></td></tr>
</tbody></table>
HERE
use constant POSTS_INCLUDE_POST_HEADER => <<'HERE';
<label><input type="checkbox" name="delete" value="<var $num>,<var $subnum>" />
<if $title><span class="filetitle"><var $title></span> </if>
<if $capcode eq 'G'>
<span style="background:white;color:black;border:1px solid gray;font-weight:bold;padding:0.5em 1.5em;position:relative;"><span style="background-image:url(/media/god-left.png);height:148px;left:-3em;position:absolute;top:-3.6em;width:121px;"></span><var $name> <span class="trip">## God</span></span>
<span style="position:relative;"><span style="background-image:url(/media/god-right.png);height:148px;left:-6em;position:absolute;top:-4em;width:156px;"></span></span>
<else>
<span class="postername<if $capcode eq 'M'> mod</if><if $capcode eq 'A'> admin</if><if $capcode eq 'D'> dev</if>">
<if $email><a href="mailto:<var $email>"></if><var $name><if $email></a></if><nonl>
</span><nonl>
<if $trip><nonl>
<if $email><a href="mailto:<var $email>"></if><nonl>
<span class="postertrip<if $capcode eq 'M'> mod</if><if $capcode eq 'A'> admin</if><if $capcode eq 'D'> dev</if>"> <var $trip></span><if $email></a></if></if>
<if $capcode eq 'M'><span class="postername mod"> ##Mod</span></if>
<if $capcode eq 'A'><span class="postername admin"> ##Admin</span></if>
<if $capcode eq 'D'><span class="postername dev"> ##Developer</span></if>
</if>
<span class="posttime" title="<var deyotsutime($date) * 1000>"><var scalar gmtime($date)></span></label>
<if $replyform and not $disableposting>
<a class="js" href="<var ref_post($parent,$num,$subnum)>" onclick="replyhighlight('p<var ref_post_id($num,$subnum)>')">No.</a><a class="js" href="javascript:insert('>><var ref_post_text($num,$subnum)>\n')"><var ref_post_text($num,$subnum)></a>
<else>
<a class="js" href="<var ref_post($parent,$num,$subnum)>" onclick="replyhighlight('p<var ref_post_id($num,$subnum)>')">No.<var ref_post_text($num,$subnum)></a>
</if>
<if $subnum><img class="inline" src="<const MEDIA_LOCATION_HTTP>/internal.png" alt="[INTERNAL]" title="This is not an archived reply" /> </if>
<if $spoiler><img class="inline" src="<const MEDIA_LOCATION_HTTP>/spoilers.png" alt="[SPOILER]" title="Picture in this post is marked as spoiler" /> </if>
<if $deleted><img class="inline" src="<const MEDIA_LOCATION_HTTP>/deleted.png" alt="[DELETED]" title="This post was deleted before its lifetime has expired" /> </if>
<if $sticky><img class="inline" src="<const MEDIA_LOCATION_HTTP>/sticky.png" alt="[STICKY]" title="This post was stickied on 4chan." /> </if>
HERE
use constant POSTS_INCLUDE_FILE => <<'HERE';
<if $file>
<span>File: <var make_filesize_string($media_size)>, <var $media_w>x<var $media_h>, <var $media><!-- <var $media_hash> --></span>
[<a href="<var $self>/image/<var urlsafe_b64encode(urlsafe_b64decode($media_hash))>">View same</a>] [<a href="http://iqdb.org/?url=<var $absolute_path><var $file>">iqdb</a>]
<br />
<if $fullfile><a href="<var $fullfile>">
<elsif $media_filename><a rel="noreferrer" href="<var "$images_link/$media_filename">">
</if>
<if $file><img class="thumb" src="<var $file>" alt="<var $num>" <if $preview_w>width="<var $preview_w>" height="<var $preview_h>"</if> /></if>
<if $fillfile or $media_filename></a></if>
<if not $file><img src="<const MEDIA_LOCATION_HTTP>/error.png" alt="ERROR" class="nothumb" title="No thumbnail" /></if>
</if>
HERE
use constant POSTS_INCLUDE => q{
<form id="postform" action="<var $self>/" method="post" enctype="multipart/form-data">
<div class="content">
<loop $threads>
<loop $posts>
<if not $parent and not $blockquote>
<div id="p<var $num>">
<if !$file>
<if $spoiler><img class="thumb" src="<const MEDIA_LOCATION_HTTP>/spoiler.png" alt="[SPOILER]" /></if>
<if !$spoiler><img src="<const MEDIA_LOCATION_HTTP>/error.png" alt="[ERROR]" class="nothumb" title="No thumbnail" /></if>
</if>
}.POSTS_INCLUDE_FILE.qq{
}.POSTS_INCLUDE_POST_HEADER.q{
[<a href="<var ref_thread($num)>">Reply</a>]
<if $toobig>[<a href="<var ref_thread_50($num)>">Last 50</a>]</if>
[<a href="<var $yotsuba_link>/res/<var $num>">Original</a>]
<blockquote><p><var $comment></p></blockquote>
<if $count>
<span class="omittedposts"><var $count> replies omitted. Click Reply to view.</span>
</if>
</div>
</if>
<if $parent or $blockquote>
<table><tr>
<td class="doubledash">>></td>
<td class="<if $subnum>subreply </if>reply" id="p<var $num><if $subnum>_<var $subnum></if>">
}.POSTS_INCLUDE_POST_HEADER.q{
<if $blockquote>[<a href="<var ref_post($parent,$num,$subnum)>">View</a>]</if>
<br />
}.POSTS_INCLUDE_FILE.q{
<blockquote><p>
<var $comment>
</p></blockquote>
</td>
</tr></table>
</if>
</loop>
<if $replyform>
<table><tbody>
<tr><td class="doubledash">>></td>
<td class="subreply">
}.POST_PANEL_INCLUDE.q{
</td></tr>
</tbody></table>
</if>
<br class="newthr" /><hr />
</loop>
</div>
</form>
};
use constant SEARCH_INCLUDE => <<'HERE'.POSTS_INCLUDE.<<'THERE';
<if $found>
HERE
</if>
<if not $found>
No posts found
</if>
<table style="float:left"><tbody>
<tr><td colspan="<var 1+@$search_pages>" class="theader">Navigation</td></tr>
<tr>
<td class="postblock">View posts</td>
<loop $search_pages>
<td>[<a href="<var $self>?<var x_www_params(cgi_params,'offset',$val)>"><var $caption></a>]</td>
</loop>
</tr>
</tbody></table>
THERE
use constant REPORT_LIST_INCLUDE => <<'HERE';
<table class="generic-table"><tbody>
<loop $reports>
<tr><td><a href="<var $self>/reports/<var $filename>"><var $title></a></td></tr>
</loop>
</tbody></table>
HERE
use constant REPORT_HEADER_INCLUDE => <<'HERE';
<table class="generic-table-monowidth">
<tbody>
<tr><th>Query</th><td><tt><var $query></tt></td></tr>
<if $instant>
<tr><th>Updated</th><td>Real-time</td></tr>
<else>
<tr><th>Updated</th><td><var ucfirst time_period_after($last,6)>. Next update <var time_period_before($next,6)></td></tr>
<if $authorized><tr><th>Actions</th><td>[<a href="<var $self>/actions/update-report/<var $name>">Update</a>]</td></tr></if>
</if>
</tbody></table>
HERE
use constant REPORT_THUMBS_INCLUDE => <<'HERE';
<div class="report-thumbs">
<loop $entries>
<div><table><tbody>
<loop $values>
<if $type eq "thumb">
<tr><td><a href="<var $self>/image/<var $hash>"><img src="<var $file>" alt="<var $file>" /></a></td></tr>
</if>
<if $type eq "text">
<tr><td>
<if $subtype eq "code"><tt></if>
<var $name>: <var $text>
<if $subtype eq "code"></tt></if>
</td></tr>
</if>
</loop>
</tbody></table></div>
</loop>
</div>
<div style="clear: both;"></div>
<hr />
HERE
use constant REPORT_TABLE_INCLUDE => <<'HERE';
<table class="generic-table"><tbody>
<tr>
<loop $rows>
<th><var $_></th>
</loop>
</tr>
<loop $entries>
<tr>
<loop $values>
<if $type eq "thumb">
<td><a href="<var $self>/image/<var $hash>"><img class="report-thumb-image" src="<var $file>" alt="<var $file>" /></a></td>
</if>
<if $type eq "text">
<td>
<if $subtype eq "code"><tt></if>
<var $text>
<if $subtype eq "code"></tt></if>
</td>
</if>
</loop>
</tr>
</loop>
</tbody></table>
<hr />
HERE
use constant REPORT_GRAPH_INCLUDE => <<'HERE';
<div style="text-align: center;"><img src="<var IMAGES_LOCATION_HTTP."/graphs/$board_name/$name.png">" alt="<var $name>" /></div>
<hr />
HERE
1;