require_once(SM_PATH . 'functions/constants.php');
require_once(SM_PATH . 'functions/page_header.php');
-// Remove slashes if PHP added them
-sqgetGlobalVar('REQUEST_METHOD', $REQUEST_METHOD, SQ_SERVER);
-if (get_magic_quotes_gpc()) {
- if ($REQUEST_METHOD == 'POST') {
- RemoveSlashes($_POST);
- } else if ($REQUEST_METHOD == 'GET') {
- RemoveSlashes($_GET);
- }
-}
-
/* Before starting the session, the base URI must be known. Assuming */
/* that this file is in the src/ subdirectory (or something). */
if (!function_exists('sqm_baseuri')){
if(!sqGetGlobalVar('squirrelmail_language', $squirrelmail_language) || $squirrelmail_language == '') {
$squirrelmail_language = $squirrelmail_default_language;
}
+if (!sqgetGlobalVar('mailto', $mailto)) {
+ $mailto = '';
+}
/* end of get globals */
}
unset($session_expired_location);
}
+if($mailto != '') {
+ $redirect_url = 'webmail.php?right_frame=compose.php&mailto=';
+ $redirect_url .= $mailto;
+}
/* Write session data and send them off to the appropriate page. */
session_write_close();