<?
// Authentication, if valid, allow to enter new link and data
error_reporting(0); // 0 = none, 63 = full
include("./config.php4");
// Debug Information and initialisation
session_start();
headerNoCache();
// Initialize connection to DB
$db = mysql_pconnect($hostname, $username, $password);
mysql_select_db($database,$db);
$uuid=checkAuth($user, $pwd, $db);
// Login sucessfull
echo "
<wml>
<card id=\"c1\" title=\"Dateneingabe\">
<p>
Name des Eintrags:<br/>
<input name=\"link\" maxlength=\"15\" value=\"\"/><br/>
Daten:<br/>
<input name=\"data\" maxlength=\"500\"/><br/>
<anchor>Übernehmen<go method=\"post\"
href=\"insertcheck.php4?PHPSESSID=";
echo session_id();
echo "\">
<postfield name=\"link\" value=\"\$(link)\"/>
<postfield name=\"data\" value=\"\$(data)\"/>
</go>
</anchor>
<br/><a href=\"links.php4\">Abbruch</a>
</p>
<do type=\"prev\" label=\"Zurück\"><prev/></do>
</card>
</wml>
";
?>