<?php
#########################################
# - McKay-Gallery 0.2 - #
# #
# Script (C) by Manuel Krischer #
# Published under the GNU GPL License #
# http://www.edv-krischer.de #
# published 18.05.2005 #
#########################################
?>
<?php include('language.php'); // Sprachdatei laden ?>
<!-- �berschrift /-->
<h1><?php echo ($h1); ?></h1>
<!-- Beginn Programmcode /-->
<h6><?php echo ($_GET['datum'].': '.$_GET['to']); ?></h6>
<div class="gbody"><center>
<table border="0" cellspacing="0" cellpadding="0" class="picnavi" width="95%"><tr><td>
<?php echo ($bild.': '.$_GET['id'].' - '.$_GET['x']); ?></td><td align="right">
<?php
if ($pps == '') { $pps = ('30'); } //Vorgabe der Bilder pro Seite, wenn ohne Parameteraufruf
// Berechung der passenden �bersichtsseite f�r das aktuelle Bild
for ($w=1;$w<($_GET['id']/$pps);$w++) {
$pgs=($w+1);
}
if ($pgs == '') { $pgs = '1'; }
// Fehlermeldung bei falschem Aufruf des Scriptes, ansonsten Link zur passenden �bersichtseite
if ($_GET['data'] == '') { echo ('<br><br><h2>Fehler:</h2><div style="color:#a00">Parameterfehler</div>'); }
else { echo('<a href="'.$_GET['url'].''.$_GET['data'].'/index.php?page='.$pgs.'">'.$overview.'</a> '); }
?>
</td><td align="right" id="naviwidth">
<?php
// Generierung des Zur�cklinks, nat�rlich nur wenn die Bildnummer nicht 1 ist
if ($_GET['id']>1) {
$next_id = ($_GET['id']-1);
echo ('<a href="'.$_GET['url'].'bilder.php?id='.$next_id.'&to='.$_GET['to'].'&datum='.$_GET['datum'].'&x='.$_GET['x'].'&data='.$_GET['data'].'&window='.$_GET['window'].'&pre='.$_GET['pre'].'&copy='.$_GET['copy'].'&url='.$_GET['url'].'&pps='.$_GET['pps'].'" target="'.$_GET['window'].'">'.$previous.'</a>');
}?>
<?php
// Anzeige des Vor/Zur�cktrenners, nur wenn beide Bedingungen erf�llt sind
if ($_GET['id']>1) {
if ($_GET['id']<$_GET['x']) {
echo(' | ');
}
}
?>
<?php
// Generierung des Vorw�rtslinks, nat�rlich nur wenn die Bildnummer nicht bereits maximal ist
if ($id<$_GET['x']) {
$last_id = ($_GET['id']+1);
echo ('<a href="'.$_GET['url'].'bilder.php?id='.$last_id.'&to='.$_GET['to'].'&datum='.$_GET['datum'].'&x='.$_GET['x'].'&data='.$_GET['data'].'&window='.$_GET['window'].'&pre='.$_GET['pre'].'&copy='.$_GET['copy'].'&url='.$_GET['url'].'&pps='.$_GET['pps'].'" target="'.$_GET['window'].'">'.$next.'</a>');
}
?>
</td></tr></table>
<br>
<!-- BILDDARSTELLUNG -->
<?php list($breite, $hoehe) = getimagesize($_GET['url'].'/'.$_GET['data'].'/'.$_GET['pre'].''.$_GET['id'].'.jpg'); ?>
<div id="bildcontainer" style="width:<?php echo($breite+50); ?>px; height:<?php echo($hoehe+50); ?>px; padding-top:20px;">
<img src="<?php echo ($_GET['url'].'/'.$_GET['data'].'/'.$_GET['pre'].''.$_GET['id'].'.jpg" width="'.$breite.'" height="'.$hoehe.'" border=0 id="bild"'); ?>>
</div>
<br>
</center>
<?php
if ($_GET['copy'] == '') { }
else {
echo('<br><br><div align="right"><i><small>'.$copy1.' © '.$_GET['datum'].' '.$copy2.' ');
if ($mail == '')
{
echo ($_GET['copy'].'. ');
}
else {
echo ('<a href="mailto:'.$_GET['mail'].'">'.$_GET['copy'].'</a>. ');
}
echo ($copy3.'.</small></i></div>');
}
?>
<!-- Copyrighthinweis bitte nicht entfernen! -->
<div align="right"><small>Galeriescript © 2005 by <a href="http://www.edv-krischer.de" target="_blank">EDV-Krischer</a>.</small></div>
<br>
</div>
<!---Footer below/-->