summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-10 17:46:42 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-10 17:46:42 +0100
commit1cef1c895a598c54d2393c47ccd8abfc9532403f (patch)
tree2db8f9fae63b4c843730a2260704916dc5d10068
parenta57b4a7a531efea30c3656c966bf9cb42b254358 (diff)
www - clean up screenshots to look nicer that the really raw look before
-rw-r--r--public_html/ss/ban.php2
-rw-r--r--public_html/ss/display.php12
-rwxr-xr-xpublic_html/ss/rmabuse.sh5
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_
39 fclose($fh); 39 fclose($fh);
40 } 40 }
41 41
42 if ($count > 10) 42 if ($count > 3)
43 { 43 {
44 if (file_exists($_SERVER["DOCUMENT_ROOT"] . "/ss/ip-" . $img)) { 44 if (file_exists($_SERVER["DOCUMENT_ROOT"] . "/ss/ip-" . $img)) {
45 rename($_SERVER["DOCUMENT_ROOT"] . "/ss/ip-" . $img, 45 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 @@
5 <title>Enlightenment Screenshots</title> 5 <title>Enlightenment Screenshots</title>
6 <link href="index.css" rel="stylesheet" type="text/css"></link> 6 <link href="index.css" rel="stylesheet" type="text/css"></link>
7 </head> 7 </head>
8 <body bgcolor=#ffffff alink=#88bbff link=#000000 vlink=#888888>
9 <?php 8 <?php
10 function get_ip() 9 function get_ip()
11 { 10 {
@@ -36,15 +35,16 @@
36 $head = true; 35 $head = true;
37 } 36 }
38 37
38 print "<center><a href=http://www.enlightenment.org/ss/" . $img . ">";
39 print "<img src=" . $img . " class=full>";
40 print "</a><br>\n";
39 if ($head == $auth || get_ip() == "140.211.167.135") 41 if ($head == $auth || get_ip() == "140.211.167.135")
40 { 42 {
41 print "<span><a href=remove.php?image=" . $img . ">Remove content</a></span>\n"; 43 print "<span><a href=remove.php?image=" . $img . ">Remove my image</a></span>\n";
42 } 44 }
43 print "<span><a href=ban.php?image=" . $img . ">Report content</a></span>\n"; 45 print "<span><a href=ban.php?image=" . $img . ">This image is inappropriate</a></span><br>\n";
46 print "</center>\n";
44 47
45 print "<a href=http://www.enlightenment.org/ss/" . $img . ">";
46 print "<img src=" . $img . " border=1>";
47 print "</a>\n";
48 ?> 48 ?>
49 </body> 49 </body>
50</html> 50</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 @@
1#!/bin/sh
2for I in abuse-e-*; do
3 ID=`echo $I | sed 's/abuse-e-//g'`
4 rm *"$ID"
5done