<div class="row buttons"> <input type="submit" name="submit" value="<?php echo _AT('back'); ?>" /> <?php if (isset($_GET['new']) && $_GET['new']): ?> <input type="submit" name="install" value="<?php echo _AT('install'); ?>" /> <?php endif; ?> </div> </div> </form> <?php require(AT_INCLUDE_PATH.'footer.inc.php'); exit; } $moduleParser->parse(file_get_contents('../../../mods/'.$_GET['mod'].'/module.xml')); $module = $moduleFactory->getModule($_GET['mod']); $properties = $module->getProperties(array('maintainers', 'url', 'date', 'license', 'state', 'notes', 'version')); ?> <?php if (isset($_REQUEST['new'])): ?> <?php $hidden_vars['mod'] = $_REQUEST['mod']; $hidden_vars['new'] = '1'; $msg->addConfirm(array('ADD_MODULE', $_REQUEST['mod']), $hidden_vars); $msg->printConfirm(); ?> <?php endif; ?>
<input type="submit" name="install" value="<?php echo _AT('install'); ?> " /> <?php } ?> </div> </div> </form> <?php require AT_INCLUDE_PATH . 'footer.inc.php'; exit; } $moduleParser->parse(file_get_contents($main_module_dir . $_GET['mod'] . '/module.xml')); $module = $moduleFactory->getModule($_GET['mod']); $properties = $module->getProperties(array('maintainers', 'url', 'date', 'license', 'state', 'notes', 'version')); ?> <?php if (isset($_REQUEST['new'])) { ?> <?php $hidden_vars['mod'] = $_REQUEST['mod']; $hidden_vars['new'] = '1'; $msg->addConfirm(array('ADD_MODULE', $_REQUEST['mod']), $hidden_vars); $msg->printConfirm(); } ?>
echo _AT('install'); ?> " /> <?php } ?> </div> </div> </form> <?php require AT_INCLUDE_PATH . 'footer.inc.php'; exit; } $readme = get_readme(AT_SUBSITE_MODULE_PATH . $mod); $moduleParser->parse(file_get_contents(AT_SUBSITE_MODULE_PATH . $mod . '/module.xml')); $module = $moduleFactory->getModule($mod); $properties = $module->getProperties(array('maintainers', 'url', 'date', 'license', 'state', 'notes', 'version')); ?> <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <input type="hidden" name="mod" value="<?php echo $mod; ?> " /> <input type="hidden" name="new" value="<?php echo $new; ?> " />
function _initModuleProperties() { if (!isset($this->_properties)) { require_once dirname(__FILE__) . '/ModuleParser.class.php'; $moduleParser = new ModuleParser(); $moduleParser->parse(@file_get_contents($this->_module_path . $this->_directoryName . '/module.xml')); if ($moduleParser->rows[0]) { $this->_properties = $moduleParser->rows[0]; } else { $this->_properties = array(); $this->setIsMissing(); // the xml file may not be found -> the dir may be missing. } } }
<input type="submit" name="submit" value="<?php echo _AT('back'); ?>" /> <?php if (isset($new) && $new): ?> <input type="submit" name="install" value="<?php echo _AT('install'); ?>" /> <?php endif; ?> </div> </div> </form> <?php require(AT_INCLUDE_PATH.'footer.inc.php'); exit; } $readme = get_readme('../../../mods/'.$mod); $moduleParser->parse(file_get_contents('../../../mods/'.$mod.'/module.xml')); $module = $moduleFactory->getModule($mod); $properties = $module->getProperties(array('maintainers', 'url', 'date', 'license', 'state', 'notes', 'version')); ?> <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="hidden" name="mod" value="<?php echo $mod; ?>" /> <input type="hidden" name="new" value="<?php echo $new; ?>" /> <input type="hidden" name="permission_granted" value="<?php echo $permission_granted; ?>" /> <input type="hidden" name="enabled" value="<?php echo (int) isset($_GET['enabled']); ?>" /> <input type="hidden" name="disabled" value="<?php echo (int) isset($_GET['disabled']); ?>" /> <input type="hidden" name="core" value="<?php echo (int) isset($_GET['core']); ?>" /> <input type="hidden" name="standard" value="<?php echo (int) isset($_GET['standard']); ?>" /> <input type="hidden" name="extra" value="<?php echo (int) isset($_GET['extra']); ?>" />