Larger engraving

"; echo "
"; if (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) { $ip=$_SERVER["HTTP_X_FORWARDED_FOR"]; } else { $ip = $_SERVER['REMOTE_ADDR']; } $return_url=$_SERVER['HTTP_REFERER']; echo ""; echo "Start page"; echo ""; echo ""; echo "Back"; echo ""; $wrd=$_GET["id"]; //echo $wrd; $mongo = new MongoClient("mongodb://mdb01.ppl.nl,mdb02.ppl.nl,mdb03.ppl.nl", array( "username" => 'web', "password" => "RhEb992TQFU[L{ZT]YeqBuyWZ", "replicaSet" => "ppl", "connectTimeoutMS" => 1000 )); $db=$mongo->test; $collection=$db->portraits; $publication = $collection->findOne(array('_id' => new MongoId($wrd))); echo "
"; echo "
"; echo "
"; if($publication["collection"]==="portraits"){ echo "Portrait of "; } else{ echo ""; } echo $publication["portrait_of"]; //of echo $publication["description"]; if($publication["year_of_birth_and_year_of_death"]){ echo " (".$publication["year_of_birth_and_year_of_death"].")"; } echo "
"; echo "Published in:
"; if ($publication["author"]){ echo $publication["author"]; echo ", "; } echo ""; echo $publication["title_of_pub"]; echo ""; if($publication["vol_nr"]){ echo ", ".$publication["vol_nr"]." "; }else{ echo " $nbsp; "; } //echo " ".$publication["vol_nr"]." "; echo "("; if($publication["place"]){ echo "".$publication["place"]; echo ": "; } if ($publication["publisher_printer"]){ echo $publication["publisher_printer"]; } echo ", "; echo $publication["year_of_pub"]; echo ").

"; echo "Language of publication: "; echo $publication["language_of_pub"]; echo "

"; if($publication["tags"]){ echo "Tags:
"; $toegekend=$publication["tags"]; for($y=0;$y
"; } if($publication["biography"]){ echo "Biography:
"; echo $publication["biography"]; echo "

"; } $ppn=(string)$publication["PPN_nr"]; if(strlen($ppn)==8){ $ppn="0".$ppn; } echo ""; echo "Catalogue"; echo ""; if($publication["suggested_wikipedia_articles"]){ echo "    |    "; echo ""; echo "Wikipedia"; echo ""; } echo "    |    "; echo ""; echo "All scanned images in this book"; echo ""; echo "

"; $een=rand(0,5); $twee=rand(0,5); $som=$een+$twee; echo "Help others find this item, add some tags."; echo " Start tagging with answer to math question below, go on with a comma and then add your tags. If you have more then one tag then separate each tag by a comma (Example: 8, coin, pigeon, angel, coat of arms, book, Order of the Golden Fleece, quill, crown). ".$een." + ".$twee." = "; ?>

"; if($publication["landscape"]==="yes"){ echo "
"; echo "
"; echo "[You can zoom in at the bottom right corner or click here to get the full image all at once.]"; echo ""; echo "
"; echo "
"; } else{ echo "
"; echo "
"; echo "[You can zoom in at the bottom right corner or click here to get the full image.]"; echo ""; echo "
"; echo "
"; } $tijd=time(); $plaatje=$ppn."_".$nr; $gebruik=array('recordnummer'=>$wrd,'tijd'=>$tijd,'ip'=>$ip,'picture'=>$plaatje,'script'=>'big_portrait_search','refer'=>$return_url); json_encode($gebruik); $collection_clicked=$db->engravings_use; $collection_clicked->insert($gebruik); $mongo->close(); echo "
"; ?>