<?php


    # Show post information
    
    include_once 'data_connect.php';
    include_once 'log.php';

    if (isset($_GET['postxml']))
        $file = $_GET['postxml']
        
        
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>postinfo::<?php print $file?></title>
<link rel="stylesheet" type="text/css" href="cmstyle.css">
<?php include 'csstheme.php' ?>
</head>
<body>
<style>
body,html{margin:20px;font-size:16px;line-height:22px}
</style>

<?php


    if (isset($file)) {
    
        
        if (is_file('autosaves/'.$file)) {
    
                
            $i = getxmlpost('autosaves/'.$file);
            
            echo '<p>XML filename = '.$file.'<br>'.PHP_EOL;
            echo 'Website link = <u><a href="../'.$i['path'].$i['filename'].'" target="_blank">'.$_SERVER['SERVER_NAME'].'/'.$i['path'].$i['filename'].'.php</a></u></p>'.PHP_EOL;

            foreach($i as $key=>$val)
                echo $key.' = '.$val.'<br>'.PHP_EOL; 
        
    
        
             
        
        }
        
    }
    
?>

</body>
</html>