MSM7xx Controllers Configuration Guide v6.4.0

ConditionalDisplay(condition, state )
This function is used to dynamically control execution of a block of code based on the value
of a logical expression. An effective use for this function is to control blocks of display code,
for certain features for example, that need to be turned on/off depending on user selections.
Parameters
Condition: A logical embedded Javascript expression. If the expression is true, all
content between the Begin and End function calls is executed.
State: Indicates if this function marks the beginning or end of the block of code.
Begin: Marks the beginning of the code block.
End: Marks the end of the code block.
Example
<% ConditionalDisplay(client_state == 1, "begin"); %>
<p> Welcome to the wireless network.</p>
<% ConditionalDisplay(client_state == 1, "end"); %>
GetUserName()
Returns the username for the current user.
GetAuthenticationErrorMessage()
Reserved for use by fail.asp to display error messages for certain specific conditions. Do
not use this function on other pages. Instead, use LoadFormFieldError() or
GetSessionVar with the variable last_login_error.
IncludeAsp(filename)
Pauses ASP processing in the current file and continue with the specified ASP filename.
Example
IncludeAsp("file.asp");
SetSessionRefreshInterval(sec)
Specifies the refresh interval for the session page in seconds.
write(string)
Writes the specified string to the browser.
Example
write("<p>You are connected.</p>");
LoadAccessInformation()
This function initializes a set of variables that provide information on the site access options
configured on the Controller >> Public access > Web content page.
ASP variables
access_free: Set to 1 if the Free Access option is enabled.
access_purchase: Set to 1 if the Allow creation of user accounts option is
enabled.
Example
LoadAccessInformation();
if (access_free) {
<p>Welcome to your free trial of the new high-speed wireless network service.</p>
}
LoadPaymentInformation()
This function initializes a set of variables that provide information on the current payment
services configured on the Controller >> Public access > Payment services page.
Public access interface ASP functions and variables 503