Changeset 16 for trunk/www/emulator.php
- Timestamp:
- Jun 12, 2009, 8:47:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/emulator.php
r15 r16 5 5 var $Id; 6 6 var $Emulator; 7 var $Task; 7 8 8 9 function __construct($Database, $Id) 9 10 { 10 11 $this->Database = $Database; 12 $this->Task = new Task(&$Database); 11 13 $this->Id = $Id; 12 14 $DbResult = $this->Database->query('SELECT * FROM `Emulator` WHERE `Id`='.$Id); … … 14 16 $DbResult = $this->Database->query('SELECT * FROM `ClientVersion` WHERE `Id`='.$this->Emulator['ClientVersion']); 15 17 $this->Emulator['ClientVersion'] = $DbResult->fetch_assoc(); 16 }17 18 function AddTask($Title, $Task)19 {20 global $System;21 22 $this->Database->insert('Task', array('User' => $System->Modules['User']->User['Id'], 'Title' => $Title, 'Time' => 'NOW()', 'CommandList' => implode("\n", $Task)."\n"));23 18 } 24 19 … … 40 35 global $Config; 41 36 42 $this-> AddTask('Stažení emulátoru', array(37 $this->Task->Add('Stažení emulátoru', array( 43 38 'cd '.$Config['BaseDir'].'emulator/'.$this->Id.'/', 44 39 'git clone git://github.com/mangos/mangos.git source', … … 55 50 global $Config; 56 51 57 $this-> AddTask('Překlad emulátoru', array(52 $this->Task->Add('Překlad emulátoru', array( 58 53 'cd '.$Config['BaseDir'].'emulator/'.$this->Id.'/source', 59 54 'autoreconf -ifv',
Note:
See TracChangeset
for help on using the changeset viewer.