Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. if (!is_array($this->rate) {
  2.     throw new IsntAFuckingArrayException();
  3. }
  4.  
  5. if (!isset($this->rate['in'])) {
  6.     throw new TheInRateIsMissingCuntsException();
  7. }
  8.  
  9. switch ($this->nastype) {
  10.     case 'cisco':
  11.         // NYI
  12.         break;
  13.     case 'plns':
  14.         !is_array($reply['mpd-filter']) ? $reply['mpd-filter'] = sprintf('') : array_push($reply['mpd-filter'], sprintf(''));
  15.         break;
  16.     case 'mikrotik':
  17.         $reply['MT-Rate-Limit'] = sprintf('%s/%s', $this->rate['in'], $this->rate['out']);
  18.         break;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement