> HOME"; $result3 = mysql_query("select * from projtags group by tags"); while($r3=mysql_fetch_array($result3)) { $tagsdb=$r3["tags"]; $tagsdb = trim($tagsdb); $tagsdb = strtoupper($tagsdb); if($tagsdb!="TOP"&&$tagsdb!=""&&$tagsdb!="HIDE"){ $tagsdb="
".strtoupper($tagsdb)."
"; $tags .=$tagsdb." ";} } echo "
"; echo $tags; echo "
";?>
$2', $text); $text = preg_replace("/\[email\](.*)\[\/email\]/Usi", "\\1", $text); $text = preg_replace("/\[b\](.*)\[\/b\]/Usi", "\\1", $text); $text = preg_replace("/\[u\](.*)\[\/u\]/Usi", "\\1", $text); $text = preg_replace("/\[i\](.*)\[\/i\]/Usi", "\\1", $text); $text = nl2br($text); //$tags = $r["tags"]; } echo "

".$titel."

".$text."

"; $result2 = mysql_query("select * from multiproj where sourceid='$id' AND NOT orderid = '0' order by orderid"); while($r2=mysql_fetch_array($result2)) { $photo=$r2["photo"]; $size=$r2["size"]; $video=$r2["video"]; if($size==250){ $class="photo col1"; } else if($size==500){ $class="photo col2"; } else if($size==750){ $class="photo col3"; } else if($size==1000){ $class="photo col4"; } if($video=="youtube"){ $vid=$r2["videourl"]; $ratio = ($size-10)/16; $newheight = round($ratio*9); $foto = '
'; echo $foto; } else if($video=="vimeo"){ $vid=$r2["videourl"]; $file_contents = file_get_contents("http://vimeo.com/api/v2/video/".$vid.".json",0,null,null); $data = json_decode($file_contents); $width = $data[0]->width; $ogheight = $data[0]->height; $ratio = ($size-10)/$width; $height = $ogheight*$ratio; $foto = '
'; echo $foto; } else { $img = "cms/projectphoto/".$size."/".$photo; list($width, $height) = getimagesize($img); echo "
\"".$titel."\"
"; } } ?>