$args = ''; if (isset($_GET['enabled']) && $_GET['enabled']) { $args .= 'enabled=1'; } if (isset($_GET['disabled']) && $_GET['disabled']) { $args .= SEP.'disabled=1'; } if (isset($_GET['missing']) && $_GET['missing']) { $args .= SEP.'missing=1'; } if (isset($_GET['core']) && $_GET['core']) { $args .= SEP.'core=1'; } if (isset($_GET['standard']) && $_GET['standard']) { $args .= SEP.'standard=1'; } if (isset($_GET['extra']) && $_GET['extra']) { $args .= SEP.'extra=1'; } header('Location: index.php?'. $args); exit; } require(AT_INCLUDE_PATH.'header.inc.php'); $moduleParser = new ModuleParser(); $_REQUEST['mod'] = str_replace(array('.','..'), '', $_REQUEST['mod']); if (!file_exists('../../../mods/'.$_GET['mod'].'/module.xml')) { ?> <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="hidden" name="mod" value="<?php echo $_GET['mod']; ?>" /> <input type="hidden" name="new" value="<?php echo $_GET['new']; ?>" /> <div class="input-form"> <div class="row"> <h3><?php echo $_GET['mod']; ?></h3> </div> <div class="row"> <?php echo _AT('missing_info'); ?>
if (isset($_GET['core']) && $_GET['core']) { $args .= SEP . 'core=1'; } if (isset($_GET['standard']) && $_GET['standard']) { $args .= SEP . 'standard=1'; } if (isset($_GET['extra']) && $_GET['extra']) { $args .= SEP . 'extra=1'; } header('Location: index.php?' . $args); exit; } } } require AT_INCLUDE_PATH . 'header.inc.php'; $moduleParser = new ModuleParser(); $_REQUEST['mod'] = str_replace(array('.', '..'), '', $_REQUEST['mod']); $module = $moduleFactory->getModule($_GET['mod']); $main_module_dir = $module->getModulePath(); if (!file_exists($main_module_dir . $_GET['mod'] . '/module.xml')) { ?> <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <input type="hidden" name="mod" value="<?php echo $_GET['mod']; ?> " /> <input type="hidden" name="new" value="<?php echo $_GET['new'];
$args .= SEP . 'standard=1'; } if (isset($_GET['extra']) && $_GET['extra']) { $args .= SEP . 'extra=1'; } header('Location: index.php?' . $args); exit; } } } // copy module from content folder into mods folder if (isset($mod) && !isset($_GET['mod_in'])) { copys($module_content_folder . $mod, AT_SUBSITE_MODULE_PATH . $mod); } require AT_INCLUDE_PATH . 'header.inc.php'; $moduleParser = new ModuleParser(); if (!file_exists(AT_SUBSITE_MODULE_PATH . $mod . '/module.xml')) { ?> <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
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. } } }
if (isset($_GET['standard']) && $_GET['standard']) { $args .= SEP.'standard=1'; } if (isset($_GET['extra']) && $_GET['extra']) { $args .= SEP.'extra=1'; } header('Location: index.php?'. $args); exit; } // copy module from content folder into mods folder if (isset($mod) && !isset($_GET['mod_in'])) { copys($module_content_folder.$mod, '../../../mods/'.$mod); } require(AT_INCLUDE_PATH.'header.inc.php'); $moduleParser = new ModuleParser(); if (!file_exists('../../../mods/'.$mod.'/module.xml')) { ?> <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; ?>" /> <div class="input-form"> <div class="row"> <h3><?php echo $mod; ?></h3> </div> <div class="row"> <?php echo _AT('missing_info'); ?> </div>