Hi, my microCMS is finished.
A ContentManagementSystem that is 0.51 kb big.
Any idea on making it smaller? I dont care if the syntax gets messed up , open textarea tags, and so on. This is a fun project i made after I got so mad at my serious CMS project :-)
As long as it works... Opera has some problems with the open textarea, IE does not. Also, & lt ; will be replaced to a < after reopening and saving, I will fix it soon . Ciao! Hope you can smile at this a bit. Thats the real purpous 🙂
Demo & Details:
http://www.shawcartoon.com/microcms
Code:
<html><body><?$p='pwd';function c($z){if($z==''){$z='Home';}$y="$z.w";if(!file_exists($y)){fopen($y,"a");}include($y);echo"<a href=?o=$z>.</a>";}if($o!=""){echo"<form><input type=submit><input name=l><input name=s value=$o><textarea name=t>";include("$o.w");}elseif($p==$l){$s=fopen("$s.w","w");fputs($s,stripslashes($t));}else{c('l');echo "<hr>";$m="m.w";fopen($m,"a");$d=fopen($m, "r");while($i=fgets($d,99)) {$u=ereg_replace('%','',rawurlencode(chop($i)));echo" <a href=?w=$u>$i</a> °";}echo'<a href=?o=m>.</a><hr>';c($w);}?>