Deprecated: Assigning the return value of new by reference is deprecated in /home/bluestat/public_html/source/index.php on line 477
userinfo['stylechoice'] ? $kalens->options['defaultstyle'] : $kalens->userinfo['stylechoice']); $idlist = array(); $templates = $db->query("SELECT templatename, styleid, templateid FROM " . TABLE_PREFIX . "template WHERE styleid IN ($styleid, -1)"); while ($tpl = $db->fetch_array($templates)) { if (isset($idlist["$tpl[templatename]"]) AND $tpl['styleid'] != -1) { $idlist["$tpl[templatename]"] = $tpl['templateid']; } else if (!isset($idlist["$tpl[templatename]"])) { $idlist["$tpl[templatename]"] = $tpl['templateid']; } } $kalens->load('template', 'template', true); $template->set('tablename', 'template'); $template->set('namecolumn', 'templatename'); $template->set('datacolumn', 'template'); $template->set('extrawhere', 'AND templateid IN (' . implode(',', $idlist) . ')'); // ################################################################### // pre-cache templates $globaltemplates = array( 'header', 'footer', 'headinclude', 'navbar', 'navbar_link', 'standard_error', 'standard_redirect', 'error_block', 'CSS_GLOBAL', 'STYLE_VARS' ); $template->cache(array_merge($globaltemplates, (array)$apptemplates)); // ################# EVAL HEADER AND FOOTER TEMPLATES ################ $info['currentyear'] = date('Y', TIMENOW); $info['version'] = $kalens->options['systemversion']; $info['today'] = pcdate($kalens->options['dateformat_notime'], TIMENOW); // Prep $stylevar eval($template->fetch('STYLE_VARS')); eval('$footer = "' . $template->fetch('footer') . '";'); eval('$header = "' . $template->fetch('header') . '";'); if (!$kalens->userinfo['userid']) { $kalens->userinfo['stylechoice'] = $kalens->options['defaultstyle']; } $kalens->debug("style = " . $kalens->userinfo['stylechoice']); if ($kalens->options['fcachecss']) { eval('$css_style = "' . "\n\n" . 'userinfo['stylechoice']) . '.css\" />' . "\n\n\n" . '";'); } else { eval('$css_style = "' . "\n\n" . '' . "\n\n\n" . '";'); } eval('$headinclude = "' . $template->fetch('headinclude') . '";'); unset($css_style); /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>