web.c File Reference


Detailed Description

The integrated web interface implementation of Netzer.

Software License
See the MBCSL for details.
Author:
Sven Schlender (kontakt at mobacon dot de)
Date:
2009-07-31


Functions

void WebOptionROM (BOOL Selected, BYTE Value, ROM BYTE *pString)
 Prints a formated HTML option field to the HTTP socket with content string from ROM.
void WebRadioROM (ROM BYTE *pName, DWORD Value, BOOL Selected, BYTE AccessLevel)
 Prints a formated HTML radio field to the HTTP socket with name string from ROM.
void WebCheckboxROM (ROM BYTE *pName, DWORD Value, BOOL Selected, BYTE AccessLevel)
 Prints a formated HTML checkbox to the HTTP socket with name string from ROM.
void WebCheckbox (BYTE *pName, DWORD Value, BOOL Selected, BYTE AccessLevel)
 Prints a formated HTML checkbox to the HTTP socket with name string from RAM.
BYTE HTTPNeedsAuth (BYTE *cFile)
 This function is called on the starting authentfication process, if any file is requested via HTTP.
void WebReportChangedState (StateTableIDs_t StringID, PageID_t DestinationPageID)
 Call this function during a HTTP POST session if the user should be forwarded to a message webpage (state.htm) showing a error or state change string.
BYTE WebGetAuthLevelOfCurrentPage (void)
 Each shown webpage has dedicated level of authorization which is stored in an internal structure with all the other webpage related data.
BYTE WebGetCurrentPageID (void)
 Returns the ID of the last loaded html page.
void AuthExecuteApplCommand (BYTE RawCommandFromWeb)
 Commands to application (like restart, shut down, reset to factory settings) are filtered through this function.


Function Documentation

void AuthExecuteApplCommand ( BYTE  RawCommandFromWeb  ) 

Commands to application (like restart, shut down, reset to factory settings) are filtered through this function.

Only a authenticated user with enough permissions can execute dedicated application commands.

Parameters:
RawCommandFromWeb The command as numeric value directly from a GET call (see webpage index.htm for expressions).


Generated on Fri Mar 29 10:34:28 2013 for Netzer by  doxygen 1.5.5