<?php
- /**
- ** options_identities.php
- **
- ** Copyright (c) 1999-2001 The SquirrelMail development team
- ** Licensed under the GNU GPL. For full terms see the file COPYING.
- **
- ** Display Identities Options
- **
- ** $Id$
- **/
-
- require_once('../src/validate.php');
- require_once('../functions/display_messages.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, '');
+/**
+ * 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$
+ */
+
+require_once('../src/validate.php');
+require_once('../functions/display_messages.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, '');
?>
<br>
-<table width=95% align=center border=0 cellpadding=2 cellspacing=0>
+<table width="95%" align=center border=0 cellpadding=2 cellspacing=0>
<tr><td bgcolor="<?php echo $color[0] ?>" align="center">
<b><?php echo _("Options") . ' - ' . _("Advanced Identities"); ?></b>
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr><td bgcolor="<?php echo $color[4] ?>" align="center">
-<form name=f action="options_identities.php" method=post><br>
+<form name="f" action="options_identities.php" method="post"><br>
-<?PHP do_hook('options_identities_top'); ?>
+<?php do_hook('options_identities_top'); ?>
-<table width=80% cellpadding=2 cellspacing=0 border=0>
- <tr bgcolor="<?PHP echo $color[9] ?>">
- <th colspan=2 align=center><?PHP echo _("Default Identity") ?></th>
+<table width="80%" cellpadding=2 cellspacing=0 border=0>
+ <tr bgcolor="<?php echo $color[9] ?>">
+ <th colspan=2 align=center><?php echo _("Default Identity") ?></th>
</tr>
<?PHP
- ShowTableInfo($full_name, $email_address, $reply_to, '');
+ ShowTableInfo($full_name, $email_address, $reply_to, '');
- $num = 1;
- while (LoadInfo($full_name, $email_address, $reply_to, $num))
- {
+ $num = 1;
+ while (LoadInfo($full_name, $email_address, $reply_to, $num))
+ {
?>
<tr bgcolor="<?PHP echo $color[9] ?>">
<th colspan=2 align=center><?PHP printf (_("Alternate Identity %d"),
$num) ?></th>
</tr>
<?PHP
- ShowTableInfo($full_name, $email_address, $reply_to, $num);
- $num ++;
- }
+ ShowTableInfo($full_name, $email_address, $reply_to, $num);
+ $num ++;
+ }
?>
- <tr bgcolor="<?PHP echo $color[9] ?>">
+ <tr bgcolor="<?php echo $color[9] ?>">
<th colspan=2 align=center><?PHP echo _("Add a New Identity") ?></th>
</tr>
-<?
-
- ShowTableInfo('', '', '', $num);
+<?php
+ ShowTableInfo('', '', '', $num);
?>
</table>
</form>
if (isset($$name) && $i > 1) {
do_hook('options_identities_renumber', $i, $i - 1);
- $nameA = 'full_name' . $i;
- $nameB = 'full_name' . ($i - 1);
- global $$nameA, $$nameB;
- $temp = $$nameA;
- $$nameA = $$nameB;
- $$nameB = $temp;
-
- $nameA = 'email_address' . $i;
- $nameB = 'email_address' . ($i - 1);
- global $$nameA, $$nameB;
- $temp = $$nameA;
- $$nameA = $$nameB;
- $$nameB = $temp;
-
- $nameA = 'reply_to' . $i;
- $nameB = 'reply_to' . ($i - 1);
- global $$nameA, $$nameB;
- $temp = $$nameA;
- $$nameA = $$nameB;
- $$nameB = $temp;
+ $nameA = 'full_name' . $i;
+ $nameB = 'full_name' . ($i - 1);
+ global $$nameA, $$nameB;
+ $temp = $$nameA;
+ $$nameA = $$nameB;
+ $$nameB = $temp;
+
+ $nameA = 'email_address' . $i;
+ $nameB = 'email_address' . ($i - 1);
+ global $$nameA, $$nameB;
+ $temp = $$nameA;
+ $$nameA = $$nameB;
+ $$nameB = $temp;
+
+ $nameA = 'reply_to' . $i;
+ $nameB = 'reply_to' . ($i - 1);
+ global $$nameA, $$nameB;
+ $temp = $$nameA;
+ $$nameA = $$nameB;
+ $$nameB = $temp;
- return true;
+ return true;
}
$i ++;