Esempio n. 1
0
 //--------------------------------
 //MOVE CHAR ----------------------
 if ($action == "MoveChar") {
     if (!isset($_POST['char']) || empty($_POST['char'])) {
         $my_array['UserToolsContent'] = $ut->ShowMoveCharForm($db, $acc);
     } else {
         $my_array['UserToolsContent'] = $ut->DoMoveChar($db, $acc, $_POST['char']);
     }
 }
 //--------------------------------
 //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'])) {