info[PRN_PC] = strdup("10");
info[PRN_AC] = strdup("[none]");
info[PRN_LPC_ACL] = strdup("[none]");
+ info[PRN_BANNER] = strdup("1");
info[PRN_LOCATION] = strdup("");
info[PRN_CONTACT] = strdup("");
info[PRN_MODTIME] = info[PRN_MODBY] = info[PRN_MODWITH] = NULL;
static char *PrintPrnInfo(char **info)
{
char buf[BUFSIZ], *hwaddr;
- int status;
+ int status, banner = atoi(info[PRN_BANNER]);
if (!info) /* If no informaion */
{
Put_message(buf);
sprintf(buf, "Spool host: %s", info[PRN_RM]);
Put_message(buf);
- sprintf(buf, "Remote Printer Name: %s", info[PRN_RP]);
+ sprintf(buf, "Remote Printer Name: %-38s Banner page: %s", info[PRN_RP],
+ banner ? ( banner == PRN_BANNER_FIRST ? "Yes" : "Last" ) : "No");
Put_message(buf);
sprintf(buf, "Authentication: %-3s Price/page: %-3s Quota Server: %s",
atoi(info[PRN_KA]) ? "yes" : "no", info[PRN_PC], info[PRN_RQ]);
}
if (GetValueFromUser("LPC ACL", &info[PRN_LPC_ACL]) == SUB_ERROR)
return NULL;
+ if (GetYesNoValueFromUser("Banner page", &info[PRN_BANNER]) == SUB_ERROR)
+ return NULL;
if (GetValueFromUser("Location", &info[PRN_LOCATION]) == SUB_ERROR)
return NULL;
if (GetValueFromUser("Contact", &info[PRN_CONTACT]) == SUB_ERROR)