Since we are caught in somewhat of a pickle concerning captive portal local element manager, force users to include "captiveportal" somewhere in the filename so that Lighty mod rewrites can deterimine if the request is indeed local, etc.

This commit is contained in:
Scott Ullrich 2006-07-23 19:29:37 +00:00
parent c575e41241
commit 8e787bbfc5

View File

@ -591,7 +591,7 @@ function system_generate_lighty_config($filename,
if($captive_portal == true) {
$captiveportal = ",\"mod_rewrite\"";
$captive_portal_rewrite = "url.rewrite-once = ( \"(.*.[hH][tT][mM][lL]|.*.[hH][tT][mM]|.*.[Gg][iI][fF]|.*.[Pp][nN][Gg]|.*.[Jj][Pp][Gg])\" => \"$1\", \"(.*)\" => \"/index.php?redirurl=$1\" )";
$captive_portal_rewrite = "url.rewrite-once = ( \"(.*captiveportal.*)\" => \"$1\", \"(.*)\" => \"/index.php?redirurl=$1\" )";
}
if($port <> "")