1
hi,
I'm trying to develop a module search process for an existing module , but are having problems with paths etc.
when xoops/search.php calls my function , the php path is still xoopshome so thing like include(../../mainfile.php) fail.
While I can get around the direct calls , some of my calls then include files of there own etc.
Is there a recommend way to change the cwd to the that of module while in the call that the includes all work ?
i.e. myseach.php
function xoops_search()
{
include('../../mainfile.php');
include ('lib/func.php');
}
func.php
{
include ('lib/morefunc.php');
}
Also where are all the global XOOPS variables such as XOOPSDB etc. I presume I get get the module path from this , if I knew which module was running etc
Thx
Ian