Fix XSS holes in generic options inputs, XSS hole in the SquirrelSpell plugin, and...
[squirrelmail.git] / plugins / calendar / event_edit.php
index 97e6ef87434b562e5d84064b04ce1aa9bd98b6a6..c8a18e6f3bcbf4f0df94013db5ce2c82d9233357 100644 (file)
@@ -3,18 +3,20 @@
 /**
  * Functions to edit an event.
  *
- * @copyright © 2002-2006 The SquirrelMail Project Team
+ * @copyright 2002-2011 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @subpackage calendar
  */
 
-/** @ignore */
-define('SM_PATH','../../');
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../../include/init.php');
 
 /* SquirrelMail required files. */
-include_once(SM_PATH . 'include/validate.php');
+
 /* date_intl() */
 include_once(SM_PATH . 'functions/date.php');
 /* form functions */
@@ -150,7 +152,7 @@ function update_event_form() {
  */
 function confirm_update() {
     global $calself, $year, $month, $day, $hour, $minute, $calendardata,
-        $color, $event_year, $event_month, $event_day, $event_hour, 
+        $color, $event_year, $event_month, $event_day, $event_hour,
         $event_minute, $event_length, $event_priority, $event_title, $event_text;
 
     $tmparray = $calendardata["$month$day$year"]["$hour$minute"];
@@ -253,7 +255,7 @@ if ($hour <= 0){
 
 $calself=basename($PHP_SELF);
 
-displayPageHeader($color, 'None');
+displayPageHeader($color);
 //load calendar menu
 calendar_header();
 
@@ -309,4 +311,4 @@ if (!isset($updated)){
 
 ?>
 </table></td></tr></table>
-</body></html>
\ No newline at end of file
+</body></html>