浏览代码

almost forgot: SMPATH fixes from Paul BORKED spamcop

stekkel 23 年之前
父节点
当前提交
6a033c9ad3
共有 1 个文件被更改,包括 7 次插入2 次删除
  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);