Update mining.php