X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Faddressbook.php;h=2ad610ea4bcbe5e95fd65487305680e6fa96a158;hb=31ac7db819a9a223e7b71f0e901265abe4019a34;hp=f8a0e49a522b05356e4ff2a1ed22345c1267e04a;hpb=245a6892bf5c780904ef9677f24d624ea17e0749;p=squirrelmail.git diff --git a/src/addressbook.php b/src/addressbook.php index f8a0e49a..2ad610ea 100644 --- a/src/addressbook.php +++ b/src/addressbook.php @@ -13,30 +13,30 @@ session_start(); if (!isset($strings_php)) - include("../functions/strings.php"); + include('../functions/strings.php'); if (!isset($config_php)) - include("../config/config.php"); + include('../config/config.php'); if (!isset($array_php)) - include("../functions/array.php"); + include('../functions/array.php'); if (!isset($auth_php)) - include("../functions/auth.php"); + include('../functions/auth.php'); if (!isset($page_header_php)) - include("../functions/page_header.php"); + include('../functions/page_header.php'); if (!isset($display_messages_php)) - include("../functions/display_messages.php"); + include('../functions/display_messages.php'); if (!isset($addressbook_php)) - include("../functions/addressbook.php"); + include('../functions/addressbook.php'); is_logged_in(); // Sort array by the key "name" function alistcmp($a,$b) { - if($a["backend"] > $b["backend"]) + if($a['backend'] > $b['backend']) return 1; - else if($a["backend"] < $b["backend"]) + else if($a['backend'] < $b['backend']) return -1; - return (strtolower($a["name"]) > strtolower($b["name"])) ? 1 : -1; + return (strtolower($a['name']) > strtolower($b['name'])) ? 1 : -1; } // Output form to add and modify address data @@ -49,8 +49,8 @@ "". " %s\n", $color[4], $name, - (isset($values["nickname"]))? - htmlspecialchars($values["nickname"]):"", + (isset($values['nickname']))? + htmlspecialchars($values['nickname']):"", _("Must be unique")); printf("
'. ' | %s | %s'. ' | %s | %s'. @@ -326,13 +326,13 @@ $headerprinted = true; } // End of header - $prevbackend = $row["backend"]; + $prevbackend = $row['backend']; // Check if this user is selected - if(in_array($row["backend"].":".$row["nickname"], $defselected)) - $selected = "CHECKED"; + if(in_array($row['backend'].':'.$row['nickname'], $defselected)) + $selected = 'CHECKED'; else - $selected = ""; + $selected = ''; // Print one row printf(" |
---|---|---|---|---|