Changeset 24 for trunk/www/server.php
- Timestamp:
- Jun 12, 2009, 11:40:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/server.php
r23 r24 25 25 $DbResult = $this->Database->query('SELECT * FROM `Emulator` WHERE `Id`='.$this->Server['Database']['Emulator']); 26 26 if($DbResult->num_rows > 0) $this->Server['Database']['Emulator'] = $DbResult->fetch_assoc(); 27 else $this->Server['Database']['Emulator'] = array('Client Version' => 0);28 $DbResult = $this->Database->query('SELECT * FROM `Client Version` WHERE `Id`='.$this->Server['Database']['Emulator']['ClientVersion']);29 if($DbResult->num_rows > 0) $this->Server['Database']['Emulator']['Client Version'] = $DbResult->fetch_assoc();30 else $this->Server['Database']['Emulator']['Client Version'] = array();27 else $this->Server['Database']['Emulator'] = array('Client' => 0); 28 $DbResult = $this->Database->query('SELECT * FROM `Client` WHERE `Id`='.$this->Server['Database']['Emulator']['Client']); 29 if($DbResult->num_rows > 0) $this->Server['Database']['Emulator']['Client'] = $DbResult->fetch_assoc(); 30 else $this->Server['Database']['Emulator']['Client'] = array(); 31 31 } 32 32 } … … 214 214 $Config->ParameterList['WorldServerPort'] = $this->Server['NetworkPortWorldd']; 215 215 $Config->ParameterList['Motd'] = $this->Server['Motd']; 216 $Config->ParameterList['DataDir'] = 'wowclient/'.$this->Server['Database']['Emulator']['ClientV ersion']['Version'];216 $Config->ParameterList['DataDir'] = 'wowclient/'.$this->Server['Database']['Emulator']['ClientV']['Version']; 217 217 $Config->ParameterList['LogsDir'] = 'server/'.$this->Id.'/log'; 218 218 $Config->ParameterList['LogLevel'] = 1;
Note:
See TracChangeset
for help on using the changeset viewer.