forked from halo-battle/game
Version 1.7i
This commit is contained in:
parent
8a8280758b
commit
ba5e741c99
136 changed files with 2561 additions and 2105 deletions
|
|
@ -6,11 +6,12 @@ $titre = 'Contact opérateur';
|
|||
if (!empty($_POST['titre']) && !empty($_POST['description'])) {
|
||||
$titre = $_POST['titre'];
|
||||
$description = $_POST['description'];
|
||||
$time = time();
|
||||
|
||||
$bdd->connexion();
|
||||
$bdd->escape($titre);
|
||||
$bdd->escape($description);
|
||||
$bdd->query("INSERT INTO $table_ope_mail VALUES(NULL, '$id_user', '$titre', '$description', '".time()."');");
|
||||
$bdd->query("INSERT INTO $table_ope_mail (id_user, titre, contenu, time) VALUES ('$id_user', '$titre', '$description', '$time');");
|
||||
$bdd->deconnexion();
|
||||
$template->assign('message','Votre demande à bien été transmise aux opérateurs de la galaxie.<br />Une réponse vous sera donnée dans les plus brefs délais.');
|
||||
$template->assign('couleur','green');
|
||||
|
|
@ -24,7 +25,7 @@ elseif (!empty($_POST['O_titre']) && !empty($_POST['O_description']) && $sess->v
|
|||
$bdd->connexion();
|
||||
$bdd->escape($titre);
|
||||
$bdd->escape($description);
|
||||
$bdd->query("INSERT INTO $table_ope_faq VALUES(NULL, '$titre', '$description', 100);");
|
||||
$bdd->query("INSERT INTO $table_ope_faq (titre, contenu, ordre) VALUES ('$titre', '$description', 100);");
|
||||
$bdd->deconnexion();
|
||||
header('Location: ?p=operateur');
|
||||
exit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue