ADMINBEREICH <-- ) ------------------------------------------------------- */ $SETTINGSFILE = "./admin/settings.inc.php"; include "./modules/functions.php"; $SVAR = GetSettings($SETTINGSFILE); include "./modules/bbcode.php"; include "./language/".$SVAR['LANG'].".php" ; // GET SERVER VARS // ---------------------------------------------------------------------------- $x = get_post(array('kat','bild','page','sort')); extract($x); // ---------------------------------------------------------------------------- if( str_replace($SVAR['IMAGE_FOLDER']."/",'',$kat) == 'lastpics') { $NONAV = TRUE; $ordner = dirname($bild); $ordner = str_replace($SVAR['HOME_ROOT'],'',$ordner); $kat = str_replace( "/".$SVAR['SHOWIT_ROOT']."/",'', $ordner); } $bild = basename($bild); ?> ..:: ShowIt ::.. <? echo $bild ?> " ; } ?> > ". "". " "; } if(!empty($bild)) { $kat = str_replace($SVAR['IMAGE_FOLDER']."/",'',$kat); $Pathes = ShowIt_ComposePicturePathes($kat,$bild); chdir($Pathes['Category_Path']); $verz=opendir ($Pathes['Category_Path']); $f=0; $files = psort($kat); if($sort) $files = array_reverse($files); $total_pics = count($files); for($i=0; $i < $total_pics; $i++) { if($files[$i] == $bild) { $pn=$i; break; } } $pics_per_page = $SVAR['ICON_INFO1'] * $SVAR['ICON_INFO2']; $current_page = floor($pn/$pics_per_page)+1 ; if(!$Pathes['T400_Thumb_Path']) { mk_thumb($Pathes['Category_Path'],$bild); } $info=@getimagesize($Pathes['Picture_Path']); $tinfo=@getimagesize($Pathes['T400_Thumb_Path']); $cntfile = ImageInfos($Pathes['T60_Thumb_Path']); //------------------------------------------------------------------------------ // Wenn der Wert in $JAVA auf 1 gesetzt wird, wird das OriginalBildFenster mit // einem JavaScript-Link Befehl geöffnet. (!)Manche Browser haben JS abgestellt. $JAVA = 1; /* maximale Dimensionen des Originalgrößen - Pop-Up Windows, wird diese Größe überschritten, werden automatisch Scrollbars eingeblendet*/ $maxWin_width = 1100; $maxWin_height = 900; //------------------------------------------------------------------------------ if (empty($JAVA)) { $link = "href='./modules/showpicorg.php?kat=$kat&bild=$bild&sort=$sort' title='XXL' alt='XXL' target=\"_blank\""; } else { $ScrollBars = 'no'; $xx = $info[0] + 35; if( $xx < 200 ) $xx = 200; if( $xx > $maxWin_width ) { $xx = $maxWin_width; $ScrollBars = 'yes'; } $yy = $info[1] + 40; if( $yy > $maxWin_height ) { $yy = $maxWin_height; $ScrollBars = 'yes'; } $link = "href='./modules/showpicorg.php?kat=$kat&bild=$bild&sort=$sort' target='_blank' onclick=\"window.open('./modules/showpicorg.php?kat=$kat&bild=$bild', 'Vollbild', 'toolbar=0, scrollbars=$ScrollBars, location=0, statusbar=0, menubar=0, resizable=1, width=$xx, height=$yy, left = 20, top = 20 '); return false;\""; } $DescriptionHeader = "
»» ".$bild." ««
"; if(empty($cntfile[1])) { if($SVAR['DESCR'] == 2) { $beschreibung = $_TXT_['_SPIC_nodes']."
"; } else { $beschreibung = "»» ".$bild." ««"; } } else { $beschreibung= chop(str_replace(array("\r", "\n"),"",$cntfile[1])); // OHNE ZEILENUMBRUCH BEI TOOLTIPS // $beschreibung= chop(str_replace(array("\r", "\n"),"
",$cntfile[1])); // MIT ZEILENUMBRUCH BEI TOOLTIPS $beschreibung = addslashes($beschreibung); $beschreibung = htmlentities(bb_code($beschreibung)).""; } if($SVAR['DESCR'] == 2 && !empty($cntfile[1])) { $link .= " onmouseover=\"showBallon('".$DescriptionHeader.$beschreibung. "'); window.status='Tooltip 1'; return true;\" onmouseout=\"hideBallon(); return true;\" "; } // [>] Button: "nächstes Bild" if( $pn < ($total_pics-1)) { $next_link ="showpic.php?kat=".$kat."&bild=".rawurlencode($files[($pn+1)])."&sort=$sort"; if( ($pn+1) == ($current_page*$pics_per_page)) { $next_link ="index.php?kat=".$kat."&bild=".rawurlencode($files[($pn+1)]). "&sort=$sort&page=".($current_page+1)."\" target=\"_parent\""; } $next = "".$_TXT_[ "; } else { $next = "".$_TXT_[ "; } // [<] Button: "ein Bild zurück" if( $pn ) { $last_link = "showpic.php?kat=".$kat."&bild=".rawurlencode($files[($pn-1)])."&sort=$sort"; if( ($pn) == (($current_page-1)*$pics_per_page)) { $last_link ="index.php?kat=".$kat."&bild=".rawurlencode($files[($pn-1)]). "&sort=$sort&page=".($current_page-1)."\" target=\"_parent\""; } $last = "".$_TXT_[ "; } else { $last = "".$_TXT_[ "; } $ii = $cntfile[0] || $cntfile[1] ? "info2.gif" : "info.gif" ; // [|<] Button: "Zum Ersten Bild springen" $nav1 = "".$_TXT_[ ".$last; // [i] Button: "Infos und Kommentare" $nav2 = $SVAR['COMMT'] ? "". " " : '' ; // [>|] Button: "Zum Letzten Bild springen" $nav3 = $next."".$_TXT_[ "; // [ecard] Button: "E-Card versenden" $nav4 = $SVAR['ECARD'] ? "". "".$_TXT_[ " : '' ; // [top] Button: "Top-Ten Liste" $nav5 = $SVAR['TOPTEN'] ? "TOP10 " : '' ; $titletag = $SVAR['DESCR'] == 2 ? '' : $_TXT_['_SPIC_clkms']." :".$bild; echo "
"; echo "".$titletag.""; echo "
"; // Voting-Anzeige $lines = @file($Pathes['VoteFile_Path']); @list($count, $voting) = @explode("µ", @array_shift($lines)); $realvote = @round($voting/$count,2); if($realvote <= 0 || $realvote > 10) { $count = $voting = $realvote = 0; } $sterne = ceil($realvote/2); $alt_txt = $_TXT_['_SPIC_avote']." : ".$realvote." ".$_TXT_['_SPIC_ofbei']." ".$count." ".$_TXT_['_SPIC_rated']; $link = ""; $imgl = "$alt_txt"; $imgv = ''; for($i = 1; $i < 6; $i++ ){ $imgv .= "= $i) ? "star1.gif" : "star0.gif" ; $imgv .= "' border='0' title='$alt_txt' alt='$alt_txt'>"; } $imgr = "$alt_txt"; $voting = $SVAR['VOTE'] ? "" : ''; if($NONAV) { $link2kat= "".$_TXT_["; $fileinfo = $link2kat; echo $voting."". "
 ".$link.$imgl."".$link.$imgv."".$link.$imgr."  ".$nav2.$nav4.$fileinfo."
  ©".$_TXT_['_INDX_updat'].": ".date("d.m.Y",filectime($Pathes['Picture_Path'])). "
"; } else { echo $voting."".$nav1.$nav2.$nav3.$nav4.$nav5."". ""; } if($SVAR['DESCR'] == 1 && $cntfile[1]) { echo "
"; echo bb_code(str_replace("
","\n",$cntfile[1])); echo "
"; } } else { echo "



".$_TXT_['_SPIC_nopic']."

"; } ?>