10 require dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))).
'/mainfile.php';
20 include_once XOOPS_ROOT_PATH.
'/kernel/module.php';
22 $db = XoopsDatabaseFactory::getDatabaseConnection();
24 $sql =
"SELECT * FROM ".$db->prefix(
"modules").
" WHERE isactive='1' ORDER BY `name`";
29 $mod =
new XoopsModule();
30 $mod->assignVars($row);
33 if (file_exists(XOOPS_ROOT_PATH.
'/modules/'.
$mod->getVar(
'dirname').
'/class/'.strtolower(
$mod->getVar(
'dirname').
'controller').
'.php')){
34 include_once XOOPS_ROOT_PATH.
'/modules/'.
$mod->getVar(
'dirname').
'/class/'.strtolower(
$mod->getVar(
'dirname').
'controller').
'.php';
35 $class = ucfirst(
$mod->getVar(
'dirname')).
'Controller';
37 if (method_exists($class,
'get_main_link')){
38 $main_link = $class->get_main_link();
41 if (
$mod->getVar(
'hasmain')){
42 $main_link = XOOPS_URL.
'/modules/'.
$mod->dirname();
50 if (
$mod->getVar(
'hasmain')){
51 $main_link = XOOPS_URL.
'/modules/'.
$mod->dirname();
59 $admin_link =
$mod->getVar(
'hasadmin') ? XOOPS_URL.
'/modules/'.
$mod->dirname().
'/'.
$mod->getInfo(
'adminindex') :
'';
64 'id' =>
$mod->getVar(
'mid'),
65 'name' =>
$mod->getVar(
'name'),
66 'realname' =>
$mod->getInfo(
'name'),
68 'description' =>
$mod->getInfo(
'description'),
69 'image' => XOOPS_URL.
'/modules/'.
$mod->getVar(
'dirname').
'/'.
$mod->getInfo(
'image'),
71 'admin_link' => $admin_link,
72 'updated' => formatTimestamp(
$mod->getVar(
'last_update'),
's'),
73 'author' =>
$mod->getInfo(
'author'),
74 'author_mail' =>
$mod->getInfo(
'authormail'),
75 'author_web' =>
$mod->getInfo(
'authorweb'),
76 'author_url' =>
$mod->getInfo(
'authorurl'),
77 'license' =>
$mod->getInfo(
'license'),
78 'dirname' =>
$mod->getInfo(
'dirname'),
79 'active' =>
$mod->getVar(
'isactive')
89 <a rel=
"tooltip" href=
"<?php echo $mod['admin_link']; ?>" title=
"<?php echo $mod['name']; ?>">
90 <img src=
"<?php echo $mod['image']; ?>" alt=
"<?php echo $mod['name']; ?>" />
91 <span><?php echo $mod[
'name']; ?></span>