8,30d7 < $selo=''; < $url='//en.wikipedia.org/wiki/List_of_impact_craters_on_Earth'; < if (isset($_GET['url'])) { < $selo=" document.getElementById('selo').value='" . str_replace("https:","",str_replace("http:","",str_replace("+"," ",urldecode($_GET['url'])))) . "'; "; < $url=str_replace("https:","",str_replace("http:","",str_replace("+"," ",urldecode($_GET['url'])))); < } else if (isset($_POST['url'])) { < $selo=" document.getElementById('selo').value='" . str_replace("https:","",str_replace("http:","",str_replace("+"," ",urldecode($_POST['url'])))) . "'; "; < $url=str_replace("https:","",str_replace("http:","",str_replace("+"," ",urldecode($_POST['url'])))); < } < $titleplus='Meteorite| Crater|s on Earth'; < if (isset($_GET['titleplus'])) { < $titleplus=str_replace("+"," ",urldecode($_GET['titleplus'])); < } else if (isset($_POST['titleplus'])) { < $titleplus=str_replace("+"," ",urldecode($_POST['titleplus'])); < } < $suffix='_craters'; < if (strpos($titleplus, "|") !== false) { < $suffix=strtolower(str_replace(" ","_",explode("|", $titleplus)[1])); < } else { < $suffix=''; < } < $title=str_replace("|", "", $titleplus); < $ltitle='List of impact craters on Earth - Wikipedia'; 32,36c9 < $cont=str_replace('') !== false) { < $ltitle=explode("title>", explode("", $cont)[0])[1]; < } --- > $cont=file_get_contents("http://en.wikipedia.org/wiki/List_of_impact_craters_on_Earth"); 41d13 < $altf=""; 46,72d17 < if (sizeof($dataarray) == 1) { < $dataarray=explode("&title=", $cont); < } < if (sizeof($dataarray) == 1) { < if (sizeof(explode('&params=', $cont)) > 1) { < $altf='&params='; < $dataarray=explode($altf, $cont); < } else if (sizeof(explode('_W_"> 1) { < $altf='_W_"> 1) { < $altf='_W_"> 1) { < $altf='_E_"> 1) { < $altf='_W_'; < $dataarray=explode($altf, $cont); < } else if (sizeof(explode('_E_', $cont)) > 1) { < $altf='_E_'; < $dataarray=explode($altf, $cont); < } < } 75,88c20 < if (strpos($altf,'params') !== false) { < $rest=explode('"', $dataarray[$i])[0]; < $xtitleis=explode('", explode("", explode("", explode("", explode("", explode("", explode(" $titleis=str_replace("_"," ",explode('"', $dataarray[$i])[0]); 90d21 < } 133,135c64,65 < $junk .= $delm . str_replace("%2B","%20",str_replace("+","%20",urlencode($titleis))) . $suffix; < //$areg .= $delm . "http." . str_replace("%2B","%20",str_replace("+","%20",urlencode($titleis))) . $suffix; < $areg .= $delm . "http." . str_replace("%2B","_",str_replace("+","_",urlencode($titleis))) . $suffix; --- > $junk .= $delm . str_replace("+","%20",urlencode($titleis)) . "_crater"; > $areg .= $delm . "http." . str_replace("+","%20",urlencode($titleis)) . "_crater"; 140d69 < 145c74 < " . $title . " - RJM Programming - October, 2018 - Thanks to " . $url . " --- > Meteorite Craters on Earth - RJM Programming - October, 2018 - Thanks to https://en.wikipedia.org/wiki/List_of_impact_craters_on_Earth 160,170d88 < < function setup(osel) { < var one=1, tp=''; < while (document.getElementById('o' + one)) { < if (document.getElementById('o' + one).value == osel.value) { < tp=document.getElementById('o' + one).title; < } < one++; < } < location.href=document.URL.split('#')[0].split('?')[0] + '?url=' + encodeURIComponent(osel.value) + '&titleplus=' + encodeURIComponent(tp); < } 173,175c91,93 < < <

RJM Programming - October, 2018 - Thanks to " . $ltitle . "

--- > >

Meteorite Craters on Earth

>

RJM Programming - October, 2018 - Thanks to List of impact craters on Earth

177c95 < --- > 186c104 < --- > 190c108 < --- >