Revision 192d8931
Added by Ermal LUÇI over 12 years ago
etc/inc/system.inc | ||
---|---|---|
740 | 740 |
$captiveportal = ",\"mod_rewrite\""; |
741 | 741 |
$captive_portal_rewrite = "url.rewrite-once = ( \"(.*captiveportal.*)\" => \"$1\", \"(.*)\" => \"/index.php?redirurl=$1\" )\n"; |
742 | 742 |
$maxprocperip = $config['captiveportal']['maxprocperip']; |
743 |
if($maxprocperip and $maxprocperip > 0)
|
|
743 |
if ($maxprocperip and $maxprocperip > 0) {
|
|
744 | 744 |
$captive_portal_mod_evasive = "evasive.max-conns-per-ip = {$maxprocperip}"; |
745 |
else |
|
745 |
$captiveportal .= ",\"mod_evasive\""; |
|
746 |
} else |
|
746 | 747 |
$captive_portal_mod_evasive = ""; |
747 | 748 |
$server_upload_dirs = "server.upload-dirs = ( \"{$g['tmp_path']}/captiveportal/\" )\n"; |
748 | 749 |
exec("mkdir -p {$g['tmp_path']}/captiveportal"); |
Also available in: Unified diff
Enable mod_evasive if needed for CP