Add check for just FORM data (POST/GET)
[squirrelmail.git] / src / options_identities.php
index 91560c79e45e2f01e2898caf1292b1acac6452a8..59b34fbad488978ed40b9e1c23c47c44e75ec898 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * options_identities.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * Display Identities Options
 define('SM_PATH','../');
 
 /* SquirrelMail required files. */
-require_once(SM_PATH . 'src/validate.php');
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/global.php');
 require_once(SM_PATH . 'functions/display_messages.php');
 require_once(SM_PATH . 'functions/html.php');
 
+/* POST data var names are dynamic because 
+   of the possible multiple idents so lets get
+   them all
+*/
+if (!empty($_POST)) {
+    extract($_POST);
+}
+/* got 'em all */
+
     if (isset($return)) {
        SaveUpdateFunction();
        header('Location: options_personal.php');