raster pushed a commit to branch master. http://git.enlightenment.org/website/www.git/commit/?id=1cef1c895a598c54d2393c47ccd8abfc9532403f
commit 1cef1c895a598c54d2393c47ccd8abfc9532403f Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Wed Jul 10 17:46:42 2019 +0100 www - clean up screenshots to look nicer that the really raw look before --- public_html/ss/ban.php | 2 +- public_html/ss/display.php | 12 ++++++------ public_html/ss/rmabuse.sh | 5 +++++ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/public_html/ss/ban.php b/public_html/ss/ban.php index dfb3e562..2a7798f2 100644 --- a/public_html/ss/ban.php +++ b/public_html/ss/ban.php @@ -39,7 +39,7 @@ if (isset($img) && $img[0] == "e" && file_exists($file) && !file_exists($ignore_ fclose($fh); } - if ($count > 10) + if ($count > 3) { if (file_exists($_SERVER["DOCUMENT_ROOT"] . "/ss/ip-" . $img)) { rename($_SERVER["DOCUMENT_ROOT"] . "/ss/ip-" . $img, diff --git a/public_html/ss/display.php b/public_html/ss/display.php index 31804799..166cef56 100644 --- a/public_html/ss/display.php +++ b/public_html/ss/display.php @@ -5,7 +5,6 @@ <title>Enlightenment Screenshots</title> <link href="index.css" rel="stylesheet" type="text/css"></link> </head> - <body bgcolor=#ffffff alink=#88bbff link=#000000 vlink=#888888> <?php function get_ip() { @@ -36,15 +35,16 @@ $head = true; } + print "<center><a href=http://www.enlightenment.org/ss/" . $img . ">"; + print "<img src=" . $img . " class=full>"; + print "</a><br>\n"; if ($head == $auth || get_ip() == "140.211.167.135") { - print "<span><a href=remove.php?image=" . $img . ">Remove content</a></span>\n"; + print "<span><a href=remove.php?image=" . $img . ">Remove my image</a></span>\n"; } - print "<span><a href=ban.php?image=" . $img . ">Report content</a></span>\n"; + print "<span><a href=ban.php?image=" . $img . ">This image is inappropriate</a></span><br>\n"; + print "</center>\n"; - print "<a href=http://www.enlightenment.org/ss/" . $img . ">"; - print "<img src=" . $img . " border=1>"; - print "</a>\n"; ?> </body> </html> diff --git a/public_html/ss/rmabuse.sh b/public_html/ss/rmabuse.sh new file mode 100755 index 00000000..5f742ed7 --- /dev/null +++ b/public_html/ss/rmabuse.sh @@ -0,0 +1,5 @@ +#!/bin/sh +for I in abuse-e-*; do + ID=`echo $I | sed 's/abuse-e-//g'` + rm *"$ID" +done --
