forked from marlencrabapple/Glaukaba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_style.pl
executable file
·1425 lines (1338 loc) · 66.2 KB
/
admin_style.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
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
use strict;
use POSIX qw/strftime/;
BEGIN { use File::Basename;
my $dirname = dirname(__FILE__);
chdir($dirname);
require "$dirname/wakautils.pl"
}
use constant MANAGER_HEAD_INCLUDE => MINIMAL_HEAD_INCLUDE.q{
<if $admin>
<div class="topNavContainer" id="adminNav">
<div class="topNavLeft">
<span style="vertical-align: middle">
<strong>Navigation: </strong>
<select id="managerBoardList" onchange="window.location = '//<var DOMAIN>/'+value+'/wakaba.pl?task=mpanel&admin=<var $admin>'">
<if $session-\>[1] eq 'janitor'><loop $session-\>[6]><option value="<var $board>">/<var $board>/</option></loop></if>
<if $session-\>[1] ne 'janitor'><loop BOARDS><option value="<var $dir>">/<var $dir>/</option></loop></if>
<option value="#">Boards</option>
</select>
</span>
</div>
<div class="topNavRight">
<span style="vertical-align: middle">
<if $session-\>[2]>[<a href="<var $self>?task=inbox&admin=<var $admin>">New Messages</a>]</if>
<if $session-\>[3]>[<a href="<var $self>?task=viewreports&admin=<var $admin>">New Reports</a>]</if>
<if $session-\>[4]>[<a href="<var $self>?task=listrequests&admin=<var $admin>">New Ban Requests</a>]</if>
<strong>Logged in as:</strong> <var $session-\>[0]>
</span>
</div>
</div>
<div class="logo adminLogo">
<span class="title"><const TITLE></span>
</div>
<hr style="margin-top: 10px; margin-bottom: 20px;" />
</if>
[<a href="<var expand_filename(HTML_SELF)>"><const S_MANARET></a>]
<if $admin>
[<a href="<var $self>?task=mpanel&admin=<var $admin>"><const S_MANAPANEL></a>]
<if $session-\>[1] eq 'mod'>
[<a href="<var $self>?task=bans&admin=<var $admin>"><const S_MANABANS></a>]
[<a href="<var $self>?task=passlist&admin=<var $admin>">Pass List</a>]
[<a href="<var $self>?task=rebuild&admin=<var $admin>"><const S_MANAREBUILD></a>]
[<a href="<var $self>?task=listrequests&admin=<var $admin>">Ban Requests</a>]
[<a href="<var $self>?task=viewlog&admin=<var $admin>">View Log</a>]
</if>
<if $session-\>[1] eq 'admin'>
[<a href="<var $self>?task=bans&admin=<var $admin>"><const S_MANABANS></a>]
[<a href="<var $self>?task=passlist&admin=<var $admin>">Pass List</a>]
[<a href="<var $self>?task=proxy&admin=<var $admin>"><const S_MANAPROXY></a>]
[<a href="<var $self>?task=spam&admin=<var $admin>"><const S_MANASPAM></a>]
[<a href="<var $self>?task=sqldump&admin=<var $admin>"><const S_MANASQLDUMP></a>]
[<a href="<var $self>?task=sql&admin=<var $admin>"><const S_MANASQLINT></a>]
[<a href="<var $self>?task=rebuild&admin=<var $admin>"><const S_MANAREBUILD></a>]
[<a href="<var $self>?task=listrequests&admin=<var $admin>">Ban Requests</a>]
[<a href="<var $self>?task=viewlog&admin=<var $admin>">View Log</a>]
</if>
[<a href="<var $self>?task=manageusers&admin=<var $admin>"><if $session-\>[1] eq 'admin'>Manage Users</if><if $session-\>[1] ne 'admin'>User List</if></a>]
[<a href="<var $self>?task=edituser&admin=<var $admin>&user=<var $session-\>[0]>">Edit Profile</a>]
[<a href="<var $self>?task=inbox&admin=<var $admin>">Inbox</a>]
[<a id="reportQueueButton" href="<var $self>?task=viewreports&admin=<var $admin>"><const S_REPORTS></a>]
[<a href="<var $self>?task=logout&type=admin"><const S_MANALOGOUT></a>]
</if>
<div class="passvalid"><const S_MANAMODE></div><br />
};
use constant ADMIN_POST_BUTTONS_TEMPLATE => q{
<if $session-\>[1] ne 'janitor'>[<a href="<var $self>?task=ippage&ip=<var $ip>&admin=<var $admin>" title="IP Page"><var dec_to_dot $ip></a>]
[<a href="<var $self>?task=bantemplate&ip=<var $ip>&num=<var $num>&admin=<var $admin>" title="Ban User">B</a>]</if>
[<a href="<var $self>?task=delete&delete=<var $num>&admin=<var $admin>" title="Delete Post">D</a>]
[<a href="<var $self>?task=delete&delete=<var $num>&fileonly=1&admin=<var $admin>" title="Delete File">F</a>]
<if $session-\>[1] eq 'admin'>[<a href="<var $self>?task=editpost&num=<var $num>&admin=<var $admin>" title="Edit Post">E</a>]</if>
<if !$parent><if $session-\>[1] ne 'janitor'>
<if $sticky>[<a href="<var $self>?admin=<var $admin>&task=stickdatshit&num=<var $num>&jimmies=rustled" title="Toggle Sticky">-S</a>]</if>
<if !$sticky>[<a href="<var $self>?admin=<var $admin>&task=stickdatshit&num=<var $num>&jimmies=unrustled" title="Toggle Sticky">S</a>]</if>
<if $locked>[<a href="<var $self>?admin=<var $admin>&task=lockthread&num=<var $num>&jimmies=rustled" title="Toggle Lock">-L</a>]</if>
<if !$locked>[<a href="<var $self>?admin=<var $admin>&task=lockthread&num=<var $num>&jimmies=unrustled" title="Toggle Lock">L</a>]</if></if>
<if $permasage>[<a href="<var $self>?admin=<var $admin>&task=permasage&num=<var $num>&jimmies=rustled" title="Toggle Permasage">-PS</a>]</if>
<if !$permasage>[<a href="<var $self>?admin=<var $admin>&task=permasage&num=<var $num>&jimmies=unrustled" title="Toggle Permasage">PS</a>]</if>
</if>
<if $reported>[<a href="<var $self>?admin=<var $admin>&task=viewreport&num=<var $num>" title="View detailed report information for this post">View Report</a>]</if>
};
use constant ADMIN_LOGIN_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<style>
.adminlogin-form {
text-align:center;
}
.adminlogin-form > form {
display:inline-block;
}
.adminlogin-form > form input[type=text], .adminlogin-form > form input[type=password] {
width:75px
}
</style>
<div class="adminlogin-form">
<form id="login" action="<var $self>" method="post">
<input type="hidden" name="task" value="admin" />
<input type="hidden" name="nexttask" value="mpanel" />
<table style="border-spacing: 2px">
<tbody>
<tr>
<td>
<strong>Username </strong>
</td>
<td style="text-align: right">
<input type="text" name="user" class="postInput">
</td>
</tr>
<tr>
<td>
<strong>Password </strong>
</td>
<td style="text-align: right">
<input type="password" name="berra" class="postInput">
</td>
</tr>
<tr>
<td colspan=2 style="text-align:left">
<label for="saveLogin">
<input type="checkbox" name="savelogin" id="saveLogin">
Remember me
</label>
</td>
</tr>
<tr>
<td colspan=2>
<input type="submit" value="Login">
</td>
</tr>
</tbody>
</table>
</form>
</div>
}.NORMAL_FOOT_INCLUDE);
use constant BAN_PANEL_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div class="dellist"><const S_MANABANS></div>
<div class="postarea">
<table><tbody><tr><td valign="bottom">
<form action="<var $self>" method="post">
<input type="hidden" name="task" value="addip" />
<input type="hidden" name="type" value="ipban" />
<input type="hidden" name="admin" value="<var $admin>" />
<table><tbody>
<tr><td class="postBlock"><const S_BANIPLABEL></td><td><input type="text" name="ip" size="24" /></td></tr>
<tr><td class="postBlock"><const S_BANMASKLABEL></td><td><input type="text" name="mask" size="24" /></td></tr>
<tr><td class="postBlock"><const S_BANCOMMENTLABEL></td><td><input type="text" name="comment" size="16" />
<input type="submit" value="<const S_BANIP>" /></td></tr>
</tbody></table></form>
</td><td> </td><td valign="bottom">
<form action="<var $self>" method="post">
<input type="hidden" name="task" value="addip" />
<input type="hidden" name="type" value="whitelist" />
<input type="hidden" name="admin" value="<var $admin>" />
<table><tbody>
<tr><td class="postBlock"><const S_BANIPLABEL></td><td><input type="text" name="ip" size="24" /></td></tr>
<tr><td class="postBlock"><const S_BANMASKLABEL></td><td><input type="text" name="mask" size="24" /></td></tr>
<tr><td class="postBlock"><const S_BANCOMMENTLABEL></td><td><input type="text" name="comment" size="16" />
<input type="submit" value="<const S_BANWHITELIST>" /></td></tr>
</tbody></table></form>
</td><td> </td></tr><tr><td valign="bottom">
<form action="<var $self>" method="post">
<input type="hidden" name="task" value="addstring" />
<input type="hidden" name="type" value="wordban" />
<input type="hidden" name="admin" value="<var $admin>" />
<table><tbody>
<tr><td class="postBlock"><const S_BANWORDLABEL></td><td><input type="text" name="string" size="24" /></td></tr>
<tr><td class="postBlock"><const S_BANCOMMENTLABEL></td><td><input type="text" name="comment" size="16" />
<input type="submit" value="<const S_BANWORD>" /></td></tr>
</tbody></table></form>
</td><td> </td><td valign="bottom">
<form action="<var $self>" method="post">
<input type="hidden" name="task" value="addstring" />
<input type="hidden" name="type" value="trust" />
<input type="hidden" name="admin" value="<var $admin>" />
<table><tbody>
<tr><td class="postBlock"><const S_BANTRUSTTRIP></td><td><input type="text" name="string" size="24" /></td></tr>
<tr><td class="postBlock"><const S_BANCOMMENTLABEL></td><td><input type="text" name="comment" size="16" />
<input type="submit" value="<const S_BANTRUST>" /></td></tr>
</tbody></table></form>
</td></tr></tbody></table>
</div><br />
<table align="center"><tbody>
<tr class="managehead"><const S_BANTABLE></tr>
<loop $bans>
<if $divider><tr class="managehead"><th colspan="6"></th></tr></if>
<tr class="row<var $rowtype>">
<if $type eq 'ipban'>
<td>IP</td>
<td><a href="<var $self>?task=ippage&ip=<var $ival1>&admin=<var $admin>"><var dec_to_dot($ival1)>/<var dec_to_dot($ival2)></a></td>
</if>
<if $type eq 'wordban'>
<td>Word</td>
<td><var $sval1></td>
</if>
<if $type eq 'trust'>
<td>NoCap</td>
<td><var $sval1></td>
</if>
<if $type eq 'whitelist'>
<td>Whitelist</td>
<td><a href="<var $self>?task=ippage&ip=<var $ival1>&admin=<var $admin>"><var dec_to_dot($ival1)>/<var dec_to_dot($ival2)></a></td>
</if>
<td><var $comment></td>
<td>
<if $active><a href="<var $self>?task=updateban&num=<var $num>&active=0&ip=<var $ival1>&admin=<var $admin>">Deactivate</a></if>
<if !$active><a href="<var $self>?task=updateban&num=<var $num>&active=1&ip=<var $ival1>&admin=<var $admin>">Activate</a></if>
<a href="<var $self>?admin=<var $admin>&task=removeban&num=<var $num>"><const S_BANREMOVE></a>
</td>
</tr>
</loop>
</tbody></table><br />
}.NORMAL_FOOT_INCLUDE);
use constant GENERAL_POSTS_TEMPLATE => q{
<div class="thread"><loop $posts>
<if !$parent>
<div class="parentPost" id="parent<var $num>">
<div class="hat"></div>
<if $image><span class="filesize"><const S_PICNAME><a target="_blank" href="<var expand_image_filename($image)>"><if !$filename><var get_filename($image)></if><if $filename><var truncateLine($filename)></if></a>
-(<em><var int($size/1024)> KB, <var $width>x<var $height></em>)</span>
<br />
<if $thumbnail><a target="_blank" class="thumbLink" href="<var expand_image_filename($image)>">
<if !$tnmask><img src="<var expand_filename($thumbnail)>" style="width:<var $tn_width>px; height:<var $tn_height>px;" data-md5="<var $md5>" alt="<var $size>" class="thumb opThumb" /></if><if $tnmask><img src="//<var DOMAIN>/img/spoiler.png" data-md5="<var $md5>" alt="<var $size>" class="thumb opThumb" /></if></a></if>
<if !$thumbnail>
<if DELETED_THUMBNAIL><a target="_blank" class="thumbLink" href="<var expand_image_filename(DELETED_IMAGE)>"><img src="<var expand_filename(DELETED_THUMBNAIL)>" style="width:<var $tn_width>px; height:<var $tn_height>px;" alt="" class="thumb opThumb" /></a></if>
<if !DELETED_THUMBNAIL><div class="thumb nothumb"><a target="_blank" class="thumbLink" href="<var expand_image_filename($image)>"><const S_NOTHUMB></a></div></if></if></if>
<a id="<var $num>"></a>
<span class="parentPostInfo">
<label><input type="checkbox" name="delete" value="<var $num>" />
<span class="filetitle"><var $subject></span>
<if $email><span class="postername"><a href="<var $email>"><var $name></a></span><if $trip><span class="postertrip"><a href="<var $email>"><var $trip></a></span></if></if>
<if !$email><span class="postername"><var $name></span><if $trip><span class="postertrip"><var $trip></span></if></if>
<var $date></label>
<span class="reflink">
<if !$thread><a class="refLinkInner" href="<var get_reply_link($num,0)>#i<var $num>">No.<var $num></a></if>
<if $thread><a class="refLinkInner" href="javascript:insert('>><var $num>')">No.<var $num></a></if>
<if $sticky><img src="//<var DOMAIN>/img/sticky.gif" alt="Stickied"/></if>
<if $locked><img src="//<var DOMAIN>/img/closed.gif " alt="Locked"/></if>
</span>
<if !$thread>[<a href="<var $self>?admin=<var $admin>&task=viewthread&num=<var $num>"><const S_REPLY></a>]</if>
}.ADMIN_POST_BUTTONS_TEMPLATE.q{
</span>
<blockquote<if $email=~/aa$/i> class="aa"</if>>
<var $comment>
<if $abbrev><div class="abbrev"><var sprintf(S_ABBRTEXT,get_reply_link($num,$parent))></div></if>
</blockquote>
</div>
<if $omit><span class="omittedposts">
<if $omitimages><var sprintf S_ABBRIMG,$omit,$omitimages></if>
<if !$omitimages><var sprintf S_ABBR,$omit></if>
</span></if></if>
<if $parent><div class="replyContainer" id="replyContainer<var $num>">
<div class="doubledash"></div>
<div class="reply" id="reply<var $num>">
<a id="<var $num>"></a>
<label><input type="checkbox" name="delete" value="<var $num>" />
<span class="replytitle"><var $subject></span>
<if $email><span class="commentpostername"><a href="<var $email>"><var $name></a></span><if $trip><span class="postertrip"><a href="<var $email>"><var $trip></a></span></if></if>
<if !$email><span class="commentpostername"><var $name></span><if $trip><span class="postertrip"><var $trip></span></if></if>
<var $date></label>
<span class="reflink">
<if !$thread><a class="refLinkInner" href="<var get_reply_link($parent,0)>#i<var $num>">No.<var $num></a></if>
<if $thread><a class="refLinkInner" href="javascript:insert('>><var $num>')">No.<var $num></a></if>
</span>
}.ADMIN_POST_BUTTONS_TEMPLATE.q{
<if $image>
<br />
<span class="filesize"><const S_PICNAME><a target="_blank" href="<var expand_image_filename($image)>"><if !$filename><var get_filename($image)></if><if $filename><var truncateLine($filename)></if></a>
-(<em><var int($size/1024)> KB, <var $width>x<var $height></em>)</span>
<br />
<if $thumbnail>
<a class="thumbLink" target="_blank" href="<var expand_image_filename($image)>">
<if !$tnmask><img src="<var expand_filename($thumbnail)>" alt="<var $size>" class="thumb replyThumb" data-md5="<var $md5>" style="width: <var $tn_width*.504>px; height: <var $tn_height*.504>px;" /></if><if $tnmask><img src="//<var DOMAIN>/img/spoiler.png" alt="<var $size>" class="thumb replyThumb" data-md5="<var $md5>" /></if></a>
</if>
<if !$thumbnail>
<if DELETED_THUMBNAIL>
<a target="_blank" class="thumbLink" href="<var expand_image_filename(DELETED_IMAGE)>">
<img src="<var expand_filename(DELETED_THUMBNAIL)>" width="<var $tn_width>" height="<var $tn_height>" alt="" class="thumb replyThumb" /></a>
</if>
<if !DELETED_THUMBNAIL>
<div class="thumb replyThumb nothumb"><a class="thumbLink" target="_blank" href="<var expand_image_filename($image)>"><const S_NOTHUMB></a></div>
</if></if></if>
<blockquote<if $email=~/aa$/i> class="aa"</if>>
<var $comment>
<if $abbrev><div class="abbrev"><var sprintf(S_ABBRTEXT,get_reply_link($num,$parent))></div></if>
</blockquote>
</div>
</div>
</if>
<hr />
</loop>
</div>
};
use constant GENERAL_POSTS_TEMPLATE_WRAPPER => compile_template(MANAGER_HEAD_INCLUDE.q{
<strong>Viewing posts for '<em><var $selectby> <var $val></em>'.</strong>
}.GENERAL_POSTS_TEMPLATE.NORMAL_FOOT_INCLUDE);
use constant PROXY_PANEL_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div class="dellist"><const S_MANAPROXY></div>
<div class="postarea">
<table><tbody><tr><td valign="bottom">
<if !ENABLE_PROXY_CHECK>
<div class="dellist"><const S_PROXYDISABLED></div>
<br />
</if>
<form action="<var $self>" method="post">
<input type="hidden" name="task" value="addproxy" />
<input type="hidden" name="type" value="white" />
<input type="hidden" name="admin" value="<var $admin>" />
<table><tbody>
<tr><td class="postBlock"><const S_PROXYIPLABEL></td><td><input type="text" name="ip" size="24" /></td></tr>
<tr><td class="postBlock"><const S_PROXYTIMELABEL></td><td><input type="text" name="timestamp" size="24" />
<input type="submit" value="<const S_PROXYWHITELIST>" /></td></tr>
</tbody></table></form>
</td></tr></tbody></table>
</div><br />
<table align="center"><tbody>
<tr class="managehead"><const S_PROXYTABLE></tr>
<loop $scanned>
<if $divider><tr class="managehead"><th colspan="6"></th></tr></if>
<tr class="row<var $rowtype>">
<if $type eq 'white'>
<td>White</td>
<td><var $ip></td>
<td><var $timestamp+PROXY_WHITE_AGE-time()></td>
</if>
<if $type eq 'black'>
<td>Black</td>
<td><var $ip></td>
<td><var $timestamp+PROXY_BLACK_AGE-time()></td>
</if>
<td><var $date></td>
<td><a href="<var $self>?admin=<var $admin>&task=removeproxy&num=<var $num>"><const S_PROXYREMOVEBLACK></a></td>
</tr>
</loop>
</tbody></table><br />
}.NORMAL_FOOT_INCLUDE);
use constant SPAM_PANEL_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div align="center">
<div class="dellist"><const S_MANASPAM></div>
<p><const S_SPAMEXPL></p>
<form action="<var $self>" method="post">
<input type="hidden" name="task" value="updatespam" />
<input type="hidden" name="admin" value="<var $admin>" />
<div class="buttons">
<input type="submit" value="<const S_SPAMSUBMIT>" />
<input type="button" value="<const S_SPAMCLEAR>" onclick="document.forms[0].spam.value=''" />
<input type="reset" value="<const S_SPAMRESET>" />
</div>
<textarea name="spam" rows="<var $spamlines>" cols="60"><var $spam></textarea>
<div class="buttons">
<input type="submit" value="<const S_SPAMSUBMIT>" />
<input type="button" value="<const S_SPAMCLEAR>" onclick="document.forms[0].spam.value=''" />
<input type="reset" value="<const S_SPAMRESET>" />
</div>
</form>
</div>
}.NORMAL_FOOT_INCLUDE);
use constant SQL_DUMP_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div class="dellist"><const S_MANASQLDUMP></div>
<pre class="sqldump"><code><var $database></code></pre>
}.NORMAL_FOOT_INCLUDE);
use constant SQL_INTERFACE_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div class="dellist"><const S_MANASQLINT></div>
<div align="center">
<form action="<var $self>" method="post">
<input type="hidden" name="task" value="sql" />
<input type="hidden" name="admin" value="<var $admin>" />
<textarea name="sql" rows="10" cols="60"></textarea>
<div class="delbuttons"><const S_SQLNUKE>
<input type="password" name="nuke" value="<var $nuke>" />
<input type="submit" value="<const S_SQLEXECUTE>" />
</div>
</form>
<hr />
<br /><br /><br />
<strong><a href="javascript:void(0)" onclick="if(document.getElementById('nukeBoard').style.display=='none'){document.getElementById('nukeBoard').style.display='block';}else{document.getElementById('nukeBoard').style.display='none';}">Nuke Board</a></strong>
<div id="nukeBoard" style="display:none">
<form action="<var $self>" method="post">
<input type="hidden" name="task" value="nuke" />
<input type="hidden" name="admin" value="<var $admin>" />
<div class="delbuttons"><const S_SQLNUKE>
<input type="password" name="nukepass" value="<var $nuke>" />
<input type="submit" value="Nuke Board" />
</div>
</form>
</div>
</div>
<pre><code><var $results></code></pre>
}.NORMAL_FOOT_INCLUDE);
use constant REPORTS_PAGE_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div class="dellist">Report Queue</div>
<if !$posts>
There are zero reported posts!
</if>
<loop $posts>
<div class="reportContainer" id="reportContainer<var $num>">
<div class="reportHeader"><strong>Board: </strong><a href="//<var DOMAIN>/<var BOARD_DIR>/" target="_blank">/<var BOARD_DIR>/</a> No. <var $num> <a href="<var $self>?admin=<var $admin>&task=viewthread&num=<if $parent><var $parent></if><if !$parent><var $num></if>#<var $num>" target="_blank">[View Full]</a> <strong>Total: </strong><var $totalreports> <strong>Illegal: </strong><var $illegal> <strong>Spam: </strong><var $spam> <strong>Rule: </strong><var $vio></div>
<div class="reportPostHeader">
<div style="float:left">
<span class="postername"><var $name></span> <span class="postertrip"><var $trip></span>
</div>
<div style="float:right">
<var make_date $timestamp,tiny>
<if !$parent><strong>[OP]</strong></if>
</div>
<div style="clear:both;"></div>
</div>
<div class="reportContent">
<div>
<if $image><a class="thumbLink" target="_blank" href="<var expand_filename($image)>">
<img src="<var expand_filename($thumbnail)>" class="thumb replyThumb" alt="<var $size>" data-md5="<var $md5>" style="width:<var $tn_width*.504>px; height:<var $tn_height*.504>px; margin-left:5px;">
</a></if>
<div class="reportComment">
<var $comment>
</div>
</div>
<div class="reportOptions">
[<a href="<var $self>?task=viewreport&num=<var $num>&admin=<var $admin>">More info</a>]
[<a href="<var $self>?task=dismiss&num=<var $num>&admin=<var $admin>">Dismiss</a>]
<if $session-\>[1] eq 'janitor'>[<a href="<var $self>?task=requestban&num=<var $num>&admin=<var $admin>">Request Ban</a>]</if>
}.ADMIN_POST_BUTTONS_TEMPLATE.q{
</div>
</div>
</div>
</loop>
}.NORMAL_FOOT_INCLUDE);
use constant BAN_REQUEST_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div align="center"><strong>Request a ban.</strong></div>
<div class="postarea"><form id="banRequest" action="<var $self>" method="post" enctype="multipart/form-data">
<table><tbody><input type="hidden" name="task" value="submitrequest" />
<input type="hidden" name="admin" value="<var $admin>" />
<tr><td class="postBlock">No.</td><td><input type="text" value="<var $num>" name="num" size="28" /></td></tr>
<tr><td class="postBlock">Reason</td><td><select name="reason">
<option value="spam">Spammer</option>
<option value="illegal">Illegal content posted</option>
<option value="evasion">Ban evasion</option>
<option value="vio">Rule breaking posts</option>
</select></td></tr>
<tr><td class="postBlock" style="width: 73px">Details</td><td><textarea name="reason2" class="postInput" id="field4"></textarea></td></tr>
<tr><td><input type="submit" value="<const S_SUBMIT>" /></td></tr>
</tbody></table></form></div>
<if $requested>
<hr />
<div align="center"><strong>Existing requests.</strong></div>
<loop $requested>
<div style="margin: 0 auto; width: 650px;">
User '<em><var $fromuser></em>' requested a ban for the following reason: <em>'<var $reason>'</em>. <if $reason2>Additional Details: '<em><var $reason2></em>'</if><br />
</div>
</loop>
</if>
<hr />
}.NORMAL_FOOT_INCLUDE);
use constant REPORT_PAGE_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<strong>
Displaying report details for <a href="<var $self>?admin=<var $admin>&task=viewthread&num=<if $parent><var $parent></if><if !$parent><var $num></if>#<var $num>" target="_blank">/<const BOARD_DIR>/<var $num></a>.<br />
[<a href="<var $self>?admin=<var $admin>&task=viewreports">Return</a>]<br/ >
<br/ >
Report Statistics:
</strong>
<table class="reportstats">
<tbody>
<tr>
<td class="reportblock">Total Reports</td>
<td class="reportright"><var $total></td>
</tr>
<tr>
<td class="reportblock">Reported 'spam'</td>
<td class="reportright"><var $$reports[0]{spam}></td>
</tr>
<tr>
<td class="reportblock">Reported 'illegal'</td>
<td class="reportright"><var $$reports[0]{illegal}></td>
</tr>
<tr>
<td class="reportblock">Reported 'rule vio.'</td>
<td class="reportright"><var $$reports[0]{vio}></td>
</tr>
<tr>
<td class="reportblock">Last reported</td>
<td class="reportright"><var make_date $last,DATE_STYLE></td>
</tr>
<tr>
<td class="reportblock">First reported</td>
<td class="reportright"><var make_date $first,DATE_STYLE></td>
</tr>
<if $session-\>[1] ne 'janitor'><tr>
<td class="reportblock">Reported By</td>
<td class="reportright">
<loop $reports>
[<a href="<var $self>?task=ippage&ip=<var dot_to_dec $fromip>&admin=<var $admin>"><var $fromip></a>] [<a href="<var $self>?task=bantemplate&ip=<var $fromip>&admin=<var $admin>">Ban</a>]<br />
</loop>
</td>
</tr></if>
</tbody>
</table>
<br/ >
<strong>Actions:</strong><br />
<if $session-\>[1] eq 'janitor'>[<a href="<var $self>?task=requestban&num=<var $num>&admin=<var $admin>">Request Ban</a>] </if>[<a href="<var $self>?task=dismiss&num=<var $num>&admin=<var $admin>">Dismiss Reports</a>]
<br /><br />
<strong>Post:</strong>
<loop $post>
<div class="replyContainer" id="replyContainer<var $num>">
<div class="reply<if $reported> reportedReply</if>" id="reply<var $num>">
<a id="<var $num>"></a>
<div class="replyPostInfo"><input type="checkbox" name="delete" value="<var $num>" />
<span class="replytitle"><var $subject></span>
<if $email><span class="postername"><a href="<var $email>"><var $name></a></span><if $trip><span class="postertrip"><a href="<var $email>"><var $trip></a></span></if></if>
<if !$email><span class="postername"><var $name></span><if $trip> <span class="postertrip"><var $trip></span></if></if>
<var substr($date,0,index($date,"ID:"))><span class="id"><var substr($date, index($date,"ID:"))></span>
<span class="reflink">
<if !$thread><a class="refLinkInner" href="<var get_reply_link($parent,0)>#i<var $num>">No.<var $num></a></if>
<if $thread><a class="refLinkInner" href="javascript:insert('>><var $num>')">No.<var $num></a></if></span>
}.ADMIN_POST_BUTTONS_TEMPLATE.q{
</div>
<if $image><br />
<span class="filesize"><const S_PICNAME><a target="_blank" href="<var expand_image_filename($image)>"><if !$filename><var get_filename($image)></if><if $filename><var truncateLine($filename)></if></a>
-(<var int($size/1024)> KB, <var $width>x<var $height>)</span><br />
<if $thumbnail>
<a class="thumbLink" target="_blank" href="<var expand_image_filename($image)>">
<if !$tnmask><img src="<var expand_filename($thumbnail)>" alt="<var $size>" class="thumb replyThumb" data-md5="<var $md5>" style="width: <var $tn_width*.504>px; height: <var $tn_height*.504>px;" /></if><if $tnmask><img src="//<var DOMAIN>/img/spoiler.png" alt="<var $size>" class="thumb replyThumb" data-md5="<var $md5>" /></if></a>
</if>
<if !$thumbnail>
<if DELETED_THUMBNAIL>
<a target="_blank" class="thumbLink" href="<var expand_image_filename(DELETED_IMAGE)>">
<img src="<var expand_filename(DELETED_THUMBNAIL)>" width="<var $tn_width>" height="<var $tn_height>" alt="" class="thumb replyThumb" /></a>
</if>
<if !DELETED_THUMBNAIL>
<div class="thumb replyThumb nothumb"><a class="thumbLink" target="_blank" href="<var expand_image_filename($image)>"><const S_NOTHUMB></a></div>
</if></if></if>
<blockquote<if $email=~/aa$/i> class="aa"</if>>
<var $comment>
</blockquote>
</div>
</div>
</loop>
<br /><br />
}.NORMAL_FOOT_INCLUDE);
use constant BAN_REQUEST_LIST_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div align="center"><strong>Ban Requests</strong><br /></div>
<loop $requested>
<div>
User '<em><var $fromuser></em>' requested a ban for user [<a href="<var $self>?task=ippage&ip=<var $ip>&admin=<var $admin>"><var dec_to_dot $ip></a>] the following reason: <em>'<var $reason>'</em>. <if $reason2>Additional Details: '<em><var $reason2></em>'.</if> Post Number: <em>'<a href="<var $self>?admin=<var $admin>&task=viewthread&num=<if $postparent><var $postparent></if><if !$postparent><var $postnum></if>#<var $postnum>" target="_blank">/<const BOARD_DIR>/<var $postnum></a>'</em>.
- [<a href="<var $self>?task=bantemplate&ip=<var $ip>&num=<if $postparent><var $postparent></if><if !$postparent><var $postnum></if>&admin=<var $admin>">Ban</a>] [<a href="<var $self>?task=dismissrequests&ip=<var $ip>&admin=<var $admin>">Dismiss</a>]
<br />
</div>
</loop>
}.NORMAL_FOOT_INCLUDE);
use constant ADMIN_POST_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div align="center"><em><const S_NOTAGS></em><br /></div>
<div class="postarea">
<form id="postform" action="<var $self>" method="post" enctype="multipart/form-data">
<input type="hidden" name="task" value="post" />
<input type="hidden" name="admin" value="<var $admin>" />
<input type="hidden" name="no_captcha" value="1" />
<br />
<table><tbody>
<tr><td class="postBlock"><const S_NAME></td><td><input type="text" name="field1" size="28" /></td></tr>
<tr><td class="postBlock"><const S_EMAIL></td><td><input type="text" name="field2" size="28" /></td></tr>
<tr><td class="postBlock"><const S_SUBJECT></td><td><input type="text" name="field3" size="35" />
<input type="submit" value="<const S_SUBMIT>" /></td></tr>
<tr><td class="postBlock"><const S_COMMENT></td><td><textarea name="field4" cols="48" rows="4"></textarea></td></tr>
<tr><td class="postBlock"><const S_UPLOADFILE></td><td><input type="file" name="file" size="35" />
<label><input type="checkbox" name="nofile" value="on" /><const S_NOFILE> </label>
</td></tr>
<tr><td class="postBlock"><const S_PARENT></td><td><input type="text" name="parent" size="8" /></td></tr>
<tr><td class="postBlock"><const S_DELPASS></td><td><input type="password" name="password" size="8" /><const S_DELEXPL></td></tr>
<tr><td class="postBlock">Other</td><td><label>Self Format<input type="checkbox" name="no_format" value="1" /></label> <label> Use Capcode<input type="checkbox" name="capcode" value="1" /></label></td></tr>
</tbody></table></form></div><hr />
<script type="text/javascript">set_inputs("postform")</script>
}.NORMAL_FOOT_INCLUDE);
use constant REGISTER_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div align="center"><em>Add a new user.</em></div>
<div class="postarea"><form id="registForm" action="<var $self>" method="post" enctype="multipart/form-data">
<table><tbody><input type="hidden" name="task" value="adduser" />
<input type="hidden" name="admin" value="<var $admin>" />
<tr><td class="postBlock"><const S_NAME></td><td><input type="text" name="user" size="28" /></td></tr>
<tr><td class="postBlock"><const S_DELPASS></td><td><input type="password" name="pass" size="28" /></td></tr>
<tr><td class="postBlock">Email</td><td><input type="text" name="email" size="28" /></td></tr>
<tr><td class="postBlock">Class</td><td><select name="class">
<option value="janitor">Janitor</option>
<option value="mod">Moderator</option>
<option value="admin">Administrator</option>
</select></td></tr>
<tr><td><input type="submit" value="<const S_SUBMIT>" /></td></tr>
</tbody></table></form></div>
}.NORMAL_FOOT_INCLUDE);
use constant SELECT_BOARDS_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div align="center"><em>Manage <var $user>'s boards.</em></div>
<div class="postarea" align="center"><form id="registForm" action="<var $self>" method="post" enctype="multipart/form-data">
<table><tbody><input type="hidden" name="task" value="adduser" />
<input type="hidden" name="admin" value="<var $admin>" />
<input type="hidden" name="user" value="<var $user>" />
<input type="hidden" name="pass" value="<var $pass>" />
<input type="hidden" name="class" value="janitor" />
<input type="hidden" name="email" value="<var $email>" />
<loop BOARDS>
<label><input type="checkbox" value="<var $dir>" name="boards" />/<var $dir>/ - <var $name></label><br />
</loop>
<tr><td><input type="submit" value="<const S_SUBMIT>" /></td></tr>
</tbody></table></form></div>
}.NORMAL_FOOT_INCLUDE);
use constant MANAGE_USERS_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<table align="center" id="threadList" style="white-space: nowrap; width: auto;">
<thead>
<tr><td class="listHead">Username</td><td class="listHead">Email</td><td class="listHead">Class</td><td class="listHead">Last Session</td><td class="listHead">Options</td></tr>
</thead>
<tbody>
<loop $users>
<tr class="listRow"><td class="listCol"><var $user></td><td class="listCol"><var $email></td><td><var $class></td><td class="listCol"><if $session-\>[1] eq 'admin'><var $lastip> on </if><var make_date($lastdate,tiny)></td><td class="listCol">
<if $session-\>[1] eq 'admin'>[<a href="<var $self>?admin=<var $admin>&task=edituser&user=<var $user>">Edit</a>]
[<a href="<var $self>?admin=<var $admin>&task=removeuser&user=<var $user>">Remove</a>]</if>
[<a href="<var $self>?admin=<var $admin>&task=composemsg&to=<var $user>">Send Message</a>]
</td></tr>
</loop>
<tr><td><br/></td></tr>
<if $session-\>[1] eq 'admin'><tr><td colspan="5">[<a href="<var $self>?task=register&admin=<var $admin>">Add User</a>]</td></tr></if>
<tbody></table>
}.NORMAL_FOOT_INCLUDE);
use constant EDIT_USER_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div align="center"><em>Editing details for <if $session-\>[1] eq 'admin'><var $user></if><if $session-\>[1] ne 'admin'><var $session-\>[0]></if></em></div>
<div class="postarea"><form id="changePass" action="<var $self>" method="post" enctype="multipart/form-data">
<table><tbody><input type="hidden" name="task" value="setnewpass" />
<input type="hidden" name="admin" value="<var $admin>" />
<input type="hidden" name="user" value="<if $session-\>[1] eq 'admin'><var $user></if><if $session-\>[1] ne 'admin'><var $session-\>[0]></if>" />
<tr><td class="postBlock">Email</td><td><input name="email" value="<var $$userinfo{email}>" size="28" /></td></tr>
<if (($session-\>[1] eq 'admin') and ($session-\>[0] ne $user))><tr><td class="postBlock">Class</td><td><select name="class">
<option value="janitor">Janitor</option>
<option value="mod">Moderator</option>
<option value="admin">Administrator</option>
</select></td></tr></if>
<tr><td class="postBlock">Old Pass</td><td><input <if (($session-\>[1] eq 'admin') and ($session-\>[0] ne $user))>disabled="disabled"</if> type="password" name="oldpass" size="28" /></td></tr>
<tr><td class="postBlock">New Pass</td><td><input type="password" name="newpass" size="28" /></td></tr>
<tr><td><input type="submit" value="<const S_SUBMIT>" /></td></tr>
</tbody></table></form></div>
}.NORMAL_FOOT_INCLUDE);
use constant COMPOSE_MESSAGE_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div align="center">
<em>Compose Message</em>
<div class="postarea">
<form id="changePass" action="<var $self>" method="post" enctype="multipart/form-data">
<table>
<tbody>
<input type="hidden" name="task" value="sendmsg" />
<input type="hidden" name="admin" value="<var $admin>" />
<if $parentmsg><input type="hidden" name="replyto" value="<var $parentmsg>" /><tr><td class="postBlock">Reply To</td><td><input type="text" name="replyto" disabled="true" value="<var $parentmsg>" /></td></tr></if>
<if !$parentmsg><tr><td class="postBlock">To</td><td><input type="text" name="to" value="<var $to>" size="28" /></td></tr></if>
<tr><td class="postBlock">Message</td><td><textarea name="message" cols="48" rows="4"></textarea></td></tr>
<tr><td><input type="submit" value="<const S_SUBMIT>" /></td></tr>
</tbody>
</table>
</form>
</div>
</div>
}.NORMAL_FOOT_INCLUDE);
use constant INBOX_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<table align="center" id="threadList" style="white-space: nowrap; width: auto;">
<thead><tr>
<td class="listHead">No.</td><td class="listHead">Message</td><td class="listHead">From</td><td class="listHead">To</td><td class="listHead">Date</td><td class="listHead">Options</td>
</tr></thead>
<tbody>
<loop $messages>
<tr class="listRow"><td class="listCol"><var $num></td>
<if !$wasread><td class="listCol"><strong><a href="<var $self>?task=viewmsg&num=<var $num>&admin=<var $admin>"><var truncateComment $message></a></strong></td></if>
<if $wasread><td><a href="<var $self>?task=viewmsg&num=<var $num>&admin=<var $admin>"><var truncateComment $message></a></td></if>
<td class="listCol"><var $fromuser></td>
<td class="listCol"><var $touser></td>
<td class="listCol"><var make_date($timestamp,tiny)></td>
<td class="listCol">[<a href="<var $self>?task=composemsg&replyto=<var $num>&admin=<var $admin>">Reply</a>]</td></tr>
</loop>
<tr><td><br/></td></tr>
<tr><td colspan="5">[<a href="<var $self>?task=composemsg&admin=<var $admin>">Compose Message</a>]</td></tr>
<tbody></table>
}.NORMAL_FOOT_INCLUDE);
use constant VIEW_MESSAGE_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<loop $messages>
<table>
<tbody>
<tr><td class="postBlock">From</td><td><var $fromuser> on <var make_date($timestamp,"tiny")></td></tr>
<tr><td class="postBlock">Message</td><td><var $message></td></tr>
</tbody>
</table>
<hr/>
</loop>
[<a href="<var $self>?task=composemsg&replyto=<var $num>&admin=<var $admin>">Reply</a>]
}.NORMAL_FOOT_INCLUDE);
use constant STAFF_LOG_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<if $session-\>[1] eq 'admin'>
[<a href="<var $self>?task=clearlog&admin=<var $admin>">Clear Log</a>]
<hr />
</if>
<table id="threadList" align="center" style="white-space: nowrap; width: auto;">
<thead>
<tr>
<td class="listHead">User</td>
<td class="listHead">Action</td>
<td class="listHead">Object</td>
<td class="listHead">Board</td>
<td class="listHead">Date</td>
</tr>
</thead>
<tbody>
<loop $log>
<tr class="listRow">
<td class="listCol"><var $user>@<var dec_to_dot $ip></td>
<td class="listCol"><var $action></td>
<td class="listCol">
<if $action =~ /(proxyentry|ban)|banrequest|dismissrequests$/ or $action eq 'deleteall'>
<a href="<var $self>?task=ippage&ip=<var $object>&admin=<var $admin>">
<var dec_to_dot $object>
</a>
</if>
<if $action =~ /post|file|sticky|close|permasage|open/>
<a href="<var $self>?task=viewdeletedpost&num=<var $object>&board=<var $board>&admin=<var $admin>">
No.<var $object>
</a>
</if>
<if $action =~ /(add|edit)user/>
<a href="<var $self>?task=composemsg&to=<var $object>&admin=<var $admin>">
<var $object>
</a>
</if>
<if $action eq 'deleteuser'>
<a href="<var $self>?task=manageuser&admin=<var $admin>">
<var $object>
</a>
</if>
</td>
<td class="listCol">/<var $board>/</td>
<td class="listCol"><var make_date $time,DATE_STYLE></td>
</tr>
</loop>
<tr><td><br/></td></tr>
</tbody>
</table>
}.NORMAL_FOOT_INCLUDE);
use constant EDIT_POST_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<loop $posts>
<div class="postarea">
<div style="text-align:center; font-weight: bold;">Editing Post No. <var $num></div>
<br />
<form action="<var $self>" method="post" enctype="multipart/form-data">
<input type="hidden" name="admin" value="<var $admin>" />
<input type="hidden" name="task" value="updatepost" />
<input type="hidden" name="num" value="<var $num>" />
<if $thread><input type="hidden" name="parent" value="<var $thread>" /></if>
<if !$image_inp and !$thread and ALLOW_TEXTONLY><input type="hidden" name="nofile" value="1" /></if>
<div id="postForm">
<if !FORCED_ANON><div class="postrow">
<div class="postBlock">Name</div>
<div class="postField"><input type="text" class="postInput" name="field1" id="field1" value="<var decode_string($name,CHARSET,1)>" /></div>
</div></if>
<div class="postrow">
<div class="postBlock">Trip</div>
<div class="postField"><input type="text" class="postInput" name="field1andahalf" id="field1andahalf" value="<var decode_string($trip,CHARSET,1)>" /></div>
</div>
<div class="postrow">
<div class="postBlock">Link</div>
<div class="postField"><input type="text" class="postInput" name="field2" id="field2" value="<var decode_string($email,CHARSET,1)>" /></div>
</div>
<div class="postrow">
<div class="postBlock">Subject</div>
<div class="postField">
<input type="text" name="field3" class="postInput" value="<var decode_string($subject,CHARSET,1)>" id="field3" />
<input type="submit" id="field3s" value="Submit" />
</div>
</div>
<div class="postrow">
<div class="postBlock">Comment</div>
<div class="postField"><textarea name="field4" class="postInput" id="field4"><var $originalcomment></textarea></div>
</div>
<if $session-\>[1] eq 'admin'>
<div class="postrow">
<div class="postBlock">Options</div>
<div class="postField">[<label><input type="checkbox" name="no_format" value="1" />HTML</label>]</div>
</div>
</if>
<if !$thread>
</div>
</if>
</div>
</form>
</div>
</loop>
}.NORMAL_FOOT_INCLUDE);
use constant PASS_LIST_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<fieldset>
<legend>Pending Action</legend>
<loop $unverified>
<p>
<strong>Token</strong>: '<var $token>'
<strong>Pin:</strong> '<var $pin>'
<strong>Email:</strong> '<var $email>'
<strong>Created:</strong> '<var make_date($timestamp,DATE_STYLE)>'
<strong>Last Use:</strong> '<var make_date($lasthit,DATE_STYLE)>'
<strong>Last IP Change:</strong> '<var make_date($lastswitch,DATE_STYLE)>'
<strong>Last IP:</strong> '<var $ip>'
[<a href="<var $self>?task=updatepass&admin=<var $admin>&num=<var $num>&action=verify">Verify</a>]
[<a href="<var $self>?task=updatepass&admin=<var $admin>&num=<var $num>&action=ban">Ban</a>]
[<a href="<var $self>?task=viewposts&admin=<var $admin>&val=<var $num>&selectby=passnum">View Posts</a>]
</p>
</loop>
</fieldset>
<fieldset>
<legend>Active</legend>
<loop $normal>
<p>
<var $num>.
<strong>Token</strong>: '<var $token>'
<strong>Pin:</strong> '<var $pin>'
<strong>Email:</strong> '<var $email>'
<strong>Last Use:</strong> '<var make_date($lasthit,DATE_STYLE)>'
<strong>Created:</strong> '<var make_date($timestamp,DATE_STYLE)>'
<strong>IP List:</strong> '<var $ip>'
[<a href="<var $self>?task=updatepass&admin=<var $admin>&num=<var $num>&action=ban">Ban</a>]
[<a href="<var $self>?task=viewposts&admin=<var $admin>&val=<var $num>&selectby=passnum">View Posts</a>]
</p>
</loop>
</fieldset>
<fieldset>
<legend>Banned</legend>
<loop $banned>
<p>
<var $num>.
<strong>Token</strong>: '<var $token>'
<strong>Pin:</strong> '<var $pin>'
<strong>Email:</strong> '<var $email>'
<strong>Last Use:</strong> '<var make_date($lasthit,DATE_STYLE)>'
<strong>Created:</strong> '<var make_date($timestamp,DATE_STYLE)>'
<strong>IP List:</strong> '<var $ip>'
[<a href="<var $self>?task=viewposts&admin=<var $admin>&val=<var $num>&selectby=passnum">View Posts</a>]
</p>
</loop>
</fieldset>
}.NORMAL_FOOT_INCLUDE);
use constant BAN_TEMPLATE_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<form action="<var $self>" method="post" enctype="multipart/form-data">
<input type="hidden" name="admin" value="<var $admin>" />
<input type="hidden" name="task" value="addip" />
<input type="hidden" name="type" value="ipban" />
<table class="reportstats bantemplate">
<tr>
<td class="reportblock">Template:</td>
<td class="reportright">
<select name="template" disabled>
<option value="clear">None</option>
<option value="illegal">Illegal</option>
<option value="spam">Spam</option>
<option value="minor">Minor Violation</option>
<option value="major">Major Violation</option>
</select>
</td>
</tr>
<tr>
<td class="reportblock">Citations:</td>
<td class="reportright">
<em>No. </em><input type="text" class="postInput" name="num" value="<var $num>" /><br />
</td>
</tr>
<tr>
<td class="reportblock">IP:</td>
<td class="reportright">
<em>IP: </em><input type="text" class="postInput" name="ip" value="<var dec_to_dot $ip>" /><br />
<em>Mask: </em><input type="text" class="postInput" name="mask" value="255.255.255.255" /><br />
<label>[<input type="checkbox" name="threadban" value="1" />Ban entire thread]</label>
[<a href="<var $self>?task=ippage&ip=<var $ip>&admin=<var $admin>" target="_blank">Ban history</a>]
</td>
</tr>
<tr>
<td class="reportblock">Public reason:</td>
<td class="reportright">
<textarea name="public" class="postInput"></textarea><br />
<span class="passDesc">(This must be filled out)</span>
</td>
</tr>
<tr>
<td class="reportblock">Private info:</td>
<td class="reportright">
<textarea name="private" class="postInput"></textarea><br />
<span class="passDesc">(This will only be seen by other moderation staff)</span>
</td>
</tr>
<tr>
<td class="reportblock">Banned by:</td>
<td class="reportright">
<input type="text" class="postInput" name="fromuser" value="<var $session-\>[0]>" /><br />
<label>[<input type="checkbox" name="displayfrom" value="1" />Display]</label>
</td>
</tr>
<tr>
<td class="reportblock">Ban options:</td>
<td class="reportright">
<em>Scope: </em>
<select name="scope">
<option value="global">Global</option>
<option value="<const BOARD_DIR>">/<const BOARD_DIR>/</option>
<option value="hell">Hell ban</option>
</select>
<br />
<em>Duration: </em>
<input type="text" class="postInput" name="duration" style="width: 30px"/> <em>days</em><br />
<label>[<input type="checkbox" name="warn" value="1" />Warning]</label>
<label>[<input type="checkbox" name="perm" value="1" />Permanent]</label>
</td>
</tr>
<tr>
<td class="reportblock">Post-ban action:</td>
<td class="reportright">
<select name="postban">
<option value="">None</option>
<option value="deletebynum">Delete post</option>
<option value="deletebynumfo">Delete file only</option>
<option value="deletebyip">Delete all posts by IP</option>
</select>
</td>
</tr>
</table>
<input type="submit" style="margin-top: 5px;" value="Submit">
</form>
}.NORMAL_FOOT_INCLUDE);
use constant IP_PAGE_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div class="logo">
<span class="title" style="font-size: 14pt;"><var dec_to_dot $ip></span>