From: Jeff D. <da...@da...> - 2002-08-22 16:01:47
|
On Thu, 22 Aug 2002 11:41:45 -0400 xi...@yi... wrote: > Parse error: parse error, unexpected ';', expecting T_OLD_FUNCTION or > T_FUNCTION or T_VAR or '}' > in /home/mysite/public_html/wiki/04/lib/WikiUser.php on line 165 > > Fatal error: Cannot instantiate non-existent class: wikiuser > in /home/mysite/public_html/wiki/04/lib/main.php on line 139 That all just means there's a syntax error in WikiUser.php somewhere. (Presumably the part just changed.) Send me (privately --- not on list) a copy of your WikiUser.php, and I'll see if I can spot the problem. > ---- > > Now, in main.php there are the lines: > > case 'edit': > if (defined('REQUIRE_SIGNIN_BEFORE_EDIT') && > REQUIRE_SIGNIN_BEFORE_EDIT) > return WIKIAUTH_BOGO; > return WIKIAUTH_ANON; > // return WIKIAUTH_BOGO; > > ---- > > and I was wondering if maybe something needs to be added there to > include another instance (maybe 'return WIKIAUTH_USER;' ?)... The method which those lines are in is responsible for reporting the minimum level of authentication (or authority) neede to perform a given action. The section of code you've quoted above says: if REQUIRE_SIGNIN_BEFORE_EDIT has been set, then users must have authenticated themselves at least to the bogo-login level (any authentication level higher than that --- either _USER or _ADMIN --- is okay too.); and if REQUIRE_SIGNIN_... has not been set, then anyone can perform action 'edit'. (WIKIAUTH_ANON is the lowest authentication level.) Your current problem is (only) the syntax error in WikiUser.php around line 165. |