#!/usr/pkg/bin/perl
# ====================[ index.pl                           ]====================
#
# --------------------( CACHING                            )--------------------
# Clear the Oddmuse page cache by appending "?action=clear" onto that Oddmuse
# Wiki's base URL when remotely logged in as an administrator to that Oddmuse
# Wiki; or touch the "pageidx" file, when locally logged into its host machine.
#
# --------------------( TODO                               )--------------------
# FIXME BWC: Jesus. What a fuckin' ungodly, ugly bitch this was to install. Add
# Wiki instructions on my Wiki for installation, using this as a reference:
#
# http://zhurnaly.com/cgi-bin/wiki/InitialOddmuseInstallationNotes
#
# Be sure to note Gentoo-specific disabling of suexec (...by renaming
# "/usr/bin/suexec", of all hacky things) and complete avoidance of mod_perl
# (due to Oddmuse cludgery and incompatibility with mod_perl) by adding
# "AddHandler" to "00_mod_mime".
#
# Also, if Oddmuse ever causes the browser to wait indefinitely, without
# informative error, you may have wrong permissions on files in ".wiki". See
# the script I wrote to amend this. (Arguably, Oddmuse is an unstable... well,
# you know what it is.)
#
# Also, mention "mod_rewrite" logging (see file "00_mod_logfile").
#
# What a *bitch* that rewriting was. Jesus christ, man. The f#$k are
# software engineers thinking, eh? The 'ell is this all so unnecessarily
# complex for? F*$k man; the world's drowning in blood and war, and we can't
# even write a reasonably intuitive URL rewriter.
package OddMuse;
use lib "/arpa/af/b/bcurry/.perl/lib/";

# ....................{ PATHS                              }....................
$DataDir = '/arpa/af/b/bcurry/html/wiki';
$ConfigFile = $DataDir.'/config.pl';

# ....................{ ODDMUSE                            }....................
do 'wiki.pl';
