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