Changeset 597
- Timestamp:
- May 20, 2009, 12:52:52 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/config.sample.php
r582 r597 27 27 'DatabaseScriptDev2' => 'scriptdev2', 28 28 'GMCommandsLog' => 'gm_commands.log', 29 'MaxAccountCount' => 13000,30 29 'CharacterDataOffset' => array 31 30 ( … … 47 46 'Admin' => 'Admin', 48 47 'AdminEmail' => 'admin@localhost', 49 'ShowError' => 0,48 'ShowError' => false, 50 49 'ErrorLogFile' => 'php_script_error.log', 50 'ShowSQLError' => false, 51 'ShowSQLQuery' => false, 51 52 ), 52 53 'CheckRegistration' => array -
trunk/inc/db.php
r591 r597 2 2 3 3 include('config.php'); 4 include('database.php'); 4 5 5 $db = new mysqli($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']);6 if(mysqli_connect_err no())6 $db = new Database($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']); 7 if(mysqli_connect_error()) 7 8 { 8 die('Přihlášení k MySQLselhalo. '.mysqli_connect_error());9 die('Přihlášení k databázi selhalo. '.mysqli_connect_error()); 9 10 } 10 $db-> query('SET NAMES '.$Config['Database']['Charset']);11 $db->charset($Config['Database']['Charset']); 11 12 12 13 ?> -
trunk/pages/register.php
r596 r597 39 39 '<br />'); 40 40 41 $db->select_db($Config['Mangos']['DatabaseRealmd']);42 41 if($RegistrationLimit->GetFreeRegistrationCount() == 0) 43 42 { … … 62 61 $heslo = sha_password($account, $password); 63 62 63 $db->select_db($Config['Mangos']['DatabaseRealmd']); 64 64 $DbResult = $db->query('SELECT `id`, `username`, `sha_pass_hash` FROM `account` WHERE `username`="'.$account.'"'); 65 65 if($DbResult->num_rows > 0) -
trunk/sql/updates/596.sql
r596 r597 2 2 `Date` DATE NOT NULL , 3 3 `Min` INT NOT NULL , 4 `Max` INT NOT NULL 4 `Max` INT NOT NULL , 5 5 `AccountCount` int(11) NOT NULL, 6 6 PRIMARY KEY (`Date`)
Note:
See TracChangeset
for help on using the changeset viewer.