pf::web::util - captive portal utilities
pf::web::util contains helper functions for the captive portal
It is possible to customize the behavior of this module by redefining its subs in pf::web::custom. See pf::web::custom for details.
Returns phone number in xxxyyyzzzz format if valid undef otherwise.
Return 1 if string provided is a valid credit card expiration date, 0 otherwise.
Return 1 if string provided is a valid credit card number, 0 otherwise.
Return 1 if string provided is a valid credit card verification number, 0 otherwise.
Returns 1 if string provided is a valid email address, 0 otherwise.
Return 1 if string provided is a valid name, 0 otherwise
Returns an hashref that holds time values. key => short time format (ex: 1h or 1d) value => translated long time format. ex: 1 hour (en) 1 heure (fr) or 1 day (en) 1 jour (fr)
Return memcached server list
get memcached object
get information stored in memcached
set information into memcached
get information stored in memcached
generate or retreive an apache session
retreive packetfence cookie
Inverse inc. <info@inverse.ca>
Copyright (C) 2005-2015 Inverse inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.