" . str_replace("","&#", str_replace("\n","
", str_replace('<A ','', str_replace('</SPAN>','', str_replace('ccc">','ccc">', str_replace("<","<",str_replace(">",">",$lastoi)))))))) ) . "");
return $oone . ".html";
}
//$lastoi="";
return $oone;
}
function ofinterest($intobelinked) {
global $lastoi;
$spareintobelinked=$intobelinked;
$outtobelinked=$intobelinked;
$fns=explode("(", $intobelinked);
for ($ifns=0; $ifns= "a" && substr(strtolower($fns[$ifns]),$jns,1) <= "z") {
$fnidea=substr($fns[$ifns],$jns,1);
$jns--;
while (substr($fns[$ifns],$jns,1) == "." || substr($fns[$ifns], $jns,1) == "_" || (substr(strtolower($fns[$ifns]),$jns,1) >= "a" && substr(strtolower($fns[$ifns]),$jns,1) <= "z")) {
$fnidea=substr($fns[$ifns], $jns,1) . $fnidea;
$kns=$jns;
$jns--;
if ($jns < 0) { break; }
if (substr($fns[$ifns],$kns,1) == ".") { break; }
}
if ($fnidea != "") {
if (substr($fnidea,0,1) == ".") {
if (strpos($outtobelinked, "this" . $fnidea . "=") !== false) {
$outtobelinked=str_replace("this" . $fnidea . "=", "this." . substr($fnidea,1) . "=", $outtobelinked);
} else if (strpos($outtobelinked, "this" . $fnidea . " =") !== false) {
$outtobelinked=str_replace("this" . $fnidea . " =", "this." . substr($fnidea,1) . " =", $outtobelinked);
} else if (strpos($spareintobelinked, "this" . $fnidea . " =") !== false) {
$spareintobelinked=str_replace("this" . $fnidea . " =", "this." . substr($fnidea,1) . " =", $spareintobelinked);
$fns=explode("(", $spareintobelinked);
} else if (strpos($spareintobelinked, "this" . $fnidea . "=") !== false) {
$spareintobelinked=str_replace("this" . $fnidea . "=", "this." . substr($fnidea,1) . "=", $spareintobelinked);
$fns=explode("(", $spareintobelinked);
}
$fnidea=substr($fnidea,1);
$jns++;
}
}
//file_put_contents("found.this",$fnidea);
if (strpos(($fns[$ifns] . "("), "function " . $fnidea . "(") !== false && strpos($outtobelinked, "" . $fnidea . "(";
} else if (strlen($fnidea) > 3 && strpos($outtobelinked, ">" . $fnidea . "") === false && strpos($spareintobelinked, ">" . $fnidea . "") !== false) {
$outtobelinked.=substr($fns[$ifns],0,($jns + 1)) . "" . $fnidea . "(";
} else if (strlen($fnidea) > 3 && strpos($outtobelinked, ">" . $fnidea . "") === false && strpos($outtobelinked, ">" . $fnidea . "") !== false) {
$outtobelinked.=substr($fns[$ifns],0,($jns + 1)) . "" . $fnidea . "(";
} else if (strlen($fnidea) > 3 && strpos($outtobelinked, ">" . $fnidea . "") === false) {
$outtobelinked.=substr($fns[$ifns],0,($jns + 1)) . "" . $fnidea . "(";
} else {
$outtobelinked.=$fns[$ifns] . "(";
}
} else {
$outtobelinked.=$fns[$ifns] . "(";
}
} else {
$outtobelinked.="(";
}
}
if (isset($_GET['linkit']) || isset($_POST['linkit'])) {
//file_put_contents("found.b", strlen($outtobelinked));
$lastoi=$outtobelinked;
}
return $intobelinked;
}
function yourfile_get_contents($inuis) {
global $lastoi;
if (strpos(("~" . $inuis), "~//") !== false) {
if (isset($_GET['linkit']) || isset($_POST['linkit'])) {
//file_put_contents("found.it","huh");
return ofinterest(file_get_contents("http:" . $inuis));
}
return file_get_contents("http:" . $inuis);
}
if (isset($_GET['linkit']) || isset($_POST['linkit'])) {
//file_put_contents("found.oi","huh");
return ofinterest(file_get_contents($inuis));
}
return file_get_contents($inuis);
}
function ourfile_get_contents($inuis) {
if (strpos(("~" . $inuis), "~//") !== false) {
return file_get_contents("http:" . $inuis);
}
return file_get_contents($inuis);
}
if (isset($_GET['one']) && !isset($_GET['two'])) {
if (str_replace("--GETME", "", $_GET['one']) != $_GET['one']) {
$called="y";
$iframebits="
Latest file ... Differences below this ... " . $_GET['one'] . "
";
$iframebits.="Differences ^ v
";
$iframebits.="Older file ... Differences just above ... " . str_replace("--GETME", "-GETME", $_GET['one']) . "
";
$suffix = " file(s) not found";
if (str_replace("GETME", "", $_GET['one']) != $_GET['one']) {
$suffix="";
$onec = yourfile_get_contents($_GET['one']);
if (str_replace(" ","",$onec) == "" || strpos($onec, "No newline" . " at end of file") !== false) $suffix = " " . $_GET['one'] . " not found";
$twoc = ourfile_get_contents(str_replace("--GETME", "-GETME", $_GET['one']));
if (str_replace(" ","",$twoc) == "" || strpos($twoc, "No newline" . " at end of file") !== false) $suffix .= " " . str_replace("--GETME", "-GETME", $_GET['one']) . " not found";
} else {
$suffix = " sorry, no can do";
}
} else if (str_replace("-GETME", "", $_GET['one']) != $_GET['one']) {
$called="y";
$iframebits="Latest file ... Differences below this ... " . $_GET['one'] . "
";
$iframebits.="Differences ^ v
";
$iframebits.="Older file ... Differences just above ... " . str_replace("-GETME", "_GETME", $_GET['one']) . "
";
$suffix = " file(s) not found";
if (str_replace("GETME", "", $_GET['one']) != $_GET['one']) {
$suffix="";
$onec = yourfile_get_contents($_GET['one']);
if (str_replace(" ","",$onec) == "" || strpos($onec, "No newline" . " at end of file") !== false) $suffix = " " . $_GET['one'] . " not found";
$twoc = ourfile_get_contents(str_replace("-GETME", "_GETME", $_GET['one']));
if (str_replace(" ","",$twoc) == "" || strpos($twoc, "No newline" . " at end of file") !== false) $suffix .= " " . str_replace("-GETME", "_GETME", $_GET['one']) . " not found";
} else {
$suffix = " sorry, no can do";
}
} else if (str_replace("GETME", "", $_GET['one']) != $_GET['one']) {
$fillinone=$_GET['one'];
}
} else if (isset($_GET['one']) && isset($_GET['two'])) {
if ($_GET['one'] != "" && $_GET['two'] != "" && $_GET['one'] != $_GET['two'] && str_replace("GETME","",str_replace("_","",str_replace("-","",$_GET['one']))) == str_replace("GETME","",str_replace("_","",str_replace("-","",$_GET['two'])))) {
if (str_replace("GETME", "", $_GET['one']) != $_GET['one'] && str_replace("GETME", "", $_GET['two']) != $_GET['two']) {
$xprefix="";
$xsuffix="";
} else if (str_replace("GETME", "", $_GET['one']) != $_GET['one'] || str_replace("GETME", "", $_GET['two']) != $_GET['two']) {
$xprefix="";
$xsuffix="
";
$onloadbit=" onload=\" var huh=prompt('Password? (Hint: Why is a duck?)',''); if (huh != null && huh == 'BecausE IT FlieS SO HigH') { document.getElementById('diffdiv').style.display='block'; } else { document.getElementById('diffdiv').innerHTML=''; } \"";
$prevg="";
if (str_replace("GETME", "", $_GET['one']) == $_GET['one']) {
if ("" != @ourfile_get_contents(str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $_GET['two']))))) {
$prevg=str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $_GET['two'])));
while ($prevg != "") {
$_GET['one']=$prevg;
if ("" != ourfile_get_contents(str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $prevg))))) {
$prevg=str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $prevg)));
} else {
$prevg="";
}
}
$xprefix="";
$xsuffix="";
$onloadbit="";
}
} else {
if ("" != @ourfile_get_contents(str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $_GET['one']))))) {
$prevg=str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $_GET['one'])));
while ($prevg != "") {
$_GET['two']=$prevg;
if ("" != ourfile_get_contents(str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $prevg))))) {
$prevg=str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $prevg)));
} else {
$prevg="";
}
}
$xprefix="";
$xsuffix="";
$onloadbit="";
}
}
}
$called="y";
$iframebits=$xprefix . "Latest file ... Differences below this " . $_GET['one'] . "
";
$iframebits.="Differences ^ v
";
$iframebits.="Older file ... Differences just above " . $_GET['two'] . "
" . $xsuffix;
}
$suffix = " file(s) not found";
if (str_replace("GETME", "", $_GET['one']) != $_GET['one'] || str_replace("GETME", "", $_GET['two']) != $_GET['two']) {
$suffix="";
$onec = yourfile_get_contents($_GET['one']);
if (str_replace(" ","",$onec) == "" || strpos($onec, "No newline" . " at end of file") !== false) $suffix = " " . $_GET['one'] . " not found";
$twoc = ourfile_get_contents($_GET['two']);
if (str_replace(" ","",$twoc) == "" || strpos($twoc, "No newline" . " at end of file") !== false) $suffix .= " " . $_GET['two'] . " not found";
} else {
$suffix = " sorry, no can do";
}
} else if (isset($_POST['one']) && !isset($_POST['two'])) {
if (str_replace("--GETME", "", $_POST['one']) != $_POST['one']) {
$called="y";
$iframebits="Latest file ... Differences below this" . $_POST['one'] . "
";
$iframebits.="Differences ^ v
";
$iframebits.="Older file ... Differences just above" . str_replace("--GETME", "-GETME", $_POST['one']) . "
";
$suffix = " file(s) not found";
if (str_replace("GETME", "", $_POST['one']) != $_POST['one']) {
$suffix="";
$onec = yourfile_get_contents($_POST['one']);
if (str_replace(" ","",$onec) == "" || strpos($onec, "No newline" . " at end of file") !== false) $suffix = " " . $_POST['one'] . " not found";
$twoc = ourfile_get_contents(str_replace("--GETME", "-GETME", $_POST['one']));
if (str_replace(" ","",$twoc) == "" || strpos($twoc, "No newline" . " at end of file") !== false) $suffix .= " " . str_replace("--GETME", "-GETME", $_POST['one']) . " not found";
} else {
$suffix = " sorry, no can do";
}
} else if (str_replace("-GETME", "", $_POST['one']) != $_POST['one']) {
$called="y";
$iframebits="Latest file ... Differences below this" . $_POST['one'] . "
";
$iframebits.="Differences ^ v
";
$iframebits.="Older file ... Differences just above" . str_replace("-GETME", "_GETME", $_POST['one']) . "
";
$suffix = " file(s) not found";
if (str_replace("GETME", "", $_POST['one']) != $_POST['one']) {
$suffix="";
$onec = yourfile_get_contents($_POST['one']);
if (str_replace(" ","",$onec) == "" || strpos($onec, "No newline" . " at end of file") !== false) $suffix = " " . $_POST['one'] . " not found";
$twoc = ourfile_get_contents(str_replace("-GETME", "_GETME", $_POST['one']));
if (str_replace(" ","",$twoc) == "" || strpos($twoc, "No newline" . " at end of file") !== false) $suffix .= " " . str_replace("-GETME", "_GETME", $_POST['one']) . " not found";
} else {
$suffix = " sorry, no can do";
}
} else if (str_replace("GETME", "", $_POST['one']) != $_POST['one']) {
$fillinone=$_POST['one'];
}
} else if (isset($_POST['one']) && isset($_POST['two'])) {
$suffix = " file(s) not found";
if ($_POST['one'] != "" && $_POST['two'] != "" && $_POST['one'] != $_POST['two'] && str_replace("GETME","",str_replace("_","",str_replace("-","",$_POST['one']))) == str_replace("GETME","",str_replace("_","",str_replace("-","",$_POST['two'])))) {
if (str_replace("GETME", "", $_POST['one']) != $_POST['one'] && str_replace("GETME", "", $_POST['two']) != $_POST['two']) {
$xprefix="";
$xsuffix="";
} else if (str_replace("GETME", "", $_POST['one']) != $_POST['one'] || str_replace("GETME", "", $_POST['two']) != $_POST['two']) {
$xprefix="";
$xsuffix="
";
$onloadbit=" onload=\" var huh=prompt('Password? (Hint: Why is a duck?)',''); if (huh != null && huh == 'BecausE IT FlieS SO HigH') { document.getElementById('diffdiv').style.display='block'; } else { document.getElementById('diffdiv').innerHTML=''; } \"";
$prevg="";
if (str_replace("GETME", "", $_POST['one']) == $_POST['one']) {
if ("" != @ourfile_get_contents(str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $_POST['two']))))) {
$prevg=str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $_POST['two'])));
while ($prevg != "") {
$_POST['one']=$prevg;
if ("" != @ourfile_get_contents(str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $prevg))))) {
$prevg=str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $prevg)));
} else {
$prevg="";
}
}
$xprefix="";
$xsuffix="";
$onloadbit="";
}
} else {
if ("" != ourfile_get_contents(str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $_POST['one']))))) {
$prevg=str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $_POST['one'])));
while ($prevg != "") {
$_POST['two']=$prevg;
if ("" != ourfile_get_contents(str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $prevg))))) {
$prevg=str_replace("GET~ME","GETME",str_replace("_GETME", "-GET~ME", str_replace("-GETME", "--GET~ME", $prevg)));
} else {
$prevg="";
}
}
$xprefix="";
$xsuffix="";
$onloadbit="";
}
}
}
$called="y";
$iframebits=$xprefix . "Latest file ... Differences below this " . $_POST['one'] . "
";
$iframebits.="Differences ^ v
";
$iframebits.="Older file ... Differences just above " . $_POST['two'] . "
" . $xsuffix;
}
if (str_replace("GETME", "", $_POST['one']) != $_POST['one'] || str_replace("GETME", "", $_POST['two']) != $_POST['two']) {
$suffix="";
$onec = yourfile_get_contents($_POST['one']);
if (str_replace(" ","",$onec) == "" || strpos($onec, "No newline" . " at end of file") !== false) $suffix = " " . $_POST['one'] . " not found";
$twoc = ourfile_get_contents($_POST['two']);
if (str_replace(" ","",$twoc) == "" || strpos($twoc, "No newline" . " at end of file") !== false) $suffix .= " " . $_POST['two'] . " not found";
} else {
$suffix = " sorry, no can do";
}
}
if ($suffix == "" && (str_replace(" ","",$onec) != "" || str_replace(" ","",$twoc) != "")) {
//file_put_contents("found.a","");
$fh = fopen(dirname(__FILE__) . "/one.one", "w");
fwrite($fh, $onec);
fclose($fh);
$fh = fopen(dirname(__FILE__) . "/two.two", "w");
fwrite($fh, $twoc);
fclose($fh);
exec("diff " . $_GET['minus'] . " " . dirname(__FILE__) . "/one.one " . dirname(__FILE__) . "/two.two > " . dirname(__FILE__) . "/huh.huh");
if ($called == "") unlink(dirname(__FILE__) . "/one.one");
if ($called == "") unlink(dirname(__FILE__) . "/two.two");
if ($called != "") {
echo "PHP Linux diff file differences ... First file, Differences, Second file ... RJM Programming November 2013\n";
echo $iframebits;
echo "";
} else {
header("Location: " . "/huh.huh");
}
} else {
echo "PHP Linux diff file differences ... RJM Programming November 2013\n";
echo "";
echo "";
}
?>