Changeset 34 for trunk/www/server.php
- Timestamp:
- Jun 15, 2009, 9:09:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/server.php
r31 r34 56 56 function ImportDatabase($Delete = false) 57 57 { 58 $this->Lock(); 58 59 $CommandList = array( 59 60 'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_mangos < database/'.$this->Server['Database']['Id'].'/'.$this->Server['Database']['SourceFileName'], … … 74 75 } 75 76 76 function AddServer($Version)77 {78 79 }80 81 77 function Start() 82 78 { 79 $this->Lock(); 83 80 $this->Task->Add('Start emulátoru', array( 84 81 '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', … … 90 87 function Stop() 91 88 { 89 $this->Lock(); 92 90 $this->Task->Add('Zastavení emulátoru', array( 93 91 'server/'.$this->Id.'/bin/stop.sh', … … 177 175 'gdb emulator/'.$this->Server['Database']['Emulator']['Id'].'/bin/mangos-worldd -x server/'.$this->Id.'/bin/mangos.gdb --batch >>server/'.$this->Id.'/log/mangos-worldd.log 2>>server/'.$this->Id.'/log/mangos-worldd.err', 178 176 'cd www', 179 'php mangos_debug_process.php'.$this->Id.' >>server/'.$this->Id.'/log/mangos_debug.log 2>>server/'.$this->Id.'/log/mangos_debug.err',177 'php shell.php ServerProcessLog '.$this->Id.' >>server/'.$this->Id.'/log/mangos_debug.log 2>>server/'.$this->Id.'/log/mangos_debug.err', 180 178 'cd ..', 181 179 'sleep 3', … … 275 273 function Update($DatabaseId) 276 274 { 275 $this->Lock(); 276 277 277 // Stop server before update 278 278 $Output = $this->Stop(); … … 306 306 return($Output); 307 307 } 308 309 function Lock() 310 { 311 $this->Database->update('Server', 'Id='.$this->Id, array('Lock' => 1)); 312 } 313 314 function UnLock() 315 { 316 $this->Database->update('Server', 'Id='.$this->Id, array('Lock' => 0)); 317 } 308 318 } 309 319
Note:
See TracChangeset
for help on using the changeset viewer.