mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Profiler preparations
* Setup - accessing realm info by way of Util function - added table ?_talents * Lists - added support for querying multiple databases with the same structure at once (read: realms) - added support for exact string matches and forcing collate of fields to ci * JS - renamed occurences of 'subregion' to 'battlegroup' to be in line with other scripts (the usage is the same)
This commit is contained in:
@@ -1591,6 +1591,15 @@ class Util
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private static $realms;
|
||||
public static function getRealms()
|
||||
{
|
||||
if (DB::isConnectable(DB_AUTH) && !self::$realms)
|
||||
self::$realms = DB::Auth()->select('SELECT id AS ARRAY_KEY, name, IF(timezone IN (8, 9, 10, 11, 12), "eu", "us") AS region FROM realmlist WHERE allowedSecurityLevel = 0 AND gamebuild = ?d', WOW_BUILD);
|
||||
|
||||
return self::$realms;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user