<!DOCTYPE html>
<?php
$root=$_SERVER['DOCUMENT_ROOT'];
$path="";
$proceed=false;
if(isset($_GET['p'])) {
$path="/s".htmlspecialchars(stripslashes($_GET['p']));
if(file_exists($root.$path)) {
$proceed=true;
} else {
echo "File not found `$path`.";
//exit;
}
} else {
echo "No file selected.";
//exit;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name='viewport' content='width=device-width,initial-scale=1'>
<style type="text/css">
html,body {
margin: 0; padding: 0; box-sizing: border-box;
width: 100%; height: auto; color: #AAABAD;
font-family: "Droid Sans", "Liberation Sans", "DejaVu Sans", "Segoe UI", Sans;
font-size: 10pt; background: transparent !important;
}
.tbl { display: table; table-layout: fixed; }
.tr { display: table-row; }
.td { display: table-cell; }
</style>
<link rel="stylesheet" type="text/css" href="/css/style.css?v=4.13" />
</head>
<body>
<div style="width: 796px;"></div>
<?php if($proceed) { ?>
<div class="tbl" style="width: 100%; height: 100%; position: fixed; top: 0; left: 0;">
<div class="tr">
<div class="td">
<div style="padding: 16px; border-bottom: 2px solid #AAABAD;">
<div class="tbl" style="width: 100%;">
<div class="tr">
<div class="td">
<a href="<?php echo substr($path,2); ?>" target="_self"><- Twily.info</a>
</div>
<div class="td" style="text-align: center;">
Showing raw:
</div>
<div class="td" style="text-align: right;">
~<?php echo substr($path,2); ?>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tr" style="height: 100%;">
<div class="td">
<iframe src="<?php echo $path; ?>" frameborder="0" style="width: 100%; height: 100%; background: #FFF; color: #000;"</iframe>
</div>
</div>
</div>
<?php } ?>
</body>
</html>
Top