pf::web::constants - Constants for the captive portal
This file is splitted by packages and refering to the constant requires you to specify the package.
Return all the WEB constants in an hash. This is to ease consumption by Template Toolkit.
See conf/httpd.conf.d/captive-portal-cleanurls.conf to see to which CGI they map.
URI => filesystem component
Filesystem portion is prefixed by $install_dir before installing into Apache config.
Build a regex that will decide what is considered a local ressource (allowed to Apache's further processing).
URL ending with / will only be anchored at the beginning (^/path/) otherwise an ending anchor is also installed (^/file$).
Anything else should be redirected. This happens in pf::web::dispatcher.
Build a regex that will decide what is considered as a mod_perl ressource (allowed to Apache's further processing).
URL ending with / will only be anchored at the beginning (^/path/) otherwise an ending anchor is also installed (^/file$).
Anything else should be redirected. This happens in pf::web::dispatcher.
Supported locales must be generated on the server and also have their binary catalog (.mo) under /usr/local/pf/conf/locale/. Notice that a PacketFence translation generated for a two-letter language code (ex: fr) will be used for any locale matching the language code (ex: fr_FR and fr_CA).
Build a regex that will decide what is considered a local ressource (allowed to Apache's further processing).
URL ending with / will only be anchored at the beginning (^/path/) otherwise an ending anchor is also installed (^/file$).
Anything else should be redirected. This happens in pf::web::dispatcher.
Build a regex that will decide what is considered as a external portal var parameter.
This parameter should be something that contain the mac or ip address of the switch.
Build a regex that will decide what is considered as a external portal URL.
This URL should point to a module in pf::Switch that can extract the mac or ip of the switch from the URL.
Return a regex that would match all the captive portal allowed clean URLs
Return a regex that would match all the captive portal allowed clean URLs
Return a regex that would match all the portal profile uri: filter
Return a regex that would match all the captive portal allowed clean URLs
Return a regex that would match all the captive portal allowed clean URLs
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.