From 9453f11a2984d338091254f2ace14725ed296dc6 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 14 Feb 2024 01:01:59 -0500 Subject: Remove stuff deprecated years ago. --- leave-a-message/.htaccess | 1 + leave-a-message/blossom.png | Bin 140486 -> 0 bytes leave-a-message/extras.css | 20 --------- leave-a-message/index.php | 91 --------------------------------------- leave-a-message/writemessage.php | 66 ---------------------------- 5 files changed, 1 insertion(+), 177 deletions(-) delete mode 100644 leave-a-message/blossom.png delete mode 100644 leave-a-message/extras.css delete mode 100644 leave-a-message/index.php delete mode 100644 leave-a-message/writemessage.php diff --git a/leave-a-message/.htaccess b/leave-a-message/.htaccess index 1604995..db52361 100644 --- a/leave-a-message/.htaccess +++ b/leave-a-message/.htaccess @@ -1,3 +1,4 @@ +Options -Indexes Require all denied diff --git a/leave-a-message/blossom.png b/leave-a-message/blossom.png deleted file mode 100644 index 6f2c304..0000000 Binary files a/leave-a-message/blossom.png and /dev/null differ diff --git a/leave-a-message/extras.css b/leave-a-message/extras.css deleted file mode 100644 index 907e88c..0000000 --- a/leave-a-message/extras.css +++ /dev/null @@ -1,20 +0,0 @@ -.CTitle { - color: #fff; -} -.TText { - color: #fff; -} -body { - background: #000; - background-image: url(blossom.png); -} -table { - background: rgba(0,0,0,0.8); -} -note, .note { - vertical-align: super; - font-size: 60%; -} -reduced, .reduced { - font-size: 75%; -} diff --git a/leave-a-message/index.php b/leave-a-message/index.php deleted file mode 100644 index 3589515..0000000 --- a/leave-a-message/index.php +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - Chrisoft::Leave a message - - - - - - - window.onload=function() - { - document.getElementById(\"ann\").style.display=\"inline-block\"; - document.getElementById(\"name\").value=\"".$_POST['name']."\"; - document.getElementById(\"content\").value=\"".$_POST['content']."\"; - } - "; - ?> - - - - - - - -
- Chrisoft::Messages -
-

Deprecated. Use Guestbook found in the homepage instead.

-
- =0)echo $comms[$i]; - ?> -
- - - - -

Message:

- -

- Something Annoying:

-

-
- -
-
-
-
- diff --git a/leave-a-message/writemessage.php b/leave-a-message/writemessage.php deleted file mode 100644 index 5308954..0000000 --- a/leave-a-message/writemessage.php +++ /dev/null @@ -1,66 +0,0 @@ - - - window.onload=function() - { - var f = document.createElement('form'); - f.action='https://chrisoft.org/leave-a-message/'; - f.method='POST'; - f.style.display='none'; - - var i=document.createElement('input'); - i.type='hidden'; - i.name='name'; - i.value='".$n."'; - f.appendChild(i); - i=document.createElement('input'); - i.type='hidden'; - i.name='content'; - i.value='".$m."'; - f.appendChild(i); - - document.body.appendChild(f); - f.submit(); - } - "; - } - $name;$mesg;$captcha; - if(isset($_POST['name'])) - $name=$_POST['name']; - if(isset($_POST['content'])) - $mesg=$_POST['content']; - if(isset($_POST['g-recaptcha-response'])) - $captcha=$_POST['g-recaptcha-response']; - if(!$captcha){ - onerror($name,$mesg); - exit; - } - //OH SHIT I LEAKED MY OWN KEY!!! - //$response=json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Lf1lAcUAAAAABRj_EJ1OzhzGfiorpfYFbcGQE5r&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true); - //if($response['success'] == false)onerror($name,$mesg); - if(false) - { - if(strlen($mesg)+strlen($name)>16300)echo "Your message is too long!!!"; - $rmesg=htmlspecialchars($mesg); - $rmesg=nl2br($rmesg,false); - $rmesg=trim(preg_replace('/\s\s+/', ' ', $rmesg)); - $f=fopen("/var/www/html/leave-a-message/messages.txt","a"); - $str=sprintf("

%s

%s at %s

\n",$rmesg,htmlspecialchars($name),strftime("%Y-%m-%d %H:%M")); - fwrite($f,$str); - fclose($f); - $f=fopen("/var/www/html/leave-a-message/messages.json","a"); - $str=sprintf("{\"cont\":\"%s\",\"author\":\"%s\",\"time\":\"%s\"}\n",$rmesg,htmlspecialchars($name),strftime("%Y-%m-%d %H:%M")); - fwrite($f,$str); - fclose($f); - $f=fopen("/var/www/html/leave-a-message/archive.txt","a"); - $str=sprintf("comment: %s\nauthor: %s\ntime: %s\nIP: %s\n\n",$mesg,$name,strftime("%Y-%m-%d %H:%M:%S"),$_SERVER['HTTP_X_FORWARDED_FOR']?$_SERVER['HTTP_X_FORWARDED_FOR']:$_SERVER['REMOTE_ADDR']); - fwrite($f,$str); - fclose($f); - echo ""; - } -?> - - - -- cgit v1.2.3