Forum Activity

Forum feed

» see all | » latest posts

Pnphpbb2 group permissions  Top

  • Hello,

    I am trying to make a PHP page for postnuke, that I want only to be accessible by certain usergroups that are set up in PNphpBB2. How do I go about doing this?
  • Something like...

    Code

    <?php
    // Begin PNphpBB2 Module
    if (!defined("LOADED_AS_MODULE")) {
         die ("You can't access this file directly...");
    }
    global $pnconfig;
    $pntable = pnDBGetTables();
    $ModName = basename( dirname( __file__ ) );
    // End PNphpBB2 Module

    define('IN_PHPBB', true);
    // Begin PNphpBB2 Module
    $phpbb_root_path = './modules/' . $ModName . '/';
    // End PNphpBB2 Module
    include($phpbb_root_path . 'extension.inc');
    include($phpbb_root_path . 'common.'.$phpEx);

    // Start session management
    //
    $userdata = session_pagestart($user_ip, PAGE_VIEWMEMBERS);
    init_userprefs($userdata);
    //
    // End session management
    //

    if ($userdata['session_logged_in'])
    {

    /* Your PHP Content here
    echo "Hello World";
    */

    }

    ?>


    Didnt have the time to test it, off to work now!

This list is based on the users active over the last 60 minutes.