/home/techb158/ileadtechnology.com/SSM/vendor/ezyang/htmlpurifier/maintenance
NameSizeModeActions
.htaccess1230644editdlrm
add-vimline.php37590644editdlrm
common.php6310644editdlrm
compile-doxygen.sh2200644editdlrm
config-scanner.php47910644editdlrm
flush-definition-cache.php10790644editdlrm
flush.sh2600644editdlrm
generate-entity-file.php22140644editdlrm
generate-includes.php53860644editdlrm
generate-ph5p-patch.php7490644editdlrm
generate-schema-cache.php13640644editdlrm
generate-standalone.php43660644editdlrm
merge-library.php1700644editdlrm
old-extract-schema.php20350644editdlrm
old-remove-require-once.php7480644editdlrm
old-remove-schema-def.php8160644editdlrm
PH5P.patch39030644editdlrm
PH5P.php1616790644editdlrm
regenerate-docs.sh1860644editdlrm
remove-trailing-whitespace.php9430644editdlrm
rename-config.php21750644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/ezyang/htmlpurifier/maintenance/rename-config.php (2175B)
#!/usr/bin/php buildFile($interchange, $file); $contents = file_get_contents($file); if (strpos($contents, "\r\n") !== false) { $nl = "\r\n"; } elseif (strpos($contents, "\r") !== false) { $nl = "\r"; } else { $nl = "\n"; } // replace name with new name $contents = str_replace($old, $new, $contents); if ($interchange->directives[$old]->aliases) { $pos_alias = strpos($contents, 'ALIASES:'); $pos_ins = strpos($contents, $nl, $pos_alias); if ($pos_ins === false) $pos_ins = strlen($contents); $contents = substr($contents, 0, $pos_ins) . ", $old" . substr($contents, $pos_ins); file_put_contents($file, $contents); } else { $lines = explode($nl, $contents); $insert = false; foreach ($lines as $n => $line) { if (strncmp($line, '--', 2) === 0) { $insert = $n; break; } } if (!$insert) { $lines[] = "ALIASES: $old"; } else { array_splice($lines, $insert, 0, "ALIASES: $old"); } file_put_contents($file, implode($nl, $lines)); } rename("$old.txt", "$new.txt") || exit(1);