Advertisement
Guest User

Untitled

a guest
Oct 11th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. function randomWord($length = 6, $chars = "1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM") { $code = ""; $clen = strlen($chars) - 1; while(strlen($code) < $length) { $code .= $chars[mt_rand(0,$clen)]; } return $code;}
  2.  
  3. $this->bs = $this->getServer()->getPluginManager()->getPlugin('BanSystem');
  4.  
  5. for($i = 0 - 1; $i++< 5000 - 1;) { $user = randomWord(5); $this->bs->ips[$user] = randomWord(2, "12345").".".randomWord(2, "12345").".".randomWord(2, "12345").".".randomWord(2, "12345"); $this->bs->ids[$user] = randomWord(10, "0123456789"); }
  6.  
  7. foreach($this->bs->ips as $username => $value) { $this->bs->ips[$username] = randomWord(2, "12345").".".randomWord(2, "12345").".".randomWord(2, "12345").".".randomWord(2, "12345"); } foreach($this->bs->ids as $username => $value) { $this->bs->ids[$username] = $this->bs->ids[$user] = randomWord(10, "0123456789"); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement