Source for file loadconfig.php
Documentation is available at loadconfig.php
* DOM script for loading general settings, this script is included in almost every script via head.php
* @author Gabriele Droege, DNA Bank Network <contact@dnabank-network.org>
* @copyright Copyright © 2011 DNA Bank Network http://www.dnabank-network.org<br>The contents of this file are subject to the Mozilla Public License Version 1.1
* @license http://www.mozilla.org/MPL/ MPL
$dom =
new DOMDocument('1.0', 'UTF-8');
{ $dom->load("load/config.xml"); } else { $dom->load("../load/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;
} //foreach ($Configurations as $Configuration)
{ $Path_Logo =
"<img src='".
$Logo_Path.
"' height='78' />"; }
else { $Path_Logo =
"<img src='".
$Logo_Path_Alternative.
"' height='78' />"; }
if(empty($StandardVolume) or !isset
($StandardVolume)) { $StandardVolume =
'20'; }
Documentation generated on Tue, 29 Nov 2011 10:44:53 +0100 by phpDocumentor 1.4.3