diff --git a/expire.php b/expire.php index 59c9a0c9..f702fbcb 100644 --- a/expire.php +++ b/expire.php @@ -57,7 +57,7 @@ foreach($boards as $board) { } if ($argc > 1) { $f = fopen('rip.txt', 'a'); -fwrite($f, "--\r\n"); +fwrite($f, "--\r\n".date('c')."\r\n"); 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"; echo $s; diff --git a/inc/functions.php b/inc/functions.php index 33f22942..5380c14a 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2360,6 +2360,11 @@ function diceRoller($post) { $diceY = intval($diceY); $diceZ = intval($diceZ); + // Arbitrary maximum number of dice + if ($diceX > 200) { + $diceX = 200; + } + // Continue only if we have valid values if($diceX > 0 && $diceY > 0) { $dicerolls = array();