SMPATH BORKED everything
[squirrelmail.git] / plugins / newmail / testsound.php
index 0bcb4a7..f8ddde9 100644 (file)
  */
 
    chdir ("../");
-   require_once('../src/validate.php');
-   require_once('../functions/html.php');
-   require_once("../src/load_prefs.php");
+   chdir('..');
+   define('SM_PATH','../');
+
+   /* SquirrelMail required files. */
+   require_once(SM_PATH . 'include/validate.php');
+   require_once(SM_PATH . 'functions/html.php');
+   require_once(SM_PATH . 'src/load_prefs.php');
+
    if (!isset($sound)) {
     $sound = "Click.wav";
    }