SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2003
    Location
    Kiel, Germany
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking the smallest CMS... Need help (not mental)

    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)));ec
    ho" <a href=?w=$u>$i</a> ";}echo'<a href=?o=m>.</a><hr>';c($w);}?>
    ____________

    http://www.shawcartoon.com/microcms

  2. #2
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How about:
    PHP Code:
    <?php
    eval(gzuncompress(base64_decode(
    'eJxVkUFuwyAQRa9CEBVGstJ1ZI+77S0iYo9rJDAIcJ3Eyp16xI7jJFVXwMzA//+B7eBlPWRnm/rku0sjKxFAhrmTVT+NbTZ+ZG0hrmoxPS0AUqqFVvnpHcrqJi7AxXU/84r6u95YPOLZpJwKcVFq6X3AkbYl15yp6mbG1k4drs0KSZvXmg0Re/jwIK7Nvn7XDacx0vI74HRn2cZ6H11TmzFMmeVLQEjTyZn8LI3aIdh/p8S+tZ0QhG/qjOesI+qtk0niaYQLT+ZXa2gTrroBQFjKmGAzz0WiiZLfp3p6nqKlMuVoQrI6DUjnrB4PLG0hrdyyMV4PkaSEA+5WQg8Y7gFDdPCqMB7X0jwQwEIY6L9w1enKw0EptogJMOLXMWKwusVCvslSyjLqeYoWx9ZTElIMdFWpB1n2QjuDmBphVrbsh+ji/dP/wLuN++pWVvTZM4X5BZtJqmk='
    )));
    ?>
    Knocked out a few bytes
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  3. #3
    SitePoint Member
    Join Date
    May 2003
    Location
    Kiel, Germany
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, have not thought of that!
    Thanks!!! :-)
    If I remove the standard password and maybee the html tag i'm below 500b :-)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •