X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddressbook.php;h=2df29cdba9e572719b4cb41ca60edbe8ac30a5b1;hb=6a6ce0a3a52fdfd73fdab55e30f1b8f410115a7a;hp=64baea9626746a916230b6c4a8a646a945ab05e8;hpb=1af3cc73bfa2539035d739df7b142fab60be7823;p=squirrelmail.git diff --git a/src/addressbook.php b/src/addressbook.php index 64baea96..2df29cdb 100644 --- a/src/addressbook.php +++ b/src/addressbook.php @@ -15,18 +15,7 @@ require_once('../src/validate.php'); require_once('../functions/array.php'); require_once('../functions/display_messages.php'); require_once('../functions/addressbook.php'); - -/* Sort array by the key "name" */ -function alistcmp($a,$b) { - if($a['backend'] > $b['backend']) { - return 1; - } else { - if($a['backend'] < $b['backend']) { - return -1; - } - } - return (strtolower($a['name']) > strtolower($b['name'])) ? 1 : -1; -} +require_once('../functions/strings.php'); /* Make an input field */ function adressbook_inp_field($label, $field, $name, $size, $values, $add) { @@ -173,11 +162,11 @@ if($REQUEST_METHOD == 'POST') { /* Display the "new address" form */ echo '
'; } } /* end of addresslist */ @@ -341,10 +336,10 @@ if ($showaddrlist) { /* Display the "new address" form */ echo '' . "\n" . '