Hiding onyx2 directory
This commit is contained in:
parent
872acdbc01
commit
c1aeb11c6d
149 changed files with 1 additions and 1 deletions
28
htdocs/applications/GSM/auteurs.php
Normal file
28
htdocs/applications/GSM/auteurs.php
Normal 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>";
|
||||
}
|
||||
?>
|
||||
Reference in a new issue