Constants

eFiction constants

TABLEPREFIX

it should be replaced with MPREFIX

temp solution (e_module.php):

if (!defined("TABLEPREFIX")) define("TABLEPREFIX", MPREFIX);

_TABLEPREFIX is LAN string, it is something else

_CHARSET

defined in header.php

eFiction way:

define ("_CHARSET", "utf-8");

temp solution (in header.php)

define("_CHARSET", CHARSET);

This constant is needed because this test:

if(!defined("_CHARSET")) exit( );

After replacing it with code bellow, it can be removed

if(!defined("e107_INIT")) exit( );

_BASEDIR

Needed and used. Path to efiction plugin. Defined in e_module.php

if (!defined("_BASEDIR")) define("_BASEDIR", e_PLUGIN."efiction/");

SITEKEY

Needed for sessions. If not set in e107_config.php file, it is set as e107 hash folder value (unique for each site and database, but it can be set manually)

if (!defined("SITEKEY"))  define("SITEKEY", $e107->site_path);

isMEMBER

needed for rights. The user has a related record in the author table. (to be able review etc. Other rights depend on access level)

USERUID

Author ID.

USERID - user ID.

USERPENNAME

The author penname. It can be different from the username.

uLEVEL

Access level.

isADMIN

The author with level access > 0 (at least level 1)

Last updated