11 define(
'RMCLOCATION',
'dashboard');
12 include_once
'../../include/cp_header.php';
16 XoopsLogger::getInstance()->activated =
false;
17 XoopsLogger::getInstance()->renderingEnabled =
false;
19 $db = XoopsDatabaseFactory::getDatabaseConnection();
20 $sql =
"SELECT COUNT(*) FROM ".$db->prefix(
"modules");
30 $nav->target_url(
'javascript:;" onclick="get_mods_page({PAGE_NUM})');
32 $sql =
'SELECT * FROM ' .
$db->prefix(
'modules').
" ORDER BY mid, weight LIMIT $start,$limit";
34 $installed_mods = array();
36 $mod =
new XoopsModule();
37 $mod->assignVars($row);
38 $installed_mods[] =
$mod;
41 include
RMTemplate::get()->get_template(
'rmc_mods_installed.php',
'module',
'rmcommon');
51 $db = XoopsDatabaseFactory::getDatabaseConnection();
52 $sql =
'SELECT * FROM ' .
$db->prefix(
'modules');
54 $installed_mods = array();
56 $installed_mods[] = $row[
'dirname'];
59 require_once XOOPS_ROOT_PATH .
"/class/xoopslists.php";
60 $dirlist = XoopsLists::getModulesList();
61 $available_mods = array();
62 $module_handler =& xoops_gethandler(
'module');
64 foreach ($dirlist as
$file) {
68 if (!in_array($file, $installed_mods)) {
69 $module =& $module_handler->create();
70 if (!$module->loadInfo($file,
false)) {
73 $available_mods[] = $module;
83 RMTemplate::get()->add_help(
__(
'Dashboard Help',
'rmcommon'),
'http://www.xoopsmexico.net/docs/common-utilities/uso-de-common-utilities/standalone/1/#dashboard');
84 include
RMTemplate::get()->get_template(
'rmc_dashboard.php',
'module',
'rmcommon');
95 if (is_file(
RMCPATH.
'/themes/'.$theme.
'/admin_gui.php')){
96 $db = XoopsDatabaseFactory::getDatabaseConnection();
97 $sql =
"UPDATE ".$db->prefix(
"config").
" SET conf_value='$theme' WHERE conf_name='theme' AND conf_modid='".$xoopsModule->mid().
"'";
99 redirectMsg(
'index.php',
__(
'Theme changed successfully!',
'rmcommon'), 0);
102 redirectMsg(
'index.php',
__(
'Theme could not be changed!',
'rmcommon').
'<br />'.
$db->error(), 0);
107 redirectMsg(
'index.php',
__(
'Specified theme does not exist!',
'rmcommon'), 1);