[geeklog-cvs] geeklog-1.3/public_html calendar_event.php,1.27,1.28

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sun May 16 15:14:17 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv22938/public_html

Modified Files:
	calendar_event.php 
Log Message:
Introduced a few more variables to be used in eventdetails.thtml


Index: calendar_event.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/calendar_event.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** calendar_event.php	4 Jan 2004 22:14:38 -0000	1.27
--- calendar_event.php	16 May 2004 19:14:15 -0000	1.28
***************
*** 9,13 ****
  // |                                                                           |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2003 by the following authors:                         |
  // |                                                                           |
  // | Authors: Tony Bibbs        - tony at tonybibbs.com                           |
--- 9,13 ----
  // |                                                                           |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2004 by the following authors:                         |
  // |                                                                           |
  // | Authors: Tony Bibbs        - tony at tonybibbs.com                           |
***************
*** 49,53 ****
  function adduserevent($eid) 
  {
!     global $_USER, $LANG02, $_CONF, $_TABLES;
  
      $eventsql = "SELECT *, datestart AS start, dateend AS end, timestart, timeend, allday FROM {$_TABLES['events']} WHERE eid='$eid'";
--- 49,53 ----
  function adduserevent($eid) 
  {
!     global $_CONF, $_TABLES, $_USER, $_STATES, $LANG01, $LANG02;
  
      $eventsql = "SELECT *, datestart AS start, dateend AS end, timestart, timeend, allday FROM {$_TABLES['events']} WHERE eid='$eid'";
***************
*** 562,569 ****
--- 562,577 ----
                  {
                      $cal_templates->set_var('event_state', '');
+                     $cal_templates->set_var('event_state_name', '');
+                     $cal_templates->set_var('event_state_only', '');
+                     $cal_templates->set_var('event_state_name_only', '');
                  }
                  else
                  {
                      $cal_templates->set_var('event_state', ', ' . $A['state']);
+                     $cal_templates->set_var('event_state_name',
+                                             ', ' . $_STATES[$A['state']]);
+                     $cal_templates->set_var('event_state_only', $A['state']);
+                     $cal_templates->set_var('event_state_name_only',
+                                             $_STATES[$A['state']]);
                  }
                  $cal_templates->set_var('event_zip', $A['zipcode']);
***************
*** 585,589 ****
                  //    .'<p>'.$LANG_ACCESS['eventdenialmsg'] . COM_endBlock() . COM_siteFooter();
              }
!         } 
          $cal_templates->parse('output','events');
          $display .= $cal_templates->finish($cal_templates->get_var('output')); 
--- 593,614 ----
                  //    .'<p>'.$LANG_ACCESS['eventdenialmsg'] . COM_endBlock() . COM_siteFooter();
              }
!         }
! 
!         if ((SEC_hasAccess ($A['owner_id'], $A['group_id'], $A['perm_owner'],
!                 $A['perm_group'], $A['perm_members'], $A['perm_anon']) == 3) &&
!                 SEC_hasRights ('event.edit')) {
!             $editurl = $_CONF['site_admin_url']
!                      . '/event.php?mode=edit&eid=' . $eid;
!             $cal_templates->set_var ('event_edit', '<a href="' .$editurl . '">'
!                     . $LANG01[4] . '</a>');
!             $cal_templates->set_var ('edit_icon', '<a href="' . $editurl
!                     . '"><img src="' . $_CONF['layout_url']
!                     . '/images/edit.gif" alt="' . $LANG01[4] . '" title="'
!                     . $LANG01[4] . '" border="0"></a>');
!         } else {
!             $cal_templates->set_var ('event_edit', '');
!             $cal_templates->set_var ('edit_icon', '');
!         }
! 
          $cal_templates->parse('output','events');
          $display .= $cal_templates->finish($cal_templates->get_var('output')); 




More information about the geeklog-cvs mailing list