(($numberofpics * 2) + 1)); if ($twg_smallnav == 'FALSE') { if ($twg_rot == -1) { if ($login_edit) { $twg_rot = get_rotation_index($twg_album, $image); // gets the actual rotation } else { $twg_rot = 0; } } $ccw = (($twg_rot-90) >= 0) ? ($twg_rot-90) : (270); $cw = $twg_rot + 90; print ""; if ($last = get_last($twg_album, $image, $current_id)) { $back_a = ''.$lang_back.''; if ($show_big_left_right_buttons) { if ($default_big_navigation == "HTML") { echo '' . "\n"; } else if ($use_nonscrolling_dhtml && $show_left_right_js) { $back_a = ''.$lang_back.''; echo '' . "\n"; } } } else if ($use_nonscrolling_dhtml && $show_left_right_js && ($default_big_navigation == "DHTML" || $default_big_navigation == "FLASH") && $show_big_left_right_buttons) { $back_a = ''.$lang_back.''; echo '' , "\n"; } $timestamp = "&twg_zs=" . time(); if ((gd_version() >= 2) && ($twg_rot_available) && $show_rotation_buttons) { printf("\n", $_SERVER['PHP_SELF'], $album_enc, $image, $cw, $twg_standalone, $timestamp, $install_dir, $lang_twg_rot_left, $lang_twg_rot_left); } if ($default_big_navigation == "HTML") { $nextimage = print_next_last_pics($twg_album, $image, $thumb_pic_size); } else { echo ''; } if ((gd_version() >= 2) && ($twg_rot_available) && $show_rotation_buttons) { printf("\n", $_SERVER['PHP_SELF'], $album_enc, $image, $ccw, $twg_standalone, $timestamp, $install_dir, $lang_twg_rot_right, $lang_twg_rot_right); } if ($next = get_next($twg_album, $image, $current_id)) { $next_a = ''.$lang_forward.''; if ($show_big_left_right_buttons) { if ($default_big_navigation == "HTML") { echo '' . "\n"; } else if ($use_nonscrolling_dhtml && $show_left_right_js ) { $next_a = ''.$lang_forward.''; echo '' . "\n"; } } } else if ($use_nonscrolling_dhtml && $show_left_right_js && $default_big_navigation == "DHTML" && $show_big_left_right_buttons) { $next_a = ''.$lang_forward.''; echo '' . "\n"; } print "
'. $back_a .''.$back_a.'%s'; print_cmotion_gallery($twg_album, $image, $thumb_pic_size, $dir); echo '%s' . $next_a . '' . $next_a . '
"; } else { // we don't show the dhtml but we generate all the javascript to support ajax mode! if ($default_big_navigation == "DHTML" || $default_big_navigation == "FLASH") { print_cmotion_gallery($twg_album, $image, $thumb_pic_size, $dir, false); } if ($default_is_fullscreen) { $type = "full"; } else { $type = "small"; } $next = get_next($twg_album, $image, $current_id); $nextimage = $install_dir . '%simage.php?twg_album='.$album_enc.'&twg_type='.$type.'&twg_show='.$next.'&twg_rot='.$twg_rot; } // is extracted to be w3c conform! if ($nextimage <> "") { echo ""; } } function print_next_last_pics($twg_album, $entry, $thumb_pic_size, $side = "bottom") { global $numberofpics, $kwerte, $kindex, $werte, $index, $extension_thumb; global $extension_small, $html_side_show_dividor, $install_dir, $twg_standalone, $twg_standalonejs; global $html_side_break, $html_side_space_optimization, $disable_direct_thumbs_access; global $show_clipped_images, $strip_thumb_pic_size, $show_html_side_left_only; $nextimage = ""; $imagelist = get_image_list($twg_album); $act_nr = get_image_number($twg_album, $entry); $album_enc = urlencode($twg_album); $current = $act_nr; $total_num = count($imagelist); $htmlsize = ""; if ($show_clipped_images) { $thumb_pic_size = $strip_thumb_pic_size; $htmlsize = " width=" . $strip_thumb_pic_size . " height=" . $strip_thumb_pic_size . " "; } $needDividor = false; $offsetleft = 0; $offsetright = 0; if ($side == "left") { if (($act_nr < $numberofpics) && $html_side_space_optimization) { $offsetleft = + $numberofpics - $act_nr; $offsetright = - $act_nr; $needDividor = true; } else if (($act_nr >= ($total_num - $numberofpics)) && $html_side_space_optimization) { $offsetleft = $total_num - $numberofpics - $act_nr -1 ; $offsetright = $total_num - $act_nr - (2 * $numberofpics) - 2; $needDividor = true; } else { $offsetright = - $numberofpics - 1; } } if ($side == "right") { if (($act_nr < $numberofpics) && $html_side_space_optimization) { // we show some images already on the left side ! $offsetleft = + $numberofpics + 1 + $numberofpics - $act_nr; $offsetright = $numberofpics - $act_nr; $needDividor = true; } else if (($act_nr >= ($total_num - $numberofpics)) && $html_side_space_optimization) { // echo "drüberrechts"; $offsetleft = $total_num - $act_nr - 1; $offsetright = $total_num - $act_nr - ($numberofpics) - 1; $needDividor = true; } else { $offsetleft = + $numberofpics + 1; } } $printed = 0; $from = $current - $numberofpics + $offsetleft; $to = $current + $numberofpics + $offsetright; // 8 pictures fix! if ($side == "left" && $total_num == (2 * $numberofpics)) { $from = 0; $to = $numberofpics-1; } if ($side == "right" && $total_num == (2 * $numberofpics)) { $from = $numberofpics; $to = (2 * $numberofpics)-1; } // left only ;). if ($show_html_side_left_only && $side == "left") { $from = 0; $to = $numberofpics * 3; $needDividor = false; } else if ($show_html_side_left_only && $side == "right") { $from = $numberofpics + 1; $to = $numberofpics; $needDividor = false; } for($i = $from ; $i <= $to; $i++) { // echo "i:" . $i; if ($i < 0 || $i >= count($imagelist)) { printf("\n", $thumb_pic_size, $install_dir); } else { $aktimage = replace_valid_url($imagelist[$i]); $thumbimage = create_thumb_image($twg_album, $aktimage); $thumb = create_cache_file($thumbimage,$extension_thumb); // todo: check small cache! if (!file_exists($thumb) || $disable_direct_thumbs_access) { $src_value = $install_dir . "image.php?twg_album=" . $album_enc . "&twg_type=thumb&twg_show=" . $imagelist[$i]; // echo $src_value . "
"; $ccount = getKommentarCount($aktimage, $twg_album, $kwerte, $kindex) ; if ($ccount > 0) { $src_value .= "&twg_comment=" . $ccount; // this is done to cut of the upper right corner to indicate a comment! } } else { $src_value = create_cache_file(cacheencode($thumbimage),$extension_thumb,true); } if (($i == $current) && ($side == "bottom")) { printf("


\n", $install_dir, $thumb_pic_size, $src_value , $htmlsize, $install_dir, $thumb_pic_size); } else if ($i == $current && ($total_num != (2 * $numberofpics)) && !$show_html_side_left_only) { $printed--; } else { $beschreibung = php_to_all_html_chars(escapeHochkomma(getBeschreibung($aktimage, $werte, $index))); // center is used because ie is ignoring css $myclass = "navicon"; if ($side != "bottom") { $myclass = "html_side_default"; if ($needDividor && $html_side_show_dividor) { // need dividor is only set in html_side mode if (($i + 1) == $current && ($total_num != (2 * $numberofpics))) { $myclass = "html_side_right"; } else if (($i-1) == $current && $current == 0 && ($total_num != (2 * $numberofpics))) { $myclass = "html_side_left"; } } if ($total_num == (2 * $numberofpics) && ($i == $current)) { $myclass = "html_side_mark"; } } $beschreibung = urlencode($beschreibung); printf("
%s
\n", $myclass, $thumb_pic_size, $_SERVER['PHP_SELF'], $album_enc, $aktimage, $twg_standalone , $src_value, $beschreibung , $beschreibung, $i, $htmlsize); if (($i - 1) == $current) { // we preload the next big image if available $nextimage = $install_dir . "image.php?twg_album=" . $album_enc . "&twg_type=small&twg_show=" . $imagelist[$i]; } } } if ($side != "bottom") { if ((($printed % $html_side_break) == $html_side_break-1) && ($i < $to)) { echo ""; } $printed++; } } return $nextimage; } function print_thumbnails($twg_album, $twg_offset, $werte, $index, $twg_foffset) { global $thumbnails_x, $thumbnails_y, $kwerte, $kindex, $basedir; global $extension_thumb, $top10, $privatelogin; global $lang_thumb_forward, $lang_thumb_back, $install_dir, $use_original_on_thumbspage; global $twg_standalone, $twg_standalonejs, $autodetect_maximum_thumbnails; global $thumb_pic_size, $show_number_of_comments, $lang_comments, $disable_direct_thumbs_access; global $show_subdirs_first, $show_clipped_images, $thumb_pic_size, $other_file_formats, $show_other_formats_at_thumb; global $activate_lightbox_thumb, $activate_lightbox_thumb_full, $show_caption_on_thumbs; global $thumb_cellpadding, $thumb_cellspacing, $left_htm_width, $album_tree_width, $enable_album_tree; global $opera, $album_tree_default_open,$thumbnail_offset_y, $use_lytebox; global $spacer_char,$paging_num,$paging_steps,$paging_use_style, $subfolders_only_once, $show_album_name_on_thumb_page; global $thumb_cellpadding, $thumb_cellspacing; if ($twg_album) { // !1st level $album_enc = urlencode($twg_album); $path = $basedir . "/" . $twg_album; } else { $album_enc = ""; $path = $basedir; } $imagelist = get_image_list($twg_album); $imageid = ($twg_offset > 0 ? $twg_offset : 0); $minus_rows = 0; $offset_text = $thumbnail_offset_y; if ($paging_use_style) { $offset_text += 10; // this mode needs ~ 10 pix more space } if ($twg_album) { // !1st level if ($show_album_name_on_thumb_page) { $temp1 = explode ("/", $twg_album); $titel = array_pop($temp1); $titel = getDirectoryName($path, $titel); printf("%s
", $titel); } $text = getDirectoryDescription($path); if ($text) { $lines = ceil((strlen(strip_tags($text))/130)); $offset_text += $lines * 15; echo '
'; echo "" . $text . "
"; } echo "
"; } // we do autowidthdetection here ! if ($autodetect_maximum_thumbnails && isset($_SESSION[$GLOBALS["standalone"]."browserx_res"]) && isset($_SESSION[$GLOBALS["standalone"]."browsery_res"])) { // we check if left.htm and menu is shown and use less thumbs then! 200px each! $spacex = 30; if ($enable_album_tree && $album_tree_default_open) { // gallery tree shown $spacex += $album_tree_width; } $lefthtml = dirname(__FILE__) . "/../left.htm"; if (file_exists($lefthtml)) { // left menu shown $spacex += $left_htm_width; } $fullwidth = $thumb_cellpadding + $thumb_cellspacing + 4 + $thumb_pic_size; $thumbnails_x = floor(($_SESSION[$GLOBALS["standalone"]."browserx_res"] - $spacex) / $fullwidth); $thumbnails_y = floor(($_SESSION[$GLOBALS["standalone"]."browsery_res"] - 50 - $offset_text) / $fullwidth); } if ($show_subdirs_first) { if ($subfolders_only_once && $twg_offset == 0 ) { ceil(show_folders($path, $twg_foffset, $twg_offset, $twg_album) * 1.4); } else if (!$subfolders_only_once) { $minus_rows = ceil(show_folders($path, $twg_foffset, $twg_offset, $twg_album) * 1.4); } if ($minus_rows >= $thumbnails_y) { $minus_rows = $thumbnails_y -1; } } $total = count($imagelist); if ((($thumbnails_y - $minus_rows) * $thumbnails_x) > $total) { $thumbnails_y = ceil($total / $thumbnails_x) + $minus_rows + 1; // one savty } $thumbnails_y = $thumbnails_y - $minus_rows; if ($thumbnails_y < 1) { $thumbnails_y = 1; } if ($thumbnails_x < 1) { $thumbnails_x = 1; } $alignment = ""; if ($show_caption_on_thumbs) { $alignment= " top"; } // for the lightbox we create all images before in a hidden div if ($activate_lightbox_thumb && $use_lytebox) { $old_imageid = $imageid; echo '
'; for ($imageid = 0 ; $imageid < $old_imageid;++$imageid) { if (isset($imageid)) { $aktimage = replace_valid_url($imagelist[$imageid]); $ccount = getKommentarCount($imagelist[$imageid], $twg_album, $kwerte, $kindex); $b = $beschreibung = getBeschreibung($imagelist[$imageid], $werte, $index); if (($beschreibung <> " ") && ($beschreibung <> "")) { $beschreibunga = php_to_all_html_chars(escapeHochkomma($beschreibung)); if ($show_number_of_comments && ($ccount > 0)) { $beschreibunga .= ' | ' . $lang_comments . ': ' . $ccount; } $titel = $beschreibung = 'title="' . $beschreibunga . '"'; $beschreibung .= ' alt="' . $beschreibunga . '"'; } else if ($ccount > 0) { $beschreibunga = $lang_comments . ': ' . $ccount; $titel = $beschreibung = 'title="' . $beschreibunga . '"'; $beschreibung .= ' alt="' . $beschreibunga . '"'; } else { $beschreibung = ' alt="" '; $titel = ''; } $href = ' href="'.$_SERVER['PHP_SELF'].'?twg_album='.$album_enc.'&twg_show='.$aktimage . $twg_standalone.'" '; if ($use_original_on_thumbspage) { $hreffull = ' href="'.getTWGHttpRoot($install_dir) . 'image.php?twg_album=' .$album_enc. '&twg_show=' .$aktimage. '" '; } else { $hreffull = ' href="'.getTWGHttpRoot($install_dir) . 'image.php?twg_album='.$album_enc.'&twg_show='.$aktimage.'&twg_type=small" '; } // end of block printf(" ", $imageid, $hreffull, $titel); } } echo '
'; $imageid = $old_imageid; } if ($imagelist[0] != "") { echo "\n"; for($i = 0; $i < $thumbnails_y; $i++) { print ""; for($j = 0; $j < $thumbnails_x; $j++) { if ($imageid >= $total) { printf(""); } else { $aktimage = replace_valid_url($imagelist[$imageid]); $thumbimage = create_thumb_image($twg_album, $aktimage); $thumb = create_cache_file($thumbimage,$extension_thumb); if (!file_exists($thumb) || $disable_direct_thumbs_access) { $src_value = $install_dir . "image.php?twg_album=" . $album_enc . "&twg_type=thumb&twg_show=" . $aktimage; if ($show_clipped_images) { $theight = " height='" . $thumb_pic_size . "' width='" . $thumb_pic_size . "' "; } else { $theight = ""; } } else { $src_value = create_cache_file(cacheencode($thumbimage),$extension_thumb,true); if ($show_clipped_images) { $theight = " height='" . $thumb_pic_size . "' width='" . $thumb_pic_size . "' "; } else { $isize = getimagesize ($thumb); $theight = " height='" . $isize[1] . "' width='" . $isize[0] . "' "; } } $ccount = getKommentarCount($imagelist[$imageid], $twg_album, $kwerte, $kindex); $b = $beschreibung = getBeschreibung($imagelist[$imageid], $werte, $index); if (($beschreibung <> " ") && ($beschreibung <> "")) { $beschreibunga = php_to_all_html_chars(escapeHochkomma($beschreibung)); if ($show_number_of_comments && ($ccount > 0)) { $beschreibunga .= ' | ' . $lang_comments . ': ' . $ccount; } $titel = $beschreibung = 'title="' . $beschreibunga . '"'; $beschreibung .= ' alt="' . $beschreibunga . '"'; } else if ($ccount > 0) { $beschreibunga = $lang_comments . ': ' . $ccount; $titel = $beschreibung = 'title="' . $beschreibunga . '"'; $beschreibung .= ' alt="' . $beschreibunga . '"'; } else { $beschreibung = ' alt="" '; $titel = ''; } $href = ' href="'.$_SERVER['PHP_SELF'].'?twg_album='.$album_enc.'&twg_show='.$aktimage . $twg_standalone.'" '; if ($use_original_on_thumbspage) { $hreffull = ' href="'.getTWGHttpRoot($install_dir) . 'image.php?twg_album=' .$album_enc. '&twg_show=' .$aktimage. '" '; } else { $hreffull = ' href="'.getTWGHttpRoot($install_dir) . 'image.php?twg_album='.$album_enc.'&twg_show='.$aktimage.'&twg_type=small" '; } // end of block if ($show_other_formats_at_thumb) { foreach($other_file_formats as $label => $key) { $other_format = exchangeExtension($path . "/" . urldecode($aktimage), $label); if (file_exists($other_format)) { $other_format = twg_urlencode($other_format); $target = ' target="_blank" '; $href = ' '.$target.' href="'.$other_format.'" '; } } } if ($show_caption_on_thumbs) { $thumbtitel = ""; } else { $thumbtitel = ""; } if ($activate_lightbox_thumb) { if (!$activate_lightbox_thumb_full) { printf("", $thumb_cellpadding, $thumb_cellspacing, $titel, $imageid, $hreffull , $install_dir, $href , $src_value, $beschreibung, $theight, $thumbtitel); } else { printf("", $thumb_cellpadding, $thumb_cellspacing, $imageid, $hreffull, $titel, $src_value, $beschreibung, $theight, $thumbtitel); } } else { printf("", $thumb_cellpadding, $thumb_cellspacing, $href , $src_value, $beschreibung, $theight, $thumbtitel); } $imageid++; } } print "\n"; } print "
 
" . $b . "
%s
%s
%s
\n"; } // for the lightbox we create all images afterwards in a hidden div if ($activate_lightbox_thumb && $use_lytebox) { $old_imageid = $imageid; echo '
'; for ($imageid = $imageid ; $imageid < count($imagelist);++$imageid) { $aktimage = replace_valid_url($imagelist[$imageid]); $ccount = getKommentarCount($imagelist[$imageid], $twg_album, $kwerte, $kindex); $b = $beschreibung = getBeschreibung($imagelist[$imageid], $werte, $index); if (($beschreibung <> " ") && ($beschreibung <> "")) { $beschreibunga = php_to_all_html_chars(escapeHochkomma($beschreibung)); if ($show_number_of_comments && ($ccount > 0)) { $beschreibunga .= ' | ' . $lang_comments . ': ' . $ccount; } $titel = $beschreibung = 'title="' . $beschreibunga . '"'; $beschreibung .= ' alt="' . $beschreibunga . '"'; } else if ($ccount > 0) { $beschreibunga = $lang_comments . ': ' . $ccount; $titel = $beschreibung = 'title="' . $beschreibunga . '"'; $beschreibung .= ' alt="' . $beschreibunga . '"'; } else { $beschreibung = ' alt="" '; $titel = ''; } $href = ' href="'.$_SERVER['PHP_SELF'].'?twg_album='.$album_enc.'&twg_show='.$aktimage . $twg_standalone.'" '; if ($use_original_on_thumbspage) { $hreffull = ' href="'.getTWGHttpRoot($install_dir) . 'image.php?twg_album=' .$album_enc. '&twg_show=' .$aktimage. '" '; } else { $hreffull = ' href="'.getTWGHttpRoot($install_dir) . 'image.php?twg_album='.$album_enc.'&twg_show='.$aktimage.'&twg_type=small" '; } // end of block printf(" ", $imageid, $hreffull, $titel); } echo '
'; $imageid = $old_imageid; } $_SESSION["twg_minus_rows"] = $minus_rows; // stored for offset needed in details page $thumbnails = $thumbnails_x * $thumbnails_y ; $actpage = 0; // start 1 | 2 |3 ... $showpaging = count($imagelist) > $thumbnails; if ($paging_use_style && $showpaging) { echo '
'; echo "
"; } if ($showpaging) { if ($twg_offset > 0) { $hreflast = $_SERVER['PHP_SELF'] . '?twg_album='.$album_enc.'&twg_offset=' . ($twg_offset - $thumbnails) . $twg_standalone; $hreflastjs = $_SERVER['PHP_SELF'] . '?twg_album='.$album_enc.'&twg_offset=' . ($twg_offset - $thumbnails) . $twg_standalonejs; echo ''; printf("%s ", $hreflast , $lang_thumb_back); print $spacer_char; } else { echo " " . $lang_thumb_back . " "; } $numpages = ceil(count($imagelist) / ($thumbnails)); if ($numpages <= $paging_steps) { // we show all $paging_num = $paging_steps; } if ($numpages <= 25) { // 10 Schritte $paging_steps = ceil($paging_steps/2); } for($i = 0; $i < $numpages ; $i++) { $twg_offset_ = $i * ($thumbnails); $trenner = false; if ($twg_offset >= $twg_offset_ && $twg_offset < $twg_offset_+$thumbnails) { $actpage = $i; echo "" . ($i + 1) . ""; $trenner = true; } else { if ( (abs($twg_offset - $twg_offset_) < ($paging_num * $thumbnails)) || ($i == $numpages-1) || ($i == 0) || (($i % $paging_steps) == $paging_steps-1)) { printf("%s", $_SERVER['PHP_SELF'], $album_enc, $twg_offset_, $twg_standalone, $i + 1); $trenner = true; } } if ($trenner && $actpage != $numpages - 1) { echo $spacer_char; } } if ($actpage != $numpages - 1) { $hrefnext = $_SERVER['PHP_SELF'] . '?twg_album='.$album_enc.'&twg_offset='. ($twg_offset + $thumbnails) . $twg_standalone; $hrefnextjs = $_SERVER['PHP_SELF'] . '?twg_album='.$album_enc.'&twg_offset='. ($twg_offset + $thumbnails) . $twg_standalonejs; echo ''; printf(" %s ", $hrefnext , $lang_thumb_forward); } else { echo " " . $lang_thumb_forward . " "; } } if ($paging_use_style && $showpaging) { echo "
"; } // ende 1 | 2 |3 ... if (!$show_subdirs_first) { show_folders($path, $twg_foffset, $twg_offset, $twg_album); } $preload = ""; for($p = 0; $p < $thumbnails && ($imageid < $total); $p++) { $aktimage = replace_valid_url($imagelist[$imageid]); $thumbimage = create_thumb_image($twg_album, $aktimage); $thumb = create_cache_file($thumbimage,$extension_thumb); $ccount = getKommentarCount($imagelist[$imageid], $twg_album, $kwerte, $kindex); if (!file_exists($thumb) || $disable_direct_thumbs_access) { $preload .= "'" . $install_dir . "image.php?twg_album=" . $album_enc . "&twg_type=thumb&twg_show=" . $aktimage . "'"; } else { $preload .= "'" . create_cache_file(cacheencode($thumbimage),$extension_thumb,true) . "'"; } $preload .= ","; $imageid++; } if ($preload <> "") { $preload = substr($preload, 0, -1); echo ""; } } function print_album_tree($basedir) { global $album_tree_width, $autoclose_tree, $album_tree_default_open; global $lang_galleries,$show_counter_in_jstree, $multi_root_mode; global $lang_open_all, $lang_close_all,$lang_refresh_album_cache; global $install_dir, $twg_album, $opera, $twg_root,$twg_standalonejs; $path = $basedir . "/" . $twg_album; $rootalbum = ''; if ($multi_root_mode && $twg_album) { $elements = explode ("/", $twg_album); $basedir = $basedir . '/' . $elements[0]; $rootalbum = 'twg_album=' . urlencode($elements[0]); } if ($album_tree_default_open) { $display = ""; } else { $display = "display:none;"; } if ($autoclose_tree) { $icon = "autohideOn.png"; } else { $icon = "autohideOff.png"; } echo "
"; if (!$opera) { echo ""; } echo "
" . $lang_open_all . " | " . $lang_close_all . "
 
"; if ($wwert == "NBY") { echo "
".$lang_refresh_album_cache."
"; } echo "
"; } /* escapes the caption -
is not escapted !! - for the tooltips only the 1st line is returned ! */ function php_to_all_html_chars($data, $fortooltip = true) { if ($fortooltip) { $data = str_replace("
", " - ", $data); $data = strip_tags($data); $data = str_replace("||", " - ", $data); } $data = str_replace("&", "&", $data); $data = str_replace(" || ", " 
 ", $data); $data = str_replace("||", " 
 ", $data); return $data; } function fix_ie_height() { global $iframe_include, $msie, $iframe_height_ie; $iheight = ""; if ($iframe_include && $msie) { $iheight = "style='height:" . ($iframe_height_ie) . "'"; } return $iheight; } function includeBottom($enable_external_html_include, $colspan) { if ($enable_external_html_include) { $bottomhtml = dirname(__FILE__) . "/../bottom.htm"; if (file_exists($bottomhtml)) { echo ""; include ($bottomhtml); echo ""; } } } function includeFooter($enable_external_html_include, $colspan) { if ($enable_external_html_include) { $footerhtml = dirname(__FILE__) . "/../footer.htm"; if (file_exists($footerhtml)) { echo ""; include ($footerhtml); echo ""; } } } function includeTop($enable_external_html_include, $colspan) { if ($enable_external_html_include ) { $headertop = dirname(__FILE__) . '/../top.htm'; if (file_exists($headertop)) { echo ''; include ($headertop); echo ''; } } } function includeHeader($enable_external_html_include, $colspan) { if ($enable_external_html_include ) { $headerhtml = dirname(__FILE__) . '/../header.htm'; if (file_exists($headerhtml)) { echo ''; include ($headerhtml); echo ''; } } } ?>