- removed fixed fields in lv-bricks; title sources and achievement rewards thus are working again
- moved search to /pages - moved g_dataKey to header.tpl and apply it on nessecary pages (restores TalentCalc) - Events: fixed relTabs with arbitrary data, when holidayId was 0 - CharClass: get heroClass-status through flags; dropped related DB-field - Achievements: fixed some criteria not being displayed in tooltips - Community: applied long forgotten changes to tplVars and use of uppercase ids - Titles: * exclude unused titles from listview * restored 'links'-button on detail-page - Quests: * added 'slain' fro proxy-npcs * use more wflags (&1 needs more research) - Factions: * fixed order of categories * fixed params to QuestList for relTabs - Profiler: * enabled 'profiles that have this char as source' in Profiler * removed the exampelChar from project * further documented more expected variables; includes/excludes-handling still not entirely clear * created datasets for reference data (create with ?build=profiler) - Localzation: * localized profiler for loc3 * corrected some single words * localized custom reward rate - table in factions - AjaxHandler: * new handler for ajax-requests *duh* * dropped data.php (index.php now calls to AjaxHandler for these cases) - moved reading of static files to own function Util::loadStaticFile()
This commit is contained in:
parent
0e351b215b
commit
23e831be25
60 changed files with 1479 additions and 854 deletions
63
index.php
63
index.php
|
|
@ -61,6 +61,7 @@ switch ($pageCall)
|
|||
case 'quests':
|
||||
case 'race':
|
||||
case 'races':
|
||||
case 'search': // tool: searches
|
||||
case 'skill':
|
||||
case 'skills':
|
||||
// case 'sound': // db: sounds for zone, creature, spell, ...
|
||||
|
|
@ -77,6 +78,10 @@ switch ($pageCall)
|
|||
else
|
||||
$smarty->error();
|
||||
break;
|
||||
/* other pages */
|
||||
case '': // no parameter given -> MainPage
|
||||
require 'pages/main.php';
|
||||
break;
|
||||
case 'whats-new':
|
||||
case 'searchplugins':
|
||||
case 'searchbox':
|
||||
|
|
@ -86,47 +91,6 @@ switch ($pageCall)
|
|||
case 'aboutus':
|
||||
require 'pages/more.php';
|
||||
break;
|
||||
case 'petcalc': // tool: pet talent calculator
|
||||
$petCalc = true;
|
||||
case 'talent': // tool: talent calculator
|
||||
require 'pages/talent.php';
|
||||
break;
|
||||
/* called by script */
|
||||
case 'cookie': // lossless cookies and user settings
|
||||
if (User::$id && $pageParam && !empty($_GET[$pageParam]))
|
||||
{
|
||||
// don't panic .. again .... it get's escaped
|
||||
if (DB::Aowow()->query('REPLACE INTO ?_account_cookies VALUES (?d, ?, ?)', User::$id, $pageParam, urldecode($_GET[$pageParam])))
|
||||
die('0'); // 0: success
|
||||
else
|
||||
die();
|
||||
}
|
||||
|
||||
break;
|
||||
case 'contactus':
|
||||
print_r($_POST);
|
||||
print_r($_GET);
|
||||
die("not yet implemented!"); // 0:ok; 1:captchaInvalid; 2:tooLong; 3:noReasonGiven; 7:alreadyReported; other:prints String
|
||||
case 'comment':
|
||||
if ($pageParam == 'rating')
|
||||
die('{"success":true,"error":"","up":7,"down":9}');
|
||||
else if ($pageParam == 'rate')
|
||||
die('3'); // 0:success, 1:ratingban, 3:rated too often
|
||||
|
||||
break;
|
||||
case 'locale': // subdomain-workaround, change the language
|
||||
User::setLocale($pageParam);
|
||||
User::writeCookie();
|
||||
header('Location: '.(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '.'));
|
||||
break;
|
||||
case 'data': // tool: dataset-loader
|
||||
case 'search': // tool: searches
|
||||
require $pageCall.'.php';
|
||||
break;
|
||||
/* other */
|
||||
case '': // no parameter given -> MainPage
|
||||
require 'pages/main.php';
|
||||
break;
|
||||
case 'latest-additions':
|
||||
case 'latest-articles':
|
||||
case 'latest-comments':
|
||||
|
|
@ -138,6 +102,23 @@ switch ($pageCall)
|
|||
case 'random':
|
||||
require 'pages/miscTools.php';
|
||||
break;
|
||||
case 'petcalc': // tool: pet talent calculator
|
||||
$petCalc = true;
|
||||
case 'talent': // tool: talent calculator
|
||||
require 'pages/talent.php';
|
||||
break;
|
||||
/* called by script */
|
||||
case 'data': // tool: dataset-loader
|
||||
case 'cookie': // lossless cookies and user settings
|
||||
case 'contactus':
|
||||
case 'comment':
|
||||
case 'locale': // subdomain-workaround, change the language
|
||||
header('Content-type: application/x-javascript; charset=utf-8');
|
||||
if (($_ = $ajax->handle($pageCall)) !== null)
|
||||
die((string)$_);
|
||||
|
||||
break;
|
||||
/* setup */
|
||||
case 'build':
|
||||
if (User::isInGroup(U_GROUP_EMPLOYEE))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue