3 If not already present, this script part loads your main "config.php"
4 and ewiki core script / database interface. It does not make use of the
5 tools/t_config, because that would terminate immediately if it wasn't
6 run with a correctly set HTTP Basic auth environment.
8 You can also change any defines/config settings in here, but we
9 recommended that you instead create something like "S07yourconfig.php"
10 and pack them in there (better when upgrading). Keep the Snn-number
11 below 10 so it really is executed before this config script.
13 Btw, everything will be executed in the ewiki installations base
18 #-- load ewiki config, if it isn't alread present
19 if (!class_exists("ewiki_db")) {
21 #-- we leave the cron.d/ directory
22 echo "[$cron]: loading main 'config.php' from ewiki base directory\n";
24 include("config.php");
27 #-- that's ok for us, too
29 echo "[$cron]: we're appeareantly running as trail/shutdown code on real ewiki\n";
33 #-- pre-define a few settings for the following cron.d/ parts
35 // define("PREPARE_AUTOLINKING", 1);
39 #-- define start time, if not already done
40 @define("EWIKI_CRON", time());