Magento: Replace broken Webservicex.net currency exchange with Yahoo finance

# go to your Magento installation
cd /var/www/
 
# create Yahoofinance.php
mkdir -p ./app/code/local/JT/Directory/Model/Currency/Import/
wget http://www.panticz.de/sites/default/files/magento/CurrencyExchange/Yahoofinance.php -O ./app/code/local/JT/Directory/Model/Currency/Import/Yahoofinance.php
 
# update configuration
# (TODO): create module configuration xml
# add bevore end of the global node in ./app/etc/local.xml
 
--- /var/www/app/etc/local.xml.org	2010-07-23 13:07:49.000000000 +0200
+++ /var/www/app/etc/local.xml	2013-04-13 10:01:51.000000000 +0200
@@ -49,6 +49,16 @@
             </default_setup>
         </resources>
         <session_save><![CDATA[files]]></session_save>
+        <currency>
+            <import>
+                <services>
+                    <yahoofinance>
+                        <name>Yahoo Finance</name>
+                        <model>JT_Directory_Model_Currency_Import_Yahoofinance</model>
+                    </yahoofinance>
+                </services>
+            </import>
+        </currency>
     </global>
     <admin>
         <routers>
 
# flush configuration cache in admin menu
# (TODO): flush configuration cache by command line
 
# update cron
update core_config_data
set value = 'yahoofinance'
where path = 'currency/import/service'
--and scope = 'default'
 
# Broken Webservicex module:
./app/code/core/Mage/Directory/Model/Currency/Import/Webservicex.php
 
# Links
http://www.magentocommerce.com/wiki/5_-_modules_and_development/using_yahoo_finance_for_currency_exchange_rate_retrieval
http://finance.yahoo.com/q?d=t&s=EURUSD=X