Ignore:
Timestamp:
Mar 10, 2010, 5:48:51 PM (14 years ago)
Author:
maron
Message:

Přidání parametru uživatele a hesla

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r374 r375  
    229229  function ExportToDBC()
    230230  {
    231     global $TranslationTree, $LanguageList;
     231    global $TranslationTree, $LanguageList,$Config;
    232232 
    233233    $this->LoadFilters();
     
    248248         $querty = '"SELECT '.$columns.' T.Entry as entry FROM (SELECT * FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$this->WhereLang.' AND '.$this->WhereUsers.' AND VersionStart <= '.$this->ClientVersion['BuildNumber'].' AND VersionEnd >= '.$this->ClientVersion['BuildNumber'].') AS T GROUP BY T.Entry"';
    249249     
    250        $params = ' -f ../source/'.$this->ClientVersion['Version'].'/dbc/'.$Group['DBCFileName'].'.dbc -n '.$this->TempDir.'dbc/'.$Group['DBCFileName'].'.dbc -c '.GetDBCColumns($this->ClientVersion['Version'], $Group['DBCFileName']).' -q '.$querty;
     250       $params = '-u '.$Config['Database']['User'].' -p '.$Config['Database']['Password'].' -f ../source/'.$this->ClientVersion['Version'].'/dbc/'.$Group['DBCFileName'].'.dbc -n '.$this->TempDir.'dbc/'.$Group['DBCFileName'].'.dbc -c '.GetDBCColumns($this->ClientVersion['Version'], $Group['DBCFileName']).' -q '.$querty;
    251251     
    252        echo('./DBCExport '.$params);
     252     //  echo('./DBCExport '.$params);
    253253       
    254      //  exec('./DBCExport '.$params);
     254       exec('./DBCExport '.$params);
    255255       
    256256      echo('Hotovo <br />
Note: See TracChangeset for help on using the changeset viewer.