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