" . basename($indexfilecalled) . " below ... " . str_replace("<","<",str_replace(">",">",file_get_contents($indexfilecalled))) . " | ";
$oldresults="... New Versus Old ... | " . basename($indexfilecalled . "_original_backup") . " below ... " . str_replace("<","<",str_replace(">",">",file_get_contents($indexfilecalled))) . " |
" . basename($indexfilecalled) . " below ... | ... New Versus Old ... | " . basename($indexfilecalled . "_original_backup") . " below ... |
" . basename($indexfilecalled) . " below ... " . str_replace("<","<",str_replace(">",">",file_get_contents($indexfilecalled))) . " | ";
$oldresults.="... New Versus Old ... | " . basename($indexfilecalled . "_original_backup") . " below ... " . str_replace("<","<",str_replace(">",">",file_get_contents($indexfilecalled))) . " |
","",str_replace("","",explode(trim($thebit), $cont)[1])))))[0])[-1 + sizeof(explode($titlethis,explode($titlethistwo,str_replace("
","",str_replace("","",explode(trim($thebit), $cont)[1])))))[0]))]; } } } catch (Exception $ee) { $subtitle=""; } } $csvout.=$delim . $chapteruci . "," . explode($oldlabelfindend,explode($oldlabelfindstart, $thebit)[1])[0] . ",," . explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0] . "," . $subtitle; if ($doksh != "") { if (explode($oldlabelfindend,explode($oldlabelfindstart, $thebit)[1])[0] != "") { $oldresults=str_replace(explode($oldlabelfindend,explode($oldlabelfindstart, $thebit)[1])[0],"" . explode($oldlabelfindend,explode($oldlabelfindstart, $thebit)[1])[0] . "", $oldresults); if (explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0] != "") $newresults=str_replace(explode($oldlabelfindend,explode($oldlabelfindstart, $thebit)[1])[0],"" . explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0] . "", $newresults); } } $kshout.=$delim . "cat " . $indexfilecalled . " | sed '/\\" . str_replace("]","\\]",explode($oldlabelfindend,explode($oldlabelfindstart, $thebit)[1])[0]) . "/s//\\" . str_replace("]","\\]",explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0]) . "/g' > " . str_replace($uext,$ualt,str_replace($lext,$lalt,$indexfilecalled)) . " ; rm -f " . $indexfilecalled . " ; cat " . str_replace($uext,$ualt,str_replace($lext,$lalt,$indexfilecalled)) . " > " . $indexfilecalled . " ; "; $delim="\n"; } } else if ($objections == "" && strpos($thebit, $newlabelfindstart) !== false && strpos($thebit, $newlabelfindstart) !== false && ($findthis == '' || strpos($thebit, $findthis) !== false) && ($findthistwo == '' || strpos($thebit, $findthistwo) !== false) && ($findthisthree == '' || strpos($thebit, $findthisthree) === false)) { //echo "it happens"; //exit; if (str_replace("]","\\]",explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0]) != "") { //echo "thebit=" . trim($thebit) . " afters=" . str_replace(">",">",str_replace("<","<",explode(trim($thebit), $cont)[1])) . " thisbits[1]=" . str_replace("<","<",str_replace(">",">",$thisbits[1])); //exit; $subtitle=""; if ($titlethis != "" && $titlethistwo != "") { try { if (strpos($cont, trim($thebit)) !== false) { if (strpos(explode(str_replace(">>",">",str_replace("<","",str_replace("","",("" . trim($startfind) . ">")))),explode(trim($thebit), $cont)[1])[0], $titlethistwo) !== false && strpos(explode(str_replace(">>",">",str_replace("<","",str_replace("","",("" . trim($startfind) . ">")))),explode(trim($thebit), $cont)[1])[0], $titlethis) !== false) { $subtitle=explode($titlethis,explode($titlethistwo,str_replace("
","",str_replace("","",explode(trim($thebit), $cont)[1])))))[0])[-1 + sizeof(explode($titlethis,explode($titlethistwo,str_replace("
","",str_replace("","",explode(trim($thebit), $cont)[1])))))[0]))]; } } } catch (Exception $ee) { $subtitle=""; } } $csvout.=$delim . $chapteruci . ",,," . explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0] . "," . $subtitle; if ($doksh != "") { if (explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0] != "") { $oldresults=str_replace(explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0],"" . explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0] . "", $oldresults); if (explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0] != "") $newresults=str_replace(explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0],"" . explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0] . "", $newresults); } } $kshout.=$delim . "cat " . $indexfilecalled . " | sed '/\\" . "" . "/s//\\" . str_replace("]","\\]",explode($newlabelfindend,explode($newlabelfindstart, $thebit)[1])[0]) . "/g' > " . str_replace($uext,$ualt,str_replace($lext,$lalt,$indexfilecalled)) . " ; rm -f " . $indexfilecalled . " ; cat " . str_replace($uext,$ualt,str_replace($lext,$lalt,$indexfilecalled)) . " > " . $indexfilecalled . " ; "; $delim="\n"; } } } } $topresults.=$newresults . $oldresults; if ($csvout != "") { file_put_contents($csvname, $csvout); file_put_contents($kshname, $kshout); if ($topresults != "") { file_put_contents("COM_.htm", "
" . basename($indexfilecalled) . " below ... | ... New Versus Old ... | " . basename($indexfilecalled . "_original_backup") . " below ... |