* @author Bill Zimmerman * @license GNU General Public License, version 3 (GPL-3.0) * @version 1.2.1 * @link https://github.com/billz/raspap-webgui * @see http://sirlagz.net/2013/02/08/raspap-webgui/ */ define('RASPI_CONFIG', '/etc/raspap'); if(file_exists(RASPI_CONFIG.'/raspap.auth')) { define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth'); } else { define('RASPI_ADMIN_DETAILS',''); } // Constants for configuration file paths. // These are typical for default RPi installs. Modify if needed. define('RASPI_DNSMASQ_CONFIG', '/etc/dnsmasq.conf'); define('RASPI_DNSMASQ_LEASES', '/var/lib/misc/dnsmasq.leases'); define('RASPI_HOSTAPD_CONFIG', '/etc/hostapd/hostapd.conf'); 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'); define('RASPI_OPENVPN_CLIENT_CONFIG', '/etc/openvpn/client.conf'); define('RASPI_OPENVPN_SERVER_CONFIG', '/etc/openvpn/server.conf'); define('RASPI_TORPROXY_CONFIG', '/etc/tor/torrc'); // Optional services, set to true to enable. define('RASPI_OPENVPN_ENABLED', false ); define('RASPI_TORPROXY_ENABLED', false ); include_once( RASPI_CONFIG.'/raspap.php' ); include_once( 'includes/functions.php' ); include_once( 'includes/dashboard.php' ); include_once( 'includes/authenticate.php' ); include_once( 'includes/admin.php' ); include_once( 'includes/dhcp.php' ); include_once( 'includes/hostapd.php' ); include_once( 'includes/system.php' ); include_once( 'includes/configure_client.php' ); include_once( 'includes/themes.php' ); $output = $return = 0; $page = $_GET['page']; session_start(); if (empty($_SESSION['csrf_token'])) { if (function_exists('mcrypt_create_iv')) { $_SESSION['csrf_token'] = bin2hex(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM)); } else { $_SESSION['csrf_token'] = bin2hex(openssl_random_pseudo_bytes(32)); } } $csrf_token = $_SESSION['csrf_token']; if(!isset($_COOKIE['theme'])) { $theme_url = "dist/css/custom.css"; } else { $theme_url = $_COOKIE['theme']; } ?> Raspbian WiFi Configuration Portal

RaspAP