<?php
if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.');
if ($wb_user_type < 2) die('Keine Zugriffsberechtigung');
echo str_replace('<body', '<body onload="self.focus();document.getElementById(\'internet-check-url\').focus();"', $header);
if (!isset($vonmodul)) $vonmodul = $modul;
if (!isset($vonseite)) $vonseite = 'inhalt';
if ($modulueberschrift == '') $modulueberschrift = $modul;
echo '<h1>'.my_htmlentities($modulueberschrift).'</h1>';
echo '<form action="'.$_SERVER['PHP_SELF'].'" method="POST" name="mainform" id="mainform">
<input type="hidden" name="seite" value="kraftsetzung">
<input type="hidden" name="aktion" value="changekonfig">
<input type="hidden" name="modul" value="'.$modul.'">
<input type="hidden" name="vonseite" value="'.$vonseite.'">
<input type="hidden" name="vonmodul" value="'.$vonmodul.'">';
if (inetconn_ok())
echo '<font color="#00BB00">Internetverbindung OK</font>';
else
echo '<font color="#FF0000">Internetverbindung nicht OK oder ungültige(r) Prüf-URL/Port</font>';
?><br><br>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>Internet-Test-URL</td>
<td><img src="design/spacer.gif" width="15" height="1" alt=""></td>
<td>http://<input type="text" size="30" name="internet_check_url" id="internet_check_url" class="normal" onmouseover="this.className='highlight';" onmouseout="this.className='normal';" value="<?php echo $konfiguration[$modul]['internet-check-url']; ?>">/ auf Port <input type="text" size="5" name="internet_check_port" id="internet_check_port" class="normal" onmouseover="this.className='highlight';" onmouseout="this.className='normal';" value="<?php echo $konfiguration[$modul]['internet-check-port']; ?>"></td>
</tr>
</table><br>
<input type="button" onclick="document.location.href='<?PHP echo $_SERVER['PHP_SELF']; ?>?modul=<?php echo $vonmodul; ?>&seite=<?php echo $vonseite; ?>';" class="button" onmouseover="this.className='button_act';" onmouseout="this.className='button';" value="Zurück">
<input type="submit" value="Ändern" class="button" onmouseover="this.className='button_act';" onmouseout="this.className='button';">
</form>
<?php
echo $footer;
?>