Ignore:
Timestamp:
Aug 15, 2013, 11:17:26 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: System variable as parameter to constructors of descendents of Module class.
  • Removed: End PHP mark "?>" from all files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/Model/Emulator.php

    r78 r93  
    99  var $Task;
    1010 
    11   function __construct($Database, $Id)
     11  function __construct($System, $Id)
    1212  {
    13     $this->Database = $Database;
    14     $this->Task = new Task($Database);
     13    parent::__construct($System);
     14    $this->Task = new Task($System);
    1515    $this->Id = $Id;
    1616    $DbResult = $this->Database->query('SELECT * FROM `Emulator` WHERE `Id`='.$Id);
     
    3535  function Download()
    3636  {
    37     global $Config;
    38    
    3937    $this->Lock();
    4038    $this->Task->Add('Stažení emulátoru', array(
    4139      'php www/shell.php EmulatorLock '.$this->Id,
    42       'mkdir '.$Config['BaseDir'].'emulator/'.$this->Id.'/',
    43       'cd '.$Config['BaseDir'].'emulator/'.$this->Id.'/',
     40      'mkdir '.$this->Config['BaseDir'].'emulator/'.$this->Id.'/',
     41      'cd '.$this->Config['BaseDir'].'emulator/'.$this->Id.'/',
    4442      'git clone git://github.com/mangos/mangos.git source',
    4543      'cd source',
     
    5553  function Compile()
    5654  {
    57     global $Config;
    58    
    5955    $this->Lock();
    6056    $this->Task->Add('Překlad emulátoru', array(
    6157      'php www/shell.php EmulatorLock '.$this->Id,
    62       'cd '.$Config['BaseDir'].'emulator/'.$this->Id.'/source',
     58      'cd '.$this->Config['BaseDir'].'emulator/'.$this->Id.'/source',
    6359      'autoreconf -ifv',
    6460      'mkdir objdir',
    6561      'cd objdir',
    66       'export CFLAGS="-g -ggdb '.$Config['CompilerParameters'].'"',
    67       'export CXXFLAGS="-g -ggdb '.$Config['CompilerParameters'].'"',
    68       '../configure --prefix='.$Config['BaseDir'].'emulator/'.$this->Id.'/ --enable-cli --enable-ra',
     62      'export CFLAGS="-g -ggdb '.$this->Config['CompilerParameters'].'"',
     63      'export CXXFLAGS="-g -ggdb '.$this->Config['CompilerParameters'].'"',
     64      '../configure --prefix='.$this->Config['BaseDir'].'emulator/'.$this->Id.'/ --enable-cli --enable-ra',
    6965      'make',
    7066      'make install',
     
    9995  }
    10096}
    101 
    102 ?>
Note: See TracChangeset for help on using the changeset viewer.