forked from server/landingpage
Merge branch 'master' of https://git.wiai.de/server/landingpage
This commit is contained in:
commit
b6099b423b
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
date_default_timezone_set('Europe/Berlin');
|
||||
ini_set('date.timezone', 'Europe/Berlin');
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Mitglieder der Fachschaft <?php echo $fachschaft; ?> </title>
|
||||
@ -9,7 +11,7 @@ ini_set('date.timezone', 'Europe/Berlin');
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mitglieder der Fachschaft <?php echo $fachschaft; ?> - Stand <?php
|
||||
echo date(DATE_RFC822)
|
||||
echo date(DATE_RFC822);
|
||||
?></h1>
|
||||
<table>
|
||||
<tr><th>Realer Name</th><th>Username</th><th>Email</th><th>Handy</th><th>Festnetz</th><th>ICQ</th><th>Geburtstag</th><th>Amt, Schlüssel</th></tr>
|
||||
|
||||
@ -4,14 +4,16 @@
|
||||
|
||||
<?php
|
||||
|
||||
$con = mysqli_connect("localhost", "etherpad", "MyEtherpad17!", "etherpad") or die("FAIL");
|
||||
|
||||
$con = new mysqli("localhost", "etherpad", "MyEtherpad17!", "etherpad");
|
||||
if ($con->connect_errno){
|
||||
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)){
|
||||
while($row = $result->fetch_row()){
|
||||
|
||||
echo "<a target='_blank' href='http://pad.wiai.de/p/".$row[0]."'>".$row[0]."</a><br/>";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user