Pastes now get an unique text id and can only be accessed by it

This commit is contained in:
pikami
2016-06-11 16:32:49 +00:00
parent 5d1d051760
commit 01448c5d65
4 changed files with 40 additions and 14 deletions

View File

@@ -8,7 +8,7 @@
while($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$title = $row['title'];
if(strlen($title)>25)$title = substr($title,0,25)."...";
echo "<a href=\"".$row['id']."\" class=\"list-group-item\">".$title."</a>";
echo "<a href=\"".$row['uid']."\" class=\"list-group-item\">".$title."</a>";
}
?>
</div>