* @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; $INSDCtest = $Configuration->getElementsByTagName('INSDC'); $INSDC = $INSDCtest->item(0)->nodeValue; $BOLDtest = $Configuration->getElementsByTagName('BOLD'); $BOLD = $BOLDtest->item(0)->nodeValue; $BackupAliquottest = $Configuration->getElementsByTagName('backupaliquot'); $BackupAliquot = $BackupAliquottest->item(0)->nodeValue; $GUIDtest = $Configuration->getElementsByTagName('guid'); $GUID = $GUIDtest->item(0)->nodeValue; $CollectionCodetest = $Configuration->getElementsByTagName('collectioncode'); $MainCollectionCode = $CollectionCodetest->item(0)->nodeValue; $InstitutionCodetest = $Configuration->getElementsByTagName('institutioncode'); $MainInstitutionCode = $InstitutionCodetest->item(0)->nodeValue; $BasisOfRecordtest = $Configuration->getElementsByTagName('basisofrecord'); $MainBasisOfRecord = $BasisOfRecordtest->item(0)->nodeValue; $KindOfUnittest = $Configuration->getElementsByTagName('kindofunit'); $MainKindOfUnit = $KindOfUnittest->item(0)->nodeValue; $Relationtest = $Configuration->getElementsByTagName('relation'); $MainRelation = $Relationtest->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'; } if(empty($INSDC) or !isset($INSDC)) { $INSDC = "http://www.ncbi.nlm.nih.gov/nuccore/"; } if(empty($BOLD) or !isset($BOLD)) { $BOLD = "http://boldsystems.org/index.php/Public_RecordView?processid="; } ?>