* @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 */ error_reporting(E_ALL ^ E_WARNING); $dom = new DOMDocument('1.0', 'UTF-8'); if(file_exists("config/smtp.xml")) { $dom->load("config/smtp.xml"); } else { $dom->load("../config/smtp.xml");} $SMTPSets = $dom->getElementsByTagName('smtp'); foreach ($SMTPSets as $SMTPSet) { $Pathtest = $SMTPSet->getElementsByTagName('path'); $SMTP_Path = $Pathtest->item(0)->nodeValue; $Porttest = $SMTPSet->getElementsByTagName('port'); $SMTP_Port = $Porttest->item(0)->nodeValue; $Mailtest = $SMTPSet->getElementsByTagName('mail'); $Email_Admin = $Mailtest->item(0)->nodeValue; } //foreach ($SMTPSets as $SMTPSet) global $SMTP_Path; global $SMTP_Port; global $Email_Admin; ?>