X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fright_main.php;h=7d24ede6465f3e65a4d52285561fea847c5dfffc;hb=40e071367219a08de46bf1ed3993180030adc9c9;hp=513647f560545305529da489b77ecb43b5b897b4;hpb=d7270cc414d34775b3aec09cb2364605695fdf43;p=squirrelmail.git diff --git a/src/right_main.php b/src/right_main.php index 513647f5..7d24ede6 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -20,6 +20,13 @@ */ include('../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_asearch.php'); require_once(SM_PATH . 'functions/imap_general.php'); @@ -29,7 +36,6 @@ require_once(SM_PATH . 'functions/mime.php'); require_once(SM_PATH . 'functions/mailbox_display.php'); require_once(SM_PATH . 'functions/compose.php'); - /* lets get the global vars we may need */ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); sqgetGlobalVar('delayed_errors', $delayed_errors, SQ_SESSION);