Changeset 8
- Timestamp:
- Jun 10, 2009, 10:35:57 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Readme.txt
r6 r8 18 18 3) Práva pro zápis 19 19 20 Nastavit práva pro zápis pro web server pro složk u server.20 Nastavit práva pro zápis pro web server pro složky server, emulator, database a backup. 21 21 22 22 -
trunk/www/config.sample.php
r6 r8 28 28 'ErrorLogFile' => 'php_script_error.log', 29 29 ), 30 'BaseDir' => '/opt/wowhosting ',30 'BaseDir' => '/opt/wowhosting/', 31 31 ); 32 32 -
trunk/www/page.php
r6 r8 30 30 $DbResult = $this->Database->query('SELECT COUNT(*) FROM Server WHERE User='.$this->System->Modules['User']->User['Id']); 31 31 $DbRow = $DbResult->fetch_row(); 32 if($DbRow[0] > 0) $Output .= ' <a href="?Action=ServerShow">Vlastní server</a>';33 else $Output .= ' <a href="?Action=ServerAdd">Vytvořit vlastní server</a>';32 if($DbRow[0] > 0) $Output .= ' <a href="?Action=ServerShow">Vlastní server</a>'; 33 else $Output .= ' <a href="?Action=ServerAdd">Vytvořit vlastní server</a>'; 34 34 } 35 35 $Output .= '</span><div class="MenuItem2">'; -
trunk/www/process_tasks.php
r6 r8 6 6 7 7 $Script = '/tmp/wowhosting_script.sh'; 8 $DbResult = $Database->query('SELECT * FROM Task WHERE Executed = 0 ORDER BY Time ASC');8 $DbResult = $Database->query('SELECT * FROM Task WHERE Executed = 0 ORDER BY Id,Time ASC'); 9 9 while($Task = $DbResult->fetch_assoc()) 10 10 { -
trunk/www/server.php
r6 r8 63 63 'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_scriptdev2 < emulator/'.$this->Server['Database']['Emulator']['Id'].'/source/src/bindings/ScriptDev2/sql/scriptdev2_script_full.sql', 64 64 'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_mangos < emulator/'.$this->Server['Database']['Emulator']['Id'].'/source/src/bindings/ScriptDev2/sql/mangos_scriptname_full.sql', 65 'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_realmd < emulator/'.$this->Server['Database']['Emulator']['Id'].'/ mangos/sql/realmd.sql',66 'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_characters < emulator/'.$this->Server['Database']['Emulator']['Id'].'/ mangos/sql/characters.sql',65 'mysql --user=server'.$this->Id.' --password=server'.$this->Id.' server'.$this->Id.'_realmd < emulator/'.$this->Server['Database']['Emulator']['Id'].'/share/mangos/sql/realmd.sql', 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 68 if($Delete = true) … … 85 85 $this->AddTask('Start emulátoru', array( 86 86 '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"', 87 'screen -A -m -d -S server'.$this->Id.'-worldd emulator/'.$this->Server['Database']['Emulator']['Id'].'/bin/mangos-worldd -c server/'.$this->Id.'/etc/mangosd.conf',87 'screen -A -m -d -S server'.$this->Id.'-worldd "emulator/'.$this->Server['Database']['Emulator']['Id'].'/bin/mangos-worldd -c server/'.$this->Id.'/etc/mangosd.conf"', 88 88 )); 89 89 return('Požadavek na start serveru zařazen.');
Note:
See TracChangeset
for help on using the changeset viewer.