add PAGE_NAME constant to every page under src/.
[squirrelmail.git] / src / delete_message.php
index 5ec635ccc1093cc60a6f41b86c346a1f81d0bd8f..4918d98e66292dba3959983389506f04cae319d6 100644 (file)
@@ -1,27 +1,21 @@
 <?php
+
 /**
  * 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 &copy; 1999-2007 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  */
 
+define('PAGE_NAME', 'delete_message');
+
 /**
- * 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');