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:
commit
18ac30b7cc
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user