1
fatman
minimum admin cp requirements
  • 2003/12/16 21:51

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


Hi. I'm constructing my first module which will have a simple admin side. As far as assembling the admin portion of a module is there anywhere which outlines the a preferred method of organizing files?

The wiki doesn't go into the admin side of things. I've looked at several other modules and think the minimum I need to do is the following

in /admin/index.php

include("../../../mainfile.php");
include_once(
XOOPS_ROOT_PATH."/include/cp_functions.php");
xoops_cp_header();
// main admin logic
xoops_cp_footer();


That works fine for me, just want to make sure I'm not missing something critical, specially for security.


2
Mithrandir
Re: minimum admin cp requirements

That looks fine to me
The xoops_cp_header();
takes care of the access rights

Login

Who's Online

147 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 147


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits