This commit is contained in:
otrs 2016-07-14 16:31:22 +02:00
commit b6099b423b
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,7 @@
<?php
date_default_timezone_set('Europe/Berlin'); date_default_timezone_set('Europe/Berlin');
ini_set('date.timezone', 'Europe/Berlin'); ini_set('date.timezone', 'Europe/Berlin');
?>
<html> <html>
<head> <head>
<title>Mitglieder der Fachschaft <?php echo $fachschaft; ?> </title> <title>Mitglieder der Fachschaft <?php echo $fachschaft; ?> </title>
@ -9,7 +11,7 @@ ini_set('date.timezone', 'Europe/Berlin');
</head> </head>
<body> <body>
<h1>Mitglieder der Fachschaft <?php echo $fachschaft; ?> - Stand <?php <h1>Mitglieder der Fachschaft <?php echo $fachschaft; ?> - Stand <?php
echo date(DATE_RFC822) echo date(DATE_RFC822);
?></h1> ?></h1>
<table> <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&uuml;ssel</th></tr> <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&uuml;ssel</th></tr>

View File

@ -4,14 +4,16 @@
<?php <?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:%"'; $query = 'select distinct substring(store.key,5,locate(":",store.key,5)-5) from store where store.key like "pad:%"';
$result = $con->query($query); $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/>"; echo "<a target='_blank' href='http://pad.wiai.de/p/".$row[0]."'>".$row[0]."</a><br/>";