From c90271cb5202fc5f59e0c253df4f2e7a3fb5f337 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 15 Jun 2007 19:24:10 +0000 Subject: [PATCH] Add ask_user_info redirect to compose screen git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12453 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/compose.php b/src/compose.php index 7be671fa..9f99f985 100644 --- a/src/compose.php +++ b/src/compose.php @@ -21,6 +21,13 @@ */ require('../include/init.php'); +/* If email_address not set and admin wants us to ask user for it, + * redirect to options page. */ +if ( $ask_user_info && getPref($data_dir, $username,'email_address') == "" ) { + header("Location: " . get_location() . "/options.php?optpage=personal"); + exit; +} + /* SquirrelMail required files. */ require_once(SM_PATH . 'functions/imap_general.php'); require_once(SM_PATH . 'functions/imap_messages.php'); -- 2.25.1