X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fglobals.inc.php.in;h=9bb1b54f139a2fc14a7550c0b858ead74f4b1ef4;hb=8ddd48c31ce151144118292e20fcdaa10ded9738;hp=6ad5a3c5e2da82c8125c8b477384a993493f1473;hpb=259626014d09f53dd6993724a6b0f38bb8af8b86;p=platal.git diff --git a/include/globals.inc.php.in b/include/globals.inc.php.in index 6ad5a3c..9bb1b54 100644 --- a/include/globals.inc.php.in +++ b/include/globals.inc.php.in @@ -26,6 +26,9 @@ class PlatalGlobals /** The x.org version */ public $version = '@VERSION@'; public $debug = 0; + public $mode = 'rw'; // 'rw' => read/write, + // 'r' => read/only + // '' => site down /** db params */ public $dbdb = 'x4dat'; @@ -104,7 +107,7 @@ class PlatalGlobals } if ($gp) { - $res = XDB::query('SELECT a.*, d.nom AS domnom + $res = XDB::query('SELECT a.*, d.nom AS domnom, FIND_IN_SET(\'wiki_desc\', a.flags) AS wiki_desc FROM groupex.asso AS a LEFT JOIN groupex.dom AS d ON d.id = a.dom WHERE diminutif = {?}', $gp);