Eliminated all eveil chdir statements.
[squirrelmail.git] / plugins / spamcop / spamcop.php
index a48d6e3..ddba322 100644 (file)
@@ -1,13 +1,10 @@
 <?php
 
-    chdir('..');
-    chdir('..');
-    define('SM_PATH','../');
+define('SM_PATH','../../');
 
-     /* SquirrelMail required files. */
-    require_once(SM_PATH . 'include/validate.php');
-
-    include_once(SM_PATH . 'functions/imap.php');
+ /* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/imap.php');
     
     displayPageHeader($color, $mailbox);