> For the complete documentation index, see [llms.txt](https://playground.e107sk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://playground.e107sk.com/e107-efiction-integration/outdated/constants.md).

# Constants

## eFiction constants

### TABLEPREFIX

it should be replaced with MPREFIX

temp solution  (e\_module.php):&#x20;

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

{% hint style="info" %}
\_TABLEPREFIX is LAN string, it is something else&#x20;
{% endhint %}

### \_CHARSET

defined in header.php&#x20;

eFiction way:

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

&#x20;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);
```

{% content-ref url="/pages/-MiQ1ZPEKtkQ-fyhVI6T" %}
[Broken mention](broken://pages/-MiQ1ZPEKtkQ-fyhVI6T)
{% endcontent-ref %}

### 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.

{% hint style="info" %}
USERID - user ID.&#x20;
{% endhint %}

### USERPENNAME

The author penname. It can be different from the username.&#x20;

### uLEVEL

Access level.

### isADMIN

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

&#x20;
