8 Star 27 Fork 0

Gitee 极速下载 / Webmin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/webmin/webmin
克隆/下载
switch_user.cgi 410 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jamie Cameron 提交于 2018-07-04 12:24 . Fix more use of .. in include path
#!/usr/local/bin/perl
# switch_user.cgi
# Force the webserver to re-authenticate
BEGIN { push(@INC, "."); };
use WebminCore;
&init_config();
&get_miniserv_config(\%miniserv);
$id = $$.time();
open(LOGOUT, ">$miniserv{'logout'}$id");
printf LOGOUT "%d\n",
$ENV{'HTTP_USER_AGENT'} =~ /(MSIE\s+[6321]\.)|(Netscape\/[4321])|(Lynx)|(Mozilla\/5.0)/ ? 1 : 2;
close(LOGOUT);
&redirect("/?miniserv_logout_id=$id");
Perl
1
https://gitee.com/mirrors/webmin.git
git@gitee.com:mirrors/webmin.git
mirrors
webmin
Webmin
master

搜索帮助