uid support?
[squirrelmail.git] / src / redirect.php
index 34e8a568bc2545a9cec7022e6040756d8e06c354..f5eb22e9f8f54f9ad5d8a479a28753c3605bcbd0 100644 (file)
@@ -36,7 +36,10 @@ if (get_magic_quotes_gpc()) {
 
 /* Before starting the session, the base URI must be known. Assuming */
 /* that this file is in the src/ subdirectory (or something).        */
-$base_uri = dirname(dirname($PHP_SELF)) . "/";
+if (!function_exists('sqm_baseuri')){
+    require_once('../functions/display_messages.php');
+}
+$base_uri = sqm_baseuri();
 
 header('Pragma: no-cache');
 $location = get_location();