print "</TR>\n";
- while(list($key, $row) = each($res)) {
+ while(list($undef, $row) = each($res)) {
printf("<tr%s nowrap><td valign=top nowrap align=center width=\"5%%\">".
"<small><a href=\"javascript:to_address('%s');\">To</A> | ".
"<a href=\"javascript:cc_address('%s');\">Cc</A> | ".
/* ================= End of functions ================= */
session_start();
-
- if(!isset($logged_in)) {
- echo _("You must login first.");
- exit;
- }
- if(!isset($username) || !isset($key)) {
- echo _("You need a valid user and password to access this page!");
+
+ if (!isset($i18n_php))
+ include("../functions/i18n.php");
+
+ if(!isset($logged_in) || !isset($username) || !isset($key)) {
+ include ("../themes/default_theme.php");
+ include ("../functions/display_messages.php");
+ printf('<html><BODY TEXT="%s" BGCOLOR="%s" LINK="%s" VLINK="%s" ALINK="%s">',
+ $color[8], $color[4], $color[7], $color[7], $color[7]);
+ plain_error_message(_("You need a valid user and password to access this page!")
+ . "<br><a href=\"../src/login.php\">"
+ . _("Click here to log back in.") . "</a>.", $color);
+ echo "</body></html>";
exit;
}
-
if (!isset($config_php))
include("../config/config.php");
if (!isset($array_php))
printf("<OPTION VALUE=-1 SELECTED>%s\n",
_("All address books"));
$ret = $abook->get_backend_list();
- while(list($k,$v) = each($ret))
+ while(list($undef,$v) = each($ret))
printf("<OPTION VALUE=%d>%s\n", $v->bnum, $v->sname);
printf("</SELECT>\n");
} else {