From 9d3c8c0e6e1a7ba43bf3dc19350d1dca68b657a3 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 10 Feb 2019 11:16:07 +0800 Subject: Initial commit. --- leave-a-message/archive.txt | 79 +++++++++++++++++++++++++++++++++ leave-a-message/blossom.png | Bin 0 -> 140486 bytes leave-a-message/extras.css | 20 +++++++++ leave-a-message/index.php | 91 +++++++++++++++++++++++++++++++++++++++ leave-a-message/messages.json | 7 +++ leave-a-message/messages.txt | 11 +++++ leave-a-message/writemessage.php | 65 ++++++++++++++++++++++++++++ 7 files changed, 273 insertions(+) create mode 100644 leave-a-message/archive.txt create mode 100644 leave-a-message/blossom.png create mode 100644 leave-a-message/extras.css create mode 100644 leave-a-message/index.php create mode 100644 leave-a-message/messages.json create mode 100644 leave-a-message/messages.txt create mode 100644 leave-a-message/writemessage.php (limited to 'leave-a-message') diff --git a/leave-a-message/archive.txt b/leave-a-message/archive.txt new file mode 100644 index 0000000..1d22c81 --- /dev/null +++ b/leave-a-message/archive.txt @@ -0,0 +1,79 @@ +comment: Awesome website! +author: Nameless +time: 2016-10-02 01:00:07 +IP: 121.250.213.63 + +comment: Xiong is so awesome! +author: PaXiongNaoCanFen +time: 2016-11-29 17:00:30 +IP: 45.32.28.202 + +comment: alsjnczxioucaoisudho2joij3oi1j23oij +Any detecting? +author: Comment spam +time: 2016-11-29 17:01:38 +IP: 45.32.28.202 + +comment: Cool website after update:) +author: Chiikyu +time: 2017-02-18 04:17:42 +IP: 60.210.211.24 + +comment: ewqgewfewqf +author: 123123213 +time: 2017-04-08 22:15:33 +IP: 2001:da8:7001:71:6703:3e86:4bd0:cd77 + +comment: 我喜欢这粗野主义设计风格 +author: +time: 2017-05-26 09:26:59 +IP: 211.144.114.26 + +comment: 突然喜欢上了这种配色方案(当然是夜间的 +author: blblb +time: 2017-09-30 10:50:59 +IP: 123.161.208.16 + +comment: Nice website, keep up the good work :) +author: A friendly wanderer +time: 2018-03-09 08:01:06 +IP: + +comment: Compression est comment poupe votre sang pousse contre les parois de vos arteres lorsque votre coeur sentiment pompe le sang. Arteres sont les tubes qui transportent prendre offre sang loin de votre coeur. Chaque culture votre moelle bat, il pompe le sang tout au long vos arteres a la reste de votre corps. +https://www.cialispascherfr24.com/vente-cialis-france-retraite/ +author: ACatuectintece +time: 2018-06-28 10:47:02 +IP: 46.119.113.139 + +comment: roulette games - play free roulette for fun +free roulette games online roulette free +https://roulettecas.com/ +author: kn7z2vdn +time: 2018-07-13 01:19:37 +IP: 62.210.103.20 + +comment: Chris爷爷太叼了 +author: 61 +time: 2018-09-26 18:02:45 +IP: 149.28.28.85 + +comment: viagra australia cheapest viagra online buy viagra online generic name for viagra +author: hsfRudge +time: 2018-10-25 21:53:32 +IP: 178.159.37.97 + +comment: generic viagra cheap buy viagra online usa what happens if a girl takes viagra generic viagra canada +author: hwrspEmn +time: 2018-10-26 21:08:55 +IP: 178.159.37.39 + +comment: freedom debt relief fast miliatary loans direct loans military news +author: badglype +time: 2018-10-27 04:54:58 +IP: 46.119.127.157 + +comment: buy tadalafil cialis cheap cialis generic cialis buy +author: vspspEmn +time: 2018-12-03 05:31:05 +IP: 178.159.37.39 + diff --git a/leave-a-message/blossom.png b/leave-a-message/blossom.png new file mode 100644 index 0000000..6f2c304 Binary files /dev/null and b/leave-a-message/blossom.png differ diff --git a/leave-a-message/extras.css b/leave-a-message/extras.css new file mode 100644 index 0000000..907e88c --- /dev/null +++ b/leave-a-message/extras.css @@ -0,0 +1,20 @@ +.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 new file mode 100644 index 0000000..3589515 --- /dev/null +++ b/leave-a-message/index.php @@ -0,0 +1,91 @@ + + + + + + + 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/messages.json b/leave-a-message/messages.json new file mode 100644 index 0000000..a88bc5e --- /dev/null +++ b/leave-a-message/messages.json @@ -0,0 +1,7 @@ +{"cont":"Awesome website!","author":"Nameless","time":"2016-10-02 01:00"} +{"cont":"Xiong is so awesome!","author":"PaXiongNaoCanFen","time":"2016-11-29 17:00"} +{"cont":"Cool website after update:)","author":"Chiikyu","time":"2017-02-18 04:17"} +{"cont":"我喜欢这粗野主义设计风格","author":"","time":"2017-05-26 09:26"} +{"cont":"突然喜欢上了这种配色方案(当然是夜间的","author":"blblb","time":"2017-09-30 10:50"} +{"cont":"Nice website, keep up the good work :)","author":"A friendly wanderer","time":"2018-03-09 08:01"} +{"cont":"Chris爷爷太叼了","author":"61","time":"2018-09-26 18:02"} diff --git a/leave-a-message/messages.txt b/leave-a-message/messages.txt new file mode 100644 index 0000000..f56e8df --- /dev/null +++ b/leave-a-message/messages.txt @@ -0,0 +1,11 @@ +

Awesome website!

Nameless at 2016-10-02 01:00

+

Xiong is so awesome!

PaXiongNaoCanFen at 2016-11-29 17:00

+

Cool website after update:)

Chiikyu at 2017-02-18 04:17

+

我喜欢这粗野主义设计风格

at 2017-05-26 09:26

+

突然喜欢上了这种配色方案(当然是夜间的

blblb at 2017-09-30 10:50

+

Nice website, keep up the good work :)

A friendly wanderer at 2018-03-09 08:01

+

Chris爷爷太叼了

61 at 2018-09-26 18:02

+

viagra australia <a href="https://almeidacorp.com/">cheapest viagra online</a> buy viagra online <a href=https://almeidacorp.com/>generic name for viagra</a>

hsfRudge at 2018-10-25 21:53

+

generic viagra cheap <a href="https://obatpasutri-jogja.com/">buy viagra online usa</a> what happens if a girl takes viagra <a href=https://obatpasutri-jogja.com/>generic viagra canada</a>

hwrspEmn at 2018-10-26 21:08

+

freedom debt relief <a href="http://nocreditcheck-militaryloans.com/">fast miliatary loans</a> direct loans <a href="http://nocreditcheck-militaryloans.com/">military news</a>

badglype at 2018-10-27 04:54

+

buy tadalafil <a href="http://drcialonlinedkb.com/">cialis cheap</a> cialis generic <a href=http://drcialonlinedkb.com/>cialis buy</a>

vspspEmn at 2018-12-03 05:31

diff --git a/leave-a-message/writemessage.php b/leave-a-message/writemessage.php new file mode 100644 index 0000000..b4585fe --- /dev/null +++ b/leave-a-message/writemessage.php @@ -0,0 +1,65 @@ + + + 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; + } + $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); + else + { + 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