Author: nextgens
Date: 2008-11-04 19:06:56 +0000 (Tue, 04 Nov 2008)
New Revision: 23314
Modified:
trunk/website/pages/en/news.php
Log:
website: update the USD rate dynamically to please toad
Modified: trunk/website/pages/en/news.php
===================================================================
--- trunk/website/pages/en/news.php 2008-11-04 18:33:37 UTC (rev 23313)
+++ trunk/website/pages/en/news.php 2008-11-04 19:06:56 UTC (rev 23314)
@@ -5,13 +5,17 @@
<?php
// updated hourly on emu
$file = "/tmp/paypal.txt";
+ $file2 = "/tmp/usd_rate.txt";
if(file_exists($file)) {
$handle = fopen($file, "r");
$paypalTotal = fread($handle, filesize($file));
fclose($handle);
+ $handle = fopen($file2, "r");
+ $usdRate = fread($handle, filesize($file));
+ fclose($handle);
$totalUSD = ($paypalTotal + 4820.11);
- $totalBGP = $totalUSD * 0.63354;
+ $totalBGP = $totalUSD * $usdRate;
$days = round($totalBGP / ((4 * 30 * 12 * 1.039 * 1.025 +
80)/(365.25/12)));
echo "
<h3>Financial Status</h3>