mirror of
https://github.com/Team-Resurgent/webMAN-MOD.git
synced 2026-08-15 11:18:26 -07:00
- Major changes in source code structure - Fixed various regressions - Fixed errors in help file (issue #633)
22 lines
693 B
C
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
|