예제 #1
0
     } else {
         admin();
     }
     break;
 case "addplayer":
     //
     if ($pcat == 3 || $pcat == 4) {
         addPlayer();
     } else {
         admin();
     }
     break;
 case "editplayer":
     //
     if ($pcat == 4) {
         editPlayer();
     } else {
         admin();
     }
     break;
 case "saveplayer":
     //
     if ($pcat == 3 || $pcat == 4) {
         savePlayer();
     } else {
         admin();
     }
     break;
 case "updateplayer":
     //
     if ($pcat == 4) {
예제 #2
0
 if ($type == "editGroup") {
     $message = editGroup($conn);
     $groups = readGroups($conn);
     $players = readPlayers($conn);
     $records = readRecords($conn);
 } else {
     if ($type == "deleteGroup") {
         $message = deleteGroup($conn);
         $groups = readGroups($conn);
     } else {
         if ($type == "addPlayer") {
             $message = addPlayer($conn);
             $players = readPlayers($conn);
         } else {
             if ($type == "editPlayer") {
                 $message = editPlayer($conn);
                 $players = readPlayers($conn);
                 $characters = readCharacters($conn);
             } else {
                 if ($type == "deletePlayer") {
                     $message = deletePlayer($conn);
                     $players = readPlayers($conn);
                 } else {
                     if ($type == "addCharacter") {
                         $message = addCharacter($conn);
                         $characters = readCharacters($conn);
                     } else {
                         if ($type == "editCharacter") {
                             $message = editCharacter($conn);
                             $characters = readCharacters($conn);
                             $records = readRecords($conn);