- Timestamp:
- Nov 24, 2007, 6:01:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stat/stat.php
r47 r146 10 10 $RealmPassword = $Password; 11 11 $RealmDatabase = 'realmd'; // must contains zone_coordinates and accounts table 12 $CharactersDatabase = 'characters'; // must contains zone_coordinates and accounts table 12 13 $EmuVersion = $Config['Mangos']['Version']; 13 14 $Owner = $Config['Web']['Admin']; … … 23 24 { 24 25 global $Hostname, $Username, $Password, $Database, $EmuVersion, $Owner, $ServerName, $realm_db, $DatabaseEncoding, 25 $RealmHostname, $RealmUsername, $RealmPassword, $RealmDatabase ;26 $RealmHostname, $RealmUsername, $RealmPassword, $RealmDatabase, $CharactersDatabase; 26 27 27 28 $Result = … … 59 60 $db_result = mysql_query("SET NAMES $DatabaseEncoding", $mangos_db); 60 61 61 $db_result = mysql_query("SELECT * FROM `character` WHERE `online`='1' ORDER BY `name`", $mangos_db); 62 $characters_db = mysql_connect($RealmHostname, $RealmUsername, $RealmPassword); 63 mysql_select_db($CharactersDatabase, $characters_db); 64 $db_result = mysql_query("SET NAMES $DatabaseEncoding", $characters_db); 65 66 $db_result = mysql_query("SELECT * FROM `character` WHERE `online`='1' ORDER BY `name`", $characters_db); 62 67 while($result = mysql_fetch_array($db_result)) 63 68 {
Note:
See TracChangeset
for help on using the changeset viewer.