]> git.ipfire.org Git - thirdparty/cups.git/blob - templates/he/edit-config.tmpl.in
Load cups into easysw/current.
[thirdparty/cups.git] / templates / he / edit-config.tmpl.in
1 <SCRIPT TYPE="text/javascript">
2 function 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" +
12 "\\n" +
13 "\\n" +
14 "# Only listen for connections from the local machine.\\n" +
15 "Listen 127.0.0.1:@DEFAULT_IPP_PORT@\\n" +
16 "@CUPS_LISTEN_DOMAINSOCKET@\\n" +
17 "\\n" +
18 "\\n" +
19 "# Show shared printers on the local network.\\n" +
20 "Browsing On\\n" +
21 "BrowseOrder allow,deny\\n" +
22 "BrowseAllow @LOCAL\\n" +
23 "\\n" +
24 "\\n" +
25 "# Authenticate against system accounts by default...\\n" +
26 "DefaultAuthType Basic\\n" +
27 "\\n" +
28 "# Restrict access to the server...\\n" +
29 "<Location />\\n" +
30 " Order allow,deny\\n" +
31 " Allow localhost\\n" +
32 "</Location>\\n" +
33 "\\n" +
34 "# Restrict access to the admin pages...\\n" +
35 "<Location /admin>\\n" +
36 "@ENCRYPTION_REQUIRED@\\n" +
37 " Order allow,deny\\n" +
38 " Allow localhost\\n" +
39 "</Location>\\n" +
40 "\\n" +
41 "# Restrict access to configuration files...\\n" +
42 "<Location /admin/conf>\\n" +
43 " AuthType Default\\n" +
44 " Require user @SYSTEM\\n" +
45 " Order allow,deny\\n" +
46 " Allow localhost\\n" +
47 "</Location>\\n" +
48 "\\n" +
49 "# Set the default printer/job policies...\\n" +
50 "<Policy default>\\n" +
51 " # Job-related operations must be done by the owner or an adminstrator...\\n" +
52 " <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" +
53 " Require user @OWNER @SYSTEM\\n" +
54 " Order deny,allow\\n" +
55 " </Limit>\\n" +
56 "\\n" +
57 " # All administration operations require an adminstrator to authenticate...\\n" +
58 " <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" +
59 " AuthType Default\\n" +
60 " Require user @SYSTEM\\n" +
61 " Order deny,allow\\n" +
62 " </Limit>\\n" +
63 "\\n" +
64 " # Only the owner or an administrator can cancel or authenticate a job...\\n" +
65 " <Limit Cancel-Job CUPS-Authenticate-Job>\\n" +
66 " Require user @OWNER @SYSTEM\\n" +
67 " Order deny,allow\\n" +
68 " </Limit>\\n" +
69 "\\n" +
70 " <Limit All>\\n" +
71 " Order deny,allow\\n" +
72 " </Limit>\\n" +
73 "</Policy>\\n";
74 }
75 </SCRIPT>
76
77 <H2 CLASS="title">קובץ הגדרות של השרת</H2>
78
79 <FORM NAME="cups" METHOD="POST" ACTION="/admin/">
80
81 <INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
82
83 <TEXTAREA NAME="CUPSDCONF" COLS="80" ROWS="25" dir=ltr>{CUPSDCONF}</TEXTAREA>
84
85 <P><INPUT TYPE="IMAGE" SRC="/images/button-save-changes.gif"
86 ALT="שמור שינויים"> <A
87 HREF="javascript:reset_config();"><IMG
88 SRC="/images/button-use-default-config.gif" CLASS="button"
89 ALT="השתמש בקובץ הגדרות התחלתי"></A></P>
90
91 </FORM>