X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Foptions_identities.php;h=310f06079af83abcd0b58d37172a60eed2e040d3;hb=34a6b7c2cede50f12a9ce43fef49e28ce324d3b6;hp=051405f999ed0e6aa873ed75a94c0c25843b0ad4;hpb=ff8a98e7e1d368c57b088522586bddcf68d443a5;p=squirrelmail.git diff --git a/src/options_identities.php b/src/options_identities.php index 051405f9..310f0607 100644 --- a/src/options_identities.php +++ b/src/options_identities.php @@ -1,36 +1,44 @@
- +
@@ -83,256 +90,262 @@ 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; - $i = 1; - $name = 'form_for_' . $i; - global $$name; - while (isset($$name)) - { - $name = 'promote_' . $i; - global $$name; - 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; - - return true; - } - - $i ++; - $name = 'form_for_' . $i; - global $$name; - } - return false; + $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 = 'signature' . $i; + $nameB = 'signature' . ($i - 1); + global $$nameA, $$nameB; + $temp = $$nameA; + $$nameA = $$nameB; + $$nameB = $temp; + + return true; + } + + $i ++; + $name = 'form_for_' . $i; + global $$name; + } + return false; + } + + function LoadInfo(&$n, &$e, &$r, &$s, $post) { + global $username, $data_dir; + + $n = getPref($data_dir, $username, 'full_name' . $post); + $e = getPref($data_dir, $username, 'email_address' . $post); + $r = getPref($data_dir, $username, 'reply_to' . $post); + if ($post == '') + $post = 'g'; + $s = getSig($data_dir,$username,$post); + + if ($n != '' || $e != '' || $r != '' || $s != '') + return true; + } + +function sti_input( $title, $hd, $data, $post, $bg ) { + + echo ""; + } -function LoadInfo(&$n, &$e, &$r, $post) -{ - global $username, $data_dir; +function sti_textarea( $title, $hd, $data, $post, $bg ) { - $n = getPref($data_dir, $username, 'full_name' . $post); - $e = getPref($data_dir, $username, 'email_address' . $post); - $r = getPref($data_dir, $username, 'reply_to' . $post); + echo ""; - if ($n != '' || $e != '' || $r != '') - return true; } -function ShowTableInfo($full_name, $email_address, $reply_to, $post) -{ - global $color; - - $OtherBG = ' bgcolor="' . $color[0] . '"'; - if ($full_name == '' && $email_address == '' && $reply_to == '') - $OtherBG = ''; +function ShowTableInfo($full_name, $email_address, $reply_to, $signature, $post) { + global $color; - if ($full_name == '' && $email_address == '' && $reply_to == '') - $isEmptySection = true; - else - $isEmptySection = false; + $OtherBG = ' bgcolor="' . $color[0] . '"'; + if ($full_name == '' && $email_address == '' && $reply_to == '' && $signature == '') + $OtherBG = ''; -?> - > - - - - > - - - - > - - - - - > - - - - - -". + ''. + ''; } ?> \ No newline at end of file
@@ -38,40 +46,39 @@
-

+
- + - - - +
+ + - + - -
+
$title:". + ''. + '
$title:". + ''. + "
- : - - -
- : - - -
- : - - -
  - - "> - - "> - "> - 1) { -?> - "> - -
 
 '. + "". + ''; + if (! $isEmptySection && $post != '') { + echo "'. + "'; + } + if (! $isEmptySection && $post != '' && $post > 1) { + echo ''; + } + do_hook('options_identities_buttons', $isEmptySection, $post); + echo '