LANG, 'date' => date("Y"), 'site_title' => title.($site_title?' - '.$site_title:''), 'site_description' => site_description, 'site_keywords' => site_keywords, 'ip' => get_ip_address(), 'favicon' => 'favicon.ico', 'topmenu' => $topmenu, 'bottom_menu' => $bottom_menu, 'side_menu' => $side_menu, 'ACTIVE' => $ACTIVE, 'header_bg' => $header_bg, ); $tpl->addVar($DESIGN, 'variables', $variables); $tpl->addVar($DESIGN, 'ACTIVE', $ACTIVE); $registry = Registry::getInstance(); ### reading structure and building left,central and right blocks $structure = array(); $structure = unserialize($ACTIVE['structure']); foreach ($structure as $k=>$v) {BuildBlock($k,$v);} print $tpl->parseIntoString($DESIGN); $CONN->_close(); list($msec,$sec)=explode(chr(32),microtime()); ?>