First commit, current version 0.2

This commit is contained in:
Némunaire 2011-07-30 00:14:52 +02:00
commit 872acdbc01
353 changed files with 45771 additions and 0 deletions

View file

@ -0,0 +1,28 @@
<?php
//Définition de la constante anti-hacking
define("INDEX", 1);
ob_start();
//Inclusion de l'API Onyx
require_once(trim(file_get_contents('../../.onyx')));
require_once(ONYX.'include/functions.php');
$SESS = new Session();
ob_end_clean();
$nom = gpc('auteur', 'post');
$bdd = new BDD();
$bdd->escape($nom);
$chanteurs = $bdd->query("SELECT chanteur FROM gsm WHERE chanteur LIKE '$nom%' GROUP BY chanteur;");
$bdd->deconnexion();
if (!empty($chanteurs) && !empty($nom))
{
print "<ul>\n";
foreach ($chanteurs as $chanteur)
{
print ' <li>'.$chanteur["chanteur"]."</li>\n";
}
print "</ul>";
}
?>