|
<?php ///////////////////////////////////////// //!!!!!! neuer Aufbau erforderlich!!!!!// /// 24 02 11 ////////////////////////////
/// Funktion: auswahl_gallerie - gibt aus welche Gallerien zu Verfgung stehen /// function auswahl_gallerie($gallerien,$name) { $i=0; $x=$t=5; foreach($gallerien[$name] as $key=>$galls) { if(is_numeric($key)) { $umbruch[$i]=$umbruch[$i]."<td><a class=\"tex\" href=\"./thetuxworld.php?datei=gallerie&id=".$_GET["id"]."&gall=".$galls."\">".$gallerien[$galls]["RealName"]."</a><td>"; $i++; if($i > $x){$i=0;$x=$x+$t;} } } echo "<table cellspacing=\"5px\">"; foreach($umbruch as $ausgabe) { echo "<tr>$ausgabe</tr>"; } echo "</table>"; }
/// Funktion: anz_gallerien - Bilder der Gallerien /// function anz_gallerien($bild_index,$dir,$wo,$gall,$temp,$typ) { if($temp)$galltemp="&gall=".$temp; $anhang="?datei=gallerie&id=".$_GET["id"]."&gall=".$gall; $dirtemp=preg_split("/\.\//",$serv); $zaehler=0; echo "<table>"; if($typ != "Hauptgallerie") { echo "<tr> <td> <a class=\"tex\" style=\"color:#d61d1d;\" href=\"./thetuxworld.php?datei=gallerie&id=".$_GET['id'].$galltemp."\"><<< Zurück zur Auswahl</a> </td> </tr>"; } echo "<tr> <td> <table cellpadding=\"4px\"> <tr>"; $i=0; foreach($bild_index as $value) { $zaehler=$zaehler+1; echo " <td valign=\"bottom\"> <table bgcolor=\"#e2e0e0\" cellspacing=\"2px\"> <tr> <td> <a href=\"./thetuxworld.php".$anhang."&bildindex=".$i."\"><img src=\"".$wo.$dir."TN_".$value[0]."\" alt=\"\" border=0></a> </td> </tr> </table> </td>\n"; if($zaehler == 3) { echo " </tr> </table> </td> <tr> <td> <table cellpadding=\"4\"> <tr>"; $zaehler=0; } $i++; } echo " </tr> </table> </td> </tr>";
if($typ != "Hauptgallerie") { echo " <tr> <td> <a class=\"tex\" style=\"color:#006666;\" href=\"./thetuxworld.php?datei=gallerie&id=".$_GET["id"].$galltemp."\"><<< Zurück zur Auswahl</a> </td> </tr>"; } echo " </table>"; }
/// Funktion: Bild_anz - Bilder in gro�aber doch kleiner als wirklich /// function Bild_ans($bild_index,$dir,$wo,$bildindex,$serv,$gall) { $wot="datei=gallerie&id=".$_GET["id"];
$minmax=count($bild_index)-1; $dirtemp=preg_split("/\.\//",$serv);
if($bildindex < 0)$bildindex=$minmax; if($bildindex > $minmax)$bildindex=0;
$relbild=$serv.$dir.$bild_index[$bildindex][0]; $bild=$small_bild=$wo[0]."/".$dirtemp[1].$dir.$bild_index[$bildindex][0]; if (file_exists('./'.$dirtemp[1].$dir.'s_'.$bild_index[$bildindex][0])) { $small_bild = $wo[0]."/".$dirtemp[1].$dir.'s_'.$bild_index[$bildindex][0]; } $vor=$bildindex+1; $zurueck=$bildindex-1;
//$size = getimagesize($relbild); $hoehe=$size[1]/3; $breite=$size[0]/3;
$ahref="<a style=\"text-decoration:none; font-size:200%; color:#91b3d7;\" href=\"".$wo[0]."./thetuxworld.php?".$wot;
echo "<table align=\"center\" width=55%> <tr> <th colspan=\"3px\"> ".$ahref."&gall=".$gall."&bildindex=anz\">/\</a> </th> </tr>"; echo " <tr> <td> ".$ahref."&gall=".$gall."&bildindex=".$zurueck."\"> < </a> </td> <td align=center> <a href=\"".$bild."\" target=_blank><img src=\"".$small_bild."\" width=90% height=auto alt=\"\" border=0></a> </td> <td> ".$ahref."&gall=".$gall."&bildindex=".$vor."\"> > </a> </td> </tr>"; echo "<tr> <th bgcolor=\"#e2e0e0\" colspan=\"3px\">".$bild_index[$bildindex][1]."</th> </tr> </table>"; }
?>
<?php //////////////// Die Gallerie //////////////// $wo[0]="./"; $gall=$_GET["gall"]; $bildindex=$_GET["bildindex"]; $gallerie=array(); include($info[5]."gall_index.inc");
if(!$gall)$gall="Main"; foreach($gallerie as $Namegall => $inhalt) { if($inhalt["Typ"] == "Hauptmenue" || $inhalt["Typ"] == "Untermenue") { foreach($inhalt as $inhkey => $inh) { if($inh == $gall && is_numeric($inhkey))$galltemp=$Namegall; } } }
if($gallerie[$gall]["Typ"] == "Gallerie" || $gallerie[$gall]["Typ"] == "Hauptgallerie") { $dir=$gallerie[$gall][0]; include($info[5].$dir."gall_bilder.inc"); if(!is_numeric($bildindex)) { anz_gallerien($bild_index,$dir,$info[5],$gall,$galltemp,$gallerie[$gall]["Typ"]); } else { Bild_ans($bild_index,$dir,$info[5],$bildindex,$info[5],$gall); } } else { if($gall=="Main") { auswahl_gallerie($gallerie,$gall); if($gallerie[$gall]["Typ"] == "Hauptmenue") { echo "Alle diese Bilder kannst du auch als eine Verfeinerung für deine Arbeitsfläche ansehen,<br>oder als Poster irgendwo an die Wand kleben, denn sie werden dir verkleinert angezeigt und sind in Wirklichkeit viel GRÖßER.<br> Noch größer gibt es sie dann nur bei mir oder dort wo sie geschossen worden."; } } else { if($galltemp)$galltemp="&gall=".$galltemp; echo "<table width=\"680px\"> <tr><td><a class=\"tex\" style=\"color:#006666;\" href=\"./thetuxworld.php?datei=gallerie&id=".$_GET['id'].$galltemp."\"><<<</a></td></tr> <tr><td>"; auswahl_gallerie($gallerie,$gall,$gall); echo "</td></tr></table>"; } } ?>
|
|