### Mise en cache #debutCache(); ### Initialisation variables de traitement $flash = array(); # Tableau pour l'affichage des messages d'erreurs, d'avertissement, de notice, ... $confirmation = ''; # Message de confirmation ### Initialisation des variables formulaires # Adresse e-mail expéditrice $sender = isset($_POST['newsletter_sender']) ? check_field(T_('Sender'), $_POST['newsletter_sender'], 'email') : check_field(T_('Sender'), $blog_settings->get('author_mail'), 'email'); # Adresses e-mail destinataires $recipients = isset($_POST['newsletter_recipient']) ? check_recipients(T_('Recipients'), $_POST['newsletter_recipient']) : check_recipients(T_('Recipients'), ''); # Sujet de la newsletter $subject = isset($_POST['newsletter_subject']) ? check_field(T_('Subject'), cleanupString($_POST['newsletter_subject']), 'not_empty') : ''; # Contenu de la newsletter $message = isset($_POST['newsletter_message']) ? check_field(T_('Message'), cleanupString($_POST['newsletter_message']), 'not_empty') : ''; ### On verifie que le formulaire est bien saisie if (isset($_POST) && isset($_POST['submitNewsletter'])) { if ($sender['success'] && $recipients['success'] && $subject['success'] && $message['success']) { $msg = htmlspecialchars(preg_replace('/\\n/', '<br/>', $message['value'])); $confirmation .= '<p>'; $confirmation .= '<form name="NewsletterConfirm" method="POST">'; $confirmation .= ' <u>' . T_('Are you sure you want to send this newsletter?') . '</u>'; $confirmation .= '<br /><br />'; $confirmation .= '<input type="hidden" name="sender" value="' . htmlspecialchars($sender['value']) . '" />'; $confirmation .= '<input type="hidden" name="recipients" value="' . htmlspecialchars($recipients['value']) . '" />'; $confirmation .= '<input type="hidden" name="subject" value="' . htmlspecialchars($subject['value']) . '" />'; $confirmation .= '<input type="hidden" name="message" value="' . $msg . '" />'; $confirmation .= ' <input type="submit" class="button br3px" name="confirmSubmit" value="' . T_('Yes') . '" />'; $confirmation .= ' <input type="button" class="button br3px" name="reset" value="' . T_('No') . '" />'; $confirmation .= '</form>';
<?php $mode = "access"; include 'fbTickerSup.php'; if (isset($_GET["filter"])) { $filter = "%" . $_GET["filter"] . "%"; } else { $filter = "%Ter%"; } $query = "SELECT * FROM `FBticker` WHERE `tickerName` LIKE '{$filter}' GROUP BY `tickerID` ORDER BY `received` DESC LIMIT 5000"; $result = mysqli_query($connId, $query); while ($row = mysqli_fetch_assoc($result)) { $storyBodyOrig = base64_decode($row["tickerStory"]); $storyBody = cleanupString($storyBodyOrig); $storyBodyExploded = explode(',', $storyBody); foreach ($storyBodyExploded as $key => $value) { /* EDIT DIFFERENT TYPES OF STORIES */ echo $value; } }