phpbar.de logo

Mailinglisten-Archive

[php] Photoalbum

[php] Photoalbum

A. Weber php_(at)_phpcenter.de
Mon, 20 Aug 2001 18:57:25 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C129A9.F39BA440
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_000B_01C129A9.F39D2AE0"


------=_NextPart_001_000B_01C129A9.F39D2AE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ist mein eigenes, musst es also noch sehr viel um=E4ndern! Ist auch =
nicht weiter kommentiert, aber kannst dir ja die Besipiele unter =
flippaus.lu unter Fotos/Reportagen ansehen=20

MfG
Andy W.
  ----- Original Message -----=20
  From: Ducado=20
  To: php_(at)_phpcenter.de=20
  Sent: Monday, August 20, 2001 6:51 PM
  Subject: [php] Photoalbum


  Suche ganz dringend ein funktionierendes Photoalbum in PHP oder CGI
  Mit uploadm=F6glichkeit=20
  Hab schon WihPhoto probiert. hat aber nen haufen bugs.
  F=FCr Tips w=E4re ich sehr dankbar
  mfg rainer

------=_NextPart_001_000B_01C129A9.F39D2AE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Ist mein eigenes, musst es also noch =
sehr viel=20
um=E4ndern! Ist auch nicht weiter kommentiert, aber kannst dir ja die =
Besipiele=20
unter flippaus.lu unter Fotos/Reportagen ansehen </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MfG</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Andy W.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dducado_(at)_retemail.es =
href=3D"mailto:ducado_(at)_retemail.es">Ducado</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dphp_(at)_phpcenter.de =

  href=3D"mailto:php_(at)_phpcenter.de">php_(at)_phpcenter.de</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, August 20, 2001 =
6:51=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [php] Photoalbum</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Suche ganz dringend ein =
funktionierendes=20
  Photoalbum in PHP oder CGI</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Mit uploadm=F6glichkeit </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Hab schon WihPhoto probiert. hat aber =
nen haufen=20
  bugs.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>F=FCr Tips w=E4re ich sehr =
dankbar</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>mfg =
rainer</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_001_000B_01C129A9.F39D2AE0--

------=_NextPart_000_000A_01C129A9.F39BA440
Content-Type: application/octet-stream;
	name="thumb.php"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="thumb.php"

<? // Version 1.2 (14.07.2001) by aweber_(at)_flippaus.lu =
////////////////////////////////////////////////// ?>
<HTML>
<BODY VLINK=3Dblue ALINK=3Dred>

<?
$Bilder =3D pics;		// Den Uerdner wou d'Biller dran leien

if ($start) { $start =3D $start; } else { $start =3D 0; }

if ($dir)		// Wenn $dir als Parameter angegeben, dann zeige Thumbnails =
von Ordner $dir
	{
=09
	if ($photo)	// Wenn Parameter $photo angegeben, dann zeige $entry in =
Gro=DFaufnahme :)
		{
		$single =3D 1;
		chdir ($Bilder);
		chdir ($dir); ?>
	=09
		<HTML><HEAD><TITLE>www.flippaus.lu - <? echo $dir ?></TITLE></HEAD>
		<BODY BGCOLOR=3D"#FFCC33">
		<CENTER><B><FONT SIZE=3D"4" COLOR=3D"purple" FACE=3D"Verdana"><? echo =
$dir ?></FONT></B></P>
		<TABLE BORDER=3D"1" CELLPADDING=3D"2" WIDTH=3D"90%" =
bordercolor=3D"#6D5C46">
			=09
		<? if (file_exists("$photo")) {	?>
		=09
			<TR>
			<TD WIDTH=3D"100%" BGCOLOR=3D"#FFCD76">
			<? $direx =3D ereg_replace(" ", "%20", "$dir") ?>
			<CENTER><A HREF=3D"#" onclick=3D"window.close()"><? echo "<IMG =
SRC=3D\"$Bilder/$direx/$photo\" ALT=3D\"$dir\" BORDER=3D\"0\"></A>"; ?>
			</TD>
			</TR>
			<TR><TD><CENTER><FONT SIZE=3D"2" FACE=3D"Arial, Helvetica">Klick op =
d'Foto fier d'Fenster zouzemaachen</FONT></TD></TR>
			<TR><TD><CENTER><INPUT TYPE=3D"submit" value=3D"D=EBs Foto =
versch=E9cken" onclick=3Dwindow.open("mail.php?dir=3D<? echo =
ereg_replace(" ", "%20", $dir) ?>&photo=3D<? echo $photo =
?>","","height=3D280,width=3D650,scrollbars=3Dno,resizable=3Dno,left=3D10=
0,top=3D100")></CENTER></TD></TR>
					=09
			<?
			}
			else
			{
		=09
			?>
		=09
			<TR>
			<TD WIDTH=3D"100%" BGCOLOR=3D"#FFCD76">
			<CENTER><A HREF=3D"#" onclick=3D"window.close()"><Font SIZE=3D"2" =
FACE=3D"Arial, Helvetica"><B>D'Foto konnt leider n=EBt fonnt gin =
:(</B></A><P ALIGN=3D"LEFT">Gr=EBnn dofir k=EBnnen sin:<BR>- D=E9i =
grouss Foto huet ze vill Detailer verrooden<BR>- Mir kruten eng =
Reklamatioun vun der betraffener Persoun<BR>- Dem zoust=E4nneg=EBm =
Fotograf ass een Fehler =EBnnerlaaf<BR>- oder soss iergend eng dommen =
Fehler :))</P></CENTER>
			</TD>
			</TR>
		=09
			<?
					=09
			}
		?>
			</TABLE>
			</BODY>
			</HTML>	=09
		<? }=20
	else
		{ ?>
	=09
		<HTML><HEAD><TITLE>www.flippaus.lu - <? echo $dir ?></TITLE></HEAD>
		<BODY BGCOLOR=3D"#FFCC33">
		<CENTER><B><FONT SIZE=3D"4" COLOR=3D"purple" FACE=3D"Verdana"><? echo =
$dir ?></FONT><BR>
		<FONT SIZE=3D"1" COLOR=3D"RED" FACE=3D"Verdana"><A =
HREF=3D"thumb.php">[Index]</A></FONT></P></B>
		<TABLE BORDER=3D"1" CELLPADDING=3D"2" WIDTH=3D"90%" =
bordercolor=3D"#6D5C46">
	=09
		<?
=09
	$single =3D 0;
	$int =3D $start;
=09
	$handle=3Dopendir("$Bilder/$dir");=20
		while ($file =3D readdir($handle)) {
			if (ereg ("^s", $file)) {
				$retVal[count($retVal)] =3D $file;
			}
		}
	closedir($handle);=20
	sort($retVal);=20
	=09
	while (list($key, $val) =3D each($retVal))=20
	{=20
	=09
	$path =3D str_replace("//","/",$sPath.$val);=20
		if (is_dir($sPath.$val)) {=20
			GetDirArray($sPath.$val."/");=20
			}=20
		} =20
	}
	=09
	$end =3D $start + 16;
	while ($start < $end) {
		if ($start < count($retVal)) {
		=09
			if (strstr (getenv('HTTP_USER_AGENT'), 'IE')) { ?>
			<TD WIDTH=3D"25%" VALIGN=3D"MIDDLE" ALIGN=3D"CENTER" =
BGCOLOR=3D"#FFCD76">
			<? $directory =3D ereg_replace(" ", "%20", "$dir") ?>
			<a style=3D"cursor:hand" onclick=3Dwindow.open("thumb.php?dir=3D<? =
echo ereg_replace(" ", "%20", $dir)?>&photo=3D<?echo ereg_replace("^s", =
"", =
$retVal[$start])?>","","height=3D555,width=3D555,scrollbars=3Dno,resizabl=
e=3Dno,left=3D50,top=3D50")><SRC=3D"<? echo =
"$Bilder/$directory/$retVal[$start]" ?>" BORDER=3D"1"></A>
			</TD>
			<?
			}
			else { ?>
			<TD WIDTH=3D"25%" VALIGN=3D"MIDDLE" ALIGN=3D"CENTER" =
BGCOLOR=3D"#FFCD76">
			<? $directory =3D ereg_replace(" ", "%20", "$dir") ?>
			<a HREF=3D"#" onclick=3Dwindow.open("thumb.php?dir=3D<? echo =
ereg_replace(" ", "%20", $dir) ?>&photo=3D<?echo ereg_replace("^s", "", =
$retVal[$start])?>","","height=3D555,width=3D555,scrollbars=3Dno,resizabl=
e=3Dno,left=3D50,top=3D50")><IMG SRC=3D"<? echo =
"$Bilder/$directory/$retVal[$start]" ?>" BORDER=3D"1"></A>
			</TD>
			<?
			}	=09
		=09
			$AktBild++;
			if ($AktBild % 4 =3D=3D 0) { echo ?> </TR><TR> <? ; }
			}
			else
			{
			break;
		}
	$start++;
	}

	if ($AktBild % 4 > 0) { echo "<TR>"; }
	if ($single =3D=3D 0) {
=09
	?>
=09
	<TD COLSPAN=3D"4">
			<CENTER>
			<TABLE BORDER=3D"0" CELLPADDING=3D"0" CELLSPACING=3D"0" =
WIDTH=3D"50%">
				<TR>
				<? $direx =3D ereg_replace(" ", "%20", "$dir") ?>
				<TD WIDTH=3D"33%"><FONT FACE=3D"Arial, Helvetica" =
SIZE=3D"2"><B><CENTER><? if ($int > 0) { ?><A HREF=3D"thumb.php?dir=3D<? =
echo $direx ?>&start=3D<? echo $end-32 ?>">Zr&eacute;ck</A></TD><? } =
else { ?> <FONT COLOR=3D"gray">Zr&eacute;ck</FONT></TD> <? } ?>
				<TD WIDTH=3D"34%" ALIGN=3D"CENTER">
			=09
				<?
				for($seiten=3D0;$seiten < (ceil(count($retVal)/16));$seiten++)=20
				{
				if (($int / 16 + 1) !=3D ($seiten+1)) {
				?>
				<FONT FACE=3DArial, Helvetica SIZE=3D2><B>
				<A HREF=3D"thumb.php?dir=3D<? echo $direx ?>&start=3D<? echo =
$seiten*16 ?>"><? echo $seiten+1 ?></A>
				<?
				}=20
			=09
				else {
				?>
				<FONT FACE=3DArial, Helvetica SIZE=3D2 COLOR=3DBlack><B>
				<? echo $seiten+1 ?>
				<?
				}
				}
				?>
			=09
				</TD>
				<TD WIDTH=3D"33%"><FONT FACE=3D"Arial, Helvetica" =
SIZE=3D"2"><B><CENTER><? if (count($retVal) > $end) { ?> <A =
HREF=3D"thumb.php?dir=3D<? echo $direx ?>&start=3D<? echo $end =
?>">Weider</A><? } else { ?> <FONT COLOR=3D"gray">Weider</FONT> <? } ?> =
</TD>
				</TR>
			</TABLE>

			</DIV>
		</TD>
	</TR>
=09
	<?=09
	}=09
=09
	}
else
	{ ?>
=09
	<HTML><HEAD><TITLE>www.flippaus.lu - Foto=EBn vun Baler</TITLE></HEAD>
	<BODY BGCOLOR=3D"#FFCC33" VLINK=3D"BLUE">
	<CENTER><B><FONT SIZE=3D"4" COLOR=3D"purple" =
FACE=3D"Verdana">Foto&euml;n vun Baler</FONT></B></P>
	<TABLE BORDER=3D"1" CELLPADDING=3D"7" WIDTH=3D"80%" =
bordercolor=3D"#6D5C46">
=09
	<?
=09
	$dir_name=3D"$Bilder";=20
=09
	$dir =3D opendir($dir_name);=20
	$basename =3D basename($dir_name);=20
	$fileArr =3D array();=20

	while ($file_name =3D readdir($dir))=20
	{=20
	if (($file_name !=3D".") && ($file_name !=3D ".."))=20
	{=20
	$fName =3D "$dir_name/$file_name";=20
	$fTime =3D filemtime($fName);=20
	$fileArr[$file_name] =3D $fTime;=20
	}=20
	}=20
=09
	arsort($fileArr);=20
=09
	$numberOfFiles =3D sizeOf($fileArr);=20
	for($t=3D0;$t<$numberOfFiles;$t++)=20
	{=20
	$thisFile =3D each($fileArr);=20
	$thisName =3D $thisFile[0];=20
	$thisTime =3D $thisFile[1];=20
	$thisTime =3D date("d M y", $thisTime);=20
	?>=09
		<TR>
		<TD WIDTH=3D"100%" VALIGN=3D"MIDDLE" BGCOLOR=3D"#FFDC89">
			<? $NN =3D ereg_replace(" ", "%20", "$thisName") ?>
			<CENTER><B><A HREF=3D"thumb.php?dir=3D<? echo $NN ?>">
			<FONT FACE=3D"Verdana" SIZE=3D"3"><? echo $thisName =
?></FONT></A></B></CENTER>
		</TD>
		</TR>
	<?
	}=20
	closedir ($dir);=20
	}
	?>
	=09
	</TABLE></P>
	<CENTER><FONT SIZE=3D"2" COLOR=3D"black" FACE=3D"Verdana"><I>&copy; =
2001 by flippaus.lu Team</I></FONT>
	</CENTER>
	</BODY>
	</HTML>=09
	
------=_NextPart_000_000A_01C129A9.F39BA440--



php::bar PHP Wiki   -   Listenarchive