Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    February 2017
    Location
    Kepler-186f
    Posts
    69

    [PHP] AntiBadges

    Aloa,

    If you do not want to have badges on your server, you can use AntiBadges.
    Github: https://github.com/cydolo/AntiBadges

    Code:
     AntiBadges:
        Kick all clients with badges (not Overwolf)
     AntiSpoof:
        Kick all clients with badges that have not yet been released
     AntiDuplicate:
        Kick all clients with duplicated badges
     Save kicked clients in a log.txt
     Show error in err.txt
    Edit: I changed the script a bit. Overwolf can now also be kicked.

    Best Regards.
    Last edited by cydolo; September 3rd, 2018 at 07:21 PM.

  2. #2
    Join Date
    November 2017
    Posts
    181
    There is a few things I don't like about your code.

    • You mixed your own code with a third party library and have it all sit in the same folder.
    • You committed a log file that should be in .gitignore.
    • Are these your server's actual login credentials?
      PHP Code:
      $a "serveradmin"//user                                       
      $b "PlmNfjsa"//pass                                    
      $c "dolo.tv"//host                                     
      $d "10011"//queryport                                 
      $e "9987"//serverport 
      If so, it's probably a bad idea to share those on GitHub for the world to see.

  3. #3
    Join Date
    February 2017
    Location
    Kepler-186f
    Posts
    69
    Quote Originally Posted by RandomHost View Post
    There is a few things I don't like about your code.

    • You mixed your own code with a third party library and have it all sit in the same folder.
    • You committed a log file that should be in .gitignore.
    • Are these your server's actual login credentials?
      PHP Code:
      $a "serveradmin"//user                                       
      $b "PlmNfjsa"//pass                                    
      $c "dolo.tv"//host                                     
      $d "10011"//queryport                                 
      $e "9987"//serverport 
      If so, it's probably a bad idea to share those on GitHub for the world to see.
    It's not about how nice it looks. the main thing is that it works.
    And no, these data are not correct.

  4. #4
    Join Date
    November 2017
    Posts
    181
    Quote Originally Posted by DoloDE View Post
    It's not about how nice it looks. the main thing is that it works.
    And no, these data are not correct.
    That's one way to overplay your lack of commitment I guess. Still better than "Shut up and do it better" though.

  5. #5
    Join Date
    April 2013
    Location
    Germany
    Posts
    86
    Quote Originally Posted by DoloDE View Post
    It's not about how nice it looks. the main thing is that it works.
    Are you serious?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •