Changeset 93 for trunk/www/Application/Model/Backup.php
- Timestamp:
- Aug 15, 2013, 11:17:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/Model/Backup.php
r80 r93 8 8 var $Task; 9 9 10 function __construct($ Database, $Id)10 function __construct($System, $Id) 11 11 { 12 $this->Database = $Database;13 $this->Task = new Task($ Database);12 parent::__construct($System); 13 $this->Task = new Task($System); 14 14 $this->Id = $Id; 15 15 $DbResult = $this->Database->query('SELECT * FROM `Backup` WHERE `Id`='.$Id); … … 42 42 function Create($ServerId) 43 43 { 44 $Server = new Server($this-> Database, $ServerId);44 $Server = new Server($this->System, $ServerId); 45 45 $Description = 'MaNGOS r'.$Server->Server['Database']['Emulator']['Revision'].', UDB r'.$Server->Server['Database']['Revision'].', SD2 r'.$Server->Server['Database']['ScriptDev2Revision'].', Client '.$Server->Server['Database']['Emulator']['Client']['Version']; 46 46 $this->Database->insert('Backup', array('Server' => $ServerId, 'Time' => 'NOW()', 'Description' => $Description, 'Lock' => 1, 'Database' => $Server->Server['Database']['Id'])); … … 73 73 } 74 74 } 75 76 ?>
Note:
See TracChangeset
for help on using the changeset viewer.