ADMINBEREICH <-- ) ------------------------------------------------------- */ $SETTINGSFILE = "../admin/settings.inc.php"; include "functions.php"; $SVAR = GetSettings($SETTINGSFILE); // GET SERVER VARS // ---------------------------------------------------------------------------- $x = get_post(array('kat','bild')); extract($x); // ---------------------------------------------------------------------------- $SVAR = GetSettings($SETTINGSFILE); $Pathes = ShowIt_ComposePicturePathes($kat,$bild); $lines = @file($Pathes['VoteFile_Path']); @list($count, $voting) = @explode("µ", array_shift($lines)); if(!$count || ($voting/$count) > 10 || ($voting/$count) < 0) { $count = 0; $voting = 0; $vote = 0; } else { $vote = round($voting/$count,2); } $info = @getimagesize($Pathes['Picture_Path']); $cntfile = ImageInfos($Pathes['T60_Thumb_Path'],'','',1); ?> ShowIt-Bild: <? echo $bild ?>
Schliessen von <? echo $bild ?>
" ; if($SVAR['VOTE']) { echo ""; } ?>
".$cntfile[2]." Hits"; //$file = $SVAR['HOME_ROOT']."/".$SVAR['SHOWIT_ROOT']."/".$SVAR['IMAGE_FOLDER']."/".$kat."/thumbs/".$bild."_vote.txt"; $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 = "Aktuelle Bewertung : ".$realvote." bei $count Stimmen"; $link = ""; $imgl = "$alt_txt"; $imgv = ''; for($i = 1;$i<6;$i++){ if($sterne >= $i ) { $imgv .= "$alt_txt"; } else { $imgv .= "$alt_txt"; } } $imgr = "$alt_txt"; echo "". "". "". "
".$link.$imgl."".$link.$imgv."".$link.$imgr."
"; } if($SVAR['ECARD']) { echo "
". "E-Card versenden