case 'history': $Smarty->assign('Payments', Account::GetServicePaymentHistory($User['id'], $Service['name'])); $Smarty->assign('Page', Page::Info('account_dashboard', array('bodycss' => 'servicespage', 'pagetitle' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_History') . ' - '))); $Smarty->display('account/pcs_history'); break; case 'tos': $ServiceBasedTos = array('First' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_ToS_One'), 'Second' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_ToS_Two'), 'Third' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_ToS_Three'), 'Forth' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_ToS_Four')); $Smarty->assign('ToS', $ServiceBasedTos); $Smarty->assign('Page', Page::Info('account_dashboard', array('bodycss' => 'servicespage', 'pagetitle' => $Smarty->GetConfigVars('Account_Management_Service_' . $Service['service']) . ' - '))); $Smarty->display('account/pcs_tos'); break; case 'confirm': if ($_REQUEST['service'] == 'PCB') { Manager::LoadExtension('Classes', $ClassConstructor); $Smarty->assign('BoostItems', Classes::getBoostClassData($CharacterData['class'])); $Smarty->assign('ProfessionsBoost', Classes::getBoostProfessions($CharacterData['guid'])); } $Smarty->assign('Page', Page::Info('account_dashboard', array('bodycss' => 'servicespage', 'pagetitle' => $Smarty->GetConfigVars('Account_Management_Service_' . $Service['service']) . ' - '))); $Smarty->display('account/pcs_confirm'); break; default: header('Location: /account/management'); break; } } break; case 'FIR': if (!isset($_REQUEST['servicecat'])) { $Service = array('name' => strtolower($_REQUEST['service']), 'title' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service']), 'description' => $Smarty->GetConfigVars('Account_Management_Service_' . $_REQUEST['service'] . '_Description'), 'service' => $_REQUEST['service'], 'price' => Account::GetServicePrice($_REQUEST['service'])); $Smarty->assign('Service', $Service); $Smarty->assign('Characters', Characters::GetCharacters($User['id']));
public static function prepareBoostData($Character) { $ClassItems = Classes::getBoostClassData($Character['class']); $CharacterItems = []; $DataArray['Main'] = Characters::generateCharacterLevelUP($Character['guid']); foreach ($ClassItems as $CI) { foreach ($CI as $Key => $Value) { if ($Key == $_REQUEST['specialization']) { $CharacterItems[] = $Value; } } } $CharacterItems = call_user_func_array('array_merge', $CharacterItems); if ($Character['level'] >= 60) { $BoostProfessions = Classes::getBoostProfessions($Character['guid']); $DataArray['Skills'] = Characters::generateCharacterSkillsSQL($Character['guid'], $BoostProfessions); } if (self::getBoostSpells($Character['class'])) { $DataArray['Spells'] = Characters::generateCharacterSpellsSQL($Character['guid'], self::getBoostSpells($Character['class'])); } $DataArray['ItemInstance'] = Items::generateItemInstanceSQL($Character['guid'], $CharacterItems); $DataArray['CharacterInv'] = Characters::generateCharacterInventorySQL($Character['guid'], $CharacterItems); return $DataArray; }