Profiler - draft

basic stuff is working with examplary static data
need to sit down and collect mods from talents and class-spells
<bla bla>                         from profession perks
loadOnDemandData not implemented as the structure needs more research

some visual bugs

remember to generate your realm-file. i used these example realms
[
    ["us","US & Oceanic",null,[["pure-pwnage","Pure Pwnage",null,[["trinity","Trinity"]]]]],
    ["eu","Europe",null,[["pure-pwnage","Pure Pwnage",null,[["dafuque","da'Fuqú]]]
]
This commit is contained in:
Sarjuuk
2014-03-14 16:32:15 +01:00
parent 63895e838b
commit c865a3a9a4
42 changed files with 13685 additions and 129 deletions

View File

@@ -15,15 +15,36 @@ foreach ($datasets as $data)
{
switch ($data)
{
// Profiler
case 'factions':
case 'quests':
case 'companions':
case 'recipes':
case 'mounts':
if (empty($_GET['callback']) || empty($_GET['t']))
break;
$token = intVal($_GET['t']);
$callback = $_GET['callback'];
if (!$token || substr($callback, 0, 17) != '$WowheadProfiler.')
break;
/*
get data via token:
> echo data in unknown format here
echo '$WowheadProfiler.loadOnDemand('.$data.', <catg?>);';
*/
break;
// locale independant
case 'zones':
case 'weight-presets':
case 'item-scaling':
case 'realms':
case 'statistics':
if (file_exists('datasets/'.$data))
echo file_get_contents('datasets/'.$data);
else if ($AoWoWconf['debug'])
echo "/* could not fetch static data: ".$data." */";
echo "alert('could not fetch static data: ".$data."');";
echo "\n\n";
break;
case 'user':
@@ -50,6 +71,7 @@ foreach ($datasets as $data)
echo "alert('could not fetch static data: ".$data.$params." for locale: ".User::$localeString."');";
echo "\n\n";
break;
case 'quick-excludes': // generated per character in profiler
default:
break;
}