raspap-webgui-mirror/includes/defaults.php

59 lines
2 KiB
PHP
Raw Normal View History

<?php
if (!defined('RASPI_CONFIG')) {
2020-02-15 17:57:46 +00:00
define('RASPI_CONFIG', '/etc/raspap');
}
$defaults = [
2020-05-27 08:40:44 +00:00
'RASPI_VERSION' => '2.4.1',
'RASPI_CONFIG_NETWORKING' => RASPI_CONFIG.'/networking',
'RASPI_ADMIN_DETAILS' => RASPI_CONFIG.'/raspap.auth',
2020-06-09 14:34:19 +00:00
'RASPI_WIFI_AP_INTERFACE' => 'wlan0',
'RASPI_CACHE_PATH' => sys_get_temp_dir() . '/raspap',
// Constants for configuration file paths.
// These are typical for default RPi installs. Modify if needed.
2020-03-27 22:36:43 +00:00
'RASPI_DNSMASQ_CONFIG' => '/etc/dnsmasq.d/090_raspap.conf',
'RASPI_DNSMASQ_LEASES' => '/var/lib/misc/dnsmasq.leases',
2020-03-27 14:32:27 +00:00
'RASPI_ADBLOCK_LISTPATH' => '/etc/raspap/adblock/',
'RASPI_ADBLOCK_CONFIG' => '/etc/dnsmasq.d/090_adblock.conf',
'RASPI_HOSTAPD_CONFIG' => '/etc/hostapd/hostapd.conf',
'RASPI_DHCPCD_CONFIG' => '/etc/dhcpcd.conf',
'RASPI_WPA_SUPPLICANT_CONFIG' => '/etc/wpa_supplicant/wpa_supplicant.conf',
'RASPI_HOSTAPD_CTRL_INTERFACE' => '/var/run/hostapd',
'RASPI_WPA_CTRL_INTERFACE' => '/var/run/wpa_supplicant',
2019-11-17 18:22:55 +00:00
'RASPI_OPENVPN_CLIENT_CONFIG' => '/etc/openvpn/client/client.conf',
'RASPI_OPENVPN_CLIENT_LOGIN' => '/etc/openvpn/client/login.conf',
'RASPI_OPENVPN_SERVER_CONFIG' => '/etc/openvpn/server/server.conf',
'RASPI_TORPROXY_CONFIG' => '/etc/tor/torrc',
2019-11-10 22:09:16 +00:00
'RASPI_LIGHTTPD_CONFIG' => '/etc/lighttpd/lighttpd.conf',
2020-06-28 16:08:29 +00:00
'RASPI_ACCESS_CHECK_IP' => '1.1.1.1',
'RASPI_ACCESS_CHECK_DNS' => 'one.one.one.one',
// Optional services, set to true to enable.
'RASPI_WIFICLIENT_ENABLED' => true,
'RASPI_HOTSPOT_ENABLED' => true,
'RASPI_NETWORK_ENABLED' => true,
'RASPI_DHCP_ENABLED' => true,
2020-03-31 21:54:46 +00:00
'RASPI_ADBLOCK_ENABLED' => false,
'RASPI_OPENVPN_ENABLED' => false,
'RASPI_TORPROXY_ENABLED' => false,
'RASPI_CONFAUTH_ENABLED' => true,
'RASPI_CHANGETHEME_ENABLED' => true,
'RASPI_VNSTAT_ENABLED' => true,
'RASPI_SYSTEM_ENABLED' => true,
'RASPI_MONITOR_ENABLED' => false,
// Locale settings
'LOCALE_ROOT' => 'locale',
'LOCALE_DOMAIN' => 'messages'
];
foreach ($defaults as $setting => $value) {
2020-02-15 17:57:46 +00:00
if (!defined($setting)) {
define($setting, $value);
}
}
unset($defaults);