Inspired by ShortestWikiContest, I've created WikWiki from scratch. It's 1287 characters long (17 lines) and written in PHP. WikiPrinciples are obeyed. * '''Working demo:''' http://labs.smasty.net/WikWiki * '''Highlighted & formatted source''': http://labs.smasty.net/WikWiki/code.html A new version of WikWiki with advanced features is available on GitHub: http://github.com/smasty/WikWiki ----- '''Features''' * AutomaticLinkGeneration - Same behaviour as on this site * EasyTextInput ** Four or more dash characters create horizontal rule ** Dash on a new line followed by space creates list item ** New line creates
tag ** URLs starting by http(s) are converted to links ** Space indented line is monospaced * BackLinks support ----- '''Installation''' No special installation is required, just copy the source. ----- '''Short source code version''' $1','
  • $1', '
    ','$2','
    '),$c);preg_match_all('~([A-Z]\w+){2,}~',$r, $x);foreach(array_unique($x[0])as$m){$r=str_replace($m,x($m)? "$m": "$m?",$r);}return$r;}function f($f){@mkdir('wik');return @file_get_contents("wik/$f.w");}function b($b){echo"

    Backlinks $b" ."

    ";foreach(glob('wik/*.w')as$f){$f=substr($f,4,-2);if(strpos( f($f),$b)!==false)echo"$f
    ";}echo"
    ";}function x($f){ return file_exists("wik/$f.w");}function e($p){$p=$p?$p:$_GET['e'];echo"

    Edit" ." $p


    ";}$p=preg_replace('~(e|b)=(.*)~' ,'',$_SERVER[QUERY_STRING]);$c=$_POST[c];$e=$_GET[e];$b=$_GET[b];if(!$p&&!$e)$p= 'Main''''''Page';if($c){@file_put_contents("wik/$p.w",htmlspecialchars($c));header( "Location: ?$p");}echo"Wik Wiki";if(!$e){if(!$b){echo x($p)? "

    $p

    ".p(f($p))."

    " ."Edit | Modified: ".date('d.m.Y @ H:i:s', @filemtime("wik/$p.w")) :e($p);}else b($b);}else e($e); ---- '''License''' WikWiki is licensed under the terms and conditions of the MIT License - http://opensource.org/licenses/mit-license An author of the original WikWiki code is Martin Srank (http://smasty.net) ---- CategoryWikiImplementation