gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

25 righe
971 B

<?php
use Studioamica\ChangelogsWriter\Core\Changelog;
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_POST["codice"])) {
global $config;
$changelog_writer = new Changelog();
$changelog_writer->configuration = Changelog::arrayToObject($config);
if ($changelog_writer->delete($_SESSION["ente"]->codice ?? null, $_POST["codice"])) {
scriviLog(
empty($_SESSION["ente"]) ?
$changelog_writer->configuration->db_name . Changelog::MAIN_CHANGELOG_TABLE :
$changelog_writer->configuration->tenant_db_prefix . $_SESSION["ente"]->codice . Changelog::TENANT_CHANGELOG_TABLE,
"DELETE",
$pdo->getSQL(),
$_POST["codice"]
);
?>window.location.href="/backend/changelogs/"<?
die();
}
}
header('HTTP/1.0 403 Forbidden');
die();
?>