Changeset 14
- Timestamp:
- Jun 11, 2009, 10:43:35 PM (15 years ago)
- Location:
- trunk/www
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/emulator.php
r12 r14 20 20 global $System; 21 21 22 $this->Database->insert('Task', array('User' => $System->Modules['User']->User['Id'], 'Title' => $Title, 'Time' => 'NOW()', 'CommandList' => implode("\n", $Task) ));22 $this->Database->insert('Task', array('User' => $System->Modules['User']->User['Id'], 'Title' => $Title, 'Time' => 'NOW()', 'CommandList' => implode("\n", $Task)."\n")); 23 23 } 24 24 … … 60 60 'mkdir objdir', 61 61 'cd objdir', 62 '../configure --prefix='.$Config['BaseDir'].'emulator/'.$this->Id.'/ --enable-cli --enable-ra --with-debug-info', 62 'export CFLAGS="-march=athlon64 -m64 -O2 -g -ggdb', 63 'export CXXFLAGS="-march=athlon64 -m64 -O2 -g -ggdb', 64 '../configure --prefix='.$Config['BaseDir'].'emulator/'.$this->Id.'/ --enable-cli --enable-ra', 63 65 'make', 64 66 'make install', -
trunk/www/form_classes.php
r12 r14 27 27 //'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''), 28 28 //'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''), 29 ), 30 ), 31 'PasswordRecovery' => array( 32 'Title' => 'Obnova hesla', 33 'SubmitText' => 'Obnovit', 34 'Table' => '', 35 'Items' => array( 36 'Name' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''), 37 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''), 29 38 ), 30 39 ), -
trunk/www/page.php
r13 r14 35 35 if($this->System->Modules['User']->User['Role'] == USER_ROLE_ADMINISTRATOR) 36 36 { 37 $Output .= ' <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=EmulatorList">Emulátory</a>';37 $Output .= ' <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=EmulatorList">Emulátory</a>'; 38 38 } 39 39 } -
trunk/www/server.php
r12 r14 34 34 global $System; 35 35 36 $this->Database->insert('Task', array('User' => $System->Modules['User']->User['Id'], 'Title' => $Title, 'Time' => 'NOW()', 'CommandList' => implode("\n", $Task) ));36 $this->Database->insert('Task', array('User' => $System->Modules['User']->User['Id'], 'Title' => $Title, 'Time' => 'NOW()', 'CommandList' => implode("\n", $Task)."\n")); 37 37 } 38 38 … … 87 87 { 88 88 $this->AddTask('Start emulátoru', array( 89 '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 "',89 '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 90 'screen -A -m -d -S server'.$this->Id.'-worldd server/'.$this->Id.'/bin/start.sh', 91 91 )); … … 178 178 '#!/bin/sh', 179 179 'while [ 1=1 ] ; do', 180 'gdb emulator/'.$this->Id.'/bin/mangos- realmd -x mangos.gdb --batch >>server/'.$this->Id.'/log/mangos-worldd.log 2>>server/'.$this->Id.'/log/mangos-worldd.err',180 'gdb emulator/'.$this->Id.'/bin/mangos-worldd -x mangos.gdb --batch >>server/'.$this->Id.'/log/mangos-worldd.log 2>>server/'.$this->Id.'/log/mangos-worldd.err', 181 181 'cd www', 182 182 'php mangos_debug_process.php '.$this->Id.' >>server/'.$this->Id.'/log/mangos_debug.log 2>>server/'.$this->Id.'/log/mangos_debug.err', -
trunk/www/user.php
r6 r14 103 103 { 104 104 $this->Database->insert('User', array('Name' => $Name, 'Login' => $Login, 'Password' => sha1($Password), 'Email' => $Email, 'RegistrationTime' => 'NOW()', 'Locked' => 1, 'Role' => 2)); 105 $UserId = $Database->insert_id; 105 106 106 107 $Subject = FromUTF8('Registrace nového účtu', 'iso2'); … … 236 237 global $Config; 237 238 238 $DbResult = $this->Database->select('User', ' Name, Id, Email, Password', '`Login`="'.$Login.'" AND `Email`="'.$Email.'"');239 if($DbResult->num_rows > 0) 240 { 241 $Row = $DbResult->fetch_a rray();239 $DbResult = $this->Database->select('User', 'Login, Name, Id, Email, Password', '`Login`="'.$Login.'" AND `Email`="'.$Email.'"'); 240 if($DbResult->num_rows > 0) 241 { 242 $Row = $DbResult->fetch_assoc(); 242 243 $NewPassword = substr(sha1(strtoupper($Row['Login'])), 0, 7); 243 244
Note:
See TracChangeset
for help on using the changeset viewer.