]> git.ipfire.org Git - thirdparty/cups.git/blame - templates/et/edit-config.tmpl.in
Load cups into easysw/current.
[thirdparty/cups.git] / templates / et / edit-config.tmpl.in
CommitLineData
2abf387c 1<SCRIPT TYPE="text/javascript">
2function reset_config()
3{
4 document.cups.CUPSDCONF.value =
5"# Log general information in error_log - change \\"info\\" to \\"debug\\" for\\n" +
6"# troubleshooting...\\n" +
7"LogLevel info\\n" +
8"\\n" +
9"\\n" +
10"# Administrator user group...\\n" +
11"SystemGroup @CUPS_SYSTEM_GROUPS@\\n" +
f7deaa1a 12"@CUPS_SYSTEM_AUTHKEY@\\n" +
2abf387c 13"\\n" +
14"\\n" +
15"# Only listen for connections from the local machine.\\n" +
16"Listen 127.0.0.1:@DEFAULT_IPP_PORT@\\n" +
17"@CUPS_LISTEN_DOMAINSOCKET@\\n" +
18"\\n" +
19"\\n" +
20"# Show shared printers on the local network.\\n" +
21"Browsing On\\n" +
22"BrowseOrder allow,deny\\n" +
f7deaa1a 23"BrowseAllow all\\n" +
2abf387c 24"\\n" +
25"\\n" +
26"# Authenticate against system accounts by default...\\n" +
27"DefaultAuthType Basic\\n" +
28"\\n" +
29"# Restrict access to the server...\\n" +
30"<Location />\\n" +
31" Order allow,deny\\n" +
32" Allow localhost\\n" +
33"</Location>\\n" +
34"\\n" +
35"# Restrict access to the admin pages...\\n" +
36"<Location /admin>\\n" +
37"@ENCRYPTION_REQUIRED@\\n" +
38" Order allow,deny\\n" +
39" Allow localhost\\n" +
40"</Location>\\n" +
41"\\n" +
42"# Restrict access to configuration files...\\n" +
43"<Location /admin/conf>\\n" +
44" AuthType Basic\\n" +
45" Require user @SYSTEM\\n" +
46" Order allow,deny\\n" +
47" Allow localhost\\n" +
48"</Location>\\n" +
49"\\n" +
50"# Set the default printer/job policies...\\n" +
51"<Policy default>\\n" +
52" # Job-related operations must be done by the owner or an adminstrator...\\n" +
53" <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>\\n" +
54" Require user @OWNER @SYSTEM\\n" +
55" Order deny,allow\\n" +
56" </Limit>\\n" +
57"\\n" +
58" # All administration operations require an adminstrator to authenticate...\\n" +
59" <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>\\n" +
60" AuthType Basic\\n" +
61" Require user @SYSTEM\\n" +
62" Order deny,allow\\n" +
63" </Limit>\\n" +
64"\\n" +
65" # Only the owner or an administrator can cancel or authenticate a job...\\n" +
66" <Limit Cancel-Job CUPS-Authenticate-Job>\\n" +
67" Require user @OWNER @SYSTEM\\n" +
68" Order deny,allow\\n" +
69" </Limit>\\n" +
70"\\n" +
71" <Limit All>\\n" +
72" Order deny,allow\\n" +
73" </Limit>\\n" +
74"</Policy>\\n";
75}
76</SCRIPT>
77
78<H2 CLASS="title">Serveri seadistustefail</H2>
79
80<FORM NAME="cups" METHOD="POST" ACTION="/admin/">
81
82<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
83
84<TEXTAREA NAME="CUPSDCONF" COLS="80" ROWS="25">{CUPSDCONF}</TEXTAREA>
85
86<P><INPUT TYPE="IMAGE" SRC="/images/button-save-changes.gif"
87ALT="Salvesta muudatused"> <A
88HREF="javascript:reset_config();"><IMG
89SRC="/images/button-use-default-config.gif" CLASS="button"
90ALT="Kasuta vaikimisi seadistustefaili"></A></P>
91
92</FORM>