root/dev/mods/apiuser/phpbbaccess.php @ 491

Revision 466, 492 bytes (checked in by kovell, 11 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
4require_once('kbconfig.php');
5require_once('common/includes/globals.php');
6require_once('common/includes/db.php');
7session_start();
8if (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?>
Note: See TracBrowser for help on using the browser.