8 Star 27 Fork 0

Gitee 极速下载 / Webmin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/webmin/webmin
克隆/下载
web-lib.pl 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
Ilia Ross 提交于 2023-09-17 13:44 . Fix indent
@INC = &unique(@INC, ".");
%month_to_number_map = ( 'jan' => 0, 'feb' => 1, 'mar' => 2, 'apr' => 3,
'may' => 4, 'jun' => 5, 'jul' => 6, 'aug' => 7,
'sep' => 8, 'oct' => 9, 'nov' =>10, 'dec' =>11 );
%number_to_month_map = reverse(%month_to_number_map);
$main::default_debug_log_size = 10*1024*1024;
$webmin_feedback_address = "feedback\@webmin.com";
$default_lang = "en";
$default_charset = "UTF-8";
=head2 unique(string, ...)
Returns the unique elements of some array, passed as its parameters.
=cut
sub unique
{
my (%found, @rv);
foreach my $e (@_) {
if (!$found{$e}++) { push(@rv, $e); }
}
return @rv;
}
if (!$done_web_lib_funcs) {
my $script = -r '../web-lib-funcs.pl' ? '../web-lib-funcs.pl'
: 'web-lib-funcs.pl';
do $script;
}
# Has to be set after error is defined
$remote_error_handler ||= \&error;
$main::remote_error_handler ||= \&error;
# Die handler that stores the error from
# eval message in a global variable
$SIG{__DIE__} = sub {
# Don't meddle with the natural functioning of eval.
$main::error_last_eval = $_[0] if (!$^S);
};
1;
Perl
1
https://gitee.com/mirrors/webmin.git
git@gitee.com:mirrors/webmin.git
mirrors
webmin
Webmin
master

搜索帮助