Add login Internet from User account

This commit is contained in:
Ibnu Maksum
2023-06-15 15:26:38 +07:00
parent a256e1eb42
commit c1c3ce08cd
6 changed files with 144 additions and 10 deletions

View File

@ -2,6 +2,15 @@
/**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
**/
session_start();
require ('system/boot.php');
if(isset($_GET['nux-mac']) && !empty($_GET['nux-mac'])){
$_SESSION['nux-mac'] = $_GET['nux-mac'];
}
if(isset($_GET['nux-ip']) && !empty($_GET['nux-ip'])){
$_SESSION['nux-ip'] = $_GET['nux-ip'];
}
require_once 'system/vendor/autoload.php';
require_once 'system/boot.php';
App::_run();