13,151d12 < $udirname=""; < $ynft=""; < $ynftf=""; < $eweh=""; < $ew=""; < $contis=""; < $inid=""; < $lastonetodelete=""; < $bciy="background-color:yellow;"; < if (strpos(('' . $_SERVER['QUERY_STRING']), "linkit=") !== false) { // thanks to https://www.sitepoint.com/css-gradients-a-syntax-crash-course/ and https://uigradients.com/#MegaTron < $bciy="background: linear-gradient(to right, #ffe6ee, #FFE2E2, #fadadd, lightpink, pink, #f4c2c2, hotpink, #ff1493);"; // , #f7797d 10% < } < < function server_remote_addr() { < $rma = $_SERVER['REMOTE_ADDR']; < $ua = strtolower($_SERVER['HTTP_USER_AGENT']); < // you can add different browsers with the same way .. < if(preg_match('/(chromium)[ \/]([\w.]+)/', $ua)) < $rma = '000000'.$rma; < elseif(preg_match('/(chrome)[ \/]([\w.]+)/', $ua)) < $rma = '00000'.$rma; < elseif(preg_match('/(safari)[ \/]([\w.]+)/', $ua)) < $rma = '0000'.$rma; < elseif(preg_match('/(opera)[ \/]([\w.]+)/', $ua)) < $rma = '000'.$rma; < elseif(preg_match('/(msie)[ \/]([\w.]+)/', $ua)) < $rma = '00'.$rma; < elseif(preg_match('/(mozilla)[ \/]([\w.]+)/', $ua)) < $rma = '0'.$rma; < return str_replace(":", "_", $rma); < } < < < function relative_to_absolute_php($inth) { < global $udirname, $ynft, $ynftf, $eweh, $ew; < $charoneprefix=""; < $hds=explode("data:", $inth); < for ($ih=1; $ih 1) { < for ($ii=(sizeof($huhs) - 1); $ii>=1; $ii--) { < if ($charoneprefix != "" && substr($huhs[$ii], 0, 1) == "/" && substr($huhs[$ii], 1, 1) != "/" && substr($huhs[$ii], 0, 1) != "'" && substr($huhs[$ii], 0, 1) != '"') { < if (substr($ideas[$m],-1) == "'") { < $outth = str_replace("/./","/",$ideas[$m] . str_replace(explode("'",$huhs[$ii])[0] . "'", $ideas[$m] . $charoneprefix . explode("'",$huhs[$ii])[0] . "'", $outth)); < } else if (substr($ideas[$m],-1) == '"') { < $outth = str_replace("/./","/",$ideas[$m] . str_replace(explode('"',$huhs[$ii])[0] . '"', $ideas[$m] . $charoneprefix . explode('"',$huhs[$ii])[0] . '"', $outth)); < } else { < $outth = str_replace("/./","/",str_replace($huhs[$ii], $charoneprefix . $huhs[$ii], $outth)); < } < } else if (strtolower(str_replace("file", "http", strtolower(substr($huhs[$ii], 0, 4)))) == "http") { < $outth = $outth; < } else if (substr($huhs[$ii], 0, 1) != "/" && substr($huhs[$ii], 0, 1) != "'" && substr($huhs[$ii], 0, 1) != '"') { < if (strpos($huhs[$ii], "data:") === false) { < < if (substr($ideas[$m],-1) == "'") { < $outth = str_replace("/./","/",$ideas[$m] . str_replace(explode("'",$huhs[$ii])[0] . "'", $ideas[$m] . $udirname . explode("'",$huhs[$ii])[0] . "'", $outth)); < } else if (substr($ideas[$m],-1) == '"') { < $outth = str_replace("/./","/",$ideas[$m] . str_replace(explode('"',$huhs[$ii])[0] . '"', $ideas[$m] . $udirname . explode('"',$huhs[$ii])[0] . '"', $outth)); < } else { < < $outth = str_replace("/./","/",str_replace($huhs[$ii], $udirname . $huhs[$ii], $outth)); < } < } else { < $outth = str_replace("/./","/",str_replace($huhs[$ii], str_replace("data:","DATA:",$huhs[$ii]), $outth)); < } < } else if (substr($huhs[$ii], 1, 1) != "/" && substr($huhs[$ii], 0, 1) != "'" && substr($huhs[$ii], 0, 1) != '"') { < if (strpos($huhs[$ii], "data:") === false) { < < < if (substr($ideas[$m],-1) == "'") { < $outth = str_replace("/./","/",$ideas[$m] . str_replace(explode("'",$huhs[$ii])[0] . "'", $ideas[$m] . substr($udirname, 0, (strlen($udirname) - 1)) . explode("'",$huhs[$ii])[0] . "'", $outth)); < } else if (substr($ideas[$m],-1) == '"') { < $outth = str_replace("/./","/",$ideas[$m] . str_replace(explode('"',$huhs[$ii])[0] . '"', $ideas[$m] . substr($udirname, 0, (strlen($udirname) - 1)) . explode('"',$huhs[$ii])[0] . '"', $outth)); < } else { < < < $outth = str_replace("/./","/",str_replace($huhs[$ii], substr($udirname, 0, (strlen($udirname) - 1)) . $huhs[$ii], $outth)); < } < } else { < $outth = str_replace("/./","/",str_replace($huhs[$ii], str_replace("data:","DATA:",$huhs[$ii]), $outth)); < } < } < } < } < } < } < $outth=str_replace("DATA:","data:",$outth); < if (strpos($outth, "") !== false && strpos($outth, "", $outth)[0])[-1 + sizeof(explode("", str_replace("/./","/",$outth))[0]))] . ""; < } < return str_replace("/./","/",$outth); < } < < if (isset($_GET['inurl']) && isset($_GET['inid'])) { < $inid=str_replace("+"," ",urldecode($_GET['inid'])); < $udirname=str_replace(" ","+",urldecode($_GET['inurl'])); < $contis=relative_to_absolute_php(file_get_contents($udirname)); < } < < function postmapit($oon) { < if (isset($_GET['linkit']) || isset($_POST['linkit'])) { < if (isset($_GET['one'])) { < return "..."; < } else if (isset($_POST['one'])) { < return "..."; < } else { < return "..."; < } < } < return $oon; < } 154c15 < global $lastoi, $lastonetodelete; --- > global $lastoi; 163,165c24,25 < file_put_contents($oone . server_remote_addr() . ".html", "
" . str_replace("&#","&#", str_replace("\n","
", str_replace('<A ','', str_replace('<DIV ','
', str_replace('</SPAN>','', str_replace('ccc">','ccc">', str_replace("<","<",str_replace(">",">",$lastoi)))))))))) ) . "
"); < $lastonetodelete=$oone . server_remote_addr() . ".html"; < return $oone . server_remote_addr() . ".html"; --- > file_put_contents($oone . ".html", "
" . str_replace("&#","&#", str_replace("\n","
", str_replace('<A ','
', str_replace('</SPAN>','', str_replace('ccc">','ccc">', str_replace("<","<",str_replace(">",">",$lastoi)))))))) ) . "
"); > return $oone . ".html"; 172c32 < global $lastoi, $contis, $inid; --- > global $lastoi; 195c55 < $outtobelinked=str_replace("this" . $fnidea . "=", "this." . substr($fnidea,1) . "
=", $outtobelinked); --- > $outtobelinked=str_replace("this" . $fnidea . "=", "this." . substr($fnidea,1) . "=", $outtobelinked); 197c57 < $outtobelinked=str_replace("this" . $fnidea . " =", "this." . substr($fnidea,1) . "
=", $outtobelinked); --- > $outtobelinked=str_replace("this" . $fnidea . " =", "this." . substr($fnidea,1) . " =", $outtobelinked); 199c59 < $spareintobelinked=str_replace("this" . $fnidea . " =", "this." . substr($fnidea,1) . "
=", $spareintobelinked); --- > $spareintobelinked=str_replace("this" . $fnidea . " =", "this." . substr($fnidea,1) . " =", $spareintobelinked); 202c62 < $spareintobelinked=str_replace("this" . $fnidea . "=", "this." . substr($fnidea,1) . "
=", $spareintobelinked); --- > $spareintobelinked=str_replace("this" . $fnidea . "=", "this." . substr($fnidea,1) . "=", $spareintobelinked); 210,211c70,71 < if (strpos(($fns[$ifns] . "("), "function " . $fnidea . "(") !== false && strpos($outtobelinked, "" . $fnidea . "
("; --- > if (strpos(($fns[$ifns] . "("), "function " . $fnidea . "(") !== false && strpos($outtobelinked, " $outtobelinked.=substr($fns[$ifns],0,($jns + 1)) . "" . $fnidea . "("; 213c73 < $outtobelinked.=substr($fns[$ifns],0,($jns + 1)) . "
" . $fnidea . "("; --- > $outtobelinked.=substr($fns[$ifns],0,($jns + 1)) . "" . $fnidea . "("; 215c75 < $outtobelinked.=substr($fns[$ifns],0,($jns + 1)) . "" . $fnidea . "("; --- > $outtobelinked.=substr($fns[$ifns],0,($jns + 1)) . "" . $fnidea . "("; 217,218c77 < $oty=urlencode("http://www.google.com/search?q=" . urlencode($fnidea) . "+w3schools+php.net+computerhope"); < $outtobelinked.=substr($fns[$ifns],0,($jns + 1)) . "" . $fnidea . "
("; --- > $outtobelinked.=substr($fns[$ifns],0,($jns + 1)) . "" . $fnidea . "("; 231,233d89 < if ($contis != "") { < $outtobelinked=str_replace("
", "", $outtobelinked); < } 265c121 < $iframebits="

Latest file " . postmapit('...') . " Differences below this ... " . $_GET['one'] . "



"; --- > $iframebits="

Latest file ... Differences below this ... " . $_GET['one'] . "



"; 280c136 < $iframebits="

Latest file " . postmapit('...') . " Differences below this ... " . $_GET['one'] . "



"; --- > $iframebits="

Latest file ... Differences below this ... " . $_GET['one'] . "



"; 339c195 < $iframebits=$xprefix . "

Latest file " . postmapit('...') . " Differences below this " . $_GET['one'] . "



"; --- > $iframebits=$xprefix . "

Latest file ... Differences below this " . $_GET['one'] . "



"; 356c212 < $iframebits="

Latest file " . postmapit('...') . " Differences below this" . $_POST['one'] . "



"; --- > $iframebits="

Latest file ... Differences below this" . $_POST['one'] . "



"; 371c227 < $iframebits="

Latest file " . postmapit('...') . " Differences below this" . $_POST['one'] . "



"; --- > $iframebits="

Latest file ... Differences below this" . $_POST['one'] . "



"; 431c287 < $iframebits=$xprefix . "

Latest file " . postmapit('...') . " Differences below this " . $_POST['one'] . "



"; --- > $iframebits=$xprefix . "

Latest file ... Differences below this " . $_POST['one'] . "



"; 455d310 < //if ($called == "") unlink(dirname(__FILE__) . "/one.one" . server_remote_addr() . ".html"); 459,463d313 < if (strpos(('' . $_SERVER['QUERY_STRING']), "linkit=") !== false && strpos(('' . $_SERVER['QUERY_STRING']), "linktwoit=") === false) { < //sleep(5); < header('Location: ./diff.php?' . str_replace("linkit=", "linktwoit=y&linkit=", $_SERVER['QUERY_STRING'])); < exit; < } 467,471d316 < < if ($lastonetodelete != "") { < exec("sleep 8; rm -f " . $lastonetodelete); < $lastonetodelete=""; < } 476,480d320 < if (strpos(('' . $_SERVER['QUERY_STRING']), "linkit=") !== false && strpos(('' . $_SERVER['QUERY_STRING']), "linktwoit=") === false) { < //sleep(5); < header('Location: ./diff.php?' . str_replace("linkit=", "linktwoit=y&linkit=", $_SERVER['QUERY_STRING'])); < exit; < } 486d325 < echo ""; 488,492d326 < < if ($lastonetodelete != "") { < exec("sleep 8; rm -f " . $lastonetodelete); < $lastonetodelete=""; < }