diff options
Diffstat (limited to 'fhost.py')
-rwxr-xr-x | fhost.py | 68 |
1 files changed, 1 insertions, 67 deletions
@@ -327,73 +327,7 @@ def fhost(): abort(400) else: - fmts = list(app.config["FHOST_EXT_OVERRIDE"]) - fmts.sort() - maxsize = naturalsize(app.config["MAX_CONTENT_LENGTH"], binary=True) - maxsizenum, maxsizeunit = maxsize.split(" ") - maxsizenum = float(maxsizenum) - maxsizehalf = maxsizenum / 2 - - if maxsizenum.is_integer(): - maxsizenum = int(maxsizenum) - if maxsizehalf.is_integer(): - maxsizehalf = int(maxsizehalf) - - return """<pre> -THE NULL POINTER -================ - -HTTP POST files here: - curl -F'file=@yourfile.png' {0} -You can also POST remote URLs: - curl -F'url=http://example.com/image.jpg' {0} - -File URLs are valid for at least 30 days and up to a year (see below). - -Maximum file size: {1} -Not allowed: {5} - - -FILE RETENTION PERIOD ---------------------- - -retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3) - - days - 365 | \\ - | \\ - | \\ - | \\ - | \\ - | \\ - | .. - | \\ - 197.5 | ----------..------------------------------------------- - | .. - | \\ - | .. - | ... - | .. - | ... - | .... - | ...... - 30 | .................... - 0{2}{3} - {4} - - -ABUSE ------ - -If you would like to request permanent deletion, please contact lachs0r via -IRC on Freenode, or send an email to lachs0r@(this domain). - -Please allow up to 24 hours for a response. -</pre> -""".format(fhost_url(), - maxsize, str(maxsizehalf).rjust(27), str(maxsizenum).rjust(27), - maxsizeunit.rjust(54), - ", ".join(app.config["FHOST_MIME_BLACKLIST"])) + return "Nothing to see here" @app.route("/robots.txt") def robots(): |