Source for file loadsmtp.php
Documentation is available at loadsmtp.php
* DOM script for loading SMTP parameter, this script is included in 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/smtp.xml"); } else { $dom->load("../load/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)
Documentation generated on Tue, 29 Nov 2011 10:44:53 +0100 by phpDocumentor 1.4.3