Bläddra i källkod

almost forgot: SMPATH fixes from Paul BORKED spamcop

stekkel 23 år sedan
förälder
incheckning
6a033c9ad3
1 ändrade filer med 7 tillägg och 2 borttagningar
  1. 7 2
      plugins/spamcop/spamcop.php

+ 7 - 2
plugins/spamcop/spamcop.php

@@ -1,8 +1,13 @@
 <?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);