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; } function LoadInfo(&$n, &$e, &$r, $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 ($n != '' || $e != '' || $r != '') return true; } function sti_input( $title, $hd, $data, $post, $bg ) { echo "$title:". ''. '"; } function ShowTableInfo($full_name, $email_address, $reply_to, $post) { global $color; $OtherBG = ' bgcolor="' . $color[0] . '"'; if ($full_name == '' && $email_address == '' && $reply_to == '') $OtherBG = ''; if ($full_name == '' && $email_address == '' && $reply_to == '') $isEmptySection = true; else $isEmptySection = false; sti_input( _("Full Name"), 'full_name', $full_name, $post, $OtherBG ); sti_input( _("E-Mail Address"), 'email_address', $email_address, $post, $OtherBG ); sti_input( _("Reply To"), 'reply_to', $reply_to, $post, $OtherBG ); do_hook('options_identities_table', $OtherBG, $isEmptySection, $post); echo "". ' '. "". ''; if (! $isEmptySection && $post != '') { echo "'. "'; } if (! $isEmptySection && $post != '' && $post > 1) { echo ''; } do_hook('options_identities_buttons', $isEmptySection, $post); echo ''. ' '; } ?>