All pastes #894892 Raw Edit

parse error

public php v1 · immutable
·published 2008-02-07 11:47 UTC
rendered paste body
<? $dir = opendir($rep);	while ($f = readdir($dir))	if(is_file($rep.$f)) {		//vérifie s'il y a un thumbnail et le place.		$tab = explode(".",$f);		if (file_exists($rep."gallery_thumb/".$tab[0].".jpg")) {			?>			<A CLASS="gallery_thumb" HREF="<? echo $rep.$f; ?>" ONCLICK="afficherImage(this); return false;"><IMG CLASS="gallery_thumb" SRC="<? echo $rep."gallery_thumb/".$tab[0].".jpg"; ?>"></a>			<?		} elseif (file_exists($rep."gallery_thumb/".$tab[0].".jpeg")) {			?>			<A CLASS="gallery_thumb" HREF="<? echo $rep.$f; ?>" ONCLICK="afficherImage(this); return false;"><IMG CLASS="gallery_thumb" SRC="<? echo $rep."gallery_thumb/".$tab[0].".jpeg"; ?>"></a>			<?		} elseif (file_exists($rep."gallery_thumb/".$tab[0].".gif")) {			?>			<A CLASS="gallery_thumb" HREF="<? echo $rep.$f; ?>" ONCLICK="afficherImage(this); return false;"><IMG CLASS="gallery_thumb" SRC="<? echo $rep."gallery_thumb/".$tab[0].".gif"; ?>"></a>			<?		} elseif (file_exists($rep."gallery_thumb/".$tab[0].".png")) {			?>			<A CLASS="gallery_thumb" HREF="<? echo $rep.$f; ?>" ONCLICK="afficherImage(this); return false;"><IMG CLASS="gallery_thumb" SRC="<? echo $rep."gallery_thumb/".$tab[0].".png"; ?>"></a>			<?		} else {		?>			<A CLASS="gallery_thumb" HREF="<? echo $rep.$f; ?>" ONCLICK="afficherImage(this); return false;"><IMG CLASS="gallery_thumb" SRC="<? echo $rep.$f; ?>"></a>		<?		}	}closedir($dir); ?>