0) && ($inx > 0) && ($iny > 0) && ($outx > 0) && ($outy > 0)) { $parts = explode(",", $poly); $xscale = ($outx / $inx); $yscale = ($outy / $iny); for ($i = 0; $i < sizeof($parts); $i ++) { if ($i % 2 == 0) { $parts[$i] = intval($parts[$i] * $xscale); // Scale X } else { $parts[$i] = intval($parts[$i] * $yscale); // Scale Y } } $poly = implode(",", $parts); } return $poly; } function fddb_lists_photodetails($mcid, $mcname, $link_base, $lang, $fullrow) { global $fdxconf; $temp = "

Zurück zu " . $mcname . "

"; $iresult = dbi_q("SELECT * FROM fddb_image WHERE (image_upload_mcidfk='" . intval($mcid) . "') AND (image_reviewed=1) LIMIT 10"); if (mysqli_num_rows($iresult) > 0) { // Photo or photos found! $enum = 0; while ($irow = mysqli_fetch_array($iresult)) { $imagemap = ""; // Load Items for Imagemap for first image if ($enum == 0) { $aquery = "SELECT * FROM fddb_multicompare2item,fddb_item,fddb_serving "; $aquery .= "WHERE mc2i_servingidfk=serving_id AND item_i18n_" . mb_substr($lang, 0, 2) . "=1 AND "; $aquery .= "mc2i_mcid='" . intval($mcid) . "' AND "; $aquery .= "fddb_item.item_id=mc2i_itemid ORDER BY mc2i_id LIMIT 100"; $aresult = dbi_q($aquery); if (mysqli_num_rows($aresult) > 0) { while ($arow = mysqli_fetch_array($aresult)) { if (mb_strlen($arow['mc2i_polygon']) > 0) { $href = $fdxconf['www_path_itemi18n'][$lang] . $arow['item_filename_' . $lang] . "/index.html"; $title = fdx_getfullname($arow, $lang); $moverjs = "document.getElementById('mouseoverproduct').innerHTML='" . $title . "';"; $moutjs = "document.getElementById('mouseoverproduct').innerHTML='';"; $coords = local_scalepoly($arow['mc2i_polygon'], $irow['image_xs'], $irow['image_ys'], 500, 375); $imagemap .= ""; } } } } $src = "/" . fdx_getmatchingimg_fullpath($irow, 500, 375); $temp .= "

" . fdx_getimgalt($irow) . "

"; if (mb_strlen($imagemap) > 0) { // Imagemap found $temp .= "

Klicke auf das Foto, um zu den markierten Produkten zu gelangen:

"; $temp .= "

" . fdx_getimgalt($irow) . "

"; $temp .= "" . $imagemap . ""; $temp .= "

"; } else { // No Imagemap found $temp .= "

" . fdx_getimgalt($irow) . "

"; } $communitylink = $fdxconf['www_path_userprofilei18n'][$lang] . $fullrow['user_username_cleaned'] . "/index.html"; if (($lang == "en") || ($lang == "fr")) { $communitylink = $fdxconf['www_path_root'][$lang]; } $temp .= "

Diese Liste und das Foto wurden angelegt von: "; $temp .= "" . htmlentities($fullrow['user_username']) . " "; $temp .= "(Problem melden)

"; $enum ++; } } else { // No Photo for this List header("HTTP/1.0 404 Not Found"); readfile($fdxconf['404i18n'][$lang]); exit(); } return $temp; } ?>