Revision 466, 492 bytes
(checked in by kovell, 13 years ago)
|
Reverting 464 changes. apiuser mod actually does work for some and is used by other mods.
|
Line | |
---|
1 | <?php |
---|
2 | //debut Mod PHPBB |
---|
3 | // Gestion de la page |
---|
4 | require_once('kbconfig.php'); |
---|
5 | require_once('common/includes/globals.php'); |
---|
6 | require_once('common/includes/db.php'); |
---|
7 | session_start(); |
---|
8 | if (strstr(config::get("mods_active"),'apiuser')===false){} else |
---|
9 | { |
---|
10 | if (!isset($_SESSION['phpOK'])) |
---|
11 | header('location: checkphpbb.php'); |
---|
12 | |
---|
13 | if (isset($_SESSION['phpOK']) && $_SESSION['phpOK']==0 && $_GET['a']<>'error') |
---|
14 | { |
---|
15 | header('location: index.php?a=error'); |
---|
16 | exit(); |
---|
17 | } |
---|
18 | } |
---|
19 | //fin Mod PHPBB |
---|
20 | ?> |
---|