"; if (isset($_GET['endfind'])) $endfind=str_replace("+"," ",urldecode($_GET['endfind'])); $newlabelfindstart=' label="'; if (isset($_GET['newlabelfindstart'])) $newlabelfindstart=str_replace("+"," ",urldecode($_GET['newlabelfindstart'])); $newlabelfindend='"'; if (isset($_GET['newlabelfindend'])) $newlabelfindend=str_replace("+"," ",urldecode($_GET['newlabelfindend'])); $oldlabelfindstart=' old_label="'; if (isset($_GET['oldlabelfindstart'])) $oldlabelfindstart=str_replace("+"," ",urldecode($_GET['oldlabelfindstart'])); $oldlabelfindend='"'; if (isset($_GET['oldlabelfindend'])) $oldlabelfindend=str_replace("+"," ",urldecode($_GET['oldlabelfindend'])); $findthis=' role="paragraph"'; if (isset($_GET['findthis'])) $findthis=str_replace("+"," ",urldecode($_GET['findthis'])); $findthistwo=''; if (isset($_GET['findthistwo'])) $findthistwo=str_replace("+"," ",urldecode($_GET['findthistwo'])); $findthisthree=''; if (isset($_GET['findthisthree'])) $findthisthree=str_replace("+"," ",urldecode($_GET['findthisthree'])); $csvname="mil_mapping.csv"; if (isset($_GET['csvname'])) $csvname=str_replace("+"," ",urldecode($_GET['csvname'])); $kshname="mil_mapping.ksh"; if (isset($_GET['kshname'])) $kshname=str_replace("+"," ",urldecode($_GET['kshname'])); $doksh=""; // "ksh -x mil_mapping.ksh"; if (isset($_GET['doksh'])) $doksh=str_replace("+"," ",urldecode($_GET['doksh'])); $uext=".XML"; $lext=".xml"; $ualt=".XXX"; $lalt=".xxx"; $extis=explode(".", $indexfilecalled); if (sizeof($extis) > 1) { $uext=strtoupper("." . $extis[-1 + sizeof($extis)]); $lext=strtolower("." . $extis[-1 + sizeof($extis)]); if ($lext == ".xxx") { $lalt=".xzz"; $ualt=".XZZ"; } else { $lalt=substr($lext,0,2) . "xx"; $ualt=substr($uext,0,2) . "XX"; } } //
if (explode(">",explode("<", str_replace(" or other type of tag actually if (strpos("", explode("", $sections[$i])[0], ' href="') !== false) { $hrefv=explode('"',explode('href="', explode(">", $sections[$i])[0])[1])[0]; $newsectionone=str_replace($bits[0], str_replace(' href="' . $hrefv . '"', '', $bits[0] . 'Note'), $sections[$i]); $cont=str_replace($startfind . $sections[$i], $startfind . $newsectionone, $cont); $sections=explode($startfind, $cont); } else { $newsectionone=str_replace_first($bits[0], $bits[0] . 'Note', $sections[$i]); $cont=str_replace($startfind . $sections[$i], $startfind . $newsectionone, $cont); $sections=explode($startfind, $cont); } } } else if (strpos($sections[$i], " or other type of tag actually if (strpos("", explode("", $sections[$i])[0], ' href="') !== false) { $hrefv=explode('"',explode('href="', explode(">", $sections[$i])[0])[1])[0]; $newsectionone=str_replace($bits[0], str_replace(' href="' . $hrefv . '"', '', $bits[0] . 'Note'), $sections[$i]); $cont=str_replace($startfind . $sections[$i], $startfind . $newsectionone, $cont); $sections=explode($startfind, $cont); } else { $newsectionone=str_replace_first($bits[0], $bits[0] . 'Note', $sections[$i]); $cont=str_replace($startfind . $sections[$i], $startfind . $newsectionone, $cont); $sections=explode($startfind, $cont); } } } } } } if ($cont != $precont) { if (!file_exists($filename . "_original_backup")) copy($filename, $filename . "_original_backup"); file_put_contents($filename, $cont); } } ?>

Adder Innerer of <title arch="online">Note</title>

RJM Programming

August, 2017


File specification for input data:
Start delimitation of tags of interest: