$current_page['page_id'], 'page_title' => $current_page['page_title'], 'page_name' => $current_page['page_name'], 'root' => $root_items . "../" ); $self['tree_names'][] = $current_page['page_name']; // 091209 $self['path'] .= $items[0]['page_name'] . "/"; $self['module_level'] = $i; if ($current_page['sublevels'] != 0) { $self['sublevel'] = $self['level'] - $i; } } } } } $self['menutree'] = $menutree; if (!$current_page) { $current_page = getPage("error"); $self['module_level'] = 1; $self['menutree'][] = array( 'page_id' => $current_page['page_id'], 'page_title' => $current_page['page_title'], 'page_name' => $current_page['page_name'], 'root' => $root_items . "../" ); } // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ $self['page_id'] = $current_page['page_id']; $onload = ""; $notfound = 0; $subtitle = ""; $root = ""; for ($i=0; $i 1, 'page' => 0, 'prevpage' => 0, 'nextpage' => 0); $params = array(); $i = 0; while (isset($self['tree_names'][$self['module_level']+$i]) && $self['tree_names'][$self['module_level']+$i] != "") { $params[$i] = $self['tree_names'][$self['module_level']+$i]; $i++; } $type = 0; require_once "modules/".$current_page['module'].".php"; if ( $notfound ) { $current_page = getPage("error"); require_once "modules/".$current_page['module'].".php"; } $menutree=""; require_once 'lib/keywords.php'; if ( isset($_GET['print']) ) { include "templates/main_print.tpl.php"; } else { include "templates/".$current_page['template'].".tpl.php"; } // include "templates/".$current_page['template'].".tpl.php"; mysql_close($link); ?>