//-------------------------------- //RESET TRANSFER ----------------- if ($action == "ResetTransfer") { if ((!isset($_POST['char1']) || empty($_POST['char1'])) && (!isset($_POST['char2']) || empty($_POST['char2']))) { $my_array['UserToolsContent'] = $ut->ShowResetTransferForm($db, $acc); } else { $my_array['UserToolsContent'] = $ut->DoResetTransfer($db, $acc, $_POST); } } //-------------------------------- //CHANGE CLASS ------------------- if ($action == "ChangeClass") { if ((!isset($_POST['char']) || empty($_POST['char'])) && (!isset($_POST['classe']) || empty($_POST['classe']))) { $my_array['UserToolsContent'] = $ut->ShowChangeClassForm($db, $acc); } else { $my_array['UserToolsContent'] = $ut->DoChangeClass($db, $acc, $_POST); } } //-------------------------------- //DISCONNECT ACCOUNT FROM GAME if ($action == "Disconnect") { if (!isset($_POST['Yes_I_Confirm'])) { $my_array['UserToolsContent'] = $ut->ShowDisconnectConfirm(); } else { $acc->DisconnectFromJoinServer($db); $my_array['UserToolsContent'] = $UserToolsMsg44; } } //-------------------------------- $tpl->Assign($my_array); $tpl->Display($_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Templates/{$MainTemplate}/UserTools.tpl.php");