Schema download page

This commit is contained in:
Jamie Cameron
2010-09-17 16:15:45 -07:00
parent cf2aeec328
commit 25fc52767b
5 changed files with 29 additions and 2 deletions

17
acl/schema.cgi Executable file
View File

@ -0,0 +1,17 @@
#!/usr/local/bin/perl
# Just display the Webmin LDAP schema
require './acl-lib.pl';
$access{'pass'} || &error($text{'sql_ecannot'});
&ui_print_unbuffered_header(undef, $text{'schema_title'}, "");
print $text{'schema_desc'},"<p>\n";
print &ui_table_start(undef, undef, 2);
print &ui_table_row(undef,
"<pre>".&html_escape(&read_file_contents("webmin.schema"))."</pre>", 2);
print &ui_table_end();
print &text('schema_download', 'webmin.schema'),"<p>\n";
&ui_print_footer("", $text{'index_return'});