phpBB - Admin integration CMS

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.2/Rhea followed by 3.3.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
Gherom
Registered User
Posts: 1
Joined: Wed Nov 23, 2016 1:27 pm

phpBB - Admin integration CMS

Post by Gherom » Wed Nov 23, 2016 1:50 pm

Hi,
I created a simple blog CMS and after some time I really didn't see the point of having a user database + creating the whole security from scratch for the blog since I'm using phpBB.

What I want is for the forum administrators to have acces to the blog admin panel.
I read some (old) phpBB topics and what I ended up with is basically this:

Code: Select all

<?php
define('IN_PHPBB', true);
$phpbb_root_path = $_SERVER['DOCUMENT_ROOT'];
$phpbb_root_path .= '/forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

$request->enable_super_globals();
$user->session_begin();
$auth->acl($user->data);
$user->setup();
?>
Check the user privilege:

Code: Select all

<?php if ($auth->acl_gets('a_')): ?>
My question is, is this enough or even recommended ?


LE: Oh, I'm sorry, my bad.
Last edited by Gherom on Wed Nov 23, 2016 3:40 pm, edited 2 times in total.

User avatar
hanakin
Infrastructure Team
Infrastructure Team
Posts: 788
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Re: phpBB - Admin integration CMS

Post by hanakin » Wed Nov 23, 2016 3:02 pm

Hi,

This is the development forums for the project. Topics posted here are meant for to further progression and development of the project itself. I think you may want to ask your question in the support forums on phpbb.com

https://www.phpbb.com/community/viewforum.php?f=551

Post Reply