Menu

query( $query ); $line = $result->fetch(); $searchVal = ( $lang == "de" ? $line['tag'] : $line['tag_en'] ); $query = "SELECT p.ID,p.Name,p.Name_en,p.Datei FROM planeten p, tag t, planet_tag pt where p.ID=pt.planet and t.ID=pt.tag and t.".$searchField."=\"".$searchVal."\" order by Upload desc,id desc"; print '

'.getTextforID( ID_SEARCHFOR , $lang ).' '.$searchVal.'

'; } print '
'; print "
"; $files = glob($fulldir."planeten/small/*.jpg" ); usort($files, function($a, $b) { if( $a < $b ) { return -1; } if( $a == $b ) { return 0; } if( $a > $b ) { return 1; } }); foreach($files as $file) { if (!preg_match("/^\.{1,2}$/i",$file)) { $file = str_replace( $fulldir."planeten/small/" , "" , $file ); print "
\n"; print "\t"; print "
\n"; } } } if( $action == "wall" ) { print '

'.getTextforID( ID_WALL , $lang ).'

'; print '
'; print getTextforID( ID_WALL_TXT , $lang ); print "
"; $handle = @opendir( $fulldir."onthewall/small/" ); $count = 1; while ($file = readdir ($handle)) { if (!preg_match("/^\.{1,2}$/i",$file)) { print "
\n"; print "\t"; print "
\n"; } } @closedir($handle); } if( $action == "about" ) { ?>

"; $send .= "$message"; $to = "Klaus.Friese@hamburg.de"; $subject = "Panoramicum Kontakt .."; $xtra = "From: $email ($vorname $nachname)\r\n"; $xtra .= "Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit\r\n"; $xtra .= "X-Mailer: PHP ". phpversion(); print "

".getTextforID( ID_CONTACT , $lang )."

"; if( mail($to,$subject,$send,$xtra) ) { print "

Wir bedanken uns für Ihre Nachricht und werden diese schnellstmöglich bearbeiten.

"; } else { print "

Fehler beim Senden der Nachricht.

"; } } if( $action == "dontbuy" ) { ?>

'.getTextforID( ID_SEARCH , $lang ).''; print '
'; $query = "SELECT count(*) as count FROM planeten"; $result = $db->query( $query ); $line = $result->fetch(); $planetcount = $line['count']; $query = "SELECT tag,tag_en,id FROM tag"; $result = $db->query( $query ); $data = array(); foreach( $result as $line ) { $query1 = "SELECT count(*) as count FROM planet_tag pt,tag t where t.id=pt.tag and pt.planet=".$line['id']; $result = $db->query( $query1 ); $line1 = $result->fetchColumn(); $weight = $line1 / $planetcount * 100; $data[] = array('Weight' => $weight, 'Tag' => $line['tag'], 'Tag_en' => $line['tag_en'] , 'id' => $line['id'] ); } $html = '

'; $weight = 0; foreach($data as $key => $value) { if(!isset($value['Weight']) || !isset($value['Tag'])) return false; if(!isset($tmin)) $tmin = $value['Weight']; if(!isset($tmax)) $tmax = $value['Weight']; if($value['Weight'] < $tmin) { $tmin = $value['Weight']; } if($value['Weight'] > $tmax) { $tmax = $value['Weight']; } if($value['Weight'] <= 0) $value['Weight'] = 1; $weight += $value['Weight']; } $min = 10; $max = 40; foreach($data as $key => $value) { $ti = $value['Weight']; $q = $ti - $tmin; $div = $tmax-$tmin; if($div <= 0) $div = 1; $font_size = ceil($max*(($q)/($div))); if($q<=0) $font_size = $min; if($font_size < $min) $font_size = $min; $displayTag = ( $lang == "de" ? $value['Tag'] : $value['Tag_en'] ); $html .= ''.htmlspecialchars($displayTag).' '; } $html .= '

'; print $html; print "
"; print "
"; } ?>