} else {
$redirect_url = 'webmail.php?right_frame='.urldecode($session_expired_location);
}
- session_unregister('session_expired_location');
+ sqsession_unregister('session_expired_location');
unset($session_expired_location);
- if (is_array($attachments)) {
- session_register('attachments');
+ if (is_array($compose_messages)) {
+ sqsession_register('compose_messages');
}
} else {
+/* need to be adapted to compose_messages.
if (is_array($attachments)) {
$hashed_attachment_dir = getHashedDir($username, $attachment_dir);
foreach ($attachments as $attachment) {
}
removePref($data_dir, $username, 'attachments');
}
+*/
$redirect_url = 'webmail.php';
}
$attachment_common_types[$val] = true;
}
}
+ $_SESSION['attachment_common_types'] = $attachment_common_types;
}