forked from virtualmin/virtualmin-multi-login
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.cgi
More file actions
executable file
·31 lines (25 loc) · 808 Bytes
/
Copy pathindex.cgi
File metadata and controls
executable file
·31 lines (25 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/local/bin/perl
# Just show a login form. In practice, this page is probably never used..
use strict;
use warnings;
our (%text, %in, %config);
require './virtualmin-multi-login-lib.pl';
&popup_header($text{'index_title'});
&ReadParse();
print "<center>\n";
if ($in{'err'}) {
print "<b><font color=#ff0000>",
&html_escape($in{'err'}),"</font></b><p>\n";
}
print &ui_form_start("login.cgi", "post", $config{'target'});
print &ui_table_start($text{'index_header'}, undef, 2);
# Username or domain
print &ui_table_row($text{'index_user'},
&ui_textbox("user", $in{'user'}, 40));
# Password
print &ui_table_row($text{'index_pass'},
&ui_password("pass", undef, 40));
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'index_ok'} ] ]);
print "</center>\n";
&popup_footer();