daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Jun 10th, 2018 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version         :   3.0.8.0
  8. * @ Author          :   DeZender
  9. * @ Release on      :   25.09.2017
  10. * @ Official site   :   http://DeZender.Net
  11. *
  12. */
  13.  
  14. function addips()
  15. {
  16.     global $theme;
  17.     global $globals;
  18.     global $cluster;
  19.     global $user;
  20.     global $l;
  21.     global $servers;
  22.     global $error;
  23.     global $ippools;
  24.     global $done;
  25.     global $ips;
  26.  
  27.     if (!(load_lang( 'admin/addips' ))) {
  28.         return false;
  29.     }
  30.  
  31.     if (allow_slave_action(  )) {
  32.         reporterror( $l['slave_cant'], $l['slave_cant_exp'], $l['slave_cant'] );
  33.         return false;
  34.     }
  35.  
  36.     $theme['init_theme'] = 'admin/addips';
  37.     $theme['init_theme_name'] = 'addips';
  38.     $theme['init_theme_func'] = array( 'addips_theme' );
  39.     $theme['call_theme_func'] = 'addips_theme';
  40.  
  41.     if (!(is_allowed( 'addips' ))) {
  42.         reporterror( $l['not_allowed_title'], $l['err_acl_no_allowed'] );
  43.         return false;
  44.     }
  45.  
  46.     $res = makequery( 'SELECT * FROM ippool ' . "\n\t\t\t\t\t" . 'ORDER BY ippid' );
  47.     $ippools = array(  );
  48.     $i = 1;
  49.  
  50.     while ($i <= vsql_num_rows( $res )) {
  51.         $row = vsql_fetch_assoc( $res );
  52.         $ippools[$row['ippid']] = $row;
  53.         ++$i;
  54.     }
  55.  
  56.     $ippid = (int) optGET( 'ippid' );
  57.  
  58.     if (isset( $_POST['submitip'] )) {
  59.         $range = $range_ = array(  );
  60.         $iptype = ((optPOST( 'iptype' ) == 4 ? 4 : 6));
  61.         $ippid = (int) optPOST( 'ippid' );
  62.  
  63.         if (($iptype == 6) && empty( $ippid )) {
  64.             $error[] = $l['no_ip_pool'];
  65.             return false;
  66.         }
  67.  
  68.         if (!(empty( $ippools[$ippid]['nat'] ))) {
  69. ............................................................
  70. ......................................
  71. .............
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top