* @package redaxo4 * @version $Id: module.modules.inc.php,v 1.1 2008/03/26 13:34:13 kills Exp $ */ $OUT = TRUE; $function = rex_request('function', 'string'); // ---------------------------- ACTIONSFUNKTIONEN FÜR MODULE if (!empty($add_action)) { $action = new rex_sql(); $action->setTable($REX['TABLE_PREFIX'] . 'module_action'); $action->setValue('module_id', $modul_id); $action->setValue('action_id', $action_id); if ($action->insert()) { $message = $I18N->msg('action_taken'); $goon = 'ja'; } else { $message = $action->getErrro(); } } elseif (isset($function_action) and $function_action == 'delete') { $action = new rex_sql(); $action->setTable($REX['TABLE_PREFIX'] . 'module_action'); $action->setWhere('id=' . $iaction_id . ' LIMIT 1'); $message = $action->delete($I18N->msg('action_deleted_from_modul')); } // ---------------------------- FUNKTIONEN FÜR MODULE $module_in_use_message = ''; if ($function == 'delete') { $del = new rex_sql(); $del->setQuery("SELECT " . $REX['TABLE_PREFIX'] . "article_slice.article_id, " . $REX['TABLE_PREFIX'] . "article_slice.clang, " . $REX['TABLE_PREFIX'] . "article_slice.ctype, " . $REX['TABLE_PREFIX'] . "module.name FROM " . $REX['TABLE_PREFIX'] . "article_slice\r\n LEFT JOIN " . $REX['TABLE_PREFIX'] . "module ON " . $REX['TABLE_PREFIX'] . "article_slice.modultyp_id=" . $REX['TABLE_PREFIX'] . "module.id\r\n WHERE " . $REX['TABLE_PREFIX'] . "article_slice.modultyp_id='{$modul_id}' GROUP BY " . $REX['TABLE_PREFIX'] . "article_slice.article_id"); if ($del->getRows() > 0) { $modulname = htmlspecialchars($del->getValue($REX['TABLE_PREFIX'] . "module.name")); for ($i = 0; $i < $del->getRows(); $i++) {
$goon = rex_request('goon', 'string'); $add_action = rex_request('add_action', 'string'); $info = ''; $warning = ''; $warning_block = ''; // ---------------------------- ACTIONSFUNKTIONEN FÜR MODULE if ($add_action != "") { $action = new rex_sql(); $action->setTable($REX['TABLE_PREFIX'] . 'module_action'); $action->setValue('module_id', $modul_id); $action->setValue('action_id', $action_id); if ($action->insert()) { $info = $I18N->msg('action_taken'); $goon = '1'; } else { $warning = $action->getErrro(); } } elseif ($function_action == 'delete') { $action = new rex_sql(); $action->setTable($REX['TABLE_PREFIX'] . 'module_action'); $action->setWhere('id=' . $iaction_id . ' LIMIT 1'); $info = $action->delete($I18N->msg('action_deleted_from_modul')); } // ---------------------------- FUNKTIONEN FÜR MODULE if ($function == 'delete') { $del = new rex_sql(); $del->setQuery("SELECT " . $REX['TABLE_PREFIX'] . "article_slice.article_id, " . $REX['TABLE_PREFIX'] . "article_slice.clang, " . $REX['TABLE_PREFIX'] . "article_slice.ctype, " . $REX['TABLE_PREFIX'] . "module.name FROM " . $REX['TABLE_PREFIX'] . "article_slice\r\n LEFT JOIN " . $REX['TABLE_PREFIX'] . "module ON " . $REX['TABLE_PREFIX'] . "article_slice.modultyp_id=" . $REX['TABLE_PREFIX'] . "module.id\r\n WHERE " . $REX['TABLE_PREFIX'] . "article_slice.modultyp_id='{$modul_id}' GROUP BY " . $REX['TABLE_PREFIX'] . "article_slice.article_id"); if ($del->getRows() > 0) { $module_in_use_message = ''; $modulname = htmlspecialchars($del->getValue($REX['TABLE_PREFIX'] . "module.name")); for ($i = 0; $i < $del->getRows(); $i++) {