Błąd w linijkach 18 i 23. Pomóżcie...
<?php
$dir = $_GET["folder"];
$photo = $_GET["photo"];
include("folderlib.php");
$files = file_list("gallery/" .$dir ."/640x480/",false);
function cmp($a, $b)
{
preg_match("/([^d]+)([d]+)(.+)/", $a, $matches_a); preg_match("/([^d]+)([d]+)(.+)/", $b, $matches_b);
if(strcmp($matches_a[1
], $matches_b[1
])==0
) {
if($matches_a[2]!=$matches_b[2]) return $matches_a[2]-$matches_b[2];
return strcmp($matches_a[3
], $matches_b[3
]); }
return strcmp($matches_a[1
], $matches_b[1
]); }
//print_r($files);
//print '<br />' .$photo;
$__length = count($files);
if($__curent>0)
{
$prev = '<a href="?folder=' .$folder .'&photo=' .$files[($__curent-1)] .'">';
$prev .= '<img src="images/poprzednie.gif" alt="poprzedni" border="0">';
$prev .= '</a>';
}
if($__curent<$__length-1)
{
$next = '<a href="?folder=' .$folder .'&photo=' .$files[($__curent+1)] .'">';
$next .= '<img src="images/nastepne.gif" alt="">';
$prev .= '</a>';
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "htt://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Galeria - Nutka</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
<meta name="Keywords" content="nutka zdjecia">
<meta name="Description" content="Niebuliczne przedszkole Nutka">
<meta name="Author" content="info@info-lab.waw.pl">
<meta name="Robots" content="ALL">
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table border="0" class="tab_center" cellspacing="0" cellpadding="10">
<tr>
<td>
<img src="images/slonko_gal.gif" alt=""></td>
<td>
<img src="images/hmurka1.gif" alt=""></td>
<td>
<img src="images/hmurka2.gif" alt=""></td>
</tr>
<?php
<td>';
//<div class="center"><img src="images/zamknij_galerie.gif" alt=""></div>
?>
<tr>
<td>
</td>
<td>
<?php
print '<img src="gallery/' .$dir ."/640x480/" .$photo .'" alt="">'; //<img src="galeria/fotka.jpg" alt="">
?>
</td>
<td>
</td>
</tr>
</table>
</BODY>
</HTML>