/** * This function show a resume of the changes that will be made by module */ function module_install() { global $xoopsSecurity; $dir = rmc_server_var($_GET, 'dir', ''); if ($dir == '' || !file_exists(XOOPS_ROOT_PATH . '/modules/' . $dir . '/xoops_version.php')) { redirectMsg('modules.php', __('Specified module is not valid!', 'rmcommon'), 1); die; } $module_handler = xoops_gethandler('module'); if ($module = $module_handler->getByDirname($dir)) { redirectMsg('modules.php', sprintf(__('%s is already installed!', 'rmcommon'), $module->name()), 1); die; } $module =& $module_handler->create(); if (!$module->loadInfo($dir, false)) { redirectMsg('modules.php', __('Sepecified module is not a valid Xoops Module!', 'rmcommon'), 1); die; } $module = RMEvents::get()->run_event('rmcommon.preinstall.module', $module); RMTEmplate::get()->add_script('include/js/modules.js'); RMTemplate::get()->add_style('modules.css', 'rmcommon'); RMFunctions::create_toolbar(); xoops_cp_header(); include RMTemplate::get()->get_template('rmc_mod_preinstall.php', 'module', 'rmcommon'); xoops_cp_footer(); }
<a name="rd_top"></a> <!-- Table of Contents --> <?php include RMTEmplate::get()->get_template('rd_resindextoc.php', 'module', 'docs'); ?> <!-- /Table of Contents --> <!-- Document Content --> <?php foreach ($toc as $sec) { ?> <?php include RMTemplate::get()->get_template('rd_item.php', 'module', 'docs'); } ?> <!-- /End Document content --> <div class="rd_nav_links"> </div> <div class="rd_section_data"> <p class="left"> <?php if (isset($pdf_book_url) && $pdf_book_url != '') { ?> <a href="<?php echo $pdf_book_url; ?> "><?php _e('Create PDF Book', 'docs'); ?> </a><br /><?php }