* Script for defining the general setting of DNA Module *

* Access for administrators and members of group "Management" * @author Gabriele Droege, DNA Bank Network * @version 2.0 * @package Configuration * @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 */ /** * calling connection to database */ include ("../config/head.php"); /** * calling authorisation script */ include ("../auth.php"); ?> DNA Module - General Settings

General Settings

'; include("../No_permission.php"); echo ''; } else { /******************************************************************************************** * rewriting of xml file ../config/config.xml with new parameters * * START * *********************************************************************************************/ if($_POST['formSubmitSave']) { $file1 = "../config/config.xml"; $newfile1 = fopen($file1,"w+"); if(stristr($_REQUEST['logopath'], 'http://') === FALSE) { $logopath2 = "../".$_REQUEST['logopath']; } else { $logopath2 = $_REQUEST['logopath']; } $newxml1 = ' '.$_REQUEST['logopath'].' '.$logopath2.' '.$_REQUEST['currency'].' '.$_REQUEST['standardvolume'].' '.$_REQUEST['priceperaliquot'].' '.$_REQUEST['prefix'].' '.$_REQUEST['INSDC'].' '.$_REQUEST['BOLD'].' '.$_REQUEST['backupaliquot'].' '.$_REQUEST['guid'].' '.$_REQUEST['relation'].' '.$_REQUEST['formCollectionCode'].' '.$_REQUEST['formInstitutionCode'].' '.$_REQUEST['basisofrecord'].' '.$_REQUEST['kindofunit'].' '.$_REQUEST['googlekey'].' '; rewind($newfile1); fwrite($newfile1, $newxml1); fclose($newfile1); if (isset($_SESSION['admin']) || $_SESSION['admin']) { $file2 = "../config/smtp.xml"; $newfile2 = fopen($file2,"w+"); $newxml2 = ' '.$_REQUEST['path'].' '.$_REQUEST['port'].' '.$_REQUEST['emailadmin'].' '; rewind($newfile2); fwrite($newfile2, $newxml2); fclose($newfile2); } } /******************************************************************************************** * rewriting of xml file ../config/config.xml with new parameters * * END * *********************************************************************************************/ /******************************************************************************************** * start page * * loading configurations for DNA Module, include xml-parser (and xml file) and * * smtp settings from DNA_MODULE_PATH/config/ * * START * *********************************************************************************************/ /** * loading configurations for DNA Module from DNA_MODULE_PATH/config (xml file) */ include("loadgeneralsettings.php"); /** * loading smtp settings from DNA_MODULE_PATH/config/ (xml file) */ include("loadsmtp.php"); ?>

Requests

Price per Aliquot
Currency
Standard Aliquot volume for shipping in µl if left empty default value is 20

Input & Search

Prefix DNA Extraction No
Preferred url GenBank/EMBL/DDBJ for GenBank use e.g. "http://www.ncbi.nlm.nih.gov/nuccore/"; EBML: "http://www.ebi.ac.uk/ena/data/view/"; DDBJ: "http://getentry.ddbj.nig.ac.jp/getentry/na/"; if left empty default value is "http://www.ncbi.nlm.nih.gov/nuccore/"
BOLD url BOLD url should be stable, in case they might change it in the future you can edit it here
Backup Aliquot made if left empty default value is No

Specimen Tool

Use GUID as Voucher ID: if left empty default value is No
Institution Code
Collection Code
Basis of Record
Kind of Unit '; ?>
Relation to parent specimen '; ?>

General

Logo path Enter image path,
e.g. for YOUR_DNA_MODULE_FOLDER/images/logo.png type "images/logo.png" or if it's an external path type "http://www.123.org/logo.png"
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 and will receive error reporting emails related to the DNA Module; otherwise contact@dnabank-network.org will be used instead
Google key Enter your google key, required to display maps (related to Specimen Tool); information on how to get a google key can be found in the wiki