diff -Naur squirrelmail-1.4.9a/functions/forms.php squirrelmail-1.4.9a.oden/functions/forms.php --- squirrelmail-1.4.9a/functions/forms.php 2006-04-15 00:27:07.000000000 +0200 +++ squirrelmail-1.4.9a.oden/functions/forms.php 2006-12-05 14:36:25.000000000 +0100 @@ -41,7 +41,8 @@ */ function addCheckBox($name, $checked = false, $value = null) { return addInputField('checkbox', $name, $value, - ($checked ? ' checked="checked"' : '')); + concat_hook_function('list_checkbox_extra_params',array($name,false)).' '. + ($checked ? ' checked="checked"' : '')); } /** diff -Naur squirrelmail-1.4.9a/functions/mailbox_display.php squirrelmail-1.4.9a.oden/functions/mailbox_display.php --- squirrelmail-1.4.9a/functions/mailbox_display.php 2006-10-20 10:59:34.000000000 +0200 +++ squirrelmail-1.4.9a.oden/functions/mailbox_display.php 2006-12-05 14:34:40.000000000 +0100 @@ -205,7 +205,7 @@ case 1: /* checkbox */ echo html_tag( 'td', "<input type=\"checkbox\" name=\"msg[$t]\" id=\"msg".$msg['ID']. - "\" value=\"".$msg['ID']."\"$checked>", + "\" value=\"".$msg['ID']."\"$checked ".concat_hook_function('list_checkbox_extra_params',array("msg[$t]",true)).">", 'center', $hlt_color ); break; @@ -964,6 +964,8 @@ $result .= "</A>\n"; } + $result .= concat_hook_function('mailbox_selectall_after'); + /* Return our final result. */ return ($result); } diff -Naur squirrelmail-1.4.9a/src/addressbook.php squirrelmail-1.4.9a.oden/src/addressbook.php --- squirrelmail-1.4.9a/src/addressbook.php 2006-10-07 13:58:42.000000000 +0200 +++ squirrelmail-1.4.9a.oden/src/addressbook.php 2006-12-05 14:37:21.000000000 +0100 @@ -362,9 +362,11 @@ echo html_tag( 'p', '<a href="#AddAddress">' . _("Add address") . '</a>', 'center' ) . "\n"; + do_hook('addressbook_before_list'); + /* List addresses */ if (count($alist) > 0) { - echo addForm($form_url, 'post'); + echo addForm($form_url, 'post', 'FormAddrsAbook'); if ($abook->add_extra_field) { $abook_fields = 6; } else {