or other type of tag actually
if (strpos(explode($findthisafter, $section[$i])[0], $dnft1) === false && strpos(explode($findthisafter, $section[$i])[0], substr($findthisafter,0,1)) === false && strpos(explode($findthisafter, $section[$i])[0], "" . $dnft1 . ">") === false) {
$bits=explode($findthisafter, $sections[$i]);
$rbits=explode($findthisafter, $rsections[$i]);
if (sizeof($bits) > 1 && strpos(str_replace($donotfindthisstart," ",$bits[0]),"<") === false) {
$newsectionone=str_replace($bits[0] . $findthisafter . $bits[1], $bits[0] . $addedlabelfindstart . $addedlabelfindend . $findthisafter . $bits[1], $sections[$i]);
$newsectionr=str_replace($rbits[0] . $findthisafter . $rbits[1], $rbits[0] . "" . ($addedlabelfindstart . $addedlabelfindend) . "" . $findthisafter . $rbits[1], $rsections[$i]);
$cont=str_replace($findthis . $sections[$i], $findthis . $newsectionone, $cont);
$sections=explode($findthis, $cont);
$thisresult=str_replace($findthis . $rsections[$i], $findthis . $newsectionr, $thisresult);
//if ($first && strpos($rsections[$i],$rbits[0] . $findthisafter . $rbits[1]) !== false) { echo " findthisafter=" . str_replace("<","<",$findthisafter) . " rbits[0]+=" . str_replace(">",">",str_replace("<","<",$rbits[0] . $findthisafter)) . " nEwSectionr=" . str_replace(">",">",str_replace("<","<",$newsectionr)) . " thisresult=" . str_replace("</strike>","",str_replace("<strike>","",str_replace("</font>","",str_replace("<font color=green>","",str_replace(">",">",str_replace("<","<",str_replace($rbits[1],"",$thisresult))))))) . "
"; $first=false; }
$rsections=explode($findthis, $thisresult);
}
}
// after that will be " or other type of tag actually
if (strpos(explode($findthisaftertwo, $section[$i])[0], $dnft1) === false && strpos(explode($findthisaftertwo, $section[$i])[0], substr($findthisaftertwo,0,1)) === false && strpos(explode($findthisaftertwo, $section[$i])[0], "" . $dnft1 . ">") === false) {
$bits=explode($findthisaftertwo, $sections[$i]);
$rbits=explode($findthisaftertwo, $rsections[$i]);
if (sizeof($bits) > 1 && strpos(str_replace($donotfindthisstart," ",$bits[0]),"<") === false) {
$newsectionone=str_replace($bits[0] . $findthisaftertwo . $bits[1], $bits[0] . $addedlabelfindstart . $addedlabelfindend . $findthisaftertwo . $bits[1], $sections[$i]);
$newsectionr=str_replace($rbits[0] . $findthisaftertwo . $rbits[1], $rbits[0] . "" . ($addedlabelfindstart . $addedlabelfindend) . "" . $findthisaftertwo . $rbits[1], $rsections[$i]);
//if ($first) { echo " newSectionR=" . $newsectionr; $first=false; }
$cont=str_replace($findthis . $sections[$i], $findthis . $newsectionone, $cont);
$sections=explode($findthis, $cont);
$thisresult=str_replace($findthis . $rsections[$i], $findthis . $newsectionr, $thisresult);
$rsections=explode($findthis, $thisresult);
}
}
}
}
}
}
//file_put_contents($filename . ".002", $cont);
$sections=explode($findthis, $cont);
$rsections=explode($findthis, $thisresult);
for ($ii=0; $ii" . strtoupper($deletedlabelfindstart) . $innards . $deletedlabelfindend . "", $ris);
}
if ($was != $is) {
$cont=str_replace($sections[$ii],$is,$cont); //$sections[$ii]=$ris;
$thisresult=str_replace($rsections[$ii],str_replace(strtoupper($deletedlabelfindstart),$deletedlabelfindstart,$ris),$thisresult); //$rsections[$ii]=$ris;
}
}
if ($cont != $precont) {
//file_put_contents($filename . ".003", $cont);
//$uc=str_replace(">",">",str_replace("<","<",strtoupper($addedlabelfindstart . $addedlabelfindend)));
$aresult=str_replace(">",">",str_replace("<","<",$thisresult));
//$aresult=str_replace($uc,"" . $addedlabelfindstart . $addedlabelfindend . "",$aresult);
$bresult=str_replace("</strike>","",str_replace("<strike>","",str_replace("</font>","",str_replace("<font color=green>","",$aresult))));
$results.="
" . $filename . " changed ...
" . $bresult . "
";
if (!file_exists($filename . "_original_backup")) copy($filename, $filename . "_original_backup");
file_put_contents($filename, $cont);
$precont=$cont;
$sections=[];
$rsections=[];
}
}
}
?>
Adder Innerer of XML <title arch="online">Note</title>
Deleter of XML href="hrefvalue"
RJM Programming
September, 2017