Description
Get the username who sent this HTTP request. (no privilege required)
Grammar
/GetMyself.cgi[?ShowPrivilege=<true|false>][&JsVar=variable[&OnJs=function]]
Remark
IP Camera can work in authrozation mode or non-authrozation mode (SetUserCheck.cgi). In non-authrozation mode, everyone is supposed as administrator and "administrator" is returned by "GetMyself.cgi".
If "ShowPrivilege=true", GetMyselft.cgi returns:
0 - super user;
1 - common user.
Example
<html>
<script>
function ShowResult(o)
{
alert(sMyName);
}
</script>
<script src="/GetMyself.cgi?JsVar=sMyName&OnJs=ShowResult">
</script>
</html>