b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/hs20/server/www/config.php |
| 2 | +++ b/hs20/server/www/config.php |
| 3 | @@ -1,7 +1,11 @@ |
| 4 | <?php |
| 5 | -$osu_root = "/home/user/hs20-server"; |
| 6 | +$osu_root = "/etc/hs20"; |
| 7 | $osu_db = "sqlite:$osu_root/AS/DB/eap_user.db"; |
| 8 | $t_c_file = "$osu_root/terms-and-conditions"; |
| 9 | -$t_c_timestamp = 123456789; |
| 10 | -$hostapd_ctrl = "udg:///home/user/hs20-server/AS/ctrl/as" |
| 11 | +if (file_exists($t_c_file)) { |
| 12 | + $t_c_timestamp = filemtime($t_c_file); |
| 13 | +} else { |
| 14 | + $t_c_timestamp = filemtime($osu_root); |
| 15 | +} |
| 16 | +$hostapd_ctrl = "udg:///var/run/hostapd/hs20-radius/lo" |
| 17 | ?> |