<?php

$File = 'Interface/GlueXML/GlueLocalization.lua';
$Server = 'www.heroesoffantasy.cz';
$Items = array(
  'http://wwww.wow-europe.com/en/misc/banned.html' => 'http://'.$Server.'/blokovani-uctu/',
  'http://www.wow-europe.com/en/support/' => 'http://'.$Server.'/podpora/',
  'www.wow-europe.com/account/account-error.html' > $Server.'/podpora/',
  'http://www.wow-europe.com/en/serverstatus' => 'http://'.$Server.'/svety/',
  'http://www.wow-europe.com/en/account' => 'http://'.$Server.'/ucet',
  'www.wow-europe.com/account' => $Server.'/ucet',
  'http://status.wow-europe.com/en/alert' => 'http://'.$Server.'/alert/',
  'www.wow-europe.com/en/legal' => $Server.'/pravidla',
  'www.wow-europe.com/en/burningcrusade/download/' => $Server.'/stazeni/',
  'www.wow-europe.com/en/lichking/download/' => $Server.'/stazeni/',
  'www.wow-europe.com/account/account-error.html' => $Server,
  'eu.blizzard.com/support/index.xml?gameId=11&amp;rootCategoryId=2100' => $Server.'/podpora',
  'https://www.wow-europe.com/login-support' => 'http://'.$Server.'/podpora',
  'http://www.wow-europe.com/en' => 'http://'.$Server.'/',
  'www.wow-europe.com' => $Server,
  'www.worldofwarcraft.com' => $Server,
  'signup.wow-europe.com' => $Server.'/registrace',
);

$Content = file_get_contents($File);
foreach($Items as $Key => $Item)
{
  $Content = str_replace($Key, $Item, $Content);
}
file_put_contents($File, $Content);

?>
