mirror of
https://github.com/psenough/pouet.net.git
synced 2025-01-17 13:18:24 +01:00
15 lines
541 B
PHP
15 lines
541 B
PHP
<?php
|
|
header('Content-Type: text/plain; charset=utf-8');
|
|
include_once('../include/misc.php');
|
|
include_once('../include/auth.php');
|
|
conn_db();
|
|
$query="SELECT * FROM groups";
|
|
if ($_GET['latest']) {
|
|
$query .= " WHERE quand > DATE_SUB(NOW(), INTERVAL 1 DAY)";
|
|
}
|
|
$result = mysql_query($query);
|
|
while($row = mysql_fetch_array($result)) {
|
|
echo $row['id'] . "\t" . iconv('iso-8859-1', 'utf-8', $row['name']) . "\t" . $row['web'] . "\t" . $row['csdb'] . "\t" .
|
|
$row['zxdemo'] . "\t" . iconv('iso-8859-1', 'utf-8', $row['acronym']) . "\n";
|
|
}
|
|
?>
|