X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Foptions_identities.php;h=33c5c7305d637b11f694902f5d3d6835de294636;hb=3e6b917e771605772c45369d345860531a3b88bd;hp=53f3cc0b3b92838a1bd562c4e165968dce226d07;hpb=32f4e3189ac2f04956d07af63d9cea44c3393fc5;p=squirrelmail.git
diff --git a/src/options_identities.php b/src/options_identities.php
index 53f3cc0b..33c5c730 100644
--- a/src/options_identities.php
+++ b/src/options_identities.php
@@ -3,313 +3,227 @@
/**
* options_identities.php
*
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
* Display Identities Options
*
- * $Id$
+ * @copyright © 1999-2007 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package squirrelmail
+ * @subpackage prefs
+ * @since 1.1.3
*/
-require_once('../src/validate.php');
-require_once('../functions/display_messages.php');
+/**
+ * Include the SquirrelMail initialization file.
+ */
+require('../include/init.php');
- if (isset($return)) {
- SaveUpdateFunction();
- header('Location: options_personal.php');
- exit();
- }
-
- displayPageHeader($color, 'None');
-
- $Info = do_hook('options_identities_process', 0);
- if ($Info[1]) {
- SaveUpdateFunction();
- }
-
- if (CheckAndDoDefault() || CheckAndDoPromote()) {
- SaveUpdateFunction();
- }
- if (isset($update) || CheckForDelete())
- SaveUpdateFunction();
- }
-
- LoadInfo($full_name, $email_address, $reply_to, '');
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'functions/identity.php');
-?>
-
-
+/* make sure that page is not available when $edit_identity is false */
+if (!$edit_identity) {
+ error_box(_("Editing identities is disabled."));
+ $oTemplate->display('footer.tpl');
+ die();
+}
-
+if (!sqgetGlobalVar('identities', $identities, SQ_SESSION)) {
+ $identities = get_identities();
+}
+sqgetGlobalVar('newidentities', $newidentities, SQ_POST);
+sqgetGlobalVar('smaction', $smaction, SQ_POST);
+sqgetGlobalVar('return', $return, SQ_POST);
-
|