changed git call from https to git readonly
[atutor.git] / mods / wiki / tools / cron.d / S10config.php
1 <?php
2 /*
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.
7    
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.
12    
13    Btw, everything will be executed in the ewiki installations base
14    directory from here.   
15 */
16
17
18 #-- load ewiki config, if it isn't alread present
19 if (!class_exists("ewiki_db")) {
20
21    #-- we leave the cron.d/ directory
22    echo "[$cron]: loading main 'config.php' from ewiki base directory\n";
23    chdir("../..");
24    include("config.php");
25 }
26
27 #-- that's ok for us, too
28 else {
29    echo "[$cron]: we're appeareantly running as trail/shutdown code on real ewiki\n";
30 }
31
32
33 #-- pre-define a few settings for the following cron.d/ parts
34 //
35 // define("PREPARE_AUTOLINKING", 1);
36
37
38
39 #-- define start time, if not already done
40 @define("EWIKI_CRON", time());
41
42 ?>