Browse Source

Add ask_user_info redirect to compose screen

pdontthink 18 years ago
parent
commit
44cd917ae8
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/compose.php

+ 7 - 0
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');