X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fcalendar%2Fevent_delete.php;h=12a082d580d0fca3a8e597f2d1348e427925748f;hb=c4faef335b2362c81b8ebf026d4066c12d70536c;hp=6e31dd704d3633e1055f5c4aa953ecb1bffe8ee8;hpb=f1d482ae999183d90b9a81e2d8e26397451799d7;p=squirrelmail.git diff --git a/plugins/calendar/event_delete.php b/plugins/calendar/event_delete.php index 6e31dd70..12a082d5 100644 --- a/plugins/calendar/event_delete.php +++ b/plugins/calendar/event_delete.php @@ -3,18 +3,18 @@ /** * Functions to delete a event. * - * @copyright © 2002-2006 The SquirrelMail Project Team + * @copyright 2002-2020 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'); @@ -74,11 +74,11 @@ function confirm_deletion() { ) . html_tag( 'tr', html_tag( 'td', _("Title:"), 'right', $color[4] ) . - html_tag( 'td', htmlspecialchars($tmparray['title']), 'left', $color[4] ) + html_tag( 'td', sm_encode_html_special_chars($tmparray['title']), 'left', $color[4] ) ) . html_tag( 'tr', html_tag( 'td', _("Message:"), 'right', $color[4] ) . - html_tag( 'td', nl2br(htmlspecialchars($tmparray['message'])), 'left', $color[4] ) + html_tag( 'td', nl2br(sm_encode_html_special_chars($tmparray['message'])), 'left', $color[4] ) ) . html_tag( 'tr', html_tag( 'td', @@ -119,7 +119,7 @@ if ($day <= 0){ $calself=basename($PHP_SELF); -displayPageHeader($color, 'None'); +displayPageHeader($color); //load calendar menu calendar_header(); @@ -145,4 +145,4 @@ if (isset($dyear) && isset($dmonth) && isset($dday) && isset($dhour) && isset($d ?> - \ No newline at end of file +