$max_img_num) { $param_2 = $max_img_num; } if($target_Bwrd <1) { $target_Bwrd = $max_img_num; } if($target_Fwrd > $max_img_num) { $target_Fwrd = 1; } /*Depending on second parameter of the URL-Request $img_num ist set and defines the node inside the loaded XML-tree-structur to create the related image*/ if($param_1 !="B"){ $syl_absolute_path_imgDir = $syl_absolute_path . $image_dir; $pic_name = $meta_tree_syl->img[$param_2-1]->filename; $syl_display_image_source = $syl_absolute_path_imgDir . $pic_name; } else { $syl_absolute_path_imgDir = "https://polle-weserbergland.lima-city.de/classic_site/assets/images/"; $pic_name = $meta_tree_syl->img[$param_2-1]->filename; $syl_display_image_source = $syl_absolute_path_imgDir . $pic_name; } /*Depending on second parameter of the URL-Request $img_num ist set and defines the node inside the loaded XML-tree-structur to load the description text*/ $syl_descr_txt = $meta_tree_syl->img[$param_2-1]->comment; $Fwrd_path = $meta_tree_syl->img[$target_Fwrd]->filename; $syl_display_next = $syl_absolute_path . "php_img_disp.php?g1=" . $param_1 . "&g2=" . $target_Fwrd; $Bwrd_path = $meta_tree_syl->img[$target_Bwrd]->filename; $syl_display_back = $syl_absolute_path . "php_img_disp.php?g1=" . $param_1 . "&g2=" . $target_Bwrd; /*width and hights calculation*/ $width_syl = imagesx($syl_display_image_source); $height_syl = imagesy($syl_display_image_source); $width_syl_frame = $width_syl; $height_syl_frame = $height_syl; echo"style='height:" . $height_syl_frame . "px;width:" . $width_syl_frame . ";background:#E6D1A6;'>"; echo"
"; echo""; echo""; echo""; echo""; echo""; echo"
"; echo"
"; ?>
" . $gallery_title . " - Seite " . $param_2 ." von " . $max_img_num . "

"; echo"

" . $syl_descr_txt . "

"; ?>