<<

NAME

pf::web::util - captive portal utilities

DESCRIPTION

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.

SUBROUTINES

validate_phone_number

Returns phone number in xxxyyyzzzz format if valid undef otherwise.

is_creditcardexpiration_valid

Return 1 if string provided is a valid credit card expiration date, 0 otherwise.

is_credidcardnumber_valid

Return 1 if string provided is a valid credit card number, 0 otherwise.

is_creditcardverification_valid

Return 1 if string provided is a valid credit card verification number, 0 otherwise.

is_email_valid

Returns 1 if string provided is a valid email address, 0 otherwise.

is_name_valid

Return 1 if string provided is a valid name, 0 otherwise

get_translated_time_hash

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)

get_memcached_conf

Return memcached server list

get_memcached_connection

get memcached object

get_memcached

get information stored in memcached

set_memcached

set information into memcached

get information stored in memcached

generate or retreive an apache session

retreive packetfence cookie

AUTHOR

Inverse inc. <info@inverse.ca>

COPYRIGHT

Copyright (C) 2005-2015 Inverse inc.

LICENSE

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.

<<