mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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:
24
data.php
24
data.php
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user