Fork me on GitHub

Watch

GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Forum Activity

Forum feed

» Visit forum | » View latest posts

Need Help With creating module.  Bottom

  • Been trying to create a moudle from this script I wrote.
    Finally got it almost working.
    But there is one error on the page

    error : admin_execute(modules/User-Group_Admin/admin.php,User-Group_Admin_admin_main)

    This is what I have above my code

    Code

    if (!eregi('admin.php', $PHP_SELF))
    {
        die('Access Denied');
    }
        if (file_exists("modules/$ModName/pnlang/$currentlang/lang.php"))
         {
          include "modules/$ModName/pnlang/$currentlang/lang.php";
         } else {
            include "modules/$ModName/pnlang/eng/lang.php";
         }

    $ModName = $module;
       if (!(pnSecAuthAction(0, 'User-Group_Admin::', '::', ACCESS_ADMIN)))
       {
            $output->Text(_USERGROUPSNOAUTH);
            return $output->GetOutput();
       }

        //header
        include("header.php");
        OpenTable();

    $modinfo = pnModGetInfo(pnModGetIDFromName(pnModGetName()));
    include_once ("modules/".$modinfo['directory']."/config.php");

    // found this in the user.php in the root, says new way, but no difference that i see
    if (pnUserLoggedIn() and (!isset($op) or ($op == 'adminMain'))) {
        $module = 'User-Group_Admin';
        $op     = 'main';
    }


    Not sure if any of that is causing the problem.

    Any help is appreciated.
    Thanks.
  • 0 users

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