@@ -38,40 +46,39 @@
-
|
@@ -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 "$title:".
+ ' | '.
+ ' | ";
+
}
-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 "$title:".
+ ' | '.
+ " | ";
- 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 = '';
-?>
- >
-
- :
- |
-
-
- |
-
- >
-
- :
- |
-
-
- |
-
- >
-
- :
- |
-
-
- |
-
-
- >
- |
-
- ">
-
- ">
- ">
- 1) {
-?>
- ">
-
- |
-
-
- |
-
-".
+ ' | '.
+ "".
+ '';
+ if (! $isEmptySection && $post != '') {
+ echo "'.
+ "';
+ }
+ if (! $isEmptySection && $post != '' && $post > 1) {
+ echo '';
+ }
+ do_hook('options_identities_buttons', $isEmptySection, $post);
+ echo ' | '.
+ ' | ';
}
?>
\ No newline at end of file
|