$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; } $syl_absolute_path = "https://polle-weserbergland.lima-city.de/syl_php_scripts18/"; $syl_absolute_xml_path = $syl_absolute_path . $gallery; /*$syl_path_to_xml = $syl_absolute_path . $gallery;*/ $meta_tree_syl = simplexml_load_file($syl_absolute_xml_path); /*Loading related XML;*/ /*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*/ $syl_absolute_path_imgDir = $syl_absolute_path . "syl_images_fotos/"; $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"
"; ?>
Ortschronik von Polle - Seite " . $param_2 ." von " . $max_img_num . "

"; echo"

" . $syl_descr_txt . "

"; ?>