* Access restricted to administrators * @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 - Configuration tool

Wrapper Configuration
Wrapper Url for Specimen Tool

"; $wrapperurl = 'true'; while($row = mysqli_fetch_object($result)) { $ProviderUrl = $row->Provider; $ID_Provider = $row->ID_Provider; echo ""; } if(!$formSubmitSave and !$formSubmitChange and !$formCheckurl) { echo ""; } } if(!mysqli_num_rows($result) and (!$formSubmitSave)) { echo ""; echo "";} echo ""; if($formSubmitSave) { if($ProviderUrl != "") { $sql = "UPDATE provider SET Provider = '".$formNewProviderUrl."' WHERE ID_Provider = '".$ID_Provider."'"; $result = mysqli_query($GLOBALS["___mysqli_ston"], $sql); } else { $sql = "INSERT INTO provider SET Provider = '".$formNewProviderUrl."', ID_Schema = '2', Created_Who = '".$log."'"; $result = mysqli_query($GLOBALS["___mysqli_ston"], $sql); $ID = ((is_null($___mysqli_res = mysqli_insert_id($GLOBALS["___mysqli_ston"]))) ? false : $___mysqli_res); $sql2 = "UPDATE dataset SET ID_Provider = '$ID' WHERE ID_Dataset = '1'"; $result2 = mysqli_query($GLOBALS["___mysqli_ston"], $sql2); } if($sql or $sql2) { echo "";} } if ($formCheckurl) { $inf = parse_url($formNewProviderUrl); $host = $inf['host']; $path = $inf['path']; if (isset($inf['query'])) $path .= '?'.$inf['query']; if (isset($inf['port'])) $port = $inf['port']; else $port = 80; if($formNewProviderUrl) { error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE); $fp = fsockopen($host, $port, $errno, $error, 5); if(!$fp or !$host) { echo ""; $connection = 'false'; } if($fp and $host) { echo ""; $connection = 'true';} } } if((!$wrapperurl or $formSubmitChange or $formCheckurl) and !$formSubmitSave) { echo ""; } if($formCheckurl and $connection == 'false') { echo ""; echo ""; } echo ""; } } /** * message permission denied for non administrators or managers */ if (!isset($_SESSION['admin']) && !$_SESSION['admin'] && !isset($_SESSION['management']) && !$_SESSION['management']) { echo ''; include("../No_permission.php"); echo ''; } ?>

The following wrapper url is defined for the data of your Specimen Tool within the DNA Module:

".$ProviderUrl."
No wrapper url is definded for your Specimen Tool yet.
Do you want to enter your wrapper url? Please fill out the following form. Please note that you should create a datasource in the BioCASe Provider Software first, read the Wiki for further instructions please.
Wrapper url '".$formNewProviderUrl."' has been saved.

Connection failed. No answer from remote station! Please contact your administrator.

Connection succesful!

Wrapper url:"; if(!$formCheckurl) { echo ""; } else { echo "'>"; } echo "
"; } if($formCheckurl and $connection == 'true') { echo "".$formNewProviderUrl."