- Implement `remoteAccess` functionality in `ApiCLI` for Veyon integration. - Create `selectIP.php` view and associated form for remote access inputs. - Add JSON configuration for lab setups (`labList.json`). - Introduce reusable `home-button` web component. - Update project router and controller to support new `/remoteAccess` and `/conn` routes. - Add custom styles and icons to enhance UI.
40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
/*
|
|
* Copyright (c) 2025. Brusegan Samuele, Davanzo Andrea
|
|
* Questo file fa parte di VeyonCtrl ed è rilasciato
|
|
* sotto la licenza MIT. Vedere il file LICENSE per i dettagli.
|
|
*/
|
|
|
|
// Definisci il percorso base dell'applicazione
|
|
|
|
define( 'BASE_PATH', dirname( __DIR__ ) );
|
|
session_start();
|
|
const URL_PATH = "http://project16.test";
|
|
const COMMON_HTML_HEAD = BASE_PATH . '/public/commons/php/head.php';
|
|
const COMMON_HTML_FOOT = BASE_PATH . '/public/commons/php/bottom_navigation.php';
|
|
const PROJECT_NAME = "Project 16";
|
|
|
|
const EXE_NAME = "veyon-cli";
|
|
|
|
const THEME = ( 0 ) ? 'light' : 'dark';
|
|
|
|
// Includi i file necessari, a mano o con l'autoloader di Composer
|
|
require_once BASE_PATH . '/Router.php';
|
|
require_once BASE_PATH . '/public/functions.php';
|
|
// require_once BASE_PATH . '/public/commons/php/session_wall.php';
|
|
require_once BASE_PATH . '/app/controllers/Controller.php';
|
|
require_once BASE_PATH . '/app/models/ApiCLI.php';
|
|
|
|
// checkSessionExpiration();
|
|
|
|
// Inizializza il router
|
|
$router = new Router();
|
|
|
|
// Definisci le rotte
|
|
require BASE_PATH . '/public/routes.php';
|
|
|
|
// Ottieni l'URL richiesto e fai partire il router
|
|
$url = $_SERVER[ 'REQUEST_URI' ];
|
|
$router->dispatch( $url );
|
|
|