function content_module($title, $module) { $vars['title'] = $title; $vars['navi'] = $this->navi_menu(); if (preg_match('/(.*?)\\((.*?)\\)/', $module, $match)) { $module = $match[1]; $args = $match[2]; } if (!class_exists($module)) { include_once $module . '.php'; } if (is_callable(array($module, 'class_init'))) { eval('$instance = new $module (' . $args . ');'); $instance->class_init($this); } else { $instance = new $module($this); } if ($module != 'Login' && $this->require_valid_user) { // hier nochmal checken, falls Modul eine eigene User-Tabelle mitbringt if ($this->custom_user_table) { Login::check_login($this); } if (!$this->valid_user) { return; } } $instance_show = $instance->show(); $vars['other_css'] = $this->other_css; if (isset($instance->other_css)) { $vars['other_css'] .= $instance->other_css; } if (isset($GLOBALS['other_css'])) { $vars['other_css'] .= $GLOBALS['other_css']; } $vars['scripts'] = $this->scripts; if (isset($instance->scripts)) { $vars['scripts'] .= $instance->scripts; } //deprecated if (isset($GLOBALS['scripts'])) { $vars['scripts'] .= $GLOBALS['scripts']; } // half deprecated if (isset($_GET['noframe']) || $this->noframe) { if (isset($instance->extern)) { $GLOBALS['INCLUDE_EXTERN'] = $instance->extern; return; } return $instance_show; } if (RheinaufFile::is_file(DOCUMENT_ROOT . INSTALL_PATH . '/Templates/' . $modul . '/template.html')) { $page = new Seite($this, DOCUMENT_ROOT . INSTALL_PATH . '/Templates/' . $modul . '/template.html'); } else { $page = new Seite($this, $this->template ? $this->template : 'default'); } if (isset($instance->extern)) { $GLOBALS['HEADER'] = $page->header($vars); $GLOBALS['FOOTER'] = $page->footer($vars); $GLOBALS['INCLUDE_EXTERN'] = $instance->extern; return; } $header = $page->header($vars); // if ($modul!='Admin') // { $content = new Template($instance_show); $content->system =& $this; $content->init_snippets(); $content = $content->parse_template('', $vars); // } // else $content = $instance_show; $footer = $page->footer($vars); return $header . $content . $footer; }