almost forgot: SMPATH fixes from Paul BORKED spamcop
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Sep 2002 17:23:11 +0000 (17:23 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Sep 2002 17:23:11 +0000 (17:23 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3600 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/spamcop/spamcop.php

index b60fb33..a48d6e3 100644 (file)
@@ -1,8 +1,13 @@
 <?php
 
     chdir('..');
 <?php
 
     chdir('..');
-    include_once ('../src/validate.php');
-    include_once ('../functions/imap.php');
+    chdir('..');
+    define('SM_PATH','../');
+
+     /* SquirrelMail required files. */
+    require_once(SM_PATH . 'include/validate.php');
+
+    include_once(SM_PATH . 'functions/imap.php');
     
     displayPageHeader($color, $mailbox);
 
     
     displayPageHeader($color, $mailbox);