[geeklog-cvs] geeklog-1.3/public_html submit.php,1.67,1.68
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Wed Aug 4 14:44:26 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv20768/public_html
Modified Files:
submit.php
Log Message:
Carry over the date and time from the calendar when Admins add a new event (bug #132)
Index: submit.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/submit.php,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** submit.php 31 May 2004 19:23:48 -0000 1.67
--- submit.php 4 Aug 2004 18:44:23 -0000 1.68
***************
*** 728,732 ****
case 'event':
if (SEC_hasRights('event.edit') && ($mode != 'personal')) {
! echo COM_refresh($_CONF['site_admin_url'] . '/event.php?mode=edit');
exit;
}
--- 728,746 ----
case 'event':
if (SEC_hasRights('event.edit') && ($mode != 'personal')) {
! $year = COM_applyFilter ($http_vars['year'], true);
! $month = COM_applyFilter ($http_vars['month'], true);
! $day = COM_applyFilter ($http_vars['day'], true);
! $hour = COM_applyFilter ($http_vars['hour'], true);
! $startat = '';
! if ($year > 0) {
! $startat = '&datestart='
! . urlencode (sprintf ('%04d-%02d-%02d', $year,
! $month, $day))
! . '×tart=' . urlencode (sprintf ('%02d:00:00',
! $hour));
! }
!
! echo COM_refresh ($_CONF['site_admin_url']
! . '/event.php?mode=edit' . $startat);
exit;
}
More information about the geeklog-cvs
mailing list