forked from server/landingpage
21 lines
448 B
PHP
21 lines
448 B
PHP
<h1>Read ALL the Pads</h1>
|
|
<h2>of the FS-Wiai Pad</h2>
|
|
|
|
|
|
<?php
|
|
|
|
$con = mysqli_connect("localhost", "etherpad", "MyEtherpad17!", "etherpad") or die("FAIL");
|
|
|
|
$query = 'select distinct substring(store.key,5,locate(":",store.key,5)-5) from store where store.key like "pad:%"';
|
|
|
|
$result = $con->query($query);
|
|
|
|
|
|
while($row = mysqli_fetch_array($result)){
|
|
|
|
echo "<a target='_blank' href='http://pad.wiai.de/p/".$row[0]."'>".$row[0]."</a><br/>";
|
|
|
|
}
|
|
|
|
?>
|