Browse Source

Remove info page

master
Les De Ridder 3 years ago
parent
commit
7a10871dfe
No known key found for this signature in database GPG Key ID: 5EC132DFA85DB372
2 changed files with 1 additions and 28 deletions
  1. +1
    -8
      index.php
  2. +0
    -20
      rain/template/info.html

+ 1
- 8
index.php View File

@@ -11,20 +11,13 @@ raintpl::configure( 'cache_dir', 'rain/cache/' );
$tpl = new RainTPL;

$title = "Temp File Hosting";
if(isset($_GET['info']))
$title = "Info";

$tpl->assign("title", $title);
$tpl->assign("site_name", CONFIG_SITE_NAME);
$tpl->draw("header");

$tpl->assign("retention_time", CONFIG_MAX_RETENTION_TEXT);
if(isset($_GET['info'])) {
$tpl->assign("url_filename", CONFIG_ROOT_URL);
$tpl->draw("info");
} else {
$tpl->draw("upload");
}
$tpl->draw("upload");

$tpl->draw("footer");
?>

+ 0
- 20
rain/template/info.html View File

@@ -1,20 +0,0 @@
<div class="container">
<div class="row">
<div class="col s12">
<div class="card-panel blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title">Info</span>
<p>Store (*almost) any filetype with a size up to 100MB for up to 24 hours.
Uguu cares about your privacy and stores NO logs.</p>
<p>*Due to malicious files being uploaded the following filetypes are not allowed: exe, scr, rar, zip, com, vbs, bat, cmd, html, htm, msi, dll.</p>
<span class="card-title">Tools</span>
<p>ShareX: <a href="https://getsharex.com">https://getsharex.com</a></p>
<span class="card-title">API</span>
<p>To upload using curl or make a tool you can post using:<br />
<code>curl -i -F name=test.jpg -F file=@localfile.jpg {$url_filename}/api.php?d=upload</code> (HTML Response)<br />
<code>curl -i -F name=test.jpg -F file=@localfile.jpg {$url_filename}/api.php?d=upload-tool</code> (Plain text Response)</p>
</div>
</div>
</div>
</div>
</div>

Loading…
Cancel
Save