X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fmail_fetch%2Fsetup.php;h=1c27171951184c7d28629ee7ee9a0c503bc927d4;hp=7e59501e9b84a0a6dc90d3cbe0a9db9bb284c5a6;hb=92219031d9ad648536aeda878a336c6bd9b4c3a1;hpb=165829a378d4e41c1a47b46be08fdbd20315077f diff --git a/plugins/mail_fetch/setup.php b/plugins/mail_fetch/setup.php index 7e59501e..1c271719 100644 --- a/plugins/mail_fetch/setup.php +++ b/plugins/mail_fetch/setup.php @@ -3,7 +3,7 @@ /** ** mail_fetch/setup.php ** - ** Copyright (c) 1999-2001 The Squirrelmail Development Team + ** Copyright (c) 1999-2002 The SquirrelMail Project Team ** Licensed under the GNU GPL. For full terms see the file COPYING. ** ** Setup of the mailfetch plugin. @@ -11,7 +11,8 @@ ** $Id$ **/ - require_once( '../plugins/mail_fetch/functions.php' ); + define('SM_PATH','../../'); + require_once(SM_PATH . 'plugins/mail_fetch/functions.php' ); function squirrelmail_plugin_init_mail_fetch() { global $squirrelmail_plugin_hooks; @@ -61,11 +62,11 @@ function mail_fetch_login() { - require_once ('../src/validate.php'); + require_once ('../include/validate.php'); require_once ('../functions/imap.php'); require_once ('../plugins/mail_fetch/class.POP3.php'); require_once ('../plugins/mail_fetch/functions.php'); - require_once('../functions/i18n.php'); + require_once ('../functions/i18n.php'); global $username, $data_dir, $key,$imapServerAddress,$imapPort; @@ -205,9 +206,7 @@ function mail_fetch_setnew() { global $data_dir,$username; - // require_once ('../src/load_prefs.php'); - // require_once ('../src/validate.php'); - require_once('../functions/prefs.php'); + require_once(SM_PATH . 'functions/prefs.php'); if( $username <> '' ) { // Creates the pref file if it does not exist.