382
| Reference
Amigopod 3.7
| Deployment Guide
NwaParseXml
NwaParseXml($xml_text)
Parses a string as an XML document and returns the corresponding document structure as an associative
array. Returns an array containing the following elements:
error
– set if there was a problem parsing the XML
message
– describes the parse error
Otherwise, the return is an array with these elements:
name
– name of the document element
attributes
– attributes of the document element
children
– array containing any child elements
content
– element content text
NwaPasswordByComplexity
NwaPasswordByComplexity($len, $mode = false)
Generates a random password of at least
$len
characters in length, based on one of the standard
complexity requirements specified in
$mode
. If
$mode
is false or the empty string, the default password
complexity is taken from the Guest Manager plugin configuration.
Otherwise, $mode should be one of the following values:
none
– No password complexity requirement
case
– At least one uppercase and one lowercase letter
number
– At least one digit
punctuation
– At least one symbol
complex
– At least one of each: uppercase letter, lowercase letter, digit, and symbol
NwaSmsIsValidPhoneNumber
NwaSmsIsValidPhoneNumber($phone_number)
Validates a phone number supplied in E.164 international dialing format, including country code.
Any spaces and non-alphanumeric characters are removed.
If the first character is a plus sign (+), the phone number is assumed to be in E.164 format already and
the plus sign is removed; otherwise, if the SMS service handler national prefix is set and the phone
number starts with that prefix, then the prefix is replaced with the country code.
The phone number must contain no fewer than 5 and no more than 15 digits.
The phone number is validated for a valid country code prefix.
If all the foregoing conditions are met, the validator returns TRUE; otherwise, the validator returns
FALSE.
NwaStrongPassword
NwaStrongPassword($len)
Generate strong passwords of
$len
characters in length.
A strong password may contain uppercase letters, lowercase letters, digits and certain symbols. The strong
password does not contain commonly-confused characters such as “O” and “0” (capital O and zero), “I” and
“l” (capital I and lowercase L), “2” and “Z” (two and capital Z), or “8” and “B” (eight and capital B).
Summary of Contents for Amigopod 3.7
Page 1: ...Amigopod 3 7 Deployment Guide...
Page 14: ...14 Amigopod 3 7 Deployment Guide...
Page 30: ...30 Management Overview Amigopod 3 7 Deployment Guide...
Page 108: ...108 RADIUS Services Amigopod 3 7 Deployment Guide...
Page 132: ...132 Operator Logins Amigopod 3 7 Deployment Guide...
Page 240: ...240 Guest Management Amigopod 3 7 Deployment Guide...
Page 332: ...332 Administrator Tasks Amigopod 3 7 Deployment Guide...
Page 336: ...336 Administrator Tasks Amigopod 3 7 Deployment Guide...
Page 345: ...Amigopod 3 7 Deployment Guide Hotspot Manager 345...
Page 362: ...362 High Availability Services Amigopod 3 7 Deployment Guide...