Skip to content

Instantly share code, notes, and snippets.

<?php
require_once BASE_PATH . '/vendor/autoload.php';
use App\Auth\Authentication;
use App\Database\Database;
// Check if user is logged in
$auth = new Authentication(Database::getInstance());
if (!$auth->isLoggedIn()) {
header('Location: /');
<?php
require_once BASE_PATH . '/vendor/autoload.php';
use App\Auth\Authentication;
use App\Database\Database;
// Check if user is logged in
$auth = new Authentication(Database::getInstance());
if (!$auth->isLoggedIn()) {
header('Location: /');
<?php
require_once BASE_PATH . '/vendor/autoload.php';
use App\Auth\Authentication;
use App\Database\Database;
// Check if user is logged in
$auth = new Authentication(Database::getInstance());
if (!$auth->isLoggedIn()) {
header('Location: /');
{"leases":[{"ip-address":"2001:b88:8005:f007::c7","duid":"00:03:00:01:f8:79:0a:20:64:bc","state":0,"cltt":1746277864,"valid-lft":7200,"iaid":169895100,"preferred-lft":3600,"subnet-id":2},{"ip-address":"2001:b88:8005:f007::ca","duid":"00:03:00:01:f8:79:0a:20:64:d0","state":0,"cltt":1746277859,"valid-lft":7200,"iaid":169895120,"preferred-lft":3600,"subnet-id":2},{"ip-address":"2001:b88:8005:f007::cc","duid":"00:03:00:01:f8:79:0a:20:64:c4","state":0,"cltt":1746277855,"valid-lft":7200,"iaid":169895108,"preferred-lft":3600,"subnet-id":2},{"ip-address":"2001:b88:8005:f007::cd","duid":"00:03:00:01:f8:79:0a:20:64:c0","state":0,"cltt":1746277850,"valid-lft":7200,"iaid":169895104,"preferred-lft":3600,"subnet-id":2},{"ip-address":"2001:b88:8005:f007::cf","duid":"00:03:00:01:d4:6c:6d:91:3a:40","state":0,"cltt":1746277866,"valid-lft":7200,"iaid":1838234176,"preferred-lft":3600,"subnet-id":2},{"ip-address":"2001:b88:8005:f007::d5","duid":"00:03:00:01:f8:79:0a:20:64:cc","state":0,"cltt":1746277866,"valid-lft":7200,"iaid":16
<?php
namespace App\Models;
use Exception;
class DHCPv6LeaseModel extends KEAModel
{
public function __construct()
{
parent::__construct();
<?php
namespace App\Controllers\Api;
use App\Models\DHCPv6LeaseModel;
use Exception;
class DHCPv6LeaseController
{
private DHCPv6LeaseModel $leaseModel;
<?php
require_once BASE_PATH . '/vendor/autoload.php';
use App\Auth\Authentication;
use App\Database\Database;
// Check if user is logged in
$auth = new Authentication(Database::getInstance());
if (!$auth->isLoggedIn()) {
header('Location: /');
<?php
require_once BASE_PATH . '/vendor/autoload.php';
use App\Auth\Authentication;
use App\Database\Database;
// Check if user is logged in
$auth = new Authentication(Database::getInstance());
if (!$auth->isLoggedIn()) {
header('Location: /');
<?php
require_once BASE_PATH . '/vendor/autoload.php';
use App\Auth\Authentication;
use App\Database\Database;
// Check if user is logged in
$auth = new Authentication(Database::getInstance());
if (!$auth->isLoggedIn()) {
header('Location: /');
<?php
require_once BASE_PATH . '/vendor/autoload.php';
use App\Auth\Authentication;
use App\Database\Database;
// Check if user is logged in
$auth = new Authentication(Database::getInstance());
if (!$auth->isLoggedIn()) {
header('Location: /');