Author: nextgens
Date: 2008-10-31 00:55:40 +0000 (Fri, 31 Oct 2008)
New Revision: 23234
Modified:
trunk/website/pages/en/news.php
Log:
website: round()
Modified: trunk/website/pages/en/news.php
===================================================================
--- trunk/website/pages/en/news.php 2008-10-31 00:53:52 UTC (rev 23233)
+++ trunk/website/pages/en/news.php 2008-10-31 00:55:40 UTC (rev 23234)
@@ -6,9 +6,9 @@
// updated hourly on emu
$file = "/tmp/paypal.txt";
if(file_exists($file)) {
- $totalUSD = readfile($file) + 4820.11;
+ $totalUSD = (readfile($file) + 4820.11);
$totalBGP = $totalUSD * 0.61460;
- $days = $totalBGP / ((4 * 30 * 12 * 1.039 * 1.025 +
80)/(365.25/12));
+ $days = round($totalBGP / ((4 * 30 * 12 * 1.039 * 1.025 +
80)/(365.25/12)));
echo "
<h3>Financial Status</h3>
<p>The project's current Paypal balance is <b>$totalUSD</b>.<br>