Changeset 175


Ignore:
Timestamp:
Apr 10, 2009, 1:18:21 PM (16 years ago)
Author:
maron
Message:

Nastavení importu aowow

Location:
trunk
Files:
6 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/aowow/configs/config.sample.php

    r172 r175  
    11<?php
    2 include('../includes/config.php');
     2require_once('../includes/config.php');
    33global $AoWoWconf;
    44
     
    1313$AoWoWconf['realmd']['user']    = $Config['Database']['User'];
    1414$AoWoWconf['realmd']['pass']    = $Config['Database']['Password'];
    15 $AoWoWconf['realmd']['db']              = 'realmd';
     15$AoWoWconf['realmd']['db']              = 'wowpreklad_realmd';
    1616// Site Configuration
    1717$AoWoWconf['aowow']['name'] = 'AoWoW';
    18 $AoWoWconf['aowow']['template'] = 'wowpreklad_wowhead';
     18$AoWoWconf['aowow']['template'] = 'wowhead';
    1919$AoWoWconf['aowow']['cache_time'] = (60*60*24*7); // Time to keep cache in seconds (Default: 1 week)
    2020$AoWoWconf['locale'] = 1;
  • trunk/export/index.php

    r174 r175  
    106106            break;
    107107          case 'AoWoWSQL':
     108                require_once('../aowow/configs/config.php');
    108109        echo('Gewneruji SQL kód ');
    109110        $AoWoWSQL = ExportToMangosSQL($ExportSetting);
     
    111112       
    112113        echo('Importuji do AoWoW ');
    113                 $Database->SelectDatabase('AoWOW');    //wowpreklad_mangos
     114                $Database->SelectDatabase($AoWoWconf['mangos']['db']);   
    114115                $Database->SQLCommand('SET NAMES '.$Config['Database']['Charset']);
    115116          $BufferArray = explode(";\n", $AoWoWSQL);
Note: See TracChangeset for help on using the changeset viewer.