X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fcalendar%2Fevent_delete.php;h=ca1c83aebafb73851b6ad49b268c6e523636acc3;hp=ee31521ec3548c359bce113d3bae932a4e7b59de;hb=5d0f90f4cf688a471e7d92893a37f0c8932909db;hpb=1c7143ad75c08368ea25ec57b3242d762cee31ca diff --git a/plugins/calendar/event_delete.php b/plugins/calendar/event_delete.php index ee31521e..ca1c83ae 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-2012 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'); @@ -66,11 +66,11 @@ function confirm_deletion() { ) . html_tag( 'tr', html_tag( 'td', _("Date:"), 'right', $color[4] ) . - html_tag( 'td', $dmonth.'/'.$dday.'/'.$dyear, 'left', $color[4] ) + html_tag( 'td', date_intl(_("m/d/Y"),mktime(0,0,0,$dmonth,$dday,$dyear)), 'left', $color[4] ) ) . html_tag( 'tr', html_tag( 'td', _("Time:"), 'right', $color[4] ) . - html_tag( 'td', $dhour.':'.$dminute, 'left', $color[4] ) + html_tag( 'td', date_intl(_("H:i"),mktime($dhour,$dminute,0,$dmonth,$dday,$dyear)), 'left', $color[4] ) ) . html_tag( 'tr', html_tag( 'td', _("Title:"), 'right', $color[4] ) . @@ -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 +