removed public listing of pastes

This commit is contained in:
lucas 2020-07-08 12:41:23 +02:00
parent 5b74112066
commit 525279d707
1 changed files with 14 additions and 26 deletions

View File

@ -1,4 +1,3 @@
<?php
if ( strlen($_SERVER['HTTPS']) == 0 && strlen($_SERVER['QUERY_STRING']) == 0 ) {
echo "<div id=\"sslhinweis\">Benutze doch HTTPS! -&gt; ";
@ -6,18 +5,7 @@
}
$result = $db->query("SELECT * FROM pastebin WHERE pub = 1");
if($db->num_rows($result))
{
echo "<br/><br/><hr/><p>letzte &ouml;ffentliche Ascii-Eintr&auml;ge:</p>";
}
while($row = $db->fetch_assoc($result) )
{
echo "<a href=\"/a/{$row['pid']}\" target=\"_blank\">";
echo "{$row['id']} von ".date("d.m.Y H:i:s",$row['timest']) . "</a><br/>";
}
?>