mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Merge branch 'master' into feature/templates
This commit is contained in:
commit
f59faabf1d
12
README.md
12
README.md
@ -1,5 +1,5 @@
|
|||||||
![](https://i.imgur.com/xeKD93p.png)
|
![](https://i.imgur.com/xeKD93p.png)
|
||||||
# `$ raspap-webgui` [![Release 1.5](https://img.shields.io/badge/Release-1.5.1-green.svg)](https://github.com/billz/raspap-webgui/releases) [![Awesome](https://awesome.re/badge.svg)](https://github.com/thibmaek/awesome-raspberry-pi)
|
# `$ raspap-webgui` [![Release 1.6](https://img.shields.io/badge/Release-1.6-green.svg)](https://github.com/billz/raspap-webgui/releases) [![Awesome](https://awesome.re/badge.svg)](https://github.com/thibmaek/awesome-raspberry-pi)
|
||||||
|
|
||||||
A simple, responsive web interface to control wifi, hostapd and related services on the Raspberry Pi.
|
A simple, responsive web interface to control wifi, hostapd and related services on the Raspberry Pi.
|
||||||
|
|
||||||
@ -7,11 +7,11 @@ This project was inspired by a [**blog post**](http://sirlagz.net/2013/02/06/scr
|
|||||||
|
|
||||||
We'd be curious to hear about how you use this with your own RPi-powered projects. Until then, here are some screenshots:
|
We'd be curious to hear about how you use this with your own RPi-powered projects. Until then, here are some screenshots:
|
||||||
|
|
||||||
![](https://i.imgur.com/lQ57jVg.png)
|
![](https://i.imgur.com/xyAdop0.gif)
|
||||||
![](https://i.imgur.com/jFDMEy6.png)
|
![](https://i.imgur.com/T0vrSsA.gif)
|
||||||
![](https://i.imgur.com/ck0XS8P.png)
|
![](https://i.imgur.com/n7Ir2cS.gif)
|
||||||
![](https://i.imgur.com/Vaej8Xv.png)
|
![](https://i.imgur.com/JdsNr9L.gif)
|
||||||
![](https://i.imgur.com/iNuMMip.png)
|
![](https://i.imgur.com/cYFnTIl.gif)
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
- [Prerequisites](#prerequisites)
|
- [Prerequisites](#prerequisites)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('RASPI_VERSION', '1.5.1');
|
define('RASPI_VERSION', '1.6');
|
||||||
define('RASPI_CONFIG', '/etc/raspap');
|
define('RASPI_CONFIG', '/etc/raspap');
|
||||||
define('RASPI_CONFIG_NETWORKING', RASPI_CONFIG.'/networking');
|
define('RASPI_CONFIG_NETWORKING', RASPI_CONFIG.'/networking');
|
||||||
define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth');
|
define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth');
|
||||||
|
@ -16,6 +16,5 @@ function DisplayNetworkingConfig()
|
|||||||
foreach ($interfaces as $interface) {
|
foreach ($interfaces as $interface) {
|
||||||
exec("ip a show $interface", $$interface);
|
exec("ip a show $interface", $$interface);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo renderTemplate("networking", compact("status", "interfaces"));
|
echo renderTemplate("networking", compact("status", "interfaces"));
|
||||||
}
|
}
|
||||||
|
12
index.php
12
index.php
@ -4,16 +4,16 @@
|
|||||||
* Raspbian WiFi Configuration Portal
|
* Raspbian WiFi Configuration Portal
|
||||||
*
|
*
|
||||||
* Enables use of simple web interface rather than SSH to control wifi and hostapd on the Raspberry Pi.
|
* Enables use of simple web interface rather than SSH to control wifi and hostapd on the Raspberry Pi.
|
||||||
* Recommended distribution is Raspbian Server Edition. Specific instructions to install the supported software are
|
* Recommended distribution is Raspbian Buster Lite. Specific instructions to install the supported software are
|
||||||
* in the README and original post by @SirLagz. For a quick run through, the packages required for the WebGUI are:
|
* in the README and original post by @SirLagz. For a quick run through, the packages required for the WebGUI are:
|
||||||
* lighttpd (I have version 1.4.45 installed via apt)
|
* lighttpd (I have version 1.4.53 installed via apt)
|
||||||
* php7-cgi (I have version 7.0.33-0+deb9u3 installed via apt)
|
* php-cgi (I have version 7.1.20-1+b2 installed via apt)
|
||||||
* along with their supporting packages, php7 will also need to be enabled.
|
* along with their supporting packages, php7.1 will also need to be enabled.
|
||||||
*
|
*
|
||||||
* @author Lawrence Yau <sirlagz@gmail.com>
|
* @author Lawrence Yau <sirlagz@gmail.com>
|
||||||
* @author Bill Zimmerman <billzimmerman@gmail.com>
|
* @author Bill Zimmerman <billzimmerman@gmail.com>
|
||||||
* @license GNU General Public License, version 3 (GPL-3.0)
|
* @license GNU General Public License, version 3 (GPL-3.0)
|
||||||
* @version 1.5.1
|
* @version 1.6
|
||||||
* @link https://github.com/billz/raspap-webgui
|
* @link https://github.com/billz/raspap-webgui
|
||||||
* @see http://sirlagz.net/2013/02/08/raspap-webgui/
|
* @see http://sirlagz.net/2013/02/08/raspap-webgui/
|
||||||
*/
|
*/
|
||||||
@ -58,7 +58,7 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES);
|
|||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
|
|
||||||
<title><?php echo _("Raspbian WiFi Configuration Portal"); ?></title>
|
<title><?php echo _("RaspAP WiFi Configuration Portal"); ?></title>
|
||||||
|
|
||||||
<!-- Bootstrap Core CSS -->
|
<!-- Bootstrap Core CSS -->
|
||||||
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
/bin/sed -i 's|#DAEMON_OPTS=""|DAEMON_OPTS=" -f /tmp/hostapd.log"|' /etc/default/hostapd
|
/bin/sed -i 's|#DAEMON_OPTS=""|DAEMON_OPTS=" -f /tmp/hostapd.log"|' /etc/default/hostapd
|
||||||
|
touch /tmp/hostapd.log
|
||||||
|
chmod o+r /tmp/hostapd.log
|
||||||
|
Loading…
Reference in New Issue
Block a user