Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- function addips()
- {
- global $theme;
- global $globals;
- global $cluster;
- global $user;
- global $l;
- global $servers;
- global $error;
- global $ippools;
- global $done;
- global $ips;
- if (!(load_lang( 'admin/addips' ))) {
- return false;
- }
- if (allow_slave_action( )) {
- reporterror( $l['slave_cant'], $l['slave_cant_exp'], $l['slave_cant'] );
- return false;
- }
- $theme['init_theme'] = 'admin/addips';
- $theme['init_theme_name'] = 'addips';
- $theme['init_theme_func'] = array( 'addips_theme' );
- $theme['call_theme_func'] = 'addips_theme';
- if (!(is_allowed( 'addips' ))) {
- reporterror( $l['not_allowed_title'], $l['err_acl_no_allowed'] );
- return false;
- }
- $res = makequery( 'SELECT * FROM ippool ' . "\n\t\t\t\t\t" . 'ORDER BY ippid' );
- $ippools = array( );
- $i = 1;
- while ($i <= vsql_num_rows( $res )) {
- $row = vsql_fetch_assoc( $res );
- $ippools[$row['ippid']] = $row;
- ++$i;
- }
- $ippid = (int) optGET( 'ippid' );
- if (isset( $_POST['submitip'] )) {
- $range = $range_ = array( );
- $iptype = ((optPOST( 'iptype' ) == 4 ? 4 : 6));
- $ippid = (int) optPOST( 'ippid' );
- if (($iptype == 6) && empty( $ippid )) {
- $error[] = $l['no_ip_pool'];
- return false;
- }
- if (!(empty( $ippools[$ippid]['nat'] ))) {
- ............................................................
- ......................................
- .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement