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

Merge ../http

This commit is contained in:
8chan 2014-08-30 20:07:36 +00:00
commit 18ac30b7cc
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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();