X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=UpdateCurrencyRate.php;h=0c0fe04d6b6cfb5c4b7596f8e8938230ddf5866d;hp=4f01963d2aa37dd06384ecb16b4b3feb6cd8ca96;hb=refs%2Fheads%2Fwip_alan_T5884_add_photo_to_report;hpb=8901bae3ea88592c7a9a3313a5bcea014e22dc16 diff --git a/UpdateCurrencyRate.php b/UpdateCurrencyRate.php index 4f01963d..0c0fe04d 100644 --- a/UpdateCurrencyRate.php +++ b/UpdateCurrencyRate.php @@ -1,5 +1,8 @@ loadRates(); + + $hkd = $d->convert(1,'USD','HKD'); + + echo "1 USD is ~ $hkd HKD (should be about 7.75)\n "; + + die("done"); + + + + } + function oldversion() + { $currency = array(); $response = $this->curl($this->actionUrl, array(), 'GET'); @@ -60,7 +79,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman foreach ($currency as $k => $c){ - echo "\nProcessing Currency : $c ($k / $total) \n"; + echo "\nProcessing Currency : $c ($k / $total) \n"; $params = array( 'lang' => 'en', @@ -96,8 +115,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman } } - $this->jok("DONE"); - + return; } function processCurrRate($currency, $rate, $from, $to) @@ -154,18 +172,4 @@ class Pman_Core_UpdateCurrencyRate extends Pman return $response; } - /* - lang:en - result:1 - date1:10/14/14 - date:10/20/14 - date_fmt:us - exch:USD - exch2: - expr:EUR - expr2: - margin_fixed:0 - format:HTML - SUBMIT:Get Table - */ } \ No newline at end of file