Everything previously under www/src now are under www/ Moved style.CSS under www/ressources, to allow blocking http requests to www/lib completly Moved <head> and <header> generation under lib/PHP/output/sections.php to reduce redundancy within files. Also implemented a system to allow them to generate relatif paht for href to ressources depending on their deepness within www/ hierarchy.
17 lines
403 B
PHP
17 lines
403 B
PHP
<?php
|
|
|
|
require_once 'update.php';
|
|
|
|
function end_current_session(): void
|
|
{
|
|
$_SESSION = [];
|
|
if (ini_get('session.use_cookies')) {
|
|
$p = session_get_cookie_params();
|
|
$curr_sessname = session_name();
|
|
setcookie($curr_sessname, $_COOKIE["$curr_sessname"], 1, $p['path'], $p['domain'] ?? '', $p['secure'], $p['httponly']);
|
|
}
|
|
|
|
// Not the best way to do so
|
|
session_destroy();
|
|
session_write_close();
|
|
}
|