(contains(2,80,/bash) contains(2,80,/ksh)\
contains(2,80,/sh) contains(2,80,/zsh))
application/x-csource c cxx cpp cc C h hpp \
- printable(0,1024) + \
+ printable(0,1024) + ! css + \
(string(0,/*) string(0,//)
string(0,#include) contains(0,1024,<0a>#include) \
string(0,#define) contains(0,1024,<0a>#define))
if (http->state == HTTP_STATE_POST_RECV)
http->state ++;
- else if (http->state == HTTP_STATE_POST_SEND)
+ else if (http->state == HTTP_STATE_POST_SEND ||
+ http->state == HTTP_STATE_GET_SEND)
http->state = HTTP_STATE_WAITING;
else
http->state = HTTP_STATE_STATUS;
http_set_length(http);
+ if (http->data_encoding == HTTP_ENCODING_LENGTH && http->data_remaining == 0)
+ {
+ DEBUG_printf(("1httpWriteResponse: Resetting state to HTTP_STATE_WAITING, "
+ "was %s.", httpStateString(http->state)));
+ http->state = HTTP_STATE_WAITING;
+ return (0);
+ }
+
#ifdef HAVE_LIBZ
/*
* Then start any content encoding...
http_content_coding_start(http,
httpGetField(http, HTTP_FIELD_CONTENT_ENCODING));
#endif /* HAVE_LIBZ */
+
}
return (0);
#
WEBPAGES = \
+ apple-touch-icon.png \
cups.css \
cups-printable.css \
index.html \
+/* Layout CSS */
+.header {
+ background: #333333;
+ color: white;
+ float: left;
+ left: 0;
+ margin-bottom: 20px;
+ padding: 0px;
+ position: relative;
+ right: 0;
+ width: 100%;
+}
+.header ul {
+ list-style: none;
+ -webkit-margin-before: 0;
+ -webkit-margin-after: 0;
+ -webkit-margin-start: 0;
+ -webkit-margin-end: 5px;
+ -webkit-padding-start: 0;
+}
+.header ul li {
+ float: left;
+}
+.header a {
+ display: block;
+ padding: 5px 10px !important;
+}
+.header a:link, .header a:visited {
+ color: white !important;
+ text-decoration: none !important;
+}
+.header a:hover {
+ background: #cccccc !important;
+ color: #333333 !important;
+ text-decoration: none !important;
+}
+.header a.active {
+ background: white !important;
+ color: black !important;
+ text-decoration: none !important;
+}
+
+.body {
+ padding: 20px 20px 40px;
+}
+
+.footer {
+ background: #333333;
+ bottom: 0;
+ color: #cccccc;
+ font-size: 10px;
+ height: 20px;
+ left: 0;
+ padding: 10px 10px 3px;
+ position: fixed;
+ width: 100%;
+}
+.footer a:link, footer a:hover, .footer a:visited {
+ color: white !important;
+ text-decoration: none !important;
+}
+
+.row {
+ width: 100%;
+ *zoom: 1;
+}
+.row:after {
+ clear: both;
+}
+
+.row .thirds {
+ float: left;
+ margin-left: 0.5%;
+ margin-right: 0;
+ width: 33%;
+}
+.row .thirds:first-child {
+ margin-left: 0;
+}
+
+.row .halves {
+ float: left;
+ margin-left: 0.5%;
+ margin-right: 0;
+ width: 49.75%;
+}
+.row .halves:first-child {
+ margin-left: 0;
+}
+.mobile {
+ display: none;
+}
+.no-mobile {
+ display: inherit;
+}
+
+/* Appearance CSS */
BODY {
background: white;
color: black;
font-family: lucida grande, geneva, helvetica, arial, sans-serif;
+ margin: 0;
}
H1, H2, H3, H4, H5, H6, P, TD, TH {
border-bottom: solid 1pt #999999;
}
-DIV.indent, TABLE.indent {
+TABLE.indent {
margin-top: 2em;
margin-left: auto;
margin-right: auto;
div.body dd {
margin-bottom: 0.5em;
}
+/* iPhone/iPod touch overrides */
+@media only screen and (min-device-width: 320px) and (max-device-width: 480px),
+ only screen and (min-device-width: 320px) and (max-device-width: 568px) {
+ .mobile {
+ display: inherit;
+ }
+ .no-mobile {
+ display: none;
+ }
+
+ .footer {
+ font-size: 10px;
+ height: auto;
+ position: relative;
+ }
+
+ .row .thirds, .row .halves {
+ float: none;
+ margin: 0;
+ width: 100%;
+ }
+
+ DIV.sidebar {
+ float: none;
+ margin-left: 0;
+ max-width: 100%;
+ min-width: 100%;
+ width: 100%;
+ }
+
+ BLOCKQUOTE {
+ margin: 0;
+ }
+
+ P.example {
+ margin-left: 0;
+ }
+
+ PRE.command, PRE.example {
+ margin-left: 0;
+ white-space: pre-wrap;
+ }
+}
+
+/* iPad overrides */
+@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
+
+ .mobile {
+ display: inherit;
+ }
+ .no-mobile {
+ display: none;
+ }
+}
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<HTML>
-<HEAD>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
- <TITLE>Home - CUPS @CUPS_VERSION@@CUPS_REVISION@</TITLE>
- <LINK REL="STYLESHEET" TYPE="text/css" HREF="/cups.css">
- <LINK REL="SHORTCUT ICON" HREF="/images/cups-icon.png" TYPE="image/png">
-</HEAD>
-<BODY>
-<TABLE CLASS="page" SUMMARY="{title}">
-<TR><TD CLASS="body">
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
-<TR HEIGHT="36">
-<TD><A HREF="http://www.cups.org/" TARGET="_blank"><IMG
-SRC="/images/left.gif" WIDTH="64" HEIGHT="36" BORDER="0" ALT=""></A></TD>
-<TD CLASS="sel"><A HREF="/"> Home </A></TD>
-<TD CLASS="unsel"><A HREF="/admin"> Administration </A></TD>
-<TD CLASS="unsel"><A HREF="/classes/"> Classes </A></TD>
-<TD CLASS="unsel"><A HREF="/help/"> Online Help </A></TD>
-<TD CLASS="unsel"><A HREF="/jobs/"> Jobs </A></TD>
-<TD CLASS="unsel"><A HREF="/printers/"> Printers </A></TD>
-<TD CLASS="unsel" WIDTH="100%"><FORM ACTION="/help/" METHOD="GET"><INPUT
-TYPE="SEARCH" NAME="QUERY" SIZE="20" PLACEHOLDER="Search Help"
-AUTOSAVE="org.cups.help" RESULTS="20"></FORM></TD>
-<TD><IMG SRC="/images/right.gif" WIDTH="4" HEIGHT="36" ALT=""></TD>
-</TR>
-</TABLE>
-
-<TABLE CLASS="indent" SUMMARY="">
-<TR><TD STYLE="padding-right: 20px;">
-
-<H1>CUPS @CUPS_VERSION@</H1>
-
-<P>CUPS is the standards-based, open source printing system developed by
-<A HREF="http://www.apple.com/">Apple Inc.</A> for OS<SUP>®</SUP> X and
-other UNIX<SUP>®</SUP>-like operating systems.</P>
-
-</TD>
-<TD><A HREF="http://www.cups.org/"><IMG SRC="images/cups-icon.png" WIDTH="128"
-HEIGHT="128" ALT="CUPS"></A></TD>
-</TR>
-</TABLE>
-
-<TABLE CLASS="indent" SUMMARY="">
-<TR><TD VALIGN="top" STYLE="border-right: dotted thin #cccccc; padding-right: 20px;">
-
-<H2>CUPS for Users</H2>
-
-<P><A HREF="help/overview.html">Overview of CUPS</A></P>
-
-<P><A HREF="help/options.html">Command-Line Printing and Options</A></P>
-
-<P><A HREF="help/whatsnew.html">What's New in CUPS 1.7</A></P>
-
-<P><A HREF="http://www.cups.org/newsgroups.php?gcups.general">User Forum</A></P>
-
-</TD><TD VALIGN="top" STYLE="border-right: dotted thin #cccccc; padding-left: 20px; padding-right: 20px;">
-
-<H2>CUPS for Administrators</H2>
-
-<P><A HREF="admin">Adding Printers and Classes</A></P>
-
-<P><A HREF="help/policies.html">Managing Operation Policies</A></P>
-
-<P><A HREF="help/accounting.html">Printer Accounting Basics</A></P>
-
-<P><A HREF="help/security.html">Server Security</A></P>
-
-<P><A HREF="help/kerberos.html">Using Kerberos Authentication</A></P>
-
-<P><A HREF="help/network.html">Using Network Printers</A></P>
-
-<P><A HREF="help/ref-cupsd-conf.html">cupsd.conf Reference</A></P>
-
-<P><A HREF="http://www.cups.org/ppd.php">Find Printer Drivers</A></P>
-
-</TD><TD VALIGN="top" STYLE="padding-left: 20px;">
-
-<H2>CUPS for Developers</H2>
-
-<P><A HREF="help/api-overview.html">Introduction to CUPS Programming</A></P>
-
-<P><A HREF="help/api-cups.html">CUPS API</A></P>
-
-<P><A HREF="help/api-filter.html">Filter and Backend Programming</A></P>
-
-<P><A HREF="help/api-httpipp.html">HTTP and IPP APIs</A></P>
-
-<P><A HREF="help/api-ppd.html">PPD API</A></P>
-
-<P><A HREF="help/api-raster.html">Raster API</A></P>
-
-<P><A HREF="help/ref-ppdcfile.html">PPD Compiler Driver Information File Reference</A></P>
-
-<P><A HREF="http://www.cups.org/newsgroups.php?gcups.development">Developer Forum</A></P>
-
-</TD></TR>
-</TABLE>
-
-</TD></TR>
-<TR><TD> </TD></TR>
-<TR><TD CLASS="trailer">CUPS and the CUPS logo are trademarks of
-<A HREF="http://www.apple.com">Apple Inc.</A> Copyright 2007-2013 Apple
-Inc. All rights reserved.</TD></TR>
-</TABLE>
-</BODY>
-</HTML>
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <link rel="stylesheet" href="/cups.css" type="text/css">
+ <link rel="shortcut icon" href="/apple-touch-icon.png" type="image/png">
+ <meta charset="utf-8">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=9">
+ <meta name="viewport" content="width=device-width">
+ <title>Home - CUPS @CUPS_VERSION@@CUPS_REVISION@</title>
+ </head>
+ <body>
+ <div class="header">
+ <ul>
+ <li><a href="http://www.cups.org/" target="_blank">cups.org</a></li>
+ <li><a class="active" href="/">Home</a></li>
+ <li><a href="/admin">Administration</a></li>
+ <li><a href="/classes/">Classes</a></li>
+ <li><a href="/help/">Help</a></li>
+ <li><a href="/jobs/">Jobs</a></li>
+ <li><a href="/printers/">Printers</a></li>
+ </ul>
+ </div>
+ <div class="body">
+ <div class="row">
+ <h1>CUPS @CUPS_VERSION@</h1>
+ <p>CUPS is the standards-based, open source printing system developed by <a href="http://www.apple.com/">Apple Inc.</a> for OS<sup>®</sup> X and other UNIX<sup>®</sup>-like operating systems.</p>
+ </div>
+ <div class="row">
+ <div class="thirds">
+ <h2>CUPS for Users</h2>
+ <p><a href="help/overview.html">Overview of CUPS</a></p>
+ <p><a href="help/options.html">Command-Line Printing and Options</a></p>
+ <p><a href="help/whatsnew.html">What's New in CUPS 1.7</a></p>
+ <p><a href="http://www.cups.org/lists.php?LIST=cups">User Forum</a></p>
+ </div>
+ <div class="thirds">
+ <h2>CUPS for Administrators</h2>
+ <p><a href="admin">Adding Printers and Classes</a></p>
+ <p><a href="help/policies.html">Managing Operation Policies</a></p>
+ <p><a href="help/accounting.html">Printer Accounting Basics</a></p>
+ <p><a href="help/security.html">Server Security</a></p>
+ <p><a href="help/kerberos.html">Using Kerberos Authentication</a></p>
+ <p><a href="help/network.html">Using Network Printers</a></p>
+ <p><a href="help/ref-cupsd-conf.html">cupsd.conf Reference</a></p>
+ <p><a href="http://www.cups.org/ppd.php">Find Printer Drivers</a></p>
+ </div>
+ <div class="thirds">
+ <h2>CUPS for Developers</h2>
+ <p><a href="help/api-overview.html">Introduction to CUPS Programming</a></p>
+ <p><a href="help/api-cups.html">CUPS API</a></p>
+ <p><a href="help/api-filter.html">Filter and Backend Programming</a></p>
+ <p><a href="help/api-httpipp.html">HTTP and IPP APIs</a></p>
+ <p><a href="help/api-ppd.html">PPD API</a></p>
+ <p><a href="help/api-raster.html">Raster API</a></p>
+ <p><a href="help/ref-ppdcfile.html">PPD Compiler Driver Information File Reference</a></p>
+ <p><a href="http://www.cups.org/lists.php?LIST=cups-devel">Developer Forum</a></p>
+ </div>
+ </div>
+ </div>
+ <div class="footer">CUPS and the CUPS logo are trademarks of <a href="http://www.apple.com">Apple Inc.</a> Copyright 2007-2013 Apple
+Inc. All rights reserved.</div>
+ </body>
+</html>
* Handle new transfers...
*/
+ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Read: status=%d", status);
+
if (status == HTTP_STATUS_OK)
{
if (httpGetField(con->http, HTTP_FIELD_ACCEPT_LANGUAGE)[0])
switch (httpGetState(con->http))
{
case HTTP_STATE_GET_SEND :
+ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Processing GET %s", con->uri);
+
if ((!strncmp(con->uri, "/ppd/", 5) ||
!strncmp(con->uri, "/printers/", 10) ||
!strncmp(con->uri, "/classes/", 9)) &&
type = mimeFileType(MimeDatabase, filename, NULL, NULL);
+ cupsdLogClient(con, CUPSD_LOG_DEBUG, "filename=\"%s\", type=%s/%s", filename, type ? type->super : "", type ? type->type : "");
+
if (is_cgi(con, filename, &filestats, type))
{
/*
{
cupsdLogRequest(con, HTTP_STATUS_OK);
- httpFlushWrite(con->http);
-
if (httpIsChunked(con->http) && (!con->pipe_pid || con->sent_header == 1))
{
+ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Sending 0-length chunk.");
+
if (httpWrite2(con->http, "", 0) < 0)
{
cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing for error %d (%s)",
return;
}
}
+
+ cupsdLogClient(con, CUPSD_LOG_DEBUG, "Flushing write buffer.");
+ httpFlushWrite(con->http);
+ cupsdLogClient(con, CUPSD_LOG_DEBUG, "New state is %s", httpStateString(httpGetState(con->http)));
}
cupsdAddSelect(httpGetFd(con->http), (cupsd_selfunc_t)cupsdReadClient, NULL, con);
fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC);
- con->pipe_pid = 0;
+ con->pipe_pid = 0;
+ con->sent_header = 1;
httpClearFields(con->http);
-<DIV CLASS="indent">
-
<H2 CLASS="title">Add Class</H2>
<FORM METHOD="POST" ACTION="/admin">
</TABLE>
</FORM>
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">Add Printer</H2>
<FORM METHOD="POST" ACTION="/admin">
</TABLE>
</FORM>
-</DIV>
\ No newline at end of file
-<TABLE CLASS="indent" SUMMARY="Administration Tasks">
-<TR><TD VALIGN="TOP">
-
-<H2 CLASS="title">Printers</H2>
-
-<P>
-<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-printer"><INPUT TYPE="SUBMIT" VALUE="Add Printer"></FORM>
-<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="find-new-printers"><INPUT TYPE="SUBMIT" VALUE="Find New Printers"></FORM>
-<FORM ACTION="/printers/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Printers"></FORM>
-{have_samba?<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="export-samba"><INPUT TYPE="SUBMIT" VALUE="Export Printers to Samba"></FORM>:}
-</P>
-
-<H2 CLASS="title">Classes</H2>
-
-<P>
-<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-class"><INPUT TYPE="SUBMIT" VALUE="Add Class"></FORM>
-<FORM ACTION="/classes/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Classes"></FORM>
-</P>
-
-<H2 CLASS="title">Jobs</H2>
-
-<P>
-<FORM ACTION="/jobs/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Jobs"></FORM>
-</P>
-
-</TD><TD> </TD><TD VALIGN="TOP">
-
-<H2 CLASS="title">Server</H2>
-
-<P>
-<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server"><INPUT TYPE="SUBMIT" VALUE="Edit Configuration File"></FORM>
-<FORM ACTION="/admin/log/access_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Access Log"></FORM>
-<FORM ACTION="/admin/log/error_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Error Log"></FORM>
-<FORM ACTION="/admin/log/page_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Page Log"></FORM>
-</P>
-
-{SETTINGS_ERROR?<P>{SETTINGS_MESSAGE}</P>
-<BLOCKQUOTE>{SETTINGS_ERROR}</BLOCKQUOTE>:
-
-<FORM METHOD="POST" ACTION="/admin">
-<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
-
-{ADVANCEDSETTINGS?<P><B>Server Settings\:</B></P>
-
-<P><A HREF="/admin/">Advanced <SMALL>▼</SMALL></A><BR>
-<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
-<INPUT TYPE="HIDDEN" NAME="ADVANCEDSETTINGS" VALUE="YES">
-<INPUT TYPE="CHECKBOX" NAME="SHARE_PRINTERS" {?share_printers}> Share printers connected to this system<BR>
- Max clients\:
-<INPUT TYPE="TEXT" NAME="MAX_CLIENTS" VALUE="{?max_clients}" SIZE="6"><BR>
- <INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" {?remote_any}> Allow printing from the Internet<BR>
- <INPUT TYPE="CHECKBOX" NAME="BROWSE_WEB_IF" {?browse_web_if}> Advertise web interface<BR>
-<INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" {?remote_admin}> Allow remote administration<BR>
-{have_gssapi?<INPUT TYPE="CHECKBOX" NAME="KERBEROS" {?kerberos}> Use Kerberos authentication (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">FAQ</A>)<BR>:}
-<INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" {?user_cancel_any}> Allow users to cancel any job (not just their own)<BR>
-<INPUT TYPE="CHECKBOX" NAME="PRESERVE_JOBS" {?preserve_jobs}> Preserve job history<BR>
- Maximum jobs (0 for no limit)\:
-<INPUT TYPE="TEXT" NAME="MAX_JOBS" VALUE="{?max_jobs}" SIZE="6"><BR>
- Retain Metadata\:
-<INPUT TYPE="TEXT" NAME="PRESERVE_JOB_HISTORY" VALUE="{?preserve_job_history}" SIZE="6"><BR>
- Retain Documents\:
-<INPUT TYPE="TEXT" NAME="PRESERVE_JOB_FILES" VALUE="{?preserve_job_files}" SIZE="6"><BR>
-<INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" {?debug_logging}> Save debugging information for troubleshooting<BR>
- Max log file size\:
-<INPUT TYPE="TEXT" NAME="MAX_LOG_SIZE" VALUE="{?max_log_size}" SIZE="6"></P>
-
-:<P><B>Server Settings:</B></P>
-
-<P><A HREF="/admin/?ADVANCEDSETTINGS=YES">Advanced <SMALL>▶</SMALL></A><BR>
-<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
-<INPUT TYPE="CHECKBOX" NAME="SHARE_PRINTERS" {?share_printers}> Share printers connected to this system<BR>
- <INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" {?remote_any}> Allow printing from the Internet<BR>
-<INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" {?remote_admin}> Allow remote administration<BR>
-{have_gssapi?<INPUT TYPE="CHECKBOX" NAME="KERBEROS" {?kerberos}> Use Kerberos authentication (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">FAQ</A>)<BR>:}
-<INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" {?user_cancel_any}> Allow users to cancel any job (not just their own)<BR>
-<INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" {?debug_logging}> Save debugging information for troubleshooting</P>
-
-}
-<P><INPUT TYPE="SUBMIT" NAME="CHANGESETTINGS" VALUE="Change Settings"></P>
-
-</FORM>}
-
-</TD></TR>
-</TABLE>
-
-<DIV CLASS="indent">
-
-<H2 CLASS="title">RSS Subscriptions</H2>
-
-<P>
-<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-rss-subscription"><INPUT TYPE="SUBMIT" VALUE="Add RSS Subscription"></FORM>
-</P>
-
-</DIV>
-
-{notify_subscription_id?<TABLE CLASS="list" SUMMARY="RSS Subscriptions">
-<THEAD><TR><TH>Name</TH><TH>Events</TH><TH>Queue Name</TH></TR></THEAD>
-<TBODY>{[notify_subscription_id]
-<TR><TD><A HREF="{notify_recipient_uri}">{notify_recipient_name}</A><BR>
-<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="cancel-subscription"><INPUT TYPE="HIDDEN" NAME="notify_subscription_id" VALUE="{notify_subscription_id}"><INPUT TYPE="SUBMIT" VALUE="Cancel RSS Subscription"></FORM> </TD><TD>{notify_events}</TD><TD NOWRAP> {notify_printer_name?{notify_printer_name}:All Queues}</TD></TR>}
-</TBODY>
-</TABLE>:}
+<div class="row">
+ <div class="halves">
+ <H2 CLASS="title">Printers</H2>
+
+ <P>
+ <FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-printer"><INPUT TYPE="SUBMIT" VALUE="Add Printer"></FORM>
+ <FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="find-new-printers"><INPUT TYPE="SUBMIT" VALUE="Find New Printers"></FORM>
+ <FORM ACTION="/printers/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Printers"></FORM>
+ {have_samba?<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="export-samba"><INPUT TYPE="SUBMIT" VALUE="Export Printers to Samba"></FORM>:}
+ </P>
+
+ <H2 CLASS="title">Classes</H2>
+
+ <P>
+ <FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-class"><INPUT TYPE="SUBMIT" VALUE="Add Class"></FORM>
+ <FORM ACTION="/classes/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Classes"></FORM>
+ </P>
+
+ <H2 CLASS="title">Jobs</H2>
+
+ <P>
+ <FORM ACTION="/jobs/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Jobs"></FORM>
+ </P>
+ </div>
+ <div class="halves">
+ <H2 CLASS="title">Server</H2>
+
+ <P>
+ <FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server"><INPUT TYPE="SUBMIT" VALUE="Edit Configuration File"></FORM>
+ <FORM ACTION="/admin/log/access_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Access Log"></FORM>
+ <FORM ACTION="/admin/log/error_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Error Log"></FORM>
+ <FORM ACTION="/admin/log/page_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Page Log"></FORM>
+ </P>
+
+ {SETTINGS_ERROR?<P>{SETTINGS_MESSAGE}</P>
+ <BLOCKQUOTE>{SETTINGS_ERROR}</BLOCKQUOTE>:
+
+ <FORM METHOD="POST" ACTION="/admin">
+ <INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
+
+ {ADVANCEDSETTINGS?<P><B>Server Settings\:</B></P>
+
+ <P><A HREF="/admin/">Advanced <SMALL>▼</SMALL></A><BR>
+ <INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
+ <INPUT TYPE="HIDDEN" NAME="ADVANCEDSETTINGS" VALUE="YES">
+ <INPUT TYPE="CHECKBOX" NAME="SHARE_PRINTERS" {?share_printers}> Share printers connected to this system<BR>
+ Max clients\:
+ <INPUT TYPE="TEXT" NAME="MAX_CLIENTS" VALUE="{?max_clients}" SIZE="6"><BR>
+ <INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" {?remote_any}> Allow printing from the Internet<BR>
+ <INPUT TYPE="CHECKBOX" NAME="BROWSE_WEB_IF" {?browse_web_if}> Advertise web interface<BR>
+ <INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" {?remote_admin}> Allow remote administration<BR>
+ {have_gssapi?<INPUT TYPE="CHECKBOX" NAME="KERBEROS" {?kerberos}> Use Kerberos authentication (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">FAQ</A>)<BR>:}
+ <INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" {?user_cancel_any}> Allow users to cancel any job (not just their own)<BR>
+ <INPUT TYPE="CHECKBOX" NAME="PRESERVE_JOBS" {?preserve_jobs}> Preserve job history<BR>
+ Maximum jobs (0 for no limit)\:
+ <INPUT TYPE="TEXT" NAME="MAX_JOBS" VALUE="{?max_jobs}" SIZE="6"><BR>
+ Retain Metadata\:
+ <INPUT TYPE="TEXT" NAME="PRESERVE_JOB_HISTORY" VALUE="{?preserve_job_history}" SIZE="6"><BR>
+ Retain Documents\:
+ <INPUT TYPE="TEXT" NAME="PRESERVE_JOB_FILES" VALUE="{?preserve_job_files}" SIZE="6"><BR>
+ <INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" {?debug_logging}> Save debugging information for troubleshooting<BR>
+ Max log file size\:
+ <INPUT TYPE="TEXT" NAME="MAX_LOG_SIZE" VALUE="{?max_log_size}" SIZE="6"></P>
+
+ :<P><B>Server Settings:</B></P>
+
+ <P><A HREF="/admin/?ADVANCEDSETTINGS=YES">Advanced <SMALL>▶</SMALL></A><BR>
+ <INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
+ <INPUT TYPE="CHECKBOX" NAME="SHARE_PRINTERS" {?share_printers}> Share printers connected to this system<BR>
+ <INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" {?remote_any}> Allow printing from the Internet<BR>
+ <INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" {?remote_admin}> Allow remote administration<BR>
+ {have_gssapi?<INPUT TYPE="CHECKBOX" NAME="KERBEROS" {?kerberos}> Use Kerberos authentication (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">FAQ</A>)<BR>:}
+ <INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" {?user_cancel_any}> Allow users to cancel any job (not just their own)<BR>
+ <INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" {?debug_logging}> Save debugging information for troubleshooting</P>
+
+ }
+ <P><INPUT TYPE="SUBMIT" NAME="CHANGESETTINGS" VALUE="Change Settings"></P>
+
+ </FORM>}
+ </div>
+</div>
+
+<div class="row">
+ <H2 CLASS="title">RSS Subscriptions</H2>
+
+ <P>
+ <FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-rss-subscription"><INPUT TYPE="SUBMIT" VALUE="Add RSS Subscription"></FORM>
+ </P>
+
+ {notify_subscription_id?<TABLE CLASS="list" SUMMARY="RSS Subscriptions">
+ <THEAD><TR><TH>Name</TH><TH>Events</TH><TH>Queue Name</TH></TR></THEAD>
+ <TBODY>{[notify_subscription_id]
+ <TR><TD><A HREF="{notify_recipient_uri}">{notify_recipient_name}</A><BR>
+ <FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="cancel-subscription"><INPUT TYPE="HIDDEN" NAME="notify_subscription_id" VALUE="{notify_subscription_id}"><INPUT TYPE="SUBMIT" VALUE="Cancel RSS Subscription"></FORM> </TD><TD>{notify_events}</TD><TD NOWRAP> {notify_printer_name?{notify_printer_name}:All Queues}</TD></TR>}
+ </TBODY>
+ </TABLE>:}
+</div>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
{CUPS_GET_DEVICES_DONE?<FORM METHOD="POST" ACTION="/admin">
</FORM>:<P><IMG SRC="/images/wait.gif" WIDTH="16" HEIGHT="16" ALIGN="ABSMIDDLE"
ALT="Busy Indicator"> Looking for printers...</P>}
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
<FORM METHOD="POST" ACTION="/admin" ENCTYPE="multipart/form-data">
</TABLE>
</FORM>
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
<FORM METHOD="POST" ACTION="/admin" ENCTYPE="multipart/form-data">
</TABLE>
</FORM>
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
<FORM METHOD="POST" ACTION="/admin">
</TABLE>
</FORM>
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
<FORM METHOD="POST" ACTION="/admin">
</TABLE>
</FORM>
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">Add Class</H2>
<P>Class <A HREF="/classes/{printer_name}">{printer_name}</A> has been added
successfully.
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Delete Class {printer_name}</H2>
<P><B>Warning:</B> Are you sure you want to delete class
{printer_name}?</P>
<P ALIGN="CENTER"><FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="op" VALUE="delete-class"><INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}"><INPUT TYPE="SUBMIT" NAME="confirm" VALUE="Delete Class"></FORM></P>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Delete Class {printer_name}</H2>
<P>Class {printer_name} has been deleted successfully.
-
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
<H3 CLASS="title">Jobs</H3>
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Modify Class {printer_name}</H2>
<P>Class <A HREF="/classes/{printer_name}">{printer_name}</A> has been
modified successfully.
-
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
<H2 CLASS="title"><A HREF="{printer_uri_supported}">{printer_name}</A>
({printer_state=3?Idle:{printer_state=4?Processing:Paused}},
{printer_is_accepting_jobs=0?Rejecting Jobs:Accepting Jobs},
media={media_default?{media_default}:unknown}
{sides_default?sides={sides_default}:}</TD></TR>
</TABLE>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">{title} On {printer_name}</H2>
<P>{job_state>5?:<IMG SRC="/images/wait.gif" WIDTH="16" HEIGHT="16"
{job_state=5?processing:{job_state=6?stopped:
{job_state=7?canceled:{job_state=8?aborted:completed}}}}}}{job_state=9?:{job_printer_state_message?,
<EM>"{job_printer_state_message}"</EM>:}}</P>
-
-</DIV>
}
</SCRIPT>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Edit Configuration File</H2>
<FORM NAME="cups" METHOD="POST" ACTION="/admin/">
onClick="reset_config();"></P>
</FORM>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">{?title} {?printer_name} Error</H2>
<P>Error:</P>
<BLOCKQUOTE>Unknown operation "{op}"!</BLOCKQUOTE>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">{?title} {?printer_name} Error</H2>
<P>{?message?{message}:Error}:</P>
<BLOCKQUOTE>{error}</BLOCKQUOTE>
-
-</DIV>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<HTML>
-<HEAD>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
- <TITLE>{title} - CUPS @CUPS_VERSION@@CUPS_REVISION@</TITLE>
- <LINK REL="STYLESHEET" TYPE="text/css" HREF="/cups.css">
- <LINK REL="SHORTCUT ICON" HREF="/images/cups-icon.png" TYPE="image/png">
- {refresh_page?<META HTTP-EQUIV="Refresh" CONTENT="{refresh_page}">:}
- <SCRIPT TYPE="text/javascript"><!--
- /* Show an error if cookies are disabled */
- function check_cookies() {
- if (!navigator.cookieEnabled) {
- document.getElementById('body').innerHTML = 'This page uses cookies to prevent common cross-site attacks. Please enable cookies in your browser.';
- }
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <link rel="stylesheet" href="/cups.css" type="text/css">
+ <link rel="shortcut icon" href="/apple-touch-icon.png" type="image/png">
+ <meta charset="utf-8">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ {refresh_page?<meta http-equiv="refresh" content="{refresh_page}">:}
+ <meta http-equiv="X-UA-Compatible" content="IE=9">
+ <meta name="viewport" content="width=device-width">
+ <script type="text/javascript"><!--
+ /* Show an error if cookies are disabled */
+ function check_cookies() {
+ if (!navigator.cookieEnabled) {
+ document.getElementById('body').innerHTML = 'This page uses cookies to prevent common cross-site attacks. Please enable cookies in your browser.';
}
- --></SCRIPT>
-</HEAD>
-<BODY ONLOAD="check_cookies();">
-<TABLE CLASS="page" SUMMARY="{title}">
-<TR><TD CLASS="body">
-<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
-<TR HEIGHT="36">
-<TD><A HREF="http://www.cups.org/" TARGET="_blank"><IMG
-SRC="/images/left.gif" WIDTH="64" HEIGHT="36" BORDER="0" ALT=""></A></TD>
-<TD CLASS="unsel"><A HREF="/"> Home </A></TD>
-<TD CLASS="{SECTION=admin?:un}sel"><A HREF="/admin"> Administration </A></TD>
-<TD CLASS="{SECTION=classes?:un}sel"><A HREF="/classes/"> Classes </A></TD>
-<TD CLASS="{SECTION=help?:un}sel"><A HREF="/help/"> Online Help </A></TD>
-<TD CLASS="{SECTION=jobs?:un}sel"><A HREF="/jobs/"> Jobs </A></TD>
-<TD CLASS="{SECTION=printers?:un}sel"><A HREF="/printers/"> Printers </A></TD>
-<TD CLASS="unsel" WIDTH="100%"><FORM ACTION="/help/" METHOD="GET"><INPUT
-TYPE="SEARCH" NAME="QUERY" SIZE="20" PLACEHOLDER="Search Help"
-VALUE="{SECTION=help?{?QUERY}:}" AUTOSAVE="org.cups.help" RESULTS="20"></FORM></TD>
-<TD><IMG SRC="/images/right.gif" WIDTH="4" HEIGHT="36" ALT=""></TD>
-</TR>
-<TR><TD COLSPAN="9"> </TD></TR>
-</TABLE>
-<DIV ID="body">
+ }
+ --></SCRIPT>
+ <title>{title} - CUPS @CUPS_VERSION@@CUPS_REVISION@</title>
+ </head>
+ <body onload="check_cookies();">
+ <div class="header">
+ <ul>
+ <li><a href="http://www.cups.org/" target="_blank">cups.org</a></li>
+ <li><a href="/">Home</a></li>
+ <li><a {SECTION=admin?class="active" :}href="/admin">Administration</a></li>
+ <li><a {SECTION=classes?class="active" :}href="/classes/">Classes</a></li>
+ <li><a {SECTION=help?class="active" :}href="/help/">Help</a></li>
+ <li><a {SECTION=jobs?class="active" :}href="/jobs/">Jobs</a></li>
+ <li><a {SECTION=printers?class="active" :}href="/printers/">Printers</a></li>
+ </ul>
+ </div>
+ <div class="body">
+ <div class="row">
+ <h1>{title}</h1>
-<DIV CLASS="indent">
<FORM ACTION="/help/{?HELPFILE}" METHOD="GET">
{TOPIC?<INPUT TYPE="HIDDEN" NAME="TOPIC" VALUE="{TOPIC}">:}
{QTEXT?</UL>:}
:<P>No matches found.</P>}
<HR NOSHADE>:}
-{HELPTITLE?<H1>{HELPTITLE}</H1>
-<FORM ACTION="/help/{?HELPFILE}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="PRINTABLE" VALUE="YES"><INPUT TYPE="SUBMIT" VALUE="View Printable Version"></FORM>:
+{HELPTITLE?<FORM ACTION="/help/{?HELPFILE}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="PRINTABLE" VALUE="YES"><INPUT TYPE="SUBMIT" VALUE="View Printable Version"></FORM>:
<H1>Online Help</H1>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Cancel Job {job_id}</H2>
<P><A HREF="{job_printer_uri}">Job {job_id}</A> has been canceled.
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Hold Job {job_id}</H2>
<P><A HREF="{job_printer_uri}">Job {job_id}</A> has been held from printing.
-
-</DIV>
-<DIV CLASS="indent">
-
<FORM METHOD="POST" ACTION="/{SECTION}/{job_id?:{printer_name}}">
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
</TABLE>
</FORM>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">{job_id?Move Job {job_id}:Move All Jobs}</H2>
<P>{job_id?<A HREF="/jobs/{job_id}">Job {job_id}</A>:All jobs} moved to
<A HREF="/{is_class?classes:printers}/{job_printer_name}">{job_printer_name}</A>.</P>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Release Job {job_id}</H2>
<P><A HREF="{job_printer_uri}">Job {job_id}</A> has been released for printing.
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Reprint Job {job_id}</H2>
<P><A HREF="{job_printer_uri}">Job {job_id}</A> has been restarted.
-
-</DIV>
-<DIV CLASS="indent">{?which_jobs=?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Show Active Jobs"></FORM>}
+{?which_jobs=?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Show Active Jobs"></FORM>}
{?which_jobs=completed?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="which_jobs" VALUE="completed"><INPUT TYPE="SUBMIT" VALUE="Show Completed Jobs"></FORM>}
-{?which_jobs=all?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="which_jobs" VALUE="all"><INPUT TYPE="SUBMIT" VALUE="Show All Jobs"></FORM>}</DIV>
+{?which_jobs=all?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="which_jobs" VALUE="all"><INPUT TYPE="SUBMIT" VALUE="Show All Jobs"></FORM>}
<P ALIGN="CENTER">{total=0?No jobs:Showing {#job_id} of {total} {?which_jobs=?active:{which_jobs=all?:completed}} job{total=1?:s}}.</P>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Available Printers</H2>
{#device_uri=0?<P>No printers found.</P>
<LI><FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-printer"><INPUT TYPE="HIDDEN" NAME="TEMPLATE_NAME" VALUE="{template_name}"><INPUT TYPE="HIDDEN" NAME="PRINTER_LOCATION" VALUE="Local Printer"><INPUT TYPE="HIDDEN" NAME="PRINTER_INFO" VALUE="{device_make_and_model}"><INPUT TYPE="HIDDEN" NAME="DEVICE_URI" VALUE="{device_uri}"><INPUT TYPE="SUBMIT" VALUE="Add This Printer"></FORM>
{device_make_and_model} ({device_info})</LI>
}</UL>}
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Modify Class {printer_name}</H2>
<FORM METHOD="POST" ACTION="/admin">
</TABLE>
</FORM>
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">Modify {printer_name}</H2>
<FORM METHOD="POST" ACTION="/admin">
</TABLE>
</FORM>
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Change Settings</H2>
<P>The server was not restarted because no changes were made to
the configuration...</P>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Accept Jobs On {is_class?Class:Printer} {printer_name}</H2>
<P>{is_class?Class:Printer} <A
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
is now accepting jobs.</P>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Add Printer</H2>
<P>Printer <A HREF="/printers/{printer_name}">{printer_name}</A> has been added
successfully.
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Set Default Options for {printer_name}</H2>
<P>{OP=set-class-options?Class <A HREF="/classes/{printer_name}">:Printer <A HREF="/printers/{printer_name}">}{printer_name}</A>
default options have been set successfully.
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Delete Printer {printer_name}</H2>
<P><B>Warning:</B> Are you sure you want to delete printer
{printer_name}?</P>
<P ALIGN="CENTER"><FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="delete-printer"><INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}"><INPUT TYPE="SUBMIT" NAME="confirm" VALUE="Delete Printer"></FORM></P>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Set {is_class?Class:Printer} {printer_name} As Default</H2>
<P>{is_class?Class:Printer} <A
<BLOCKQUOTE><B>Note:</B> Any user default that has been set via
the <TT>lpoptions</TT> command will override this default
setting.</BLOCKQUOTE>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Delete Printer {printer_name}</H2>
<P>Printer {printer_name} has been deleted successfully.
-
-</DIV>
-<DIV CLASS="indent">
<H3 CLASS="title">Jobs</H3>
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Modify Printer {printer_name}</H2>
<P>Printer <A HREF="/printers/{printer_name}">{printer_name}</A> has been
modified successfully.
-
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">Purge Jobs On {is_class?Class:Printer} {printer_name}</H2>
<P>{is_class?Class:Printer} <A
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
has been purged of all jobs.</P>
-
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">Reject Jobs On {is_class?Class:Printer} {printer_name}</H2>
<P>{is_class?Class:Printer} <A
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
is no longer accepting jobs.</P>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Resume {is_class?Class:Printer} {printer_name}</H2>
<P>{is_class?Class:Printer} <A
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
has been resumed.</P>
-
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">Pause {is_class?Class:Printer} {printer_name}</H2>
<P>{is_class?Class:Printer} <A
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
has been paused.</P>
-
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title"><A HREF="{printer_uri_supported}">{printer_name}</A>
({printer_state=3?Idle:{printer_state=4?Processing:Paused}},
{printer_is_accepting_jobs=0?Rejecting Jobs:Accepting Jobs},
media={media_default?{media_default}:unknown}
{sides_default?sides={sides_default}:}</TD></TR>
</TABLE>
-
-</DIV>
\ No newline at end of file
-<DIV CLASS="indent">
-
<H2 CLASS="title">Change Settings</H2>
<P><IMG SRC="/images/wait.gif" WIDTH="16" HEIGHT="16" ALIGN="ABSMIDDLE"
ALT="Busy Indicator"> Please stand by while the server restarts...</P>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Set Default Options for {printer_name}</H2>
<FORM METHOD="POST" ACTION="/admin">
}
--></SCRIPT>
</FORM>
-
-</DIV>
-<DIV CLASS="indent">
-
<P>Subscription {subscription_name} has been added successfully.</P>
-
-</DIV>
-<DIV CLASS="indent">
-
<P>Subscription #{notify_subscription_id} has been canceled.</P>
-
-</DIV>
-<DIV CLASS="indent">
-
<H2 CLASS="title">Print Test Page On {printer_name}</H2>
<P>Test page sent; job ID is <A HREF="/{SECTION}/{printer_name}">
{printer_name}-{job_id}</A>.</P>
-
-</DIV>
-</DIV></TD></TR>
-<TR><TD> </TD></TR>
-<TR><TD CLASS="trailer">CUPS and the CUPS logo are trademarks of
-<A HREF="http://www.apple.com">Apple Inc.</A> Copyright 2007-2013 Apple
-Inc. All rights reserved.</TD></TR>
-</TABLE>
-</BODY>
-</HTML>
+ </div>
+ </div>
+ <div class="footer">CUPS and the CUPS logo are trademarks of <a href="http://www.apple.com">Apple Inc.</a> Copyright 2007-2013 Apple
+Inc. All rights reserved.</div>
+ </body>
+</html>
-<DIV CLASS="indent">
-
<FORM METHOD="POST" ACTION="/admin">
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{OP}">
</TABLE>
</FORM>
-</DIV>