* @version 2.0 * @package Load * @copyright Copyright © 2011 DNA Bank Network http://www.dnabank-network.org
The contents of this file are subject to the Mozilla Public License Version 1.1 * @filesource * @license http://www.mozilla.org/MPL/ MPL */ $dom = new DOMDocument('1.0', 'UTF-8'); if(file_exists("config/config.xml")) { $dom->load("config/config.xml"); } else { $dom->load("../config/config.xml");} $Configurations = $dom->getElementsByTagName('configuration'); foreach ($Configurations as $Configuration) { $Logopathtest = $Configuration->getElementsByTagName('logopath'); $Logo_Path = $Logopathtest->item(0)->nodeValue; $Logo_Path_Settings = $Logopathtest->item(0)->nodeValue; $LogopathAlternativetest = $Configuration->getElementsByTagName('logopathalternative'); //alternative logo path (../) $Logo_Path_Alternative = $LogopathAlternativetest->item(0)->nodeValue; $Currencytest = $Configuration->getElementsByTagName('currency'); $Currency = $Currencytest->item(0)->nodeValue; $PricePerAliquottest = $Configuration->getElementsByTagName('priceperaliquot'); $PricePerAliquot = $PricePerAliquottest->item(0)->nodeValue; $StandardVolumetest = $Configuration->getElementsByTagName('standardvolume'); $StandardVolume = $StandardVolumetest->item(0)->nodeValue; $Prefixtest = $Configuration->getElementsByTagName('prefix'); $Prefix = $Prefixtest->item(0)->nodeValue; $BackupAliquottest = $Configuration->getElementsByTagName('backupaliquot'); $BackupAliquot = $BackupAliquottest->item(0)->nodeValue; $GoogleKeyTest = $Configuration->getElementsByTagName('googlekey'); $GoogleKey = $GoogleKeyTest->item(0)->nodeValue; } //foreach ($Configurations as $Configuration) if(file_exists($Logo_Path)) { $Path_Logo = ""; } else { $Path_Logo = ""; } global $Path_Logo; if(empty($StandardVolume) or !isset($StandardVolume)) { $StandardVolume = '20'; } ?>