1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 08:50:59 +01:00

Add time to expire log when we expire

This commit is contained in:
8chan 2014-08-30 20:06:48 +00:00
parent 26b1191558
commit 34223cdbb7

View File

@ -57,7 +57,7 @@ foreach($boards as $board) {
} }
if ($argc > 1) { if ($argc > 1) {
$f = fopen('rip.txt', 'a'); $f = fopen('rip.txt', 'a');
fwrite($f, "--\r\n"); fwrite($f, "--\r\n".date('c')."\r\n");
foreach($delete as $i => $d){ foreach($delete as $i => $d){
$s = "RIP /".$d['board']."/, created by ".($d['mod']?$d['mod']:'?')." and last active on ".$d['last_activity']->format('Y-m-d H:i:s.').($d['last_mod'] ? ' Mod last active on ' . $d['last_mod']->format('Y-m-d H:i:s.') : ' Mod never active.') . " Number of posts: {$d['count']}." . "\r\n"; $s = "RIP /".$d['board']."/, created by ".($d['mod']?$d['mod']:'?')." and last active on ".$d['last_activity']->format('Y-m-d H:i:s.').($d['last_mod'] ? ' Mod last active on ' . $d['last_mod']->format('Y-m-d H:i:s.') : ' Mod never active.') . " Number of posts: {$d['count']}." . "\r\n";
echo $s; echo $s;