" target="_blank"> |
Wrapper Configuration Wrapper Url for Specimen Tool |
|
The following wrapper url is defined for the data of your Specimen Tool within the DNA Module: | ";
$wrapperurl = 'true';
while($row = mysqli_fetch_object($result))
{ $ProviderUrl = $row->Provider;
$ID_Provider = $row->ID_Provider;
echo "".$ProviderUrl." | "; }
if(!$formSubmitSave and !$formSubmitChange and !$formCheckurl) {
echo " | "; }
}
if(!mysqli_num_rows($result) and (!$formSubmitSave)) {
echo "No wrapper url is definded for your Specimen Tool yet. | ";
echo "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. | ";}
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 "Wrapper url '".$formNewProviderUrl."' has been saved. | ";}
}
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 failed. No answer from remote station! Please contact your administrator. | ";
$connection = 'false'; }
if($fp and $host) {
echo "Connection succesful! | ";
$connection = 'true';}
}
}
if((!$wrapperurl or $formSubmitChange or $formCheckurl) and !$formSubmitSave) {
echo "Wrapper url: | ";
if(!$formCheckurl) {
echo ""; }
else { echo "'>"; }
echo " | | "; }
if($formCheckurl and $connection == 'true') {
echo "".$formNewProviderUrl." | | | "; }
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 ' '; }
?>
|
|
|
/**
* including footer
*/
include ("../footer.php"); ?>