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:
Sarjuuk
2015-08-11 14:44:55 +02:00
parent bd2e0ccada
commit 11584a68d6
10 changed files with 137 additions and 41 deletions

View File

@@ -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;
}
}
?>