first start of removing direct access of key/onetimepad in all scripts
[squirrelmail.git] / src / delete_message.php
index 2d6420b2fa57e54c1a985acf52b41681d06acda4..a46f96e45b841d41a4b64e929a94ed6a1433ad7b 100644 (file)
@@ -3,27 +3,18 @@
 /**
  * delete_message.php
  *
- * Copyright (c) 1999-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * Deletes a meesage from the IMAP server
  *
+ * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  */
 
 /**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
  */
-define('SM_PATH','../');
-
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
-include_once(SM_PATH . 'functions/display_messages.php');
-
-global $color;
-error_box('delete_message.php script is obsolete since 1.5.1.',$color);
-
-?>
-</body></html>
\ No newline at end of file
+include('../include/init.php');
+error_box('delete_message.php script is obsolete since 1.5.1.');
+$oTemplate->display('footer.tpl');
+?>
\ No newline at end of file