Files
aldostools cd40f3c761 webMAN MOD 1.47.38
- Major changes in source code structure
- Fixed various regressions
- Fixed errors in help file (issue #633)
2022-03-21 13:03:32 -04:00

22 lines
693 B
C

#ifdef SYS_ADMIN_MODE
if(islike(param, "/admin.ps3"))
{
// /admin.ps3? show status
// /admin.ps3?enable&pwd=<password> enable admin mode
// /admin.ps3?disable disable admin mode
// /admin.ps3?0 disable admin mode
if(param[10] == 0 || param[11] == 0) ; else // show status
if(~param[11] & 1) sys_admin = 0; else // set user mode
{
sys_admin = check_password(param); // set admin mode (if password is ok)
}
sprintf(param, "ADMIN %s", sys_admin ? STR_ENABLED : STR_DISABLED);
if(!mc) keep_alive = http_response(conn_s, header, param, CODE_RETURN_TO_ROOT, param);
goto exit_handleclient_www;
}
#endif