Admin Update
1.0
Updates and improves some administration features.
1) Remove old threads can be used on specified boards instead of entire forum, allowing boards such as ones used for announcements to be skipped over when deleting old messages.
2) Gives Maintenance Controls in Admin Center confirmation boxes so features are not accidentally executed by mistaken clicking.
3) Makes delete on messages as for confirmation of delete and makes remove thread confirmation into same confirmation box format.
DaveB
http://www.davesworldzone.com/
Sources/RemoveOldThreads.pl
foreach $curboard (@catinfo) {
chomp $curboard;
if ($FORM{$curboard.'check'} == 1) {
}
fclose(FILE);
}
Sources/Admin.pl
$txt{'610'} $txt{'502'} $txt{'504'} $txt{'593'}
($txt{'595'})
$txt{'610'} $txt{'502'} $txt{'504'} $txt{'593'} Remove Old Threads
sub RebuildMemList {
sub DeleteOldMessages {
&is_admin;
fopen(FILE, "$vardir/oldestmes.txt");
$maxdays = ;
fclose(FILE);
$yytitle = "Remove Old Threads";
&header;
print <<"EOT";
EOT
&footer;
exit;
}
YaBB.pl
elsif ($action eq 'deletemultimembers') { require "$sourcedir/Admin.pl"; &DeleteMultiMembers; }
elsif ($action eq 'deleteoldthreads') { require "$sourcedir/Admin.pl"; &DeleteOldMessages; }