home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / groupoffice-com-2.01 / modules / calendar / decline.php < prev    next >
PHP Script  |  2004-03-08  |  990b  |  34 lines

  1. <?php
  2. /*
  3. Copyright Intermesh 2003
  4. Author: Merijn Schering <mschering@intermesh.nl>
  5. Version: 1.0 Release date: 08 July 2003
  6.  
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.
  11. */
  12.  
  13. require("../../Group-Office.php");
  14.  
  15. require($GO_CONFIG->class_path."calendar.class.inc");
  16. $cal = new calendar();
  17. require($GO_LANGUAGE->get_language_file('scheduler'));
  18. require($GO_THEME->theme_path.'header.inc');
  19. echo '<table border="0" cellpadding="10" cellspacing="0"><tr><td><h1>'.$sc_decline_title.'</h1>';
  20. if ($_REQUEST['event_id'] > 0 && $_REQUEST['email'] != '')
  21. {
  22.     if ($cal->set_event_status($_REQUEST['event_id'],'2', $_REQUEST['email']))
  23.     {
  24.         echo $sc_decline_confirm;
  25.     }
  26. }else
  27. {
  28.     echo $sc_bad_event;
  29. }
  30.  
  31. echo '</td></tr></table>';
  32. require($GO_THEME->theme_path.'footer.inc');
  33. ?>
  34.