Gedichte
Getextebuch
Aneinandergereiht
ne 'Story
Zusatz
Thematik
Dazu
Helpers
Links
Spiele
Eddie Live
Was passiert
Programmierung


Autor: Eddie
Letzte Änderung am: 03.01.2006

Zu der Erklärung
<?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&amp;id=".$_GET["id"]."&amp;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&amp;id=".$_GET["id"]."&amp;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&amp;id="
.$_GET['id'].$galltemp."\"><<< Zur&uuml;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."&amp;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&amp;id="
.$_GET["id"].$galltemp."\"><<< Zur&uuml;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&amp;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."&amp;gall=".$gall."&amp;bildindex=anz\">/\</a>
        </th>
    </tr>"
;
echo 
" <tr>
        <td>
        "
.$ahref."&amp;gall=".$gall."&amp;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."&amp;gall=".$gall."&amp;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&uuml;r deine Arbeitsfl&auml;che ansehen,<br>oder als Poster irgendwo an die Wand kleben,
            denn sie werden dir verkleinert angezeigt und sind in Wirklichkeit viel GR&Ouml;&szlig;ER.<br> Noch gr&ouml;&szlig;er gibt es sie dann nur bei mir oder dort wo sie geschossen worden."
;
            }
        }
        else
        {
        if(
$galltemp)$galltemp="&amp;gall=".$galltemp;
        echo 
"<table width=\"680px\">
        <tr><td><a class=\"tex\" style=\"color:#006666;\" href=\"./thetuxworld.php?datei=gallerie&amp;id="
.$_GET['id'].$galltemp."\"><<<</a></td></tr>
        <tr><td>"
;
        
auswahl_gallerie($gallerie,$gall,$gall);
        echo 
"</td></tr></table>";
        }
    }
?>