From 77316709e1012ea9d3c5b3756fcd03ca2e13f06a Mon Sep 17 00:00:00 2001 From: Lawrence Date: Mon, 23 Oct 2017 00:26:49 +0800 Subject: [PATCH] Creating networking interface to change between Static / Dynamic IPs --- includes/networking.php | 118 ++++++++++++++++++++++++++++++++++++++++ index.php | 15 +++-- 2 files changed, 129 insertions(+), 4 deletions(-) create mode 100755 includes/networking.php diff --git a/includes/networking.php b/includes/networking.php new file mode 100755 index 00000000..57b46d58 --- /dev/null +++ b/includes/networking.php @@ -0,0 +1,118 @@ + + + +
+
+
+
+ Configure Networking +
+
+ +
+
+ Current Settings:
+ +
+
+
'.$interface.'
+
+ '; + foreach(${$interface} as $line) { + echo $line.'
'; + } + echo ' +
+
+
+
'; + } + ?> +
+ +
+
+
+
+

Adapter IP Address Settings:

+
+ + +
+

Enable Fallback to Static Option:

+
+ + +
+
+
+

Static IP Options

+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
'; + } + ?> +
+
+
+ + + + + + diff --git a/index.php b/index.php index d5cb80bd..b7a400da 100755 --- a/index.php +++ b/index.php @@ -13,7 +13,7 @@ * @author Lawrence Yau * @author Bill Zimmerman * @license GNU General Public License, version 3 (GPL-3.0) - * @version 1.2.2 + * @version 1.2.3 * @link https://github.com/billz/raspap-webgui * @see http://sirlagz.net/2013/02/08/raspap-webgui/ */ @@ -50,6 +50,7 @@ include_once( 'includes/dhcp.php' ); include_once( 'includes/hostapd.php' ); include_once( 'includes/system.php' ); include_once( 'includes/configure_client.php' ); +include_once( 'includes/networking.php' ); $output = $return = 0; $page = $_GET['page']; @@ -117,7 +118,7 @@ $csrf_token = $_SESSION['csrf_token']; - RaspAP Wifi Portal v1.2.2 + RaspAP Wifi Portal v1.2.3 @@ -129,10 +130,13 @@ $csrf_token = $_SESSION['csrf_token']; Dashboard
  • - Configure client + Configure WiFi Client
  • - Configure hotspot + Configure Hotspot +
  • +
  • + Configure Networking
  • Configure DHCP Server @@ -181,6 +185,9 @@ $csrf_token = $_SESSION['csrf_token']; case "wpa_conf": DisplayWPAConfig(); break; + case "network_conf": + DisplayNetworkingConfig(); + break; case "hostapd_conf": DisplayHostAPDConfig(); break;