www - clean up screenshots to look nicer that the really raw look before
This commit is contained in:
parent
a57b4a7a53
commit
1cef1c895a
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
for I in abuse-e-*; do
|
||||
ID=`echo $I | sed 's/abuse-e-//g'`
|
||||
rm *"$ID"
|
||||
done
|
Loading…
Reference in New Issue