<?
// Checks Authentication, if valid, show text of link
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=\"Information\">
<p>";
$result = mysql_query("SELECT data FROM passdata
WHERE uuid='$uuid' ORDER BY link",$db);
$a=0;
while ($rowdata = mysql_fetch_row($result)) {
if ($a==$link) {
$text1=string2unicode($rowdata[0]);
break;
};
$a++;
};
echo $text1;
echo "<br/><a href=\"links.php4\">Zurück</a>";
echo "<br/><a href=\"deldata.php4?
link=$link\">Eintrag löschen</a>";
echo "
</p>
<do type=\"prev\" label=\"Zurück\"><prev/></do>
</card>
</wml>";
?>