mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Updating index to create new menu, custom.js with new code, moved config parameters from index.php to its own file
This commit is contained in:
parent
d42e265365
commit
6e786e41c2
23
includes/config.php
Normal file
23
includes/config.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
define('RASPI_CONFIG', '/etc/raspap');
|
||||||
|
define('RASPI_CONFIG_NETWORKING',RASPI_CONFIG.'/networking');
|
||||||
|
define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth');
|
||||||
|
|
||||||
|
// 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 );
|
||||||
|
|
||||||
|
?>
|
@ -121,9 +121,14 @@ $theme_url = 'dist/css/' . $theme;
|
|||||||
<li>
|
<li>
|
||||||
<a href="index.php?page=hostapd_conf"><i class="fa fa-dot-circle-o fa-fw"></i> Configure Hotspot</a>
|
<a href="index.php?page=hostapd_conf"><i class="fa fa-dot-circle-o fa-fw"></i> Configure Hotspot</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="dropdown">
|
||||||
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Networking <span class="caret"></span></a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
<li>
|
<li>
|
||||||
<a href="index.php?page=network_conf"><i class="fa fa-sitemap fa-fw"></i> Configure Networking</a>
|
<a href="index.php?page=network_conf"><i class="fa fa-sitemap fa-fw"></i> Configure Networking</a>
|
||||||
</li>
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="index.php?page=dhcpd_conf"><i class="fa fa-exchange fa-fw"></i> Configure DHCP Server</a>
|
<a href="index.php?page=dhcpd_conf"><i class="fa fa-exchange fa-fw"></i> Configure DHCP Server</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -49,7 +49,7 @@ function loadCurrentSettings(strInterface) {
|
|||||||
//console.log(i2+":"+v2);
|
//console.log(i2+":"+v2);
|
||||||
switch(i2) {
|
switch(i2) {
|
||||||
case "static":
|
case "static":
|
||||||
if(v2 == 1) {
|
if(v2 == 'true') {
|
||||||
$('#'+int+'-static').click();
|
$('#'+int+'-static').click();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user