From: pdontthink Date: Fri, 15 Jun 2007 19:24:10 +0000 (+0000) Subject: Add ask_user_info redirect to compose screen X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c90271cb5202fc5f59e0c253df4f2e7a3fb5f337;p=squirrelmail.git 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 --- 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');