1) { $idmaybe=explode(">", $mapoh[1])[0]; if (strpos($idmaybe, " id=") !== false) { if (strpos($idmaybe, " id='") !== false) { $thismapidis=explode("'", explode(" id='", " " . $idmaybe)[1])[0]; } else if (strpos($idmaybe, ' id="') !== false) { $thismapidis=explode("'", explode(' id="', " " . $idmaybe)[1])[0]; } else { $thismapidis=explode(">", explode(" ", explode(' id=', " " . $idmaybe)[1])[0])[0]; } } } $huha=explode($exd, $content); if (sizeof($huha) == 1) { $exd = " coords='"; $exde = "'"; $huha=explode($exd, $content); if (sizeof($huha) == 1) { $exd = " coords="; $exde = " "; $huha=explode($exd, $content); } } } else if (isset($_POST['inhtml'])) { $via=' via ' . htmlspecialchars(urldecode($_POST['inhtml'])); $content=file_get_contents(str_replace('https:','http:',htmlspecialchars(urldecode($_POST['inhtml'])))); $mapoh=explode(" 1) { $idmaybe=explode(">", $mapoh[1])[0]; if (strpos($idmaybe, " id=") !== false) { if (strpos($idmaybe, " id='") !== false) { $thismapidis="'" . explode("'", explode(" id='", " " . $idmaybe)[1])[0] . "'"; } else if (strpos($idmaybe, ' id="') !== false) { $thismapidis="'" . explode('"', explode(' id="', " " . $idmaybe)[1])[0] . "'"; } else { $thismapidis="'" . explode(">", explode(" ", explode(' id=', " " . $idmaybe)[1])[0])[0] . "'"; } } } $huha=explode($exd, $content); if (sizeof($huha) == 1) { $exd = " coords='"; $exde = "'"; $huha=explode($exd, $content); if (sizeof($huha) == 1) { $exd = " coords="; $exde = " "; $huha=explode($exd, $content); } } } // else { if (sizeof($huha) > 1) { $ftwod = "block"; $foned = "none"; for ($i=1; $i", explode($exde, $huha[$i])[0])[0]; $thisclist = explode(",", $thiscontent); if (sizeof($thisclist) == 4) { // must be shape=rect $thiscontent = "" . $thisclist[0] . " " . $thisclist[1] . "," . $thisclist[0] . " " . $thisclist[3] . "," . $thisclist[2] . " " . $thisclist[3] . "," . $thisclist[0] . "" . $thisclist[3] . "," . $thisclist[0] . " " . $thisclist[1]; } else { $thiscontent = ""; $comma=""; for ($j=0; $j 0) { if (strlen($ourdatabase) == strlen($dtis)) { $huh = stripos($dtis, $ourdatabase); if ($huh !== false) { $selected = ' selected=selected>'; } } } $selin .= '