put all the information returned from a select in the result
[squirrelmail.git] / src / redirect.php
index 9b82bee7aa8ff0e2770da716443a2bd30744749d..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();