kaptk2 / portal

Sample UniFi portal in php
93 stars 41 forks source link

What should be the settings of the Hotspot Manager? #12

Open Maxwellkurt0407 opened 5 years ago

Maxwellkurt0407 commented 5 years ago

Should the guest policies of the unifi controller be external portal Server?

if so, how would the mac address be passed? // Setup the session variables and display errors if not set if ($_GET['id']) { $_SESSION['id'] = $_GET['id']; } else { echo "Direct Access is not allowed"; exit(); } if ($_GET['url']) { $_SESSION['url'] = $_GET['url']; } else { $_SESSION['url'] = 'http://www.google.com'; }

looking up authorize.php, the 'id' in the session will be used as the mac address, how can php get the mac address in the index.php in the 1st place?