--- a/web/event_form.php Mon Nov 25 19:18:23 2013 +0100
+++ b/web/event_form.php Mon Nov 25 22:28:08 2013 +0100
@@ -81,17 +81,17 @@
<form id="event-form" method="post" enctype="multipart/form-data" action="./event_process.php">
<fieldset id="event-fields">
<div class="event-field">
+ <label for="title"><?php print $translate->_("title"); ?>*</label>
+ <input type="text" id="title" name="title" />
+ <div class="event-field-help"><?php print $translate->_("title_help"); ?></div>
+ <div class="event-field-example"><a href="<?php echo(URL_ROOT); ?>attention-1314-01-notion-attention/client.php?highlight=%23event-title" target="_blank"><?php print $translate->_("Event_example"); ?></a></div>
+ </div>
+ <div class="event-field">
<label for="hashtag"><?php print $translate->_("hashtag"); ?></label>
<input type="text" id="hashtag" name="hashtag" alt="format: #hastag"/>
<div class="event-field-help"><?php print $translate->_("hashtag_help"); ?></div>
</div>
<div class="event-field">
- <label for="title"><?php print $translate->_("title"); ?></label>
- <input type="text" id="title" name="title" />
- <div class="event-field-help"><?php print $translate->_("title_help"); ?></div>
- <div class="event-field-example"><a href="<?php echo(URL_ROOT); ?>attention-1314-01-notion-attention/client.php?highlight=%23event-title" target="_blank"><?php print $translate->_("Event_example"); ?></a></div>
- </div>
- <div class="event-field">
<label for="abstract"><?php print $translate->_("abstract");?></label>
<textarea name="abstract" id="abstract"></textarea>
<div class="event-field-help"><?php print $translate->_("abstract_help"); ?></div>
--- a/web/event_list.php Mon Nov 25 19:18:23 2013 +0100
+++ b/web/event_list.php Mon Nov 25 22:28:08 2013 +0100
@@ -102,7 +102,7 @@
if (stripos($ind_file, '.') !== 0) {
$token = base64_encode(
$iv .
- openssl_encrypt(
+ @openssl_encrypt(
$iv.$ind_file,
'aes256',
hash('sha256', SECRET, true),
--- a/web/event_process.php Mon Nov 25 19:18:23 2013 +0100
+++ b/web/event_process.php Mon Nov 25 22:28:08 2013 +0100
@@ -133,8 +133,12 @@
}
else {
+ $config_values = array_merge($_POST);
- $config_values = array_merge($_POST);
+ if(!isset($config_values['title']) || empty($config_values['title'])) {
+ print "<div class=\"error-message\"><h2>".$translate->_("Event_error_empty_title")."</h2></div>";
+ exit;
+ }
foreach ($_FILES as $key => $value) {
$config_values[$key] = "images/".basename($value['name']);
--- a/web/traductions/en.php Mon Nov 25 19:18:23 2013 +0100
+++ b/web/traductions/en.php Mon Nov 25 22:28:08 2013 +0100
@@ -186,7 +186,7 @@
"archive_description" => "archive description",
"hashtag_help" => "Hashtag used by Polemictweet to display the realtime timeline (format: #hashtag).",
- "title_help" => "Title of the event as displayed in the browser title bar, under the video player during the live and on the left of the video player after the event.",
+ "title_help" => "Title of the event as displayed in the browser title bar, under the video player during the live and on the left of the video player after the event. This field is compulsory.",
"abstract_help" => "A short description of the event displayed on the home page's slider. Can contain HTML code.",
"description_help" => "The program displayed under the live player and on the left of the replay player. Can contain HTML code.",
"link_help" => "Program URL, displayed when clicking on “Programme” in the page header.",
@@ -201,6 +201,7 @@
"archive_title_help" => "Title of the archive.",
"archive_description_help" => "Description of the archive.",
+ "Event_error_empty_title" => "Error, the event title is empty.",
"Event_recorded_message" => "Your event as been correctly recorded. Contact <a href=\"mailto:contact@iri.centrepompidou.fr\">us</a> to publish it on Polemictweet.",
"Event_confirm_delete_archive" => "Are your sure to delete the event configuration ?",
--- a/web/traductions/fr.php Mon Nov 25 19:18:23 2013 +0100
+++ b/web/traductions/fr.php Mon Nov 25 22:28:08 2013 +0100
@@ -179,7 +179,7 @@
"archive_description" => "description archive",
"hashtag_help" => "Le mot-dièse que PolemicTweet utilisera pour afficher la frise technologique en temps réel (format : #hashtag).",
- "title_help" => "Le titre de l’événement tel qu’il s’affiche dans la barre de titre du navigateur, sous le player vidéo pendant le temps réel et à gauche du player vidéo en temps différé.",
+ "title_help" => "Le titre de l’événement tel qu’il s’affiche dans la barre de titre du navigateur, sous le player vidéo pendant le temps réel et à gauche du player vidéo en temps différé. Ce champ est obligatoire.",
"abstract_help" => "Une description courte de l’événement telle qu’elle apparaît sur le carrousel de la page d’accueil. Peut contenir du code HTML.",
"description_help" => "Le programme tel qu’il s’affiche en dessous du player live et à gauche du player replay. Peut contenir du code HTML.",
"link_help" => "URL du programme, qui s’affiche lorsqu’on clique sur “Programme” dans l’entête de la page.",
@@ -194,6 +194,7 @@
"archive_title_help" => "Titre de l'archive dans la liste des événements passés.",
"archive_description_help" => "Description de l'archive dans la liste des événements passés.",
+ "Event_error_empty_title" => "Erreur, le titre de l'évènement est vide.",
"Event_recorded_message" => "Votre évènement a été correctement enregistré. <a href=\"mailto:contact@iri.centrepompidou.fr\">Contactez nous</a> pour le publier sur Polemictweet.",
"Event_confirm_delete_archive" => "Êtes-vous sur de vouloir effacer cette configuration d'évènement ?",
--- a/web/traductions/ja.php Mon Nov 25 19:18:23 2013 +0100
+++ b/web/traductions/ja.php Mon Nov 25 22:28:08 2013 +0100
@@ -177,7 +177,7 @@
"archive_description" => "archive description",
"hashtag_help" => "Hashtag used by Polemictweet to display the realtime timeline (format: #hashtag).",
- "title_help" => "Title of the event as displayed in the browser title bar, under the video player during the live and on the left of the video player after the event.",
+ "title_help" => "Title of the event as displayed in the browser title bar, under the video player during the live and on the left of the video player after the event. This field is compulsory.",
"abstract_help" => "A short description of the event displayed on the home page's slider. Can contain HTML code.",
"description_help" => "The program displayed under the live player and on the left of the replay player. Can contain HTML code.",
"link_help" => "Program URL, displayed when clicking on “Programme” in the page header.",
@@ -192,6 +192,7 @@
"archive_title_help" => "Title of the archive.",
"archive_description_help" => "Description of the archive.",
+ "Event_error_empty_title" => "Error, the event title is empty.",
"Event_recorded_message" => "Your event as been correctly recorded. Contact <a href=\"mailto:contact@iri.centrepompidou.fr\">us</a> to publish it on Polemictweet.",
"Event_confirm_delete_archive" => "Are your sure to delete the event configuration ?",