removing smarty - part XIV (only one more..)

- added some forgotten account-srings
- fixed an error handling ItemFilter /w upgradeItems + markdown appearing in tooltips
- relaxed session-regeneration (only regenerates on status changes (signin/-out)), fixes losing the session, when opening multiple tabs at once
- striped smarty from profiler (only cleanups remaining)
- moved profiler-ajax to AjaxHandler
- created a (dummy, for now) ProfileClass to handle Chars and Profiles
This commit is contained in:
Sarjuuk
2014-07-16 21:48:07 +02:00
parent a82aa2b6ae
commit 0af712a8ff
27 changed files with 1103 additions and 848 deletions

View File

@@ -27,11 +27,6 @@ switch ($pageCall)
case '': // no parameter given -> MainPage
$altClass = 'main';
case 'account': // account management [nyi]
if (($_ = (new AjaxHandler($pageParam))->handle($pageCall)) !== null)
{
header('Content-type: application/x-javascript; charset=utf-8');
die((string)$_);
}
case 'achievement':
case 'achievements':
// case 'arena-team':
@@ -80,6 +75,15 @@ switch ($pageCall)
// case 'user': // tool: user profiles [nyi]
case 'zone':
case 'zones':
if (in_array($pageCall, ['account', 'profile']))
{
if (($_ = (new AjaxHandler($pageParam))->handle($pageCall)) !== null)
{
header('Content-type: application/x-javascript; charset=utf-8');
die((string)$_);
}
}
$_ = ($altClass ?: $pageCall).'Page';
(new $_($pageCall, $pageParam))->display();
break;