forked from tildeverse/ttm.sh
Update 'fhost.py'
This commit is contained in:
parent
13816f1d80
commit
f2da85e437
25
fhost.py
25
fhost.py
|
@ -341,16 +341,22 @@ def fhost():
|
||||||
if maxsizehalf.is_integer():
|
if maxsizehalf.is_integer():
|
||||||
maxsizehalf = int(maxsizehalf)
|
maxsizehalf = int(maxsizehalf)
|
||||||
|
|
||||||
return """<pre>
|
return """
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
THE NULL POINTER
|
THE NULL POINTER
|
||||||
================
|
================
|
||||||
|
|
||||||
HTTP POST files here:
|
HTTP POST files here:
|
||||||
curl -F'file=@yourfile.png' {0}
|
<pre>curl -F'file=@yourfile.png' {0}</pre>
|
||||||
You can also POST remote URLs:
|
You can also POST remote URLs:
|
||||||
curl -F'url=http://example.com/image.jpg' {0}
|
<pre>curl -F'url=http://example.com/image.jpg' {0}</pre>
|
||||||
Or you can shorten URLs:
|
Or you can shorten URLs:
|
||||||
curl -F'shorten=http://example.com/some/long/url' {0}
|
<pre>curl -F'shorten=http://example.com/some/long/url' {0}</pre>
|
||||||
|
|
||||||
File URLs are valid for at least 30 days and up to a year (see below).
|
File URLs are valid for at least 30 days and up to a year (see below).
|
||||||
Shortened URLs do not expire.
|
Shortened URLs do not expire.
|
||||||
|
@ -361,7 +367,7 @@ Not allowed: {5}
|
||||||
|
|
||||||
FILE RETENTION PERIOD
|
FILE RETENTION PERIOD
|
||||||
---------------------
|
---------------------
|
||||||
|
<pre>
|
||||||
retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)
|
retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)
|
||||||
|
|
||||||
days
|
days
|
||||||
|
@ -385,16 +391,19 @@ retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)
|
||||||
30 | ....................
|
30 | ....................
|
||||||
0{2}{3}
|
0{2}{3}
|
||||||
{4}
|
{4}
|
||||||
|
</pre>
|
||||||
|
|
||||||
ABUSE
|
ABUSE
|
||||||
-----
|
-----
|
||||||
|
|
||||||
If you would like to request permanent deletion, please contact ben or khuxkm via
|
If you would like to request permanent deletion, please contact ben or khuxkm via
|
||||||
IRC on tilde.chat, or send an email to sudoers@tilde.team.
|
IRC on <a href="https://web.tilde.chat">tilde.chat</a>, or send an email to sudoers@tilde.team.
|
||||||
|
|
||||||
Please allow up to 24 hours for a response.
|
Please allow up to 24 hours for a response.
|
||||||
</pre>
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
""".format(fhost_url(),
|
""".format(fhost_url(),
|
||||||
maxsize, str(maxsizehalf).rjust(27), str(maxsizenum).rjust(27),
|
maxsize, str(maxsizehalf).rjust(27), str(maxsizenum).rjust(27),
|
||||||
maxsizeunit.rjust(54),
|
maxsizeunit.rjust(54),
|
||||||
|
|
Loading…
Reference in New Issue