function header_function() { global $vertical; if (!is_single() && is_home() && !is_archive()) { query_posts("what_to_show=posts&posts_per_page=1"); } if (!is_archive() && !is_search()) { ?> <style type="text/css" media="screen"> <?php while (have_posts()) { the_post(); // ececute the specific stylesheet print_stylesheet(); // determine if an image is vertical or not if (is_vertical(the_image_url(true))) { $vertical = true; } } rewind_posts(); ?> </style> <?php } }
function send_frameset() { global $C, $H, $I, $U; echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/html4/frameset.dtd\"><html><head>{$H['meta_html']}"; echo '<title>' . get_setting('chatname') . '</title>'; print_stylesheet(); if (isset($_COOKIE['test'])) { echo "</head><frameset rows=\"100,*,60\" border=\"3\" frameborder=\"3\" framespacing=\"3\"><frame name=\"post\" src=\"{$_SERVER['SCRIPT_NAME']}?action=post\"><frame name=\"view\" src=\"{$_SERVER['SCRIPT_NAME']}?action=view\"><frame name=\"controls\" src=\"{$_SERVER['SCRIPT_NAME']}?action=controls\"><noframes><body>{$I['noframes']}{$H['backtologin']}</body></noframes></frameset></html>"; } else { echo "</head><frameset rows=\"100,*,60\" border=\"3\" frameborder=\"3\" framespacing=\"3\"><frame name=\"post\" src=\"{$_SERVER['SCRIPT_NAME']}?action=post&session={$U['session']}&lang={$C['lang']}\"><frame name=\"view\" src=\"{$_SERVER['SCRIPT_NAME']}?action=view&session={$U['session']}&lang={$C['lang']}\"><frame name=\"controls\" src=\"{$_SERVER['SCRIPT_NAME']}?action=controls&session={$U['session']}&lang={$C['lang']}\"><noframes><body>{$I['noframes']}{$H['backtologin']}</body></noframes></frameset></html>"; } exit; }