Hiding onyx2 directory

This commit is contained in:
Némunaire 2012-01-15 15:50:31 +01:00
commit c1aeb11c6d
149 changed files with 1 additions and 1 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>";
}
?>