trygve.me/filopplasting/index.php
2021-03-17 13:46:32 +01:00

70 lines
1.8 KiB
PHP
Executable File

<?php
session_start();
?>
<!DOCTYPE html>
<html lang="no">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta charset="UTF-8">
<meta name="theme-color" content="#263238"/>
<link rel="icon" type="image/png" href="/dist/favicon.png">
<link rel="stylesheet" href="/css/main.css">
<style media="screen">
#upload_button
{
display: inline-block;
}
#upload_button input[type=file] {
display:none;
}
</style>
<script>
const copyToClipboard = str => {
const el = document.createElement('textarea');
el.value = str;
el.setAttribute('readonly', '');
el.style.position = 'absolute';
el.style.left = '-9999px';
document.body.appendChild(el);
el.select();
document.execCommand('copy');
document.body.removeChild(el);
};
</script>
</head>
<body class="theme-auto">
<?php include "../common/header.html"; ?>
<body>
<center>
<div class="cont">
<h1>Filopplasting</h1>
<p>
Her kan du laste opp filer for å dele med andre. Filene kan være maks 5GB.<br /> Serveren ligger i Kristiansand og har 500/500 internet <br />
All opplasting skjer på eget ansvar.
</p>
<div>
<a class="btn btn-info" href="http://trygve.me/filopplasting/filer/">Se alle filer</a>
</div>
<hr class="my-4">
<div>
<form action="upload.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<input type="hidden" name="<?php echo ini_get("session.upload_progress.name"); ?>" value="123" />
<input type="file" name="file" class="" >
<button type="submit" class="btn btn-raised btn-primary">Last opp </button>
</div>
</form>
</div>
</ul>
</div>
</center>
</body>
</html>