make use of PAGE_NAME constant in plugin, prefix it with the plugin name.
[squirrelmail.git] / plugins / newmail / functions.php
index 04b53c17c02679965a630e497da7e0bf4740b9fc..f92de319fc095da2800db6dcfb0245586ab3ddd8 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Functions
  *
- * @copyright © 2001-2006 The SquirrelMail Project Team
+ * @copyright © 2001-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @todo add midi support
  */
 
-/** @ignore */
-if (! defined('SM_PATH')) define('SM_PATH','../../');
-
-/**
- * SMPREF_UNSEEN_* constants
- */
-include_once(SM_PATH . 'functions/constants.php');
 
 /** file type defines */
 define('SM_NEWMAIL_FILETYPE_WAV',2);
@@ -193,8 +186,8 @@ function newmail_folder_status($statusarr) {
         $newmail_popup == 'on' ||
         $newmail_changetitle == 'on') &&
         /**
-         * make sure that $newmail_unseen_notify is set to supported value, 
-         * currently (1.5.2cvs) SMPREF_UNSEEN_NORMAL has highest integer value 
+         * make sure that $newmail_unseen_notify is set to supported value,
+         * currently (1.5.2cvs) SMPREF_UNSEEN_NORMAL has highest integer value
          * in SMPREF_UNSEEN constants
          */
         ($newmail_unseen_notify > SMPREF_UNSEEN_NONE && $newmail_unseen_notify <= SMPREF_UNSEEN_NORMAL)) {
@@ -729,4 +722,3 @@ function newmail_create_media_tags($newmail_media) {
     }
     return $ret_media;
 }
-?>
\ No newline at end of file