Revision 470d24a3
Added by Darren Embry over 13 years ago
usr/local/www/services_captiveportal.php | ||
---|---|---|
896 | 896 |
<?=$mandfldhtml;?><input type="file" name="htmlfile" class="formfld file" id="htmlfile"><br> |
897 | 897 |
<?php |
898 | 898 |
list($host) = explode(":", $_SERVER['HTTP_HOST']); |
899 |
if($pconfig['zoneid']) { |
|
900 |
$href = "https://{$host}:{$pconfig['zoneid']}"; |
|
899 |
$zoneid = $pconfig['zoneid'] ? $pconfig['zoneid'] : 8000; |
|
900 |
if (isset($pconfig['httpslogin'])) { |
|
901 |
$port = $pconfig['listenporthttps'] ? $pconfig['listenporthttps'] : ($zoneid + 1); |
|
902 |
$href = "https://{$host}:{$port}"; |
|
901 | 903 |
} else { |
902 |
$href = "http://{$host}:8000"; |
|
904 |
$port = $pconfig['listenporthttp'] ? $pconfig['listenporthttp'] : $zoneid; |
|
905 |
$href = "http://{$host}:{$port}"; |
|
903 | 906 |
} |
904 | 907 |
?> |
905 | 908 |
<?php if ($pconfig['page']['htmltext']): ?> |
Also available in: Unified diff
implement #2407: create config option for captive portal listening port