Putting back SM_PATH the way it should be and eliminating chdir in the
[squirrelmail.git] / plugins / calendar / event_delete.php
index cd23d8d..09fe78f 100644 (file)
  *
  * $Id$
  */
+define('SM_PATH','../../');
 
-require_once('calendar_data.php');
-require_once('functions.php');
-chdir('..');
-define('SM_PATH','../');
+/* Calender plugin required files. */
+require_once(SM_PATH . 'plugins/calendar/calendar_data.php');
+require_once(SM_PATH . 'plugins/calendar/functions.php');
 
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'include/validate.php');