Changeset 67
- Timestamp:
- Aug 8, 2009, 3:34:54 PM (15 years ago)
- Location:
- trunk/www/model
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/model/mangos_debug.php
r62 r67 11 11 } 12 12 13 function ProcessLog( )13 function ProcessLog($RealmId) 14 14 { 15 15 global $Config; … … 17 17 $Output = ''; 18 18 // Read server Id from first parameter 19 $RealmId = $_SERVER['argv'][1];20 19 $Realm = new Realm($this->Database, $RealmId); 21 20 -
trunk/www/model/realm.php
r66 r67 219 219 $EmulatorConfig = new MangosConfigurationFile($this->Database); 220 220 $EmulatorConfig->Load($RealmEtcDir.'mangosd.conf'); 221 $EmulatorConfig->ParameterList['RealmID'] = $this->Data['Id']; 221 222 $EmulatorConfig->ParameterList['LoginDatabaseInfo'] = 'localhost;3306;server'.$this->Data['Server'].';server'.$this->Data['Server'].';server'.$this->Data['Server'].'_realmd'; 222 223 $EmulatorConfig->ParameterList['WorldDatabaseInfo'] = 'localhost;3306;server'.$this->Data['Server'].';server'.$this->Data['Server'].';realm'.$this->Id.'_mangos'; -
trunk/www/model/server.php
r65 r67 101 101 while($Realm = $DbResult->fetch_assoc()) 102 102 { 103 $this->Database->insert('server'.$this->Id.'_realmd`.`realmlist', array(' name' => addslashes($Realm['Name']), 'address' => $Config['Web']['Host'], 'port' => $Realm['NetworkPortWorldd'], 'icon' => 0, 'timezone' => 1, 'color' => 0));103 $this->Database->insert('server'.$this->Id.'_realmd`.`realmlist', array('id' => $Realm['Id'], 'name' => addslashes($Realm['Name']), 'address' => $Config['Web']['Host'], 'port' => $Realm['NetworkPortWorldd'], 'icon' => 0, 'timezone' => 1, 'color' => 0)); 104 104 } 105 105 }
Note:
See TracChangeset
for help on using the changeset viewer.