Changeset 8 for trunk/www


Ignore:
Timestamp:
Jun 10, 2009, 10:35:57 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Správné pořadí zpracování úloh.
  • Opraveno: Cesta k inicializačním SQL souborům databáze.
Location:
trunk/www
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/config.sample.php

    r6 r8  
    2828    'ErrorLogFile' => 'php_script_error.log',   
    2929  ),
    30   'BaseDir' => '/opt/wowhosting',
     30  'BaseDir' => '/opt/wowhosting/',
    3131);
    3232
  • trunk/www/page.php

    r6 r8  
    3030      $DbResult = $this->Database->query('SELECT COUNT(*) FROM Server WHERE User='.$this->System->Modules['User']->User['Id']);
    3131      $DbRow = $DbResult->fetch_row();
    32       if($DbRow[0] > 0) $Output .= '<a href="?Action=ServerShow">Vlastní server</a>';
    33       else $Output .= '<a href="?Action=ServerAdd">Vytvořit vlastní server</a>';
     32      if($DbRow[0] > 0) $Output .= ' <a href="?Action=ServerShow">Vlastní server</a>';
     33      else $Output .= ' <a href="?Action=ServerAdd">Vytvořit vlastní server</a>';
    3434    }
    3535    $Output .= '</span><div class="MenuItem2">';
  • trunk/www/process_tasks.php

    r6 r8  
    66
    77$Script = '/tmp/wowhosting_script.sh';
    8 $DbResult = $Database->query('SELECT * FROM Task WHERE Executed = 0 ORDER BY Time ASC');
     8$DbResult = $Database->query('SELECT * FROM Task WHERE Executed = 0 ORDER BY Id,Time ASC');
    99while($Task = $DbResult->fetch_assoc())
    1010{
  • trunk/www/server.php

    r6 r8  
    6363      'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_scriptdev2 < emulator/'.$this->Server['Database']['Emulator']['Id'].'/source/src/bindings/ScriptDev2/sql/scriptdev2_script_full.sql',
    6464      'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_mangos < emulator/'.$this->Server['Database']['Emulator']['Id'].'/source/src/bindings/ScriptDev2/sql/mangos_scriptname_full.sql',
    65       'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_realmd < emulator/'.$this->Server['Database']['Emulator']['Id'].'/mangos/sql/realmd.sql',
    66       'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_characters < emulator/'.$this->Server['Database']['Emulator']['Id'].'/mangos/sql/characters.sql',
     65      'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_realmd < emulator/'.$this->Server['Database']['Emulator']['Id'].'/share/mangos/sql/realmd.sql',
     66      'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_characters < emulator/'.$this->Server['Database']['Emulator']['Id'].'/share/mangos/sql/characters.sql',
    6767    );
    6868    if($Delete = true)
     
    8585    $this->AddTask('Start emulátoru', array(
    8686      'screen -A -m -d -S server'.$this->Id.'-realmd "emulator/'.$this->Server['Database']['Emulator']['Id'].'/bin/mangos-realmd -c server/'.$this->Id.'/etc/realmd.conf"',
    87       'screen -A -m -d -S server'.$this->Id.'-worldd emulator/'.$this->Server['Database']['Emulator']['Id'].'/bin/mangos-worldd -c server/'.$this->Id.'/etc/mangosd.conf',
     87      'screen -A -m -d -S server'.$this->Id.'-worldd "emulator/'.$this->Server['Database']['Emulator']['Id'].'/bin/mangos-worldd -c server/'.$this->Id.'/etc/mangosd.conf"',
    8888    ));
    8989    return('Požadavek na start serveru zařazen.');
Note: See TracChangeset for help on using the changeset viewer.