$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); $error = true; $codice = $_GET["codice"] ?? 0; if (isset($_SESSION["utente"]) && !empty($_SESSION["ente"]) && $_SESSION["utente"]->permission("task",$codice)) { $error = false; if (empty($codice)) { $record = get_campi("b_tasks"); if (!empty($_GET["date"])) { $record["data"] = $_GET["date"] . " 09:00:00"; } } else { $record = $_SESSION["utente"]->getTasks($codice); } ?>
} if ($error) { header('HTTP/1.0 403 Forbidden'); die(); } ?>