include("../functions.php"); top(); ?>
$photo_array = "";
$link_folder = "../images/wedding_kids";
$contents = file ('http://dt-photo.com/images/wedding_kids/?M=D');
while (list($line_num, $line) = each($contents)) {
$link3 = substr((substr($line, 51)), 0, (strpos((substr($line, 51)), '"')));
if ((substr ($link3, 0, 2) == "t_")) {
$photo_array .= " $link3";
}
}
$photos = explode(' ',$photo_array);
$num = count($photos);
?>
for ($n=1;$n<$num;$n++) {
$big_photo[$n] = substr ($photos[$n], 2);
$image_size = GetImageSize("$link_folder/$big_photo[$n]");
$w = $image_size[0];
$h = $image_size[1];
$big_photo[$n] = substr ($photos[$n], 2);
$t_image_size = GetImageSize("$link_folder/$photos[$n]");
$t_w = $t_image_size[0];
$t_h = $t_image_size[1];
?>
&img= echo $link_folder."/".$big_photo[$n] ?>" TARGET="photo" onclick="popupPhoto(' echo "$w','$h" ?>');">
" WIDTH=" echo $t_w ?>" HEIGHT=" echo $t_h ?>" BORDER="0">
} ?>
bottom(); ?>