Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dir = "C:/Users/Heavenfall/Documents/My Games/FallenEnchantress/Mods/Gfx/Stormworld/ExpandedFactionsFE/Shadows/armor/xml";
- // Open a known directory, and proceed to read its contents
- if (is_dir($dir)) {
- if ($dh = opendir($dir)) {
- while (($file = readdir($dh)) !== false) {
- if ($file != ".." && $file != ".") {
- print "$file\n";
- $openfile = fopen ("C:/Users/Heavenfall/Documents/My Games/FallenEnchantress/Mods/Gfx/Stormworld/ExpandedFactionsFE/Shadows/armor/xml/$file", 'r+');
- $storestring = fread($openfile, filesize("C:/Users/Heavenfall/Documents/My Games/FallenEnchantress/Mods/Gfx/Stormworld/ExpandedFactionsFE/Shadows/armor/xml/$file"));
- $storestring = str_replace("<hkparam name=\"name\">Metal</hkparam>", "<hkparam name=\"name\">Trans</hkparam>", $storestring);
- $storestring = str_replace("<hkparam name=\"name\">Skin</hkparam>", "<hkparam name=\"name\">Trans</hkparam>", $storestring);
- $storestring = str_replace("<hkparam name=\"name\">Hair</hkparam>", "<hkparam name=\"name\">Trans</hkparam>", $storestring);
- $storestring = str_replace("<hkparam name=\"name\">Clothing1</hkparam>", "<hkparam name=\"name\">Trans</hkparam>", $storestring);
- $storestring = str_replace("<hkparam name=\"name\">Clothing2</hkparam>", "<hkparam name=\"name\">Trans</hkparam>", $storestring);
- $storestring = str_replace("<hkparam name=\"name\">Primary</hkparam>", "<hkparam name=\"name\">Trans</hkparam>", $storestring);
- $storestring = str_replace("<hkparam name=\"name\">Secondary</hkparam>", "<hkparam name=\"name\">Trans</hkparam>", $storestring);
- fclose($openfile);
- $openfile = fopen ("C:/Users/Heavenfall/Documents/My Games/FallenEnchantress/Mods/Gfx/Stormworld/ExpandedFactionsFE/Shadows/armor/xml/$file", 'w');
- fwrite ($openfile, $storestring);
- }
- }
- closedir($dh);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement