<?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/ce_linaV7/";
$datos_arquivo = file($pathTXT.$nomeArquivo.'.txt');
$txt1=$pathTXT.$nomeArquivo.'.txt';
unlink($txt1);
$file = simplexml_load_file("../ardoraWorkFiles/ce_linaV7/ce_linaV7.xml");
foreach ($file->event as $event) {
    if ($event["id"]==$nomeArquivo){
        $dom=dom_import_simplexml($event);
        $dom->parentNode->removeChild($dom);
    }
}
$file->asXML("../ardoraWorkFiles/ce_linaV7/ce_linaV7.xml");
header ("Location: index.php");
?>
