> 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/e107-integration-i/registration-login.md).

# Registration/login

## Links&#x20;

There are 4 links related to this topic

* registration
* login
* logout
* forgotten password

### 1. new links as redirections&#x20;

```
if($current == "logout") e107::redirect(SITEURL."index.php?logout");
if($action == "register") e107::redirect(e_SIGNUP); 
if($action == "login") e107::redirect(e_LOGIN); 
if($action == "lostpassword") e107::redirect(SITEURL."fpw.php");
```

{% hint style="info" %}
e\_SIGNUP is constant for SITEURL."signup.php"

e\_LOGIN is constant for SITEURL."login.php"

SITEURL is root of your e107 installation
{% endhint %}

Those files can be deleted:

* user/registered.php
* user/login.php
* user/logout.php
* user/lostpassword.php

### 2. changed panels data&#x20;

to save efiction functionality otherwise, this is not needed&#x20;

**eFiction**

<table><thead><tr><th width="224.33333333333331"></th><th></th></tr></thead><tbody><tr><td>logout</td><td>('logout', 'Logout', '', 1, 1, 0, 'U'),</td></tr><tr><td>password</td><td>('lostpassword', 'Lost Password', '', 0, 0, 1, 'U'),</td></tr><tr><td>register</td><td>('register', 'Register', '', 0, 0, 1, 'U'),</td></tr><tr><td>login</td><td>('login', 'Login', '', 0, 0, 1, 'U'),</td></tr></tbody></table>

**e107**

<table><thead><tr><th width="151"></th><th></th></tr></thead><tbody><tr><td>logout</td><td>('logout', 'Logout', 'login.php', 1, 1, 0, 'U'),</td></tr><tr><td>password</td><td>('lostpassword', 'Lost Password', 'fpw.php', 0, 0, 1, 'U'),</td></tr><tr><td>register</td><td>('register', 'Register', 'signup.php', 0, 0, 1, 'U'),</td></tr><tr><td>login</td><td>('login', 'Login', 'login.php', 0, 0, 1, 'U'),</td></tr></tbody></table>

&#x20;

&#x20;

&#x20;

##
