X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fcalendar%2Fevent_edit.php;h=5b94a1b77e384fe2c2a85106d7e8b78a769f41d9;hb=9ac8d987e165f4e0a1c815edacaac44529dd2784;hp=216235841a2573c131d8d189784c9b6d5904d0c2;hpb=1c7143ad75c08368ea25ec57b3242d762cee31ca;p=squirrelmail.git diff --git a/plugins/calendar/event_edit.php b/plugins/calendar/event_edit.php index 21623584..5b94a1b7 100644 --- a/plugins/calendar/event_edit.php +++ b/plugins/calendar/event_edit.php @@ -3,18 +3,20 @@ /** * Functions to edit an event. * - * @copyright © 2002-2006 The SquirrelMail Project Team + * @copyright © 2002-2007 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"]; @@ -162,11 +164,11 @@ function confirm_update() { ) . html_tag( 'tr', html_tag( 'td', _("Date:") , 'right', $color[4] ) ."\n" . - html_tag( 'td', $month.'/'.$day.'/'.$year , 'left', $color[4] ) ."\n" + html_tag( 'td', date_intl(_("m/d/Y"),mktime(0,0,0,$month,$day,$year)), 'left', $color[4] ) ."\n" ) . html_tag( 'tr', html_tag( 'td', _("Time:") , 'right', $color[4] ) ."\n" . - html_tag( 'td', $hour.':'.$minute , 'left', $color[4] ) ."\n" + html_tag( 'td', date_intl(_("H:i"),mktime($hour,$minute,0,$month,$day,$year)) , 'left', $color[4] ) ."\n" ) . html_tag( 'tr', html_tag( 'td', _("Priority:") , 'right', $color[4] ) ."\n" . @@ -186,11 +188,11 @@ function confirm_update() { html_tag( 'tr', html_tag( 'td', _("Date:") , 'right', $color[4] ) ."\n" . - html_tag( 'td', $event_month.'/'.$event_day.'/'.$event_year , 'left', $color[4] ) ."\n" + html_tag( 'td', date_intl(_("m/d/Y"),mktime(0,0,0,$event_month,$event_day,$event_year)), 'left', $color[4] ) ."\n" ) . html_tag( 'tr', html_tag( 'td', _("Time:") , 'right', $color[4] ) ."\n" . - html_tag( 'td', $event_hour.':'.$event_minute , 'left', $color[4] ) ."\n" + html_tag( 'td', date_intl(_("H:i"),mktime($event_hour,$event_minute,0,$event_month,$event_day,$event_year)), 'left', $color[4] ) ."\n" ) . html_tag( 'tr', html_tag( 'td', _("Priority:") , 'right', $color[4] ) ."\n" . @@ -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)){ ?> - \ No newline at end of file +