if (file_exists($skin_fn)) { parse_str(file_get_contents($skin_fn)); if ($skin) { include $skin; } } if (file_exists($fonts_fn)) { parse_str(file_get_contents($fonts_fn)); } if (file_exists($colors_fn)) { parse_str(file_get_contents($colors_fn)); } $pfsize_css = html_size_to_css_size($pfsize); $nfsize_css = html_size_to_css_size($nfsize); $sfsize_css = html_size_to_css_size($sfsize); $hfsize_css = html_size_to_css_size($hfsize); } // TIMEZONE //----------------------------------------------------------------------------------------- if (strlen($_SERVER['USERINFO_ARRAY']['timezone']) <= 3) { $_SERVER['USERINFO_ARRAY']['timezone'] = "America/New_York"; } putenv("TZ={$_SERVER[USERINFO_ARRAY][timezone]}"); profile('essential', 'end'); //------------------------------------------------------------------------------ // FUNCTIONS BEGIN HERE //============================================================================== if (!function_exists("stripos")) { function stripos($str, $needle, $offset = 0) { return strpos(strtolower($str), strtolower($needle), $offset);
@(include $skin); } parse_str(@file_get_contents("{$_SERVER['USER_ROOT']}/colors.txt")); //reads user fonts parse_str(@file_get_contents("{$_SERVER['USER_ROOT']}/fonts.txt")); //reads user fonts eval(@file_get_contents("{$_SERVER['USER_ROOT']}/user_css.txt")); //reads user css if ($_GET['skin'] != 'normal') { $headbgimg = ''; @(include_once "{$_GET['skin']}.skin"); } $GLOBALS['pfsize_css'] = html_size_to_css_size($pfsize); $GLOBALS['nfsize_css'] = html_size_to_css_size($nfsize); $GLOBALS['sfsize_css'] = html_size_to_css_size($sfsize); $GLOBALS['hfsize_css'] = html_size_to_css_size($hfsize); if ($pfont) { $GLOBALS['pfonts'] = "{$pfont},{$pfonts}"; } if ($hfont) { $GLOBALS['hfonts'] = "{$hfont},{$hfonts}"; } if ($nfont) { $GLOBALS['nfonts'] = "{$nfont},{$nfonts}"; } if ($sfont) { $GLOBALS['sfonts'] = "{$sfont},{$sfonts}"; } if (trim($listsbgimg)) { $listsbgimage = "url({$listsbgimg})"; }