@@ -461,6 +461,52 @@ function is_banned($uuid) {
461461 $ st ->execute (array ($ uuid ));
462462 return count ($ st ->fetchAll (PDO ::FETCH_ASSOC )) > 0 ;
463463 }
464+
465+ function getCheatName ($ key ) {
466+ $ cheatPerName = array ("aimbot " => "AimBot " ,
467+ "airjump " => "AirJump " ,
468+ "airplace " => "AirPlace " ,
469+ "antiknockback " => "AntiKnockback " ,
470+ "antipotion " => "AntiPotion " ,
471+ "autoclick " => "AutoClick " ,
472+ "autosteal " => "AutoSteal " ,
473+ "blink " => "Blink " ,
474+ "chat " => "Chat " ,
475+ "checkmanager " => "CheckManager " ,
476+ "critical " => "Critical " ,
477+ "elytrafly " => "ElytraFly " ,
478+ "fastbow " => "FastBow " ,
479+ "fasteat " => "FastEat " ,
480+ "fastladder " => "FastLadder " ,
481+ "fastplace " => "FastPlace " ,
482+ "faststairs " => "FastStairs " ,
483+ "fly " => "Fly " ,
484+ "forcefield " => "ForceField " ,
485+ "groundspoof " => "GroundSpoof " ,
486+ "incorrectpacket " => "IncorrectPacket " ,
487+ "inventorymove " => "InventoryMove " ,
488+ "jesus " => "Jesus " ,
489+ "nofall " => "NoFall " ,
490+ "nopitchlimit " => "NoPitchLimit " ,
491+ "noslowdown " => "NoSlowDown " ,
492+ "noweb " => "NoWeb " ,
493+ "nuker " => "Nuker " ,
494+ "phase " => "Phase " ,
495+ "pingspoof " => "PingSpoof " ,
496+ "reach " => "Reach " ,
497+ "regen " => "Regen " ,
498+ "scaffold " => "Scaffold " ,
499+ "sneak " => "Sneak " ,
500+ "speed " => "Speed " ,
501+ "spider " => "Spider " ,
502+ "step " => "Step " ,
503+ "strafe " => "Strafe " ,
504+ "superknockback " => "SuperKnockback " ,
505+ "timer " => "Timer " ,
506+ "xray " => "XRay "
507+ );
508+ return isset ($ cheatPerName [$ key ]) ? $ cheatPerName [$ key ] : $ key . "? " ;
509+ }
464510}
465511
466512abstract class Info {
@@ -654,7 +700,7 @@ function getInfos($row) {
654700 "reason " => $ row ["reason " ],
655701 "banned_by " => $ page ->get_avatar ($ page ->get_name ($ page ->parse_uuid ($ row ["banned_by " ])), $ row ["banned_by " ]),
656702 "expiration_time " => $ page ->getDateFromMillis ($ row ["expiration_time " ]),
657- "cheat_name " => $ page ->msg ( $ row [ " cheat_name " ], $ row ["cheat_name " ]),
703+ "cheat_name " => $ page ->getCheatName ( $ row ["cheat_name " ]),
658704 );
659705 if ($ this ->page ->hasPermission ("bans " , "EDIT " )) {
660706 $ infos = array_merge ($ infos , array ("options " => '<form action="./bans.php" method="POST"><input type="hidden" name="id" value=" ' . $ row ["id " ] . '"><button class="btn-outline"> ' . $ this ->page ->msg ("generic.delete " ) . '</button></form> ' ));
@@ -683,7 +729,7 @@ function getInfos($row) {
683729 "reason " => $ row ["reason " ],
684730 "banned_by " => $ page ->get_avatar ($ page ->get_name ($ page ->parse_uuid ($ row ["banned_by " ])), $ row ["banned_by " ]),
685731 "revocation_time " => $ row ["revocation_time " ] == null ? $ page ->msg ("generic.expired " ) : $ row ["revocation_time " ],
686- "cheat_name " => $ page ->msg ( $ row [ " cheat_name " ], $ row ["cheat_name " ]),
732+ "cheat_name " => $ page ->getCheatName ( $ row ["cheat_name " ]),
687733 );
688734 }
689735}
@@ -831,7 +877,7 @@ function getInfos($row) {
831877 $ page = $ this ->page ;
832878 $ uuid = $ row ["uuid " ];
833879 $ infos = array ("name " => $ page ->get_avatar ($ page ->get_name ($ uuid ), $ uuid ),
834- "cheat_name " => $ row ["cheat_key " ],
880+ "cheat_name " => $ page -> getCheatName ( $ row ["cheat_key " ]) ,
835881 "check_name " => $ row ["check_name " ],
836882 "amount " => $ row ["amount " ],
837883 "reliability " => $ row ["reliability " ] . "% " ,
0 commit comments