Added filopplasting.
This commit is contained in:
72
filopplasting/index.php
Executable file
72
filopplasting/index.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?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="../common/main.css">
|
||||
|
||||
<style media="screen">
|
||||
|
||||
#upload_button
|
||||
{
|
||||
display: inline-block;
|
||||
}
|
||||
#upload_button input[type=file] {
|
||||
display:none;
|
||||
}
|
||||
|
||||
#center{
|
||||
margin: 0 auto;
|
||||
}
|
||||
</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/alle-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>
|
||||
Reference in New Issue
Block a user