|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /usr/libexec/webmin/mysql/ |
Upload File : |
require './mysql-lib.pl';
sub show_charset
{
local ($value) = @_;
local $main::error_must_die = 1;
local @charsets;
eval { @charsets = &list_character_sets(); };
if (@charsets) {
@charsets = sort { $a->[1] cmp $b->[1] } @charsets;
return &ui_select("charset", $value,
[ [ "", "<$text{'default'}>" ], @charsets ]);
}
else {
return &ui_opt_textbox("charset", $value, 20, $text{'default'});
}
}
sub parse_charset
{
if ($in{'charset_def'}) {
return undef;
}
else {
$in{'charset'} =~ /^\S*$/ || &error($text{'config_echarset'});
return $in{'charset'};
}
}