From 9d3c8c0e6e1a7ba43bf3dc19350d1dca68b657a3 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 10 Feb 2019 11:16:07 +0800 Subject: Initial commit. --- blog/sbs_1/bloglist.php | 77 ++++ blog/sbs_1/bloglista.php | 202 +++++++++ blog/sbs_1/blogreader.php | 90 ++++ blog/sbs_1/blossom.png | Bin 0 -> 140486 bytes blog/sbs_1/dbloglist.php | 75 ++++ blog/sbs_1/dblogreader.php | 90 ++++ blog/sbs_1/decryptor.js | 73 +++ blog/sbs_1/extras.css | 50 +++ blog/sbs_1/footnoter.js | 24 + blog/sbs_1/simple_html_dom.php | 975 +++++++++++++++++++++++++++++++++++++++++ 10 files changed, 1656 insertions(+) create mode 100644 blog/sbs_1/bloglist.php create mode 100644 blog/sbs_1/bloglista.php create mode 100644 blog/sbs_1/blogreader.php create mode 100644 blog/sbs_1/blossom.png create mode 100644 blog/sbs_1/dbloglist.php create mode 100644 blog/sbs_1/dblogreader.php create mode 100644 blog/sbs_1/decryptor.js create mode 100644 blog/sbs_1/extras.css create mode 100644 blog/sbs_1/footnoter.js create mode 100644 blog/sbs_1/simple_html_dom.php (limited to 'blog/sbs_1') diff --git a/blog/sbs_1/bloglist.php b/blog/sbs_1/bloglist.php new file mode 100644 index 0000000..32e59b7 --- /dev/null +++ b/blog/sbs_1/bloglist.php @@ -0,0 +1,77 @@ + + + + + + + Chrisoft::Blog + + + + + + + + + + + + + "; + } + } + ?> + + + + +
+ Chrisoft::Blog +
+
Deprecated. The new blog system is available here.
+ WARNING: You've entered the dangerous zone.
+ I occasionally empty the trash in my brain here...
+ Browse with care!
+ Most posts are in Chinese... +
+ "; + $cur=sprintf("%s",substr($files[$i],0,strlen($files[$i])-4),$title); + echo $cur; + echo ""; + echo $date; + echo "
+ Proudly powered by SBS (the stupid blogging system).
+ Content licensed under CC BY-SA 4.0. +
+ diff --git a/blog/sbs_1/bloglista.php b/blog/sbs_1/bloglista.php new file mode 100644 index 0000000..bb762b7 --- /dev/null +++ b/blog/sbs_1/bloglista.php @@ -0,0 +1,202 @@ + + + + + + Chrisoft::Blog + + + + + + + + + + + + + +
+ Chrisoft::Blog +
+ WARNING: You've entered the dangerous zone.
+ I occasionally empty the trash in my brain here...
+ Browse with care!
+ Most posts are in Chinese... +
+
+ < +
+
+ > +
+ + diff --git a/blog/sbs_1/blogreader.php b/blog/sbs_1/blogreader.php new file mode 100644 index 0000000..5f55cc7 --- /dev/null +++ b/blog/sbs_1/blogreader.php @@ -0,0 +1,90 @@ + + + + + + + Chrisoft::Blog + + + + + + + + + + + + + + + +
+ Chrisoft::Blog +
+ ".$str."
"; + $str=fgets($file,4096); + echo "
".$str."

"; + $str=fgets($file,4096); + $str=fread($file,262144); + $html=str_get_html($str); + $encrypted=$html->find("encrypted"); + for($i=0;$ifind("encrypted",$i)->key; + $html->find("encrypted",$i)->key=null; + $cont=$html->find("encrypted",$i)->innertext; + $html->find("encrypted",$i)->innertext="Encrypted content here. Click here to decrypt."; + $contarr=str_split($cont); + $lcont=count($contarr); + $keyarr=str_split($key); + $lkey=count($keyarr); + $hash=5381; + for($j=0;$j<$lcont;++$j) + { + $hash=(($hash<<5)+$hash)+ord($contarr[$j]); + $hash&=0xFFFFFFFF; + $contarr[$j]^=$keyarr[$j%$lkey]; + } + $retstr=''; + array_walk($contarr,function($value)use(&$retstr){$retstr.=chr(ord($value));}); + $html->find("encrypted",$i)->encont=base64_encode($retstr); + $html->find("encrypted",$i)->hash=$hash; + $html->find("encrypted",$i)->id="encrypted".$i; + } + echo $html; + fclose($file); + ?> +

+