summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorclsr <clsr@clsr.net>2016-11-11 17:35:39 +0100
committerclsr <clsr@clsr.net>2016-11-11 17:36:02 +0100
commit553bfa1e8d2d9ac3a7ac202065e7adea1fe3142d (patch)
tree5a63196ba5cb242aff8c05e70487fd75db13270d /pages
downloadgomf-web-flup-553bfa1e8d2d9ac3a7ac202065e7adea1fe3142d.tar.gz
gomf-web-flup-553bfa1e8d2d9ac3a7ac202065e7adea1fe3142d.zip
Initial commit; forked from installgen2/Flup
Diffstat (limited to 'pages')
-rw-r--r--pages/about.html45
-rw-r--r--pages/deletion_log.html56
-rw-r--r--pages/index.html65
3 files changed, 166 insertions, 0 deletions
diff --git a/pages/about.html b/pages/about.html
new file mode 100644
index 0000000..3e865c9
--- /dev/null
+++ b/pages/about.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <title>{{ .SiteName }} - About</title>
+ <meta name=viewport content="width=device-width, initial-scale=1">
+
+ <link rel="stylesheet" href="/static/style.css">
+
+ <link rel="shortcut icon" href="/favicon.ico">
+ <link rel="icon" sizes="16x16 32x32 64x64" href="/static/favicons/favicon.ico">
+ <link rel="icon" type="image/png" sizes="196x196" href="/static/favicons/favicon-192.png">
+ <link rel="icon" type="image/png" sizes="160x160" href="/static/favicons/favicon-160.png">
+ <link rel="icon" type="image/png" sizes="96x96" href="/static/favicons/favicon-96.png">
+ <link rel="icon" type="image/png" sizes="64x64" href="/static/favicons/favicon-64.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/static/favicons/favicon-32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/static/favicons/favicon-16.png">
+ <link rel="apple-touch-icon" href="/static/favicons/favicon-57.png">
+ <link rel="apple-touch-icon" sizes="114x114" href="/static/favicons/favicon-114.png">
+ <link rel="apple-touch-icon" sizes="72x72" href="/static/favicons/favicon-72.png">
+ <link rel="apple-touch-icon" sizes="144x144" href="/static/favicons/favicon-144.png">
+ <link rel="apple-touch-icon" sizes="60x60" href="/static/favicons/favicon-60.png">
+ <link rel="apple-touch-icon" sizes="120x120" href="/static/favicons/favicon-120.png">
+ <link rel="apple-touch-icon" sizes="76x76" href="/static/favicons/favicon-76.png">
+ <link rel="apple-touch-icon" sizes="152x152" href="/static/favicons/favicon-152.png">
+ <link rel="apple-touch-icon" sizes="180x180" href="/static/favicons/favicon-180.png">
+ <meta name="msapplication-TileColor" content="#FFFFFF">
+ <meta name="msapplication-TileImage" content="/favicon-144.png">
+ <meta name="msapplication-config" content="/browserconfig.xml">
+ </head>
+
+ <body>
+ <h1>About</h1>
+
+ <p class="box">{{ .SiteName }} is a simple file uploading website, written from scratch in Go using net/http and the file system. It has some cool unique features, and it's cyb as fuck.</p>
+
+ <p class="box">The source code is available at <a href="https://git.clsr.net/gomf/about/">git.clsr.net/gomf</a>, it's slightly less shit than the PHP pomf. All the technical details of the software are available there too.</p>
+
+ <p class="box">If you have found a file which you believe should be removed, please email me at <a href="mailto:{{ .Abuse }}">{{ .Abuse }}</a>. Please note I will not remove any files unless I am obligated to, for legal reasons, to remain off blacklists, or because I am required to by my hosting providers. A full list of removed files and their reasons will be available on <a href="/deletion_log.html">/deletion_log.html</a>.</p>
+
+ <img src="/static/anime.png" id="anime">
+
+ <script src="/static/script.js"></script>
+ </body>
+</html>
diff --git a/pages/deletion_log.html b/pages/deletion_log.html
new file mode 100644
index 0000000..ecd72b8
--- /dev/null
+++ b/pages/deletion_log.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <title>{{ .SiteName }} - Deleted files</title>
+ <meta name=viewport content="width=device-width, initial-scale=1">
+
+ <link rel="stylesheet" href="/static/style.css">
+
+ <link rel="shortcut icon" href="/favicon.ico">
+ <link rel="icon" sizes="16x16 32x32 64x64" href="/static/favicons/favicon.ico">
+ <link rel="icon" type="image/png" sizes="196x196" href="/static/favicons/favicon-192.png">
+ <link rel="icon" type="image/png" sizes="160x160" href="/static/favicons/favicon-160.png">
+ <link rel="icon" type="image/png" sizes="96x96" href="/static/favicons/favicon-96.png">
+ <link rel="icon" type="image/png" sizes="64x64" href="/static/favicons/favicon-64.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/static/favicons/favicon-32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/static/favicons/favicon-16.png">
+ <link rel="apple-touch-icon" href="/static/favicons/favicon-57.png">
+ <link rel="apple-touch-icon" sizes="114x114" href="/static/favicons/favicon-114.png">
+ <link rel="apple-touch-icon" sizes="72x72" href="/static/favicons/favicon-72.png">
+ <link rel="apple-touch-icon" sizes="144x144" href="/static/favicons/favicon-144.png">
+ <link rel="apple-touch-icon" sizes="60x60" href="/static/favicons/favicon-60.png">
+ <link rel="apple-touch-icon" sizes="120x120" href="/static/favicons/favicon-120.png">
+ <link rel="apple-touch-icon" sizes="76x76" href="/static/favicons/favicon-76.png">
+ <link rel="apple-touch-icon" sizes="152x152" href="/static/favicons/favicon-152.png">
+ <link rel="apple-touch-icon" sizes="180x180" href="/static/favicons/favicon-180.png">
+ <meta name="msapplication-TileColor" content="#FFFFFF">
+ <meta name="msapplication-TileImage" content="/favicon-144.png">
+ <meta name="msapplication-config" content="/browserconfig.xml">
+ </head>
+
+ <body>
+ <h1>Deleted files</h1>
+ <p>Here is a full list of every file deleted from {{ .SiteName }} and its reason for being removed.</p>
+
+ <hr>
+
+ <div>
+ {{ if false }}
+ <div class="box">
+ <div>ID: <a href="/{{ .ID }}">{{ .ID }}</a></div>
+ <div>Deletion reason: <span class="break">{{ .Reason }}</span></div>
+ <br>
+ <div>Name: <span class="break">{{ .Name }}</span></div>
+ <div>Hash: <span class="break">{{ .Hash }}</span></div>
+ {{ if .Desc }}<div>Desc: <span class="break">{{ .Desc }}</span></div>{{ end }}
+ </div>
+ <br>
+ {{ end }}
+ </div>
+
+ <img src="/static/anime.png" id="anime">
+
+ <script src="/static/script.js"></script>
+ </body>
+</html>
diff --git a/pages/index.html b/pages/index.html
new file mode 100644
index 0000000..038fbcd
--- /dev/null
+++ b/pages/index.html
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <title>{{ .SiteName }}</title>
+ <meta name=viewport content="width=device-width, initial-scale=1">
+ <meta name="description" content="Simple, minimal, and cyberpunk file uploading. Upload any file (currently) up to {{ .MaxSize }}. Pls enjoy.">
+
+ <link rel="stylesheet" href="/static/style.css">
+
+ <link rel="shortcut icon" href="/favicon.ico">
+ <link rel="icon" sizes="16x16 32x32 64x64" href="/static/favicons/favicon.ico">
+ <link rel="icon" type="image/png" sizes="196x196" href="/static/favicons/favicon-192.png">
+ <link rel="icon" type="image/png" sizes="160x160" href="/static/favicons/favicon-160.png">
+ <link rel="icon" type="image/png" sizes="96x96" href="/static/favicons/favicon-96.png">
+ <link rel="icon" type="image/png" sizes="64x64" href="/static/favicons/favicon-64.png">
+ <link rel="icon" type="image/png" sizes="32x32" href="/static/favicons/favicon-32.png">
+ <link rel="icon" type="image/png" sizes="16x16" href="/static/favicons/favicon-16.png">
+ <link rel="apple-touch-icon" href="/static/favicons/favicon-57.png">
+ <link rel="apple-touch-icon" sizes="114x114" href="/static/favicons/favicon-114.png">
+ <link rel="apple-touch-icon" sizes="72x72" href="/static/favicons/favicon-72.png">
+ <link rel="apple-touch-icon" sizes="144x144" href="/static/favicons/favicon-144.png">
+ <link rel="apple-touch-icon" sizes="60x60" href="/static/favicons/favicon-60.png">
+ <link rel="apple-touch-icon" sizes="120x120" href="/static/favicons/favicon-120.png">
+ <link rel="apple-touch-icon" sizes="76x76" href="/static/favicons/favicon-76.png">
+ <link rel="apple-touch-icon" sizes="152x152" href="/static/favicons/favicon-152.png">
+ <link rel="apple-touch-icon" sizes="180x180" href="/static/favicons/favicon-180.png">
+ <meta name="msapplication-TileColor" content="#FFFFFF">
+ <meta name="msapplication-TileImage" content="/favicon-144.png">
+ <meta name="msapplication-config" content="/browserconfig.xml">
+ </head>
+
+ <body>
+ <h1 id="header">wired</h1>
+
+ {{ with .Result }}{{ if or .Files .Description }}
+ <h2>{{ if .Description }}Error!{{ else }}Uploaded!{{ end }}</h2>
+ <div class="box" id="uploads">
+ <div class="upload">
+ {{ range .Files }}
+ <p><a href="{{ .Url }}" class="link">{{ .Url }}</a></p>
+ {{ else }}
+ <p>{{ .Description }}</p>
+ {{ end }}
+ </div>
+ </div>
+ {{ end }}{{ end }}
+
+ <form action="/upload.php" method="post" enctype="multipart/form-data">
+ <input type=hidden name="output" value="html">
+
+ <div class="box">
+ <input type="file" name="files[]" id="file-select" multiple>
+ </div>
+
+ <input type="submit" value="Upload!" id="upload">
+ </form>
+
+ {{ range $name, $path := .Pages }}{{ if ne $path "index.html" }}<h5><a href="{{ $path }}">{{ $name }}</a></h5>{{ end }}{{ end }}
+
+ <img src="/static/anime.png" id="anime">
+
+ <script src="/static/script.js"></script>
+ </body>
+</html>