HP (Hewlett-Packard) 700wl Series Switch User Manual


 
@set(“variable”, “value”) Sets the value of a run-time variable.
For example, to set the variable “month” to the month a client’s rights expire, you
would use:
@set("month", @xlate_month("Jan", "Feb", "Mar", "Apr",
"May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
@month(@client_expire())))
Variables are global.
@get(“variable”) Returns the value of a variable. For example:
expire (e.g., @get(“expire”)—Returns the client's reauthentication time, in
seconds. If there is no reauthentication time specified, it returns a negative
number.
my_mac (e.g., @get("my_mac")—Returns the client's MAC address
pwinput (e.g., @get(“pwinput”)Returns the string that was typed in the
password input field
logo (e.g., @get(“logo”)—Returns the path to the default (HP ProCurve)
logo or the logo uploaded in the Logo field under the Settings tab of the New or
Edit Logon Customization page.
@gt("param1", "param2") Returns true if Param1 is greater than Param2.
@if()
Conditional execution depends on the truth value of the argument to @if().
@elif()
Zero or more @elif()’s may be followed by zero or one @else().
@else()
@endif() @endif() is always required.
@equal("arg1", "arg2") Returns 1 if the arguments are identical, 0 otherwise.
@lt("arg1", "arg2") Returns 1 if arg1 is less than arg2, 0 otherwise.
@gt("arg1", "arg2") Returns 1 if arg1 is greater than arg2, 0 otherwise.
@le("arg1", "arg2") Returns 1 if arg1 is greater than arg2, 0 otherwise.
@ge("arg1", "arg2") Returns 1 if arg1 is greater than arg2, 0 otherwise.
@not("arg") Returns 0 if arg is an integer whose value is non-zero, 1 otherwise.
Logon Page Template – A More Advanced Example
Example 2 shows a more complete Logon page template. This template displays an image at the top of
the page, formats the page output using tables, and also retrieves and displays the Expire Time for a
logged on user who’s rights have a relative or fixed expiration. It provides three standard buttons, the
Logon User, Logon as a Guest and Logoff buttons.
Example 2
<!-- This template includes an image, displays fields in a table -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>HP ProCurve 700wl Series Logon Page</title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
HP ProCurve Secure Access 700wl Series Management and Configuration Guide C-7