source: tools/GlueLocalization_HoF.php

Last change on this file was 703, checked in by george, 14 years ago
  • Přidáno: Skript pro úpravů odkazů v souboru GlueLocalization.lua pro tento server.
File size: 1.4 KB
Line 
1<?php
2
3$File = 'Interface/GlueXML/GlueLocalization.lua';
4$Server = 'www.heroesoffantasy.cz';
5$Items = array(
6 'http://wwww.wow-europe.com/en/misc/banned.html' => 'http://'.$Server.'/blokovani-uctu/',
7 'http://www.wow-europe.com/en/support/' => 'http://'.$Server.'/podpora/',
8 'www.wow-europe.com/account/account-error.html' > $Server.'/podpora/',
9 'http://www.wow-europe.com/en/serverstatus' => 'http://'.$Server.'/svety/',
10 'http://www.wow-europe.com/en/account' => 'http://'.$Server.'/ucet',
11 'www.wow-europe.com/account' => $Server.'/ucet',
12 'http://status.wow-europe.com/en/alert' => 'http://'.$Server.'/alert/',
13 'www.wow-europe.com/en/legal' => $Server.'/pravidla',
14 'www.wow-europe.com/en/burningcrusade/download/' => $Server.'/stazeni/',
15 'www.wow-europe.com/en/lichking/download/' => $Server.'/stazeni/',
16 'www.wow-europe.com/account/account-error.html' => $Server,
17 'eu.blizzard.com/support/index.xml?gameId=11&amp;rootCategoryId=2100' => $Server.'/podpora',
18 'https://www.wow-europe.com/login-support' => 'http://'.$Server.'/podpora',
19 'http://www.wow-europe.com/en' => 'http://'.$Server.'/',
20 'www.wow-europe.com' => $Server,
21 'www.worldofwarcraft.com' => $Server,
22 'signup.wow-europe.com' => $Server.'/registrace',
23);
24
25$Content = file_get_contents($File);
26foreach($Items as $Key => $Item)
27{
28 $Content = str_replace($Key, $Item, $Content);
29}
30file_put_contents($File, $Content);
31
32?>
Note: See TracBrowser for help on using the repository browser.