2017-10-29 04:31:51 +00:00
|
|
|
<?php
|
|
|
|
|
2020-03-29 20:49:35 +00:00
|
|
|
define('RASPI_VERSION', '2.3.1');
|
2017-10-29 04:31:51 +00:00
|
|
|
define('RASPI_CONFIG', '/etc/raspap');
|
2019-04-10 08:37:35 +00:00
|
|
|
define('RASPI_CONFIG_NETWORKING', RASPI_CONFIG.'/networking');
|
2017-10-29 04:31:51 +00:00
|
|
|
define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth');
|
2017-12-07 19:14:20 +00:00
|
|
|
define('RASPI_WIFI_CLIENT_INTERFACE', 'wlan0');
|
2019-08-08 00:10:40 +00:00
|
|
|
define('RASPI_CACHE_PATH', sys_get_temp_dir() . '/raspap');
|
2017-10-29 04:31:51 +00:00
|
|
|
|
|
|
|
// Constants for configuration file paths.
|
|
|
|
// These are typical for default RPi installs. Modify if needed.
|
2020-03-20 17:43:46 +00:00
|
|
|
define('RASPI_DNSMASQ_CONFIG', '/etc/dnsmasq.d/090_raspap.conf');
|
2017-10-29 04:31:51 +00:00
|
|
|
define('RASPI_DNSMASQ_LEASES', '/var/lib/misc/dnsmasq.leases');
|
2020-03-27 14:32:27 +00:00
|
|
|
define('RASPI_ADBLOCK_LISTPATH', '/etc/raspap/adblock/');
|
|
|
|
define('RASPI_ADBLOCK_CONFIG', '/etc/dnsmasq.d/090_adblock.conf');
|
2017-10-29 04:31:51 +00:00
|
|
|
define('RASPI_HOSTAPD_CONFIG', '/etc/hostapd/hostapd.conf');
|
2019-03-11 23:44:18 +00:00
|
|
|
define('RASPI_DHCPCD_CONFIG', '/etc/dhcpcd.conf');
|
2017-10-29 04:31:51 +00:00
|
|
|
define('RASPI_WPA_SUPPLICANT_CONFIG', '/etc/wpa_supplicant/wpa_supplicant.conf');
|
|
|
|
define('RASPI_HOSTAPD_CTRL_INTERFACE', '/var/run/hostapd');
|
|
|
|
define('RASPI_WPA_CTRL_INTERFACE', '/var/run/wpa_supplicant');
|
2019-11-17 18:45:57 +00:00
|
|
|
define('RASPI_OPENVPN_CLIENT_CONFIG', '/etc/openvpn/client/client.conf');
|
|
|
|
define('RASPI_OPENVPN_CLIENT_LOGIN', '/etc/openvpn/client/login.conf');
|
|
|
|
define('RASPI_OPENVPN_SERVER_CONFIG', '/etc/openvpn/server/server.conf');
|
2017-10-29 04:31:51 +00:00
|
|
|
define('RASPI_TORPROXY_CONFIG', '/etc/tor/torrc');
|
2019-11-10 22:50:48 +00:00
|
|
|
define('RASPI_LIGHTTPD_CONFIG', '/etc/lighttpd/lighttpd.conf');
|
2017-10-29 04:31:51 +00:00
|
|
|
|
2020-01-01 19:12:04 +00:00
|
|
|
// Constant for the 5GHz wireless regulatory domain
|
2019-12-31 19:09:26 +00:00
|
|
|
define('RASPI_5GHZ_ISO_ALPHA2', array('US'));
|
|
|
|
|
2017-10-29 04:31:51 +00:00
|
|
|
// Optional services, set to true to enable.
|
2019-04-10 08:37:35 +00:00
|
|
|
define('RASPI_WIFICLIENT_ENABLED', true);
|
|
|
|
define('RASPI_HOTSPOT_ENABLED', true);
|
|
|
|
define('RASPI_NETWORK_ENABLED', true);
|
|
|
|
define('RASPI_DHCP_ENABLED', true);
|
2020-03-31 21:54:46 +00:00
|
|
|
define('RASPI_ADBLOCK_ENABLED', false);
|
2019-04-10 08:37:35 +00:00
|
|
|
define('RASPI_OPENVPN_ENABLED', false);
|
|
|
|
define('RASPI_TORPROXY_ENABLED', false);
|
|
|
|
define('RASPI_CONFAUTH_ENABLED', true);
|
|
|
|
define('RASPI_CHANGETHEME_ENABLED', true);
|
|
|
|
define('RASPI_VNSTAT_ENABLED', true);
|
2019-11-08 08:20:47 +00:00
|
|
|
define('RASPI_SYSTEM_ENABLED', true);
|
2019-09-07 08:53:37 +00:00
|
|
|
define('RASPI_MONITOR_ENABLED', false);
|
2017-10-29 04:31:51 +00:00
|
|
|
|
2018-05-27 08:45:34 +00:00
|
|
|
// Locale settings
|
|
|
|
define('LOCALE_ROOT', 'locale');
|
2019-04-10 08:37:35 +00:00
|
|
|
define('LOCALE_DOMAIN', 'messages');
|