$GLOBALS['ctracker_localized']['ctracker_page_header'] = 'Verdächtiger/Bösartiger Traffic Von Ihrer IP-Nummer erkannt';
$GLOBALS['ctracker_localized']['user_add_ticket_subject'] = 'Ihr ausgefülltes Support-Ticket';
$GLOBALS['ctracker_localized']['webmaster_add_ticket_subject'] = 'Ausgefülltes Support-Ticket erhalten';
+$GLOBALS['ctracker_localized']['add_ticket_name_missing'] = 'Sie haben keinen Namen eingegeben.';
+$GLOBALS['ctracker_localized']['add_ticket_email_missing'] = 'Sie haben keine Email-Adresse eingegeben.';
// [EOF]
?>
$GLOBALS['ctracker_localized']['ctracker_page_header'] = 'Suspicious/Malicious Traffic Detected From Your IP';
$GLOBALS['ctracker_localized']['user_add_ticket_subject'] = 'Your filled-out support ticket';
$GLOBALS['ctracker_localized']['webmaster_add_ticket_subject'] = 'Filled-out support ticket received';
+$GLOBALS['ctracker_localized']['add_ticket_name_missing'] = 'You have entered no name.';
+$GLOBALS['ctracker_localized']['add_ticket_email_missing'] = 'You have entered no email address.';
// [EOF]
?>
// Load "Thank you" template
crackerTrackerLoadTemplate('add_ticket_thanks');
}
- } elseif (isset($_POST['ctracker_add_ticket'])) {
+ } elseif ((isset($_POST['ctracker_add_ticket'])) && (!empty($_POST['name'])) && (!empty($_POST['email']))) {
// Add the ticket
addCrackerTrackerTicket($_POST);
// Load header
crackerTrackerLoadTemplate('page_header');
+// Do we have an incomplete form?
+if (isset($_POST['ctracker_add_ticket'])) {
+ // Output messages
+ crackerTrackerLoadLocalizedTemplate('add_ticket_missing');
+} // END - if
+
// Load form
crackerTrackerLoadLocalizedTemplate('add_ticket_form');
--- /dev/null
+<?php /* Required for my editor... :-( */ ?>
+<div class="ctracker_error_header">
+ Es fehlen noch Formularfelder!
+</div>
+
+<div>
+<?php
+// Field 'name not filled out?
+if (empty($_POST['name'])) {
+ // Output message
+ print '<div class="ctracker_form_missing">';
+ crackerTrackerOutputLocalized('add_ticket_name_missing');
+ print '</div>';
+} // END - if
+
+// Field 'name not filled out?
+if (empty($_POST['name'])) {
+ // Output message
+ print '<div class="ctracker_form_missing">';
+ crackerTrackerOutputLocalized('add_ticket_email_missing');
+ print '</div>';
+} // END - if
+?>
+</div>
--- /dev/null
+<?php /* Required for my editor... :-( */ ?>
+<div class="ctracker_error_header">
+ Some form elements are missing!
+</div>
+
+<div>
+<?php
+// Field 'name not filled out?
+if (empty($_POST['name'])) {
+ // Output message
+ print '<div class="ctracker_form_missing">';
+ crackerTrackerOutputLocalized('add_ticket_name_missing');
+ print '<pre>';
+} // END - if
+
+// Field 'name not filled out?
+if (empty($_POST['name'])) {
+ // Output message
+ print '<div class="ctracker_form_missing">';
+ crackerTrackerOutputLocalized('add_ticket_email_missing');
+ print '<pre>';
+} // END - if
+?>
+</div>