Changeset 176


Ignore:
Timestamp:
Apr 10, 2009, 7:42:43 PM (15 years ago)
Author:
maron
Message:

Import textů do aowow

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/aowow/configs

    • Property svn:ignore set to

      config.php
  • trunk/export/index.php

    r175 r176  
    111111        echo ('<strong>Hotovo</strong><br />');
    112112       
    113         echo('Importuji do AoWoW ');
     113        echo('Importuji do Mangos a spell ');
    114114                $Database->SelectDatabase($AoWoWconf['mangos']['db']);   
    115115                $Database->SQLCommand('SET NAMES '.$Config['Database']['Charset']);
     
    118118          {
    119119                        if ($Line <> '') $Database->SQLCommand($Line);
    120                         echo('.');
    121                   }
     120                        echo('. ');
     121                  }       
    122122        echo ('<strong>Hotovo</strong><br />');
     123               
     124        echo('Importuji do AoWoW ');
     125            $Query = 'SELECT name FROM aowow_resistances';
     126        $ID = $Database->SQLCommand($Query);
     127                while($Line = mysql_fetch_assoc($ID)) {
     128                $Tran = mysql_fetch_assoc($Database->SQLCommand('SELECT text as en,
     129                (SELECT text FROM '.$Config['Database']['Database'].'.global_strings as tabletran
     130                 WHERE tableen.entry = tabletran.entry AND Language <> 0 LIMIT 1) as tran
     131                 FROM '.$Config['Database']['Database'].'.global_strings as tableen WHERE text = "'.$Line['name'].'" LIMIT 1'));
     132                        //echo ($Line['name'].'='.$Tran['tran']);
     133                       
     134                        $Database->SQLCommand('UPDATE aowow_resistances SET name = "'.$Tran['tran'].'" WHERE name = "'.$Line['name'].'"');
     135                        echo('. ');
     136                }
     137               
     138            $Query = 'SELECT name FROM aowow_skill';
     139        $ID = $Database->SQLCommand($Query);
     140                while($Line = mysql_fetch_assoc($ID)) {
     141                $Tran = mysql_fetch_assoc($Database->SQLCommand('SELECT text as en,
     142                (SELECT text FROM '.$Config['Database']['Database'].'.global_strings as tabletran
     143                 WHERE tableen.entry = tabletran.entry AND Language <> 0 LIMIT 1) as tran
     144                 FROM '.$Config['Database']['Database'].'.global_strings as tableen WHERE text = "'.$Line['name'].'" LIMIT 1'));
     145                        //echo ($Line['name'].'='.$Tran['tran']);
     146                       
     147                        $Database->SQLCommand('UPDATE aowow_skill SET name = "'.$Tran['tran'].'" WHERE name = "'.$Line['name'].'"');
     148                        echo('. ');
     149                }
     150               
     151                $Query = 'SELECT name FROM aowow_spelldispeltype';
     152        $ID = $Database->SQLCommand($Query);
     153                while($Line = mysql_fetch_assoc($ID)) {
     154                $Tran = mysql_fetch_assoc($Database->SQLCommand('SELECT text as en,
     155                (SELECT text FROM '.$Config['Database']['Database'].'.global_strings as tabletran
     156                 WHERE tableen.entry = tabletran.entry AND Language <> 0 LIMIT 1) as tran
     157                 FROM '.$Config['Database']['Database'].'.global_strings as tableen WHERE text = "'.$Line['name'].'" LIMIT 1'));
     158                        //echo ($Line['name'].'='.$Tran['tran']);
     159                       
     160                        $Database->SQLCommand('UPDATE aowow_spelldispeltype SET name = "'.$Tran['tran'].'" WHERE name = "'.$Line['name'].'"');
     161                        echo('. ');
     162                }
     163        echo ('<strong>Hotovo</strong><br />');
     164               
     165                //TODO   aowow_itemenchantmet, aowow_char_titles, aowow_factions, aowow_itemset, aowow_spelldispeltype, aowow_spellmechanic, aowow_spellrange, aowow_zones
    123166               
    124167                echo('Aktualizuji aktuality ');
  • trunk/includes/global.php

    r174 r176  
    6969function ShowSearchBox()
    7070{
     71        global $Config;
    7172    echo('<strong>Hledání:</strong>
    72   <form action="action.php" method="get"><input type="hidden" name="action" value="search" />
     73  <form action="'.$Config['Web']['BaseURL'].'action.php" method="get"><input type="hidden" name="action" value="search" />
    7374  <table>
    7475    <tr>
Note: See TracChangeset for help on using the changeset viewer.