Centralized init
[squirrelmail.git] / plugins / change_password / backend / vmailmgrd.php
index 6504c3298cc5d7a5d2e1a7cb1a54f0b359106171..e8f70a62131cab093f519bd2e54d7f148497afa2 100644 (file)
@@ -106,17 +106,6 @@ $squirrelmail_plugin_hooks['change_password_init']['vmailmgrd'] =
 function cpw_vmailmgrd_init(){
     global $vmail_inc_path, $color, $username;
 
-    /**
-     * If SM_PATH isn't defined, define it.  Required to include files.
-     * @ignore
-     */
-    if (!defined('SM_PATH'))  {
-        define('SM_PATH','../../../');
-    }
-
-    // load error_box() function
-    include_once(SM_PATH . 'functions/display_messages.php');
-
     if ($vmail_inc_path=='' || ! file_exists($vmail_inc_path)) {
         // $vmail_inc_path is not set or file does not exist
         error_box(_("Incorrent path to vmail.inc file."),$color);