Changeset 240 for quests/export.php


Ignore:
Timestamp:
Jan 17, 2008, 2:02:18 PM (17 years ago)
Author:
maron
Message:

Mrtě oprav

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/export.php

    r238 r240  
    66
    77        function WithOutDiacritical($teststring){
    8                 $teststring=StrTr($teststring, "áäèïéìëíòóöø‘»úùüý¾ÁÄÈÏÉÌËÍÒÓÖØ©«ÚÙÜÝ®", "aacdeeeinoorstuuuyzAACDEEEINOORSTUUUYZ");
     8                $teststring=StrTr($teststring, "áäèïéìëíòóöø¹»úùüý¾ÁÄÈÏÉÌËÍÒÓÖØ©«ÚÙÜÝ®", "aacdeeeinoorstuuuyzAACDEEEINOORSTUUUYZ");
    99
    1010                return $teststring;
     
    5050    ';
    5151
    52     $sql = "SELECT * FROM quests WHERE Complete = '1' AND CountVote >= '$NumberVote' AND Vote >= '$Vote'";
     52    $sql = "SELECT * FROM quests.quests WHERE Complete = '1' AND CountVote >= '$NumberVote' AND Vote >= '$Vote'";
    5353    $Where = '';
    5454    if (isset($CZ)) $Where .= " Language = '1'";
     
    8484      $Title = "Title = '$Title'";
    8585    else {
    86       $IDtitle = $Database->SQLCommand("SELECT Title FROM quests WHERE entry = '$entry' AND Language = '0'");
     86      $IDtitle = $Database->SQLCommand("SELECT Title FROM quests.quests WHERE entry = '$entry' AND Language = '0'");
    8787      $Linetitle = mysql_fetch_array($IDtitle);
    8888
     
    111111    if ($Diacritical == False) $sql=WithOutDiacritical($sql);
    112112   
    113     $Database->SelectDatabase($Config['Database']['DatabaseMangos']);   
    114     if ($Export == 'Mangos')   
     113    if ($Export == 'Mangos') {    
     114      $Database->SelectDatabase($Config['Database']['DatabaseMangos']);   
    115115      $Database->SQLCommand($sql);
    116      
     116    } 
    117117    $Buffer .= $sql."
    118118    ";
    119 
     119   
    120120  } 
    121121 
     
    172172        <br />
    173173        <b>Filtr:</b><br />
    174         <input type="text" name="NumberVote" value="4" size="1"> Poèet nutných hlasù <br>                                                               
    175         <input type="text" name="Vote" value="3" size="1"> Známka lep¹í jak                                                               
     174        <input type="text" name="NumberVote" value="3" size="1"> Poèet nutných hlasù <br>                                                               
     175        <input type="text" name="Vote" value="4" size="1"> Známka lep¹í nebo stejná jak                                                               
    176176      </td><td>
    177177        <input type="checkbox" name="Diacritical" checked="true"> Vèetnì diakritiky <br> 
     
    197197  - Stránky projektu: <a href="http://sourceforge.net/projects/mmfpm/">http://sourceforge.net/projects/mmfpm/</a><br>
    198198  - Pøeklad: <a href="http://wow.zdechov.net/minimanager/lang/csCZ.zip">Èe¹tina do minimanageru</a><br>
    199   - Diskusní forum pro pøípadné pøipomínky: <a href="http://wow.zdechov.net/forum/viewtopic.php?p=5533">Forum</a>
     199  - Diskusní forum pro pøípadné pøipomínky k pøekladu: <a href="http://wow.zdechov.net/forum/viewtopic.php?p=5533">Forum</a>
    200200
    201201</div>
Note: See TracChangeset for help on using the changeset viewer.