Changeset 9 for trunk/www/server.php
- Timestamp:
- Jun 11, 2009, 11:26:18 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/server.php
r8 r9 31 31 function AddTask($Title, $Task) 32 32 { 33 $this->Database->insert('Task', array(' Server' => $this->Server['Id'], 'Title' => $Title, 'Time' => 'NOW()', 'CommandList' => implode("\n", $Task)));33 $this->Database->insert('Task', array('User' => $this->System->Modules['User']->User['Id'], 'Title' => $Title, 'Time' => 'NOW()', 'CommandList' => implode("\n", $Task))); 34 34 } 35 35 … … 66 66 'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_characters < emulator/'.$this->Server['Database']['Emulator']['Id'].'/share/mangos/sql/characters.sql', 67 67 ); 68 if($Delete = true)68 if($Delete == true) 69 69 { 70 70 array_unshift($CommandList, 'mysql --silent --skip-column-names -u server'.$this->Id.' -pserver'.$this->Id.' server'.$this->Id.'_mangos -e "show tables" | gawk \'{print "drop table " $1 ";"}\' | mysql -u server'.$this->Id.' -pserver'.$this->Id.' server'.$this->Id.'_mangos'); … … 162 162 // mangosd.conf 163 163 $Config = new MangosConfigurationFile($this->Database); 164 $Config->Load($EmulatorEtcDir.'mangosd.conf ');164 $Config->Load($EmulatorEtcDir.'mangosd.conf.dist'); 165 165 $Config->ParameterList['LoginDatabaseInfo'] = 'localhost;3306;server'.$this->Id.';server'.$this->Id.';server'.$this->Id.'_realmd'; 166 166 $Config->ParameterList['WorldDatabaseInfo'] = 'localhost;3306;server'.$this->Id.';server'.$this->Id.';server'.$this->Id.'_mangos'; … … 177 177 // realmd.conf 178 178 $Config = new MangosConfigurationFile($this->Database); 179 $Config->Load($EmulatorEtcDir.'realmd.conf ');179 $Config->Load($EmulatorEtcDir.'realmd.conf.dist'); 180 180 $Config->ParameterList['LoginDatabaseInfo'] = 'localhost;3306;server'.$this->Id.';server'.$this->Id.';server'.$this->Id.'_realmd'; 181 181 $Config->ParameterList['RealmServerPort'] = $this->RealmdBaseNetworkPort + $this->Id;
Note:
See TracChangeset
for help on using the changeset viewer.