www - clean up screenshots to look nicer that the really raw look before

This commit is contained in:
Carsten Haitzler 2019-07-10 17:46:42 +01:00
parent a57b4a7a53
commit 1cef1c895a
3 changed files with 12 additions and 7 deletions

View File

@ -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,

View File

@ -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>

5
public_html/ss/rmabuse.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
for I in abuse-e-*; do
ID=`echo $I | sed 's/abuse-e-//g'`
rm *"$ID"
done