Start GPC application
This commit is contained in:
parent
ad51d9da73
commit
4de88fb175
10 changed files with 2091 additions and 0 deletions
28
htdocs/applications/GPC/auteurs.php
Normal file
28
htdocs/applications/GPC/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 artiste FROM gsm_titres WHERE artiste LIKE '$nom%' GROUP BY artiste;");
|
||||
$bdd->deconnexion();
|
||||
|
||||
if (!empty($chanteurs) && !empty($nom))
|
||||
{
|
||||
print "<ul>\n";
|
||||
foreach ($chanteurs as $chanteur)
|
||||
{
|
||||
print ' <li>'.$chanteur["artiste"]."</li>\n";
|
||||
}
|
||||
print "</ul>";
|
||||
}
|
||||
?>
|
||||
Reference in a new issue