[ewiki] Flags! Flags?
- From: Andy Fundinger <andy@xxxxxxxxxxx>
- To: "'ewiki@xxxxxxxxxxxxx'" <ewiki@xxxxxxxxxxxxx>
- Date: Mon, 3 Nov 2003 16:23:07 -0500
Mario, could you explain how the flags are defined? Looking at the
R1_01b(ewiki.php v1.79) code from the CVS it looks like having
EWIKI_DB_F_WRITEABLE unset triggers extra checks but does not itself prevent
editing. To actually block editing $flag & EWIKI_DB_F_WRITEABLE must be
false and:
An auth query at ring 2,"FORCE" must fail
-or-
it must be flagged read only and you must not have been set to $ring== 1
higher
-or-
it must not be flagged as text and you must not have been set to $ring== 0
Although this seems strange to me it looks like this must be your intended
action. Is it? Could you note what the intended meaning of the main flags
is?
define("EWIKI_DB_F_TEXT", 1<<0);
define("EWIKI_DB_F_BINARY", 1<<1);
define("EWIKI_DB_F_DISABLED", 1<<2);
define("EWIKI_DB_F_HTML", 1<<3);
define("EWIKI_DB_F_READONLY", 1<<4);
define("EWIKI_DB_F_WRITEABLE", 1<<5);
define("EWIKI_DB_F_APPENDONLY", 1<<6); #nyi
define("EWIKI_DB_F_SYSTEM", 1<<7);
-Andy
Other related posts: