⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 conf_print.cgi

📁 Unix下基于Web的管理工具
💻 CGI
字号:
#!/usr/local/bin/perl# conf_print.cgi# Display printing optionsrequire './samba-lib.pl';&header("Printing Options", "");print "<hr>\n";&get_share("global");print "<form action=save_print.cgi>\n";print "<table border width=100%>\n";print "<tr $tb> <td><b>Printing Options</b></td> </tr>\n";print "<tr $cb> <td><table width=100%>\n";print "<tr> <td><b>Unix print style</b></td>\n";print "<td><select name=printing>\n";printf "<option value=\"\" %s> Default\n",	&getval("printing") eq "" ? "selected" : "";foreach $s ("bsd", "sysv", "hpux", "aix", "qnx", "plp") {	printf "<option value=$s %s> %s\n",		&getval("printing") eq $s ? "selected" : "", uc($s);	}print "</select></td>\n";print "<td><b>Show all printers?</b></td>\n";printf "<td><input type=radio name=load_printers value=yes %s> Yes\n",	&istrue("load printers") ? "checked" : "";printf "<input type=radio name=load_printers value=no %s> No</td></tr>\n",	&istrue("load printers") ? "" : "checked";print "<tr> <td><b>Printcap file</b></td>\n";print "<td colspan=3>\n";printf "<input type=radio name=printcap_name_def value=1 %s> Default\n",	&getval("printcap name") eq "" ? "checked" : "";printf "&nbsp;&nbsp; <input type=radio name=printcap_name_def value=0 %s>\n",	&getval("printcap name") eq "" ? "" : "checked";printf "<input name=printcap_name size=25 value=\"%s\">\n",	&getval("printcap name");print &file_chooser_button("printcap_name", 0);print "</td> </tr>\n";print "<tr> <td><b>Printer status cache time</b></td>\n";print "<td colspan=3>\n";printf "<input type=radio name=lpq_cache_time_def value=1 %s> Default\n",	&getval("lpq cache time") == 0 ? "checked" : "";printf "&nbsp;&nbsp; <input type=radio name=lpq_cache_time_def value=0 %s>\n",	&getval("lpq cache time") == 0 ? "" : "checked";printf "<input name=lpq_cache_time size=5 value=\"%s\"> Secs</td> </tr>\n",	&getval("lpq cache time");print "</table></td></tr></table><p>\n";print "<input type=submit value=Save></form><p>\n";print "<hr>\n";&footer("", "share list");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -