-
Notifications
You must be signed in to change notification settings - Fork 13
/
admin.php
122 lines (80 loc) · 3.67 KB
/
admin.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
<?php
require 'lib/function.php';
$windowtitle = "Admin Cruft -- $boardname";
require 'lib/layout.php';
print "$header<br>";
if (!$isadmin) {
print "
$tblstart
$tccell1>Uh oh, you are not the admin go away.</td>
$tblend
$footer
";
printtimedif($startingtime);
die();
}
$misc = $sql -> fetchq("SELECT * FROM `misc`");
print adminlinkbar("admin.php") ."
$tblstart
<tr>$tccellh><b>Panel de Admin<br></td></tr>
<tr>$tccell1>
<br>Under construction for
<br><b>". timeunits2(time() - mktime(19, 20, 21, 9, 27, 2007)) ."</b>
<br>...and counting!
<br>
</td></tr>
$tblend
<br>
<form action='admin.php' method='post'>
$tblstart
<tr>$tccellh colspan=2><b>Setting up the Soft Dip</b></td></tr>
<tr>$tccellc colspan=2>Board settings</td></tr>
<tr>$tccell1 width='200'><b>". $statusicons['hot'] ." threshold</b></td>
$tccell2l> $inpt='hotcount' value='". $misc['hotcount'] ."' class='right'> replies
$inph='hotcount_' value='". $misc['hotcount'] ."'>
</td></tr>
<tr>$tccell1 width='200'><b>Disable forum?</b></td>
$tccell2l> $inpc='disable' value='1'> Disable
</td></tr>
<tr>$tccellc colspan=2>Records</td></tr>
<tr>$tccell1 width='200'><b>View count</b></td>
$tccell2l> $inpt='views' value='". $misc['views'] ."' class='right'> views
$inph='views' value='". $misc['views'] ."'>
</td></tr>
<tr>$tccell1 width='200'><b>Max posts/day</b></td>
$tccell2l> $inpt='maxpostsday' value='". $misc['maxpostsday'] ."' class='right'> posts, at $inpt='maxpostsdaydate' value='". $misc['maxpostsdaydate'] ."' class='right'>
$inph='maxpostsday' value='". $misc['maxpostsday'] ."'>$inph='maxpostsdaydate' value='". $misc['maxpostsdaydate'] ."'>
</td></tr>
<tr>$tccell1 width='200'><b>Max posts/hour</b></td>
$tccell2l> $inpt='maxpostshour' value='". $misc['maxpostshour'] ."' class='right'> posts, at $inpt='maxpostshourdate' value='". $misc['maxpostshourdate'] ."' class='right'>
$inph='maxpostshour' value='". $misc['maxpostshour'] ."'>$inph='maxpostshourdate' value='". $misc['maxpostshourdate'] ."'>
</td></tr>
<tr>$tccell1 width='200'><b>Most users online</b></td>
$tccell2l> $inpt='maxusers' value='". $misc['maxusers'] ."' class='right'> users, at $inpt='maxusersdate' value='". $misc['maxusersdate'] ."' class='right'>
<br>$inpc='maxusersreset' value='1'> Reset user list
$inph='maxusers' value='". $misc['maxusers'] ."'>$inph='maxusersdate' value='". $misc['maxusersdate'] ."'>
</td></tr>
<tr>$tccellc colspan=2><img src=\"images/ihateglennbeckbutistillthinkthisimagefitsquitenicelyundertheadminpanelmoneycounter.jpg\" title=\"longest file name ever\"><br>Monetary settings</td></tr>
<tr>$tccell1 width='200'><b>Donations</b></td>
$tccell2l> $inpt='donations' value='". sprintf("%01.2f", $misc['donations']) ."' class='right'>$
$inph='donations' value='". sprintf("%01.2f", $misc['donations']) ."'>
</td></tr>
<tr>$tccell1 width='200'><b>$$$ Ads $$$</b></td>
$tccell2l> $inpt='ads' value='". sprintf("%01.2f", $misc['ads']) ."' class='right'>$
$inph='ads' value='". sprintf("%01.2f", $misc['ads']) ."'>
</td></tr>
<tr>$tccellc colspan=2> </td></tr>
<tr>$tccell1 width='200'> </td>
$tccell2l> $inps='submit' value='Submit changes'>
<br><s><strong>(Only saves the money settings though.)</strong></s> just kidding, it doesn't work.
</td></tr>
$tblend
</form>
";
print "$footer";
printtimedif($startingtime);
// returns several field names with hours/date/time all set up and that jazz etc blah blah blah
function timetofields($fname, $time) {
return;
}
?>