From 5fd9fa480f302902328b81f912dd67ce378284f8 Mon Sep 17 00:00:00 2001 From: citizenz7 Date: Thu, 20 Apr 2017 18:50:55 +0200 Subject: V.1.4.6 --- Html/messages_envoyer.php | 136 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 Html/messages_envoyer.php (limited to 'Html/messages_envoyer.php') diff --git a/Html/messages_envoyer.php b/Html/messages_envoyer.php new file mode 100644 index 0000000..153d12f --- /dev/null +++ b/Html/messages_envoyer.php @@ -0,0 +1,136 @@ +is_logged_in()) { + header('Location: login.php'); +} + +$pagetitle = 'Messagerie'; + +include_once('includes/header.php'); + +define("_BBC_PAGE_NAME", $pagetitle); +define("_BBCLONE_DIR", "stats/"); +define("COUNTER", _BBCLONE_DIR."mark_page.php"); +if (is_readable(COUNTER)) include_once(COUNTER); +?> + + + +
+ + + +
+ +
+ +prepare('INSERT INTO blog_messages (messages_id_expediteur,messages_id_destinataire,messages_date,messages_titre,messages_message) VALUES (:messages_id_expediteur,:messages_id_destinataire,:messages_date,:messages_titre,:messages_message)'); + $stmt->execute(array( + ':messages_id_expediteur' => html($_SESSION['userid']), + ':messages_id_destinataire' => html($_POST['destinataire']), + ':messages_date' => date("Y-m-d H:i:s"), + ':messages_titre' => html($_POST['titre']), + ':messages_message' => html($_POST['message']) + )); + + header('Location: '.SITEURL.'/admin/messagerie.php?membre='.html($_SESSION['username']).'&message=ok'); + $stmt->closeCursor(); + exit(); + } +} +?> + + +prepare('SELECT username as nom_destinataire, memberID as id_destinataire FROM blog_members WHERE memberID <> :session AND memberID != 32 ORDER BY username ASC'); +$desti->bindValue(':session', $_SESSION['userid'], PDO::PARAM_INT); +$desti->execute(); + +?> + +
+Pour :
+ + '; + echo ''; + echo ''; + } + + else { + echo ''; + } + ?> +
+ +
+ +ERREUR : '.$error.'
'; + } +} +?> + +Rechercher un membre +
+
+ +Titre :
+ +

+Message :
+ + + +closeCursor(); +?> + + +
+ + + +
+
+ + + + + + -- cgit v1.2.1