<!DOCTYPE HTML PUBLIC "-//W4C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta NAME="DC.Title" CONTENT="DiGIR Provider - Automatic UDDI registration">
<meta NAME="DC.Creator" content="GBIF">
<meta NAME="DC.Publisher" content="GBIF Secretariat">
<meta NAME="DC.Format" scheme="IMT" content="text/html">
<meta NAME="DC.Identifier" scheme="URI" CONTENT="http://registry.gbif.net">
<meta NAME="HTTP.Language" CONTENT="EN">
<meta NAME="DC.Date" CONTENT="2003/09/22">
<title>DiGIR Provider - Automatic UDDI registration</title>
<link REL="stylesheet" TYPE="text/css" HREF="http://www.gbif.org/chm.css">
</head>

<body>
<div align="center">
<table class="tabla1" cellpadding="0" cellspacing="0" border=0>
<!-- Upper part -->
<tr>
	<td class="top_td_1" colspan="3"><img src="http://www.gbif.org/images/spacer.gif" alt="" width="1" height="23" border="0" class="img_deco"></td>
</tr>
<tr>
	<td class="top_td_2" colspan="3">&nbsp;DiGIR Provider - Automatic UDDI registration</td>
</tr>
<tr>
	<td class="top_td_31"><img src="http://www.gbif.org/images/gbif_05.jpg" alt="" width="202" height="114" border="0" class="img_deco"></td>

	<td class="top_td_32" width="100%"><img src="http://www.gbif.org/images/spacer.gif" alt="" width="1" height="1" border="0" class="img_deco" align="right"></td>
	<td class="top_td_33"><img src="http://www.gbif.org/images/gbif_08.jpg" alt="" width="555" height="114" border="0" class="img_deco" align="right"></td>
</tr>
<tr>
	<td colspan="3" class="top_td_2">&nbsp;</td>
</tr>
<tr>
	<td class="top_td_5"><img src="http://www.gbif.org/images/gbif_13.gif" alt="" width="155" height="7" border="0" class="img_deco"></td>
	<td class="top_td_5" colspan="2"><img src="http://www.gbif.org/images/spacer.gif" alt="" width="1" height="1" border="0" class="img_deco"></td>
</tr>
<!-- /Upper part -->

<!-- Middle part-->
<tr>
	<td colspan="3" align="left" valign="middle">

<?php if(!isset($_REQUEST['accept_disclaimer'])): ?>
    <p>Shall we register this new DiGIR provider in 
<a href="http://www.gbif.org"><b>G</b>lobal <b>B</b>iodiversity <b>I</b>nformation <b>F</b>acility</a> 
UDDI Registry (<a href="http://registry.gbif.net">http://registry.gbif.net</a>)?</p>

    <p align="justify">Registration is necessary so that users, search engines, and portals can
locate your provider. By registering with GBIF you agree that your
defined DiGIR-Provider-resources can be queried by applications using the DiGIR protocol, within the
limitations that you can set up later and modify as needed. 
Furthermore, you allow GBIF to publicly serve metadata describing your data.</p>

    <p align="justify">The GBIF Participant Node in your domain will be informed of your
registration.</p>

    <br><br><br>
  <form action="<?php print($_SERVER['PHP_SELF']); ?>" method="post">
    <p align="center">
      <br>
      <input type="submit" name="accept_disclaimer" value="Accept">&nbsp;
      <input TYPE ="button" NAME="Button" VALUE="Decline and Skip Registration" onClick="window.close();">
    </p>
  </form>
<?php elseif (isset($_REQUEST['accept_disclaimer'])): ?>
  <pre>
  <?php
	#$home = getenv("HOME");
	$home = getenv("DOCUMENT_ROOT") . '/../../';

	if (file_exists("$home/bin/UDDIregistry.sh")) {
		$last_line = system("$home/bin/UDDIregistry.sh", $retval);
	}
	#if (file_exists("$home/perl/bin/perl.exe") && file_exists("$home/bin/UDDIregistry.pl")) {
	#	$last_line = system("$home/perl/bin/perl.exe $home/bin/UDDIregistry.pl", $retval);
	#}
	else {
		echo 'Error: Cannot locate the UDDI registration file.';
	}
  ?>
  </pre>
  <form action="<?php print($_SERVER['PHP_SELF']); ?>" method="post">
    <p align="center">
      <input TYPE ="button" NAME="Button" VALUE="Close Window" onClick="window.close();">
    </p>
  </form>
<?php endif; ?>

</td>
</tr>

<tr><td colspan="3">

<br><br><br>
<br><br><br>
</td></tr>

<!-- footer -->
<tr>
	<td colspan="3" class="down_td_1"><img src="http://www.gbif.org/images/spacer.gif" alt="" width="1" height="25" border="0" class="img_deco"></td>
<tr>
	<td colspan="3" class="down_td_2" align="center" nowrap>
		<a href="http://www.gbif.org/serv/helpdesk" class="a_smFont">Helpdesk</a>
		| <a href="http://registry.gbif.net" class="a_smFont">GBIF UDDI Registry</a>
		| <a href="http://www.gbif.org" class="a_smFont">GBIF portal: Home</a>
	</td>
</tr>

<tr>
	<td colspan="3" class="down_td_3"><img src="http://www.gbif.org/images/spacer.gif" alt="" width="1" height="6" border="0" class="img_deco"></td>
</tr>

<tr>
	<td colspan="3" valign="top"><img src="http://www.gbif.org/images/spacer.gif" alt="" width="1" height="18" border="0" class="img_deco">
	</td>

</tr>

<!-- / Footer-->
</table>

</body>
</html>
