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/sbs_1/dblogreader.php | 90 ---------------------------------------------- 1 file changed, 90 deletions(-) delete mode 100644 blog/sbs_1/dblogreader.php (limited to 'blog/sbs_1/dblogreader.php') diff --git a/blog/sbs_1/dblogreader.php b/blog/sbs_1/dblogreader.php deleted file mode 100644 index d252c19..0000000 --- a/blog/sbs_1/dblogreader.php +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - Chrisoft::Development Blog - - - - - - - - - - - - - - - -
- Chrisoft::Development 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); - ?> -

-