* @version 2.0 * @package First_Steps * @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 */ $config = true; /** * calling connection to database */ include ("config/head.php"); /** * calling authorisation script */ include ("auth.php"); ?> DNA Bank Network - First Steps
"; } ?>

Welcome to the DNA Module - First Steps

Your logo will be placed here later during cofiguration.
1) { $TestAdmin = false; echo ""; } else { $Test = true; } } if($Test == "true" or (isset($_SESSION['admin']) || $_SESSION['admin'])) { if($formSubmitSave) { if($_POST['path'] == "") { echo ""; $test = true; } if($_POST['port'] == "") { echo ""; $test = true; } if($test != true) { /******************************************************************************************** * Saving SMTP parameters in an xml file (config/smtp.xml) * * START * *********************************************************************************************/ $file = "config/smtp.xml"; $newfile = fopen($file,"w+"); $newxml = ' '.$_REQUEST['path'].' '.$_REQUEST['port'].' '.$_REQUEST['emailadmin'].' '; rewind($newfile); fwrite($newfile, $newxml); fclose($newfile); } $Email = $_POST['email']; $Email_Admin = $_POST['emailadmin']; $Path = $_POST['path']; $Port = $_POST['port']; if($Email == $Email_Admin) { $from = "From: contact@dnabank-network.org"; } else { $from = "From: ".$Email_Admin; } ini_set("SMTP", $Path); ini_set("smtp_port", $Port); if(!mail($Email, "Test Email", "If you receive this email your SMTP configuration is correct.", $from)) { echo ""; } else { echo ""; } } /******************************************************************************************** * Saving SMTP parameters in an xml file (config/smtp.xml) * * END * *********************************************************************************************/ if(file_exists("config/loadsmtp.php")) { /** * Start page, try to load the xml file via config/loadsmtp.php (xml-Parser) */ include("config/loadsmtp.php"); } echo ""; echo ""; echo ""; echo ""; echo ''; echo "

Step 4: Define SMTP

Go back to step 3
Before you continue it is necessary to define the SMTP path of your email server.
Note: Please contact your admin! The SMTP path is required for error reporting via email and sending passwords for users.
Sorry, you have no permission for editing connection parameters! Please login as administrator or contact an admin.
Please enter a SMTP path!
Please enter a SMTP port!
Your SMTP path or port is incorrect. Please check your entry or contact your admin.
An email has been sent to your email address. Please check your input folder. If you received the email you can continue configuration.
SMTP path:SMTP path of your email server.
SMTP port:SMTP port of your email server.
Administrator email:Email of local administrator that works as sender of any information or error reporting emails related to the DNA Module.
Email:Valid email address for sending you test email.
Ready to continue? Please click here to go ahead.