logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

SF.net SVN: squirrelmail: [12453] trunk/squirrelmail/src/compose.php: msg#00026

Subject: SF.net SVN: squirrelmail: [12453] trunk/squirrelmail/src/compose.php
Revision: 12453
          
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12453&view=rev
Author:   pdontthink
Date:     2007-06-15 12:24:10 -0700 (Fri, 15 Jun 2007)

Log Message:
-----------
Add ask_user_info redirect to compose screen

Modified Paths:
--------------
    trunk/squirrelmail/src/compose.php

Modified: trunk/squirrelmail/src/compose.php
===================================================================
--- trunk/squirrelmail/src/compose.php  2007-06-15 19:19:06 UTC (rev 12452)
+++ trunk/squirrelmail/src/compose.php  2007-06-15 19:24:10 UTC (rev 12453)
@@ -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');


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


<Prev in Thread] Current Thread [Next in Thread>