<?php
// Created by Ardora www.webardora.net
//TIMELINE-borrar
$_SERVER['HTTP_REFERER']="introDatos.php";
session_start();
$slogin_noauthpage = 0;
$slogin_pagetitle = "";
include_once ("../usuariosDemostracion/usuariosDemostracion_lib.php");
session_cache_limiter('nocache,private');
$indi=$_GET['indi'];
$indi=(int)$indi;
$indi=$indi-1;
$nomeArquivo=$slogin_Username.'_'.$indi;
$pathTXT = "../ardoraWorkFiles/LiteSeculo18/";
$datos_arquivo = file($pathTXT.$nomeArquivo.'.txt');
$txt1=$pathTXT.$nomeArquivo.'.txt';
unlink($txt1);
$file = simplexml_load_file("../ardoraWorkFiles/LiteSeculo18/LiteSeculo18.xml");
foreach ($file->event as $event) {
    if ($event["id"]==$nomeArquivo){
        $dom=dom_import_simplexml($event);
        $dom->parentNode->removeChild($dom);
    }
}
$file->asXML("../ardoraWorkFiles/LiteSeculo18/LiteSeculo18.xml");
header ("Location: index.php");
?>
