Parent Directory
|
Revision Log
Many builtin functions are removed and implemented as plugin modules
| 1 | wakaba | 1.9 | #!/usr/bin/perl |
| 2 | wakaba | 1.16 | # wiki.cgi - This is YukiWiki, yet another Wiki clone. |
| 3 | wakaba | 1.9 | # |
| 4 | wakaba | 1.16 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the same terms as Perl itself. | ||
| 6 | |||
| 7 | use strict; | ||
| 8 | w | 1.44 | use lib qw(./lib); |
| 9 | wakaba | 1.16 | use CGI::Carp qw(fatalsToBrowser); |
| 10 | w | 1.47 | our $VERSION = do{my @r=(q$Revision: 1.46 $=~/\d+/g);sprintf "%d."."%02d" x $#r,@r}; |
| 11 | w | 1.43 | |
| 12 | require 'wikidata/suikawiki-config.ph'; | ||
| 13 | wakaba | 1.16 | use Fcntl; |
| 14 | ############################## | ||
| 15 | wakaba | 1.31 | my %fmt; ## formatter objects |
| 16 | wakaba | 1.22 | my %embed_command = ( |
| 17 | searched => '^\[\[#searched:([^\]]+)\]\]$', | ||
| 18 | w | 1.43 | form => qr/\[\[\#form(?:\(([A-Za-z0-9-]+)\))?:'((?:[^'\\]|\\.)*)':'((?:[^'\\]|\\.)*)'(?::'((?:[^'\\]|\\.)*)')?\]\]/, |
| 19 | wakaba |