From 9631f84cb335c9b2ca01f9ee1ba7a8d4d6858972 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sat, 17 Feb 2024 20:58:22 -0500 Subject: Drop deprecated stuff in the blog directory. --- blog/content/.htaccess | 2 - blog/content/util/indexer.cpp | 48 -- blog/sbs_1/bloglist.php | 77 --- blog/sbs_1/bloglista.php | 202 ------- blog/sbs_1/blogreader.php | 90 --- blog/sbs_1/blossom.png | Bin 140486 -> 0 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 -------------------------------- blog/sbs_2/blogext.css | 65 --- blog/sbs_2/bloglist.js | 216 ------- blog/sbs_2/blogpost.js | 103 ---- blog/sbs_2/cgi-bin/.htaccess | 3 - blog/sbs_2/cgi-bin/get-archive-list.cgi | 1 - blog/sbs_2/cgi-bin/get-post-content.cgi | 1 - blog/sbs_2/cgi-src/cgiutils.hpp | 245 -------- blog/sbs_2/cgi-src/get-archive-list | Bin 515680 -> 0 bytes blog/sbs_2/cgi-src/get-archive-list.cpp | 200 ------- blog/sbs_2/cgi-src/get-post-content | Bin 39024 -> 0 bytes blog/sbs_2/cgi-src/get-post-content.cpp | 83 --- blog/sbs_2/decryptor.js | 73 --- blog/sbs_2/footnoter.js | 24 - blog/sbs_2/index.html | 1 - blog/sbs_2/list | 94 --- blog/sbs_2/post | 108 ---- 28 files changed, 2923 deletions(-) delete mode 100644 blog/content/.htaccess delete mode 100644 blog/content/util/indexer.cpp delete mode 100644 blog/sbs_1/bloglist.php delete mode 100644 blog/sbs_1/bloglista.php delete mode 100644 blog/sbs_1/blogreader.php delete mode 100644 blog/sbs_1/blossom.png delete mode 100644 blog/sbs_1/dbloglist.php delete mode 100644 blog/sbs_1/dblogreader.php delete mode 100644 blog/sbs_1/decryptor.js delete mode 100644 blog/sbs_1/extras.css delete mode 100644 blog/sbs_1/footnoter.js delete mode 100644 blog/sbs_1/simple_html_dom.php delete mode 100644 blog/sbs_2/blogext.css delete mode 100644 blog/sbs_2/bloglist.js delete mode 100644 blog/sbs_2/blogpost.js delete mode 100644 blog/sbs_2/cgi-bin/.htaccess delete mode 120000 blog/sbs_2/cgi-bin/get-archive-list.cgi delete mode 120000 blog/sbs_2/cgi-bin/get-post-content.cgi delete mode 100644 blog/sbs_2/cgi-src/cgiutils.hpp delete mode 100755 blog/sbs_2/cgi-src/get-archive-list delete mode 100644 blog/sbs_2/cgi-src/get-archive-list.cpp delete mode 100755 blog/sbs_2/cgi-src/get-post-content delete mode 100644 blog/sbs_2/cgi-src/get-post-content.cpp delete mode 100644 blog/sbs_2/decryptor.js delete mode 100644 blog/sbs_2/footnoter.js delete mode 100644 blog/sbs_2/index.html delete mode 100644 blog/sbs_2/list delete mode 100644 blog/sbs_2/post diff --git a/blog/content/.htaccess b/blog/content/.htaccess deleted file mode 100644 index 93169e4..0000000 --- a/blog/content/.htaccess +++ /dev/null @@ -1,2 +0,0 @@ -Order deny,allow -Deny from all diff --git a/blog/content/util/indexer.cpp b/blog/content/util/indexer.cpp deleted file mode 100644 index b072633..0000000 --- a/blog/content/util/indexer.cpp +++ /dev/null @@ -1,48 +0,0 @@ -//filename title date tags -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#define stripr(s) s[strlen(s)-1]=='\n'?s[strlen(s)-1]=0:0 -std::vector fn; -char buf1[65536],buf2[65536],buf3[65536]; -int main() -{ - struct dirent* pd;DIR* pdir; - pdir=opendir("/var/www/html/blog/content"); - while((pd=readdir(pdir))!=NULL) - { - std::string s(pd->d_name); - if(s.length()<4)continue; - if(s.substr(s.length()-4)==".txt") - fn.push_back(s.substr(0,s.length()-4)); - } - closedir(pdir); - std::sort(fn.begin(),fn.end(),std::greater()); - FILE *f,*rf; - f=fopen("/var/www/html/blog/content/pindex","w"); - for(size_t i=0;itm_year+1900,mt->tm_mon+1,mt->tm_mday); - fprintf(f,"%s\n",buf3); - fclose(rf); - } - fclose(f); -} diff --git a/blog/sbs_1/bloglist.php b/blog/sbs_1/bloglist.php deleted file mode 100644 index 32e59b7..0000000 --- a/blog/sbs_1/bloglist.php +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - 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 deleted file mode 100644 index bb762b7..0000000 --- a/blog/sbs_1/bloglista.php +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - 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 deleted file mode 100644 index 5f55cc7..0000000 --- a/blog/sbs_1/blogreader.php +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - 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); - ?> -

-