Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* * @ https://EasyToYou.eu - IonCube v11 Decoder Online * @ PHP 5.6 * @ Deco..

Decoded Output download

<?php 
/* 
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online 
 * @ PHP 5.6 
 * @ Decoder version: 1.0.4 
 * @ Release: 02/06/2020 
 * 
 * @ ZendGuard Decoder PHP 5.6 
 */ 
 
function _obfuscated_0D2F085B2C03210B1D24161C0C3F150F38210E1B040811_() 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_deleteusers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("SELECT username FROM rm_lastcsvimport") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (mysql_num_rows($res) == 0) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_cantundo")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = confirmundocsvimport_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D0C0F2901222505054028013E2E1E131E2B2F19025B01_() 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_deleteusers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("DELETE FROM rm_users WHERE username IN (SELECT username FROM rm_lastcsvimport)") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("DELETE FROM radcheck WHERE username IN (SELECT username FROM rm_lastcsvimport)") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("DELETE FROM radacct WHERE username IN (SELECT username FROM rm_lastcsvimport)") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("DELETE FROM rm_radacct WHERE username IN (SELECT username FROM rm_lastcsvimport)") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("DELETE FROM rm_dailyacct WHERE username IN (SELECT username FROM rm_lastcsvimport)") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("TRUNCATE TABLE rm_lastcsvimport") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_undocomplete")); 
} 
function _obfuscated_0D092A1B152630271F190D100E242422372C3D30121411_($error) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_createusers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = bulkimport_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_3F2E064001_($file) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_createusers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = bg_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_2D300E230101_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        if (file_exists($_obfuscated_22_)) { 
            $_obfuscated_0D160E031C06283838121F3705230B393E02293E083E01_ = fopen($_obfuscated_22_, "r"); 
            if (!$_obfuscated_0D160E031C06283838121F3705230B393E02293E083E01_) { 
                exit("" . "Can't open " . $_obfuscated_22_); 
            } 
            $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
            $res = mysql_query("TRUNCATE TABLE rm_lastcsvimport") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            print $_obfuscated_2D300E230101_; 
            echo str_pad("", 1024); 
            $_obfuscated_1E102C2A11_ = 1; 
            $j = 0; 
            while ($_obfuscated_3F2A0F320F2A360B04400C01_ = fgets($_obfuscated_0D160E031C06283838121F3705230B393E02293E083E01_)) { 
                list($username, $_obfuscated_0D2C07173D252D0F0B09161124302C1D04344018333D22_, $_obfuscated_0D253D0825061834362D1D1D3C345B0F1B190F021B3132_, $_obfuscated_0D18371C172203170B23220A0E3F342F32071B1A382122_, $address, $_obfuscated_0D270740041E3F0928263B344032171F0A341D07362C11_, $_obfuscated_1535143F362A0426310E302A32_, $_obfuscated_0D0B38091F3C18123B100633270B27031D280528082832_, $_obfuscated_0D091D33133305280501360A312E030A3C2D300E182E11_, $_obfuscated_0D3D04013113325B5B04253326073F35380D3C1A0E2501_, $_obfuscated_2D1A0D2839352927182F32_, $_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, $_obfuscated_0D390618122823102639151F343B3F3605223614371D11_, $_obfuscated_0D1F2A0B283D0F210D355B300A3B3C261E272102343422_, $_obfuscated_0D2A3E13390E1B19401B2829040D2B2A25011C0B220411_, $_obfuscated_0D0C3B05121510070F2E321F2C342D1126132C08161A01_, $_obfuscated_0D24163F0B403F0A0C04325B17380B2B0D0216250D1B11_, $_obfuscated_0D2F310702030C0F2B31091C1A3D3C212521170A123322_, $_obfuscated_0D271535191D2E402D5B0F0233045B3C2D0C1A29162232_, $_obfuscated_1E140E2A391301_, $_obfuscated_0D142C400221030C13062D0C24241F1414101D32112611_, $_obfuscated_0D06162F382215363F10113C240823312B3B361D080F32_, $_obfuscated_0D1403250D2F063B11121F27301A280D26292616220C11_, $_obfuscated_0D1A2F1228311B0509282238130E361F1336323E3C1922_, $_obfuscated_0D0C2C340329232F1236313C31232E0722262403281A01_) = split(";", trim($_obfuscated_3F2A0F320F2A360B04400C01_)); 
                $username = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_(strtolower($username)); 
                $_obfuscated_0D2C07173D252D0F0B09161124302C1D04344018333D22_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D2C07173D252D0F0B09161124302C1D04344018333D22_); 
                $_obfuscated_0D253D0825061834362D1D1D3C345B0F1B190F021B3132_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D253D0825061834362D1D1D3C345B0F1B190F021B3132_); 
                $_obfuscated_0D18371C172203170B23220A0E3F342F32071B1A382122_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D18371C172203170B23220A0E3F342F32071B1A382122_); 
                $address = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($address); 
                $_obfuscated_0D270740041E3F0928263B344032171F0A341D07362C11_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D270740041E3F0928263B344032171F0A341D07362C11_); 
                $_obfuscated_1535143F362A0426310E302A32_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_1535143F362A0426310E302A32_); 
                $_obfuscated_0D0B38091F3C18123B100633270B27031D280528082832_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D0B38091F3C18123B100633270B27031D280528082832_); 
                $_obfuscated_0D091D33133305280501360A312E030A3C2D300E182E11_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D091D33133305280501360A312E030A3C2D300E182E11_); 
                $_obfuscated_0D3D04013113325B5B04253326073F35380D3C1A0E2501_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D3D04013113325B5B04253326073F35380D3C1A0E2501_); 
                $_obfuscated_2D1A0D2839352927182F32_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_2D1A0D2839352927182F32_); 
                $_obfuscated_1D3C3209161C2A0D120F0D11_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_1D3C3209161C2A0D120F0D11_); 
                $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_(strtolower($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_)); 
                $_obfuscated_0D390618122823102639151F343B3F3605223614371D11_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D390618122823102639151F343B3F3605223614371D11_); 
                $_obfuscated_0D1F2A0B283D0F210D355B300A3B3C261E272102343422_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D1F2A0B283D0F210D355B300A3B3C261E272102343422_); 
                $_obfuscated_0D2A3E13390E1B19401B2829040D2B2A25011C0B220411_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D2A3E13390E1B19401B2829040D2B2A25011C0B220411_); 
                $_obfuscated_0D0C3B05121510070F2E321F2C342D1126132C08161A01_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D0C3B05121510070F2E321F2C342D1126132C08161A01_); 
                $_obfuscated_0D24163F0B403F0A0C04325B17380B2B0D0216250D1B11_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D24163F0B403F0A0C04325B17380B2B0D0216250D1B11_); 
                $_obfuscated_0D2F310702030C0F2B31091C1A3D3C212521170A123322_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D2F310702030C0F2B31091C1A3D3C212521170A123322_); 
                $_obfuscated_0D271535191D2E402D5B0F0233045B3C2D0C1A29162232_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D271535191D2E402D5B0F0233045B3C2D0C1A29162232_); 
                $_obfuscated_1E140E2A391301_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_1E140E2A391301_); 
                $_obfuscated_0D142C400221030C13062D0C24241F1414101D32112611_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D142C400221030C13062D0C24241F1414101D32112611_); 
                $_obfuscated_0D06162F382215363F10113C240823312B3B361D080F32_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D06162F382215363F10113C240823312B3B361D080F32_); 
                $_obfuscated_0D1403250D2F063B11121F27301A280D26292616220C11_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D1403250D2F063B11121F27301A280D26292616220C11_); 
                $_obfuscated_0D1A2F1228311B0509282238130E361F1336323E3C1922_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D1A2F1228311B0509282238130E361F1336323E3C1922_); 
                $_obfuscated_0D0C2C340329232F1236313C31232E0722262403281A01_ = _obfuscated_0D0E025C3D0C382A1B1F062F373630160D24141F321D01_($_obfuscated_0D0C2C340329232F1236313C31232E0722262403281A01_); 
                if ($_obfuscated_0D0C2C340329232F1236313C31232E0722262403281A01_ == "") { 
                    $_obfuscated_0D0C2C340329232F1236313C31232E0722262403281A01_ = 1; 
                } 
                if ($_obfuscated_0D24163F0B403F0A0C04325B17380B2B0D0216250D1B11_ == "") { 
                    $_obfuscated_0D24163F0B403F0A0C04325B17380B2B0D0216250D1B11_ = date("Y-m-d"); 
                } 
                $_obfuscated_0D142C400221030C13062D0C24241F1414101D32112611_ = _obfuscated_0D0A1636103430181206321F3E380D283D1D153B031632_($_obfuscated_0D142C400221030C13062D0C24241F1414101D32112611_); 
                $res = mysql_query("" . "SELECT username FROM rm_users
                        WHERE username = '" . $username . "'
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                if (0 < mysql_num_rows($res)) { 
                    print "<b>" . $_obfuscated_1E102C2A11_++ . "" . ". " . $username . " (" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_acc_exists") . ")</b><br>"; 
                    continue; 
                } 
                $_obfuscated_1132062F2D3B0E3825152532_ = "" . "INSERT INTO rm_users (username, password, firstname, lastname, address, city, zip, country, state,
	      company, phone, mobile, email, srvid, mac, staticipcpe, ipmodecpe, expiration, downlimit, uplimit,
	      comblimit, uptimelimit, comment, enableuser, owner, groupid, createdon)
              VALUES ('" . $username . "', MD5('" . $_obfuscated_0D2C07173D252D0F0B09161124302C1D04344018333D22_ . "'), '" . $_obfuscated_0D253D0825061834362D1D1D3C345B0F1B190F021B3132_ . "', '" . $_obfuscated_0D18371C172203170B23220A0E3F342F32071B1A382122_ . "', '" . $address . "', '" . $_obfuscated_0D270740041E3F0928263B344032171F0A341D07362C11_ . "', '" . $_obfuscated_1535143F362A0426310E302A32_ . "',
              '" . $_obfuscated_0D0B38091F3C18123B100633270B27031D280528082832_ . "', '" . $_obfuscated_0D091D33133305280501360A312E030A3C2D300E182E11_ . "', '" . $_obfuscated_0D3D04013113325B5B04253326073F35380D3C1A0E2501_ . "', '" . $_obfuscated_2D1A0D2839352927182F32_ . "', '" . $_obfuscated_1D3C3209161C2A0D120F0D11_ . "', '" . $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ . "', '" . $_obfuscated_0D390618122823102639151F343B3F3605223614371D11_ . "', '" . $_obfuscated_0D1F2A0B283D0F210D355B300A3B3C261E272102343422_ . "', '" . $_obfuscated_0D2A3E13390E1B19401B2829040D2B2A25011C0B220411_ . "',
              '" . $_obfuscated_0D0C3B05121510070F2E321F2C342D1126132C08161A01_ . "', '" . $_obfuscated_0D24163F0B403F0A0C04325B17380B2B0D0216250D1B11_ . "', '" . $_obfuscated_0D2F310702030C0F2B31091C1A3D3C212521170A123322_ . "', '" . $_obfuscated_0D271535191D2E402D5B0F0233045B3C2D0C1A29162232_ . "', '" . $_obfuscated_1E140E2A391301_ . "', '" . $_obfuscated_0D142C400221030C13062D0C24241F1414101D32112611_ . "', '" . $_obfuscated_0D06162F382215363F10113C240823312B3B361D080F32_ . "',
              '" . $_obfuscated_0D0C2C340329232F1236313C31232E0722262403281A01_ . "', '" . $_obfuscated_0D1403250D2F063B11121F27301A280D26292616220C11_ . "', '" . $_obfuscated_0D1A2F1228311B0509282238130E361F1336323E3C1922_ . "', NOW() )
             "; 
                $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $res = mysql_query("" . "INSERT INTO radcheck (username, attribute, op, value)
                        VALUES ('" . $username . "', 'Cleartext-Password', ':=', '" . $_obfuscated_0D2C07173D252D0F0B09161124302C1D04344018333D22_ . "')
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $res = mysql_query("" . "INSERT INTO radcheck (username, attribute, op, value)
                        VALUES ('" . $username . "', 'Simultaneous-Use', ':=', 1)
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $res = mysql_query("" . "INSERT INTO rm_lastcsvimport (username)
                        VALUES ('" . $username . "')
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $j++; 
                print $_obfuscated_1E102C2A11_++ . "" . ". " . $username . "<br>"; 
                echo str_pad("", 4096) . "
"; 
                flush(); 
            } 
            print "<br>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_importcomplete") . " " . $j . "<br><br>"; 
            print "<a href=\"admin.php\">" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_home") . "</a>"; 
            print "</body></html>"; 
            _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_bulkimport_completed, $j); 
            exit; 
        } 
        return _obfuscated_0D092A1B152630271F190D100E242422372C3D30121411_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_nofile")); 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_3C063B30070D241B0330052A0321102C32_() 
{ 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = home_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_2D300E230101_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0D24163F0B403F0A0C04325B17380B2B0D0216250D1B11_ = _obfuscated_0D24173B300417260126080E210E3D30110F2703372D11_(modkey_expiration); 
        if ($_obfuscated_0D24163F0B403F0A0C04325B17380B2B0D0216250D1B11_ == 0 - 1) { 
            $_obfuscated_0D5B2B35302124153E2C25020A3B02211405192C1E0332_ = ""; 
        } else { 
            $_obfuscated_0D5B2B35302124153E2C25020A3B02211405192C1E0332_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_trial_expires") . " " . _obfuscated_0D252A0F1119382D3F11273D1F3013273711132A2C1322_($_obfuscated_0D24163F0B403F0A0C04325B17380B2B0D0216250D1B11_); 
        } 
        $_obfuscated_2D300E230101_ = str_replace("{TRIAL}", $_obfuscated_0D5B2B35302124153E2C25020A3B02211405192C1E0332_, $_obfuscated_2D300E230101_); 
        return $_obfuscated_2D300E230101_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_3311_($username, $enableuser, $srvid, $password1, $password2, $mac, $usemacauth, $firstname, $lastname, $company, $phone, $mobile, $email, $address, $city, $zip, $country, $state, $downlimit, $uplimit, $comblimit, $expiration, $uptimelimit, $comment, $staticipcm, $staticipcpe, $ipmodecm, $ipmodecpe, $simuse, $credits, $cardfails, $taxid, $cnic, $maccm, $warningsent, $verified, $verifyfails, $changepsw, $owner, $verifysentnum, $groupid, $custattr, $poolidcm, $poolidcpe, $contractid, $contractvalid, $pswactsmsnum, $gpslong, $gpslat, $alertemail, $alertsms, $lang, $delcnic1, $delcnic2, $autorenew, $macpswmode, $error) 
{ 
    global $countrylist; 
    global $stateslist; 
    $username = str_replace(" ", "", $username); 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = edituser_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("" . "SELECT rm_services.srvid, rm_services.srvname, rm_services.srvtype
  		      FROM rm_services
  		      LEFT JOIN rm_allowedmanagers ON rm_allowedmanagers.srvid = rm_services.srvid
  		      WHERE enableservice = 1 AND rm_allowedmanagers.managername = '" . $_obfuscated_22_ . "'
  		      ORDER BY srvname
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        for ($_obfuscated_1E102C2A11_ = 0; $row = mysql_fetch_array($res); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][0] = $row[0]; 
            $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][1] = $row[1]; 
            $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][2] = $row[2]; 
        } 
        $res = mysql_query("" . "SELECT enableuser, password, mac, usemacauth, firstname, lastname, company, phone,
		      mobile, address, city, zip, country, state, srvid, downlimit, uplimit, comblimit,
		      expiration, uptimelimit, comment, staticipcm, staticipcpe, ipmodecm, ipmodecpe, 
		      credits, cardfails, taxid, maccm, email, warningsent, verified, verifyfails, owner,
		      verifymobile, verifysentnum, groupid, custattr, poolidcm, poolidcpe, acctype,
		      createdon, createdby, verifycode, selfreg, contractid, contractvalid, pswactsmsnum,
		      gpslong, gpslat, alertemail, alertsms, lang, cnic, autorenew, macpswmode
                      FROM rm_users
                      WHERE username = '" . $username . "'
                     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        if (mysql_num_rows($res) == 0) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_user_not_found")); 
        } 
        $row = mysql_fetch_array($res); 
        $_obfuscated_1B01242F0F25053422_ = $row["acctype"]; 
        $_obfuscated_0D3706303909392B0330183740270D40320A0715292532_ = $row["createdon"]; 
        $_obfuscated_0D1F321C2801372E3E042F08390C17311F2D251D3F0522_ = $row["createdby"]; 
        $_obfuscated_332422_ = $row["verifycode"]; 
        $_obfuscated_0D1E2B16350B28381D352703280D23260D1A290B103C01_ = $row["selfreg"]; 
        if ($_obfuscated_0D1F321C2801372E3E042F08390C17311F2D251D3F0522_ == "") { 
            $_obfuscated_0D1F321C2801372E3E042F08390C17311F2D251D3F0522_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
            $enableuser = $row["enableuser"]; 
            $mac = $row["mac"]; 
            $usemacauth = $row["usemacauth"]; 
            $firstname = $row["firstname"]; 
            $lastname = $row["lastname"]; 
            $company = $row["company"]; 
            $_obfuscated_2D1A0D2839352927182F32_ = $row["phone"]; 
            $_obfuscated_1D3C3209161C2A0D120F0D11_ = $row["mobile"]; 
            $address = $row["address"]; 
            $city = $row["city"]; 
            $_obfuscated_1535143F362A0426310E302A32_ = $row["zip"]; 
            $country = $row["country"]; 
            $state = $row["state"]; 
            $srvid = $row["srvid"]; 
            $downlimit = $row["downlimit"]; 
            $uplimit = $row["uplimit"]; 
            $comblimit = $row["comblimit"]; 
            $expiration = $row["expiration"]; 
            $_obfuscated_053601_ = $row["uptimelimit"]; 
            $comment = $row["comment"]; 
            $staticipcm = $row["staticipcm"]; 
            $staticipcpe = $row["staticipcpe"]; 
            $ipmodecm = $row["ipmodecm"]; 
            $ipmodecpe = $row["ipmodecpe"]; 
            $_obfuscated_22141931381B11_ = $row["credits"]; 
            $cardfails = $row["cardfails"]; 
            $taxid = $row["taxid"]; 
            $maccm = $row["maccm"]; 
            $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ = $row["email"]; 
            $_obfuscated_0B333C25362602011C11_ = $row["warningsent"]; 
            $verified = $row["verified"]; 
            $verifyfails = $row["verifyfails"]; 
            $owner = $row["owner"]; 
            $_obfuscated_0D2E052A405B17042A3E055B35054032242C3E242C0401_ = $row["verifymobile"]; 
            $_obfuscated_11_ = $row["verifysentnum"]; 
            $groupid = $row["groupid"]; 
            $custattr = $row["custattr"]; 
            $poolidcm = $row["poolidcm"]; 
            $poolidcpe = $row["poolidcpe"]; 
            $contractid = $row["contractid"]; 
            $contractvalid = $row["contractvalid"]; 
            $pswactsmsnum = $row["pswactsmsnum"]; 
            $_obfuscated_3122_ = $row["gpslong"]; 
            $_obfuscated_01_ = $row["gpslat"]; 
            $_obfuscated_1F0E133D261E0D171F1E3F01320601_ = $row["alertemail"]; 
            $alertsms = $row["alertsms"]; 
            $lang = $row["lang"]; 
            $_obfuscated_3C5B18380E020614373516212311_ = $row["cnic"]; 
            $autorenew = $row["autorenew"]; 
            $macpswmode = $row["macpswmode"]; 
            $res = mysql_query("" . "SELECT value
	    		FROM radcheck
	    		WHERE username = '" . $username . "' AND attribute = 'simultaneous-use'
	    	       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            if (mysql_num_rows($res) == 1) { 
                $row = mysql_fetch_array($res); 
                $simuse = $row[0]; 
            } 
            $res = mysql_query("" . "SELECT value
    		        FROM radcheck
    		        WHERE username = '" . $username . "' AND attribute = 'cleartext-password'
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            if (mysql_num_rows($res) == 1) { 
                $row = mysql_fetch_array($res); 
                $password1 = $row[0]; 
                $password2 = $row[0]; 
            } 
        } 
        if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis && !_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_docsis)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mod_unavailable")); 
        } 
        if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
            $_obfuscated_0D1D0F310525162D1E3313271440375B320D030A0A1D11_ = POOLTYPE_DOCSIS; 
        } else { 
            $_obfuscated_0D1D0F310525162D1E3313271440375B320D030A0A1D11_ = POOLTYPE_RADIUS; 
        } 
        $res = mysql_query("" . "SELECT id, name
  	  	      FROM rm_ippools
  	  	      WHERE type = '" . $_obfuscated_0D1D0F310525162D1E3313271440375B320D030A0A1D11_ . "'
  	  	      ORDER BY name
  	  	     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        for ($_obfuscated_1E102C2A11_ = 0; $row = mysql_fetch_array($res); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][0] = $row[0]; 
            $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][1] = $row[1]; 
        } 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_allusers") && $_SESSION["AUTH_MANAGER"] != $owner) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_not_own_user")); 
        } 
        if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis && _obfuscated_0D31040B2D181B29403B0C0521250B072F5B22250C2822_($username)) { 
            $_obfuscated_0D0917373901_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_online"); 
            $_obfuscated_0D5B1A230C1022192D2D2A0E081A31142A2B1933111C11_ = col_user_online; 
            $_obfuscated_2C0A233E351D15260A2A3D2E1D3F38221E2622_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } else { 
            $res = mysql_query("" . "SELECT framedipaddress, callingstationid, nasipaddress
    		      FROM radacct
    		      WHERE AcctStopTime IS NULL AND UserName = '" . $username . "'
    		      ORDER BY acctstarttime DESC
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            if (0 < mysql_num_rows($res)) { 
                while ($row = mysql_fetch_array($res)) { 
                    $_obfuscated_2C0A233E351D15260A2A3D2E1D3F38221E2622_ .= $row[0] . "<br>"; 
                    $_obfuscated_0F183B32_ = strtolower($row["callingstationid"]); 
                } 
                $_obfuscated_0D0917373901_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_online"); 
                $_obfuscated_0D5B1A230C1022192D2D2A0E081A31142A2B1933111C11_ = col_user_online; 
            } else { 
                $_obfuscated_2C0A233E351D15260A2A3D2E1D3F38221E2622_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
                $_obfuscated_0D0917373901_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_offline"); 
                $_obfuscated_0D5B1A230C1022192D2D2A0E081A31142A2B1933111C11_ = ""; 
            } 
        } 
        $res = mysql_query("" . "SELECT callingstationid, shortname, id
  		      FROM radacct, nas
  		      WHERE radacct.acctstoptime IS NULL AND radacct.username = '" . $username . "' AND
  		      nas.nasname = radacct.nasipaddress
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        if (mysql_num_rows($res) == 0) { 
            $_obfuscated_0D0308362C3E3D09101B011B0F1023180236162E371101_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } else { 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_0D16060C3B0422073D0D0C09312A1A13101424332A2D22_ = strtolower($row[0]); 
                $_obfuscated_2C182B072801_ = $row[1]; 
                $_obfuscated_0D3C3625293D290B0A04363D073B170A2D0B0305133101_ = $row[2]; 
                $_obfuscated_0D0308362C3E3D09101B011B0F1023180236162E371101_ .= "<div onClick=\"showGraph('" . $_obfuscated_0D16060C3B0422073D0D0C09312A1A13101424332A2D22_ . "')\"><a href=\"#\">" . $_obfuscated_0D16060C3B0422073D0D0C09312A1A13101424332A2D22_ . "</a></div>"; 
                $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ .= "<a href='admin.php?cont=edit_nas&id=" . $_obfuscated_0D3C3625293D290B0A04363D073B170A2D0B0305133101_ . "'>" . $_obfuscated_2C182B072801_ . "</a><br>"; 
            } 
        } 
        if (!$changepsw) { 
            $_obfuscated_330922_ = "disabled"; 
            $_obfuscated_0D2E17062B3F3F5B31182930402A1911372A40091E1A22_ = "disabled"; 
        } 
        $_obfuscated_0D100D18192238071C123625213E2A0B142A3637182532_ = "" . "<a href='admin.php?cont=traffic_report&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_trafficreport") . "</a>"; 
        $_obfuscated_0D2A2B3102042A5B0632360E2D2E332426170A1E193332_ = "" . "<a href='admin.php?cont=traffic_report_daily&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_trafrepdly") . "</a>"; 
        $_obfuscated_0D390A1A2D1513301630142E04311439033E1F03240F11_ = "" . "<a href='admin.php?cont=search_cts_data&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listconn") . "</a>"; 
        $_obfuscated_0D111A0B37070A183D30043212140D2502333B09273F01_ = "" . "<a href='admin.php?cont=show_add_credits&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_addcredits") . "</a>"; 
        $_obfuscated_0D370D1C1F2F402D132D13341C183C31265B141E0C1732_ = "" . "<a href='admin.php?cont=show_add_deposit&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_addmoney") . "</a>"; 
        $_obfuscated_0D1D3613270716385B1C242D3919152B0F3737330B3D11_ = "" . "<a href='admin.php?cont=postpaid_billing&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_postpaidbilling") . "</a>"; 
        $_obfuscated_0C251D01_ = "" . "<a href='admin.php?cont=list_invoices&issuedfor=" . $username . "&invgroup=0&lastpage=true'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listinvoices") . "</a>"; 
        $_obfuscated_0D1C32321D3B3B11391A1916245B212107233B12255B11_ = "" . "<a href='admin.php?cont=show_change_service&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_chgsrv") . "</a>"; 
        $_obfuscated_0D15163410162231191940171611181313221F39050901_ = "" . "<a href='admin.php?cont=list_service_history&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listsrvhistory") . "</a>"; 
        $_obfuscated_1E10212137382C1E32_ = "" . "<a href='admin.php?cont=list_postauth&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listpostauth") . "</a>"; 
        $_obfuscated_32_ = "" . "<a href='admin.php?cont=confirm_disconn_user&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_disconnuser") . "</a>"; 
        $_obfuscated_3216263F3B021011_ = "" . "<a href='admin.php?cont=confirm_del_user&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_deluser") . "</a>"; 
        $_obfuscated_2D0A1B0F031D321211290F1A11_ = "" . "<a href='admin.php?cont=show_email&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_sendemail") . "</a>"; 
        $_obfuscated_0D1321054024210B2B2C2A34183B0D040C383D2F172C11_ = "" . "<a href='admin.php?cont=show_sms&username=" . $username . "'>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_sendsms") . "</a>"; 
        $_obfuscated_353728040A03271601023801_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        switch ($_obfuscated_1B01242F0F25053422_) { 
            case acctype_regular: 
                $_obfuscated_22_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acctype_regular"); 
                $expiration = substr($expiration, 0, 10); 
                $_obfuscated_0D3C0C11085B3E2622250538070312072622333C180911_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yymmdd"); 
                $_obfuscated_0D1F0D0F11213B11061F220714032E263202020F363D01_ = "disabled"; 
                $_obfuscated_0D280C252A0E081D32031E21073824161B3230033D0601_ = "disabled"; 
                $_obfuscated_0D07121A18312B23243E0412222F1E2F1E03131F1C3101_ = "disabled"; 
                $_obfuscated_361522_ = "disabled"; 
                if (!$_obfuscated_0D1E2B16350B28381D352703280D23260D1A290B103C01_) { 
                    $_obfuscated_0C2A1211_ = "disabled"; 
                    $_obfuscated_0D381D2E0C051137232C3F10060D2E2D242B033D3F2F32_ = "disabled"; 
                    $_obfuscated_09012A11_ = "disabled"; 
                } 
                break; 
            case acctype_maconly: 
                $_obfuscated_22_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acctype_maconly"); 
                $expiration = substr($expiration, 0, 10); 
                $_obfuscated_0D3C0C11085B3E2622250538070312072622333C180911_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yymmdd"); 
                $_obfuscated_0D393425392C041F0A062118151C37343C311535223611_ = "disabled"; 
                $_obfuscated_2C01_ = "disabled"; 
                $_obfuscated_09012A11_ = "disabled"; 
                $_obfuscated_0C2A1211_ = "disabled"; 
                $_obfuscated_0D381D2E0C051137232C3F10060D2E2D242B033D3F2F32_ = "disabled"; 
                $_obfuscated_0D1F0D0F11213B11061F220714032E263202020F363D01_ = "disabled"; 
                $_obfuscated_0D280C252A0E081D32031E21073824161B3230033D0601_ = "disabled"; 
                $_obfuscated_0D07121A18312B23243E0412222F1E2F1E03131F1C3101_ = "disabled"; 
                break; 
            case acctype_carduser: 
                $_obfuscated_0D111A0B37070A183D30043212140D2502333B09273F01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_addcredits"); 
                $_obfuscated_0D370D1C1F2F402D132D13341C183C31265B141E0C1732_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_addmoney"); 
                $_obfuscated_0D1D3613270716385B1C242D3919152B0F3737330B3D11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_postpaidbilling"); 
                $_obfuscated_0C251D01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listinvoices"); 
                $_obfuscated_0D15163410162231191940171611181313221F39050901_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listsrvhistory"); 
                $_obfuscated_0D3C0C11085B3E2622250538070312072622333C180911_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yymmddhhmmss"); 
                $_obfuscated_22_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acctype_carduser"); 
                $_obfuscated_0D192E381122053D1A1B350E0D16051F241B3E1E2F1A32_ = "disabled"; 
                $_obfuscated_0B3C381B2A321D372C075B211222010A361B3711_ = "disabled"; 
                $_obfuscated_363E3001_ = "disabled"; 
                $_obfuscated_0D1F0D0F11213B11061F220714032E263202020F363D01_ = "disabled"; 
                $_obfuscated_0D280C252A0E081D32031E21073824161B3230033D0601_ = "disabled"; 
                $_obfuscated_0D07121A18312B23243E0412222F1E2F1E03131F1C3101_ = "disabled"; 
                $_obfuscated_361522_ = "disabled"; 
                $res = mysql_query("" . "SELECT series
      		      FROM rm_cards
      		      WHERE cardnum = '" . $username . "'
      		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                if (0 < mysql_num_rows($res)) { 
                    $row = mysql_fetch_array($res); 
                    $_obfuscated_353728040A03271601023801_ = $row[0]; 
                } 
                break; 
            case acctype_ias: 
                $_obfuscated_22_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acctype_ias"); 
                $_obfuscated_0D111A0B37070A183D30043212140D2502333B09273F01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_addcredits"); 
                $_obfuscated_0D370D1C1F2F402D132D13341C183C31265B141E0C1732_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_addmoney"); 
                $_obfuscated_0D1D3613270716385B1C242D3919152B0F3737330B3D11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_postpaidbilling"); 
                $_obfuscated_0D15163410162231191940171611181313221F39050901_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listsrvhistory"); 
                $_obfuscated_0D3C0C11085B3E2622250538070312072622333C180911_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yymmddhhmmss"); 
                $_obfuscated_0D192E381122053D1A1B350E0D16051F241B3E1E2F1A32_ = "disabled"; 
                $_obfuscated_0B3C381B2A321D372C075B211222010A361B3711_ = "disabled"; 
                $_obfuscated_363E3001_ = "disabled"; 
                $_obfuscated_0D1F0D0F11213B11061F220714032E263202020F363D01_ = "disabled"; 
                $_obfuscated_0D280C252A0E081D32031E21073824161B3230033D0601_ = "disabled"; 
                $_obfuscated_0D07121A18312B23243E0412222F1E2F1E03131F1C3101_ = "disabled"; 
                $_obfuscated_361522_ = "disabled"; 
                break; 
            case acctype_aclmikrotik: 
                $_obfuscated_22_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acctype_aclmikrotik"); 
                $_obfuscated_0D100D18192238071C123625213E2A0B142A3637182532_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_trafficreport"); 
                $_obfuscated_0D2A2B3102042A5B0632360E2D2E332426170A1E193332_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_trafrepdly"); 
                $_obfuscated_0D111A0B37070A183D30043212140D2502333B09273F01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_addcredits"); 
                $_obfuscated_0D370D1C1F2F402D132D13341C183C31265B141E0C1732_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_addmoney"); 
                $_obfuscated_0D1D3613270716385B1C242D3919152B0F3737330B3D11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_postpaidbilling"); 
                $_obfuscated_0C251D01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listinvoices"); 
                $_obfuscated_0D1C32321D3B3B11391A1916245B212107233B12255B11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_chgsrv"); 
                $_obfuscated_0D390A1A2D1513301630142E04311439033E1F03240F11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listconn"); 
                $_obfuscated_0D3C0C11085B3E2622250538070312072622333C180911_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yymmdd"); 
                $_obfuscated_1E10212137382C1E32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listpostauth"); 
                $_obfuscated_0D151819313324271B10321E051A27092E17262D3E1D32_ = "disabled"; 
                $_obfuscated_0D393425392C041F0A062118151C37343C311535223611_ = "disabled"; 
                $_obfuscated_2C01_ = "disabled"; 
                $_obfuscated_0D23293F170527254038041532224022103313363B0932_ = "disabled"; 
                $_obfuscated_0D125B1F3B15235B1503013F390E101F231934011A0A22_ = "disabled"; 
                $_obfuscated_0D34153D0B3E090B141B38360D2D160C065B3712252911_ = "disabled"; 
                $_obfuscated_1105243B2E030E35351811_ = "disabled"; 
                $_obfuscated_162B32_ = "disabled"; 
                $_obfuscated_0D2D280B1E033B082A2A31180C09170D1C03033D362B01_ = "disabled"; 
                $_obfuscated_0D1123132B0F2A1A051A1C230C0A033F0C24241D3E2F11_ = "disabled"; 
                $_obfuscated_0D2211270C2E0435053E2E1C1B011C3F3C063C28051F11_ = "disabled"; 
                $_obfuscated_0D250E0F3403272C5B3F2B120314210D37092C10270E22_ = "disabled"; 
                $_obfuscated_0D1A183D03330C2D3C4030191B391C01331C13170C0201_ = "disabled"; 
                $_obfuscated_1C2816320B1729273E0B2C300422_ = "disabled"; 
                $_obfuscated_0D3603281F1119212F351405082B2128143338362E0422_ = "disabled"; 
                $_obfuscated_0D3C0D393E3E330E26243932160E0D165B19382C1D1611_ = "disabled"; 
                $_obfuscated_0D2F042739121C0B0E04253F0109181E24212813152801_ = "disabled"; 
                $_obfuscated_0D15163708161D10390B303E3725340F183C3F2F292411_ = "disabled"; 
                $_obfuscated_0D142C2B243F161A1B371A2136065B392117052B0B2F32_ = "disabled"; 
                $_obfuscated_0D10303F163615042C150F121B0B1216032D3C2D093601_ = "disabled"; 
                $_obfuscated_052D0C131315051E5B1A1501191A39210C3B1411_ = "disabled"; 
                $_obfuscated_0D322124013507033B2A3D0C232713402A230D08030411_ = "disabled"; 
                $_obfuscated_0D192E381122053D1A1B350E0D16051F241B3E1E2F1A32_ = "disabled"; 
                $_obfuscated_0B3C381B2A321D372C075B211222010A361B3711_ = "disabled"; 
                $_obfuscated_363E3001_ = "disabled"; 
                $_obfuscated_0D1025343D28270F2C16163326192A2B0524221D1B0C01_ = "disabled"; 
                $_obfuscated_09012A11_ = "disabled"; 
                $_obfuscated_0C2A1211_ = "disabled"; 
                $_obfuscated_0D381D2E0C051137232C3F10060D2E2D242B033D3F2F32_ = "disabled"; 
                $_obfuscated_0D1F0D0F11213B11061F220714032E263202020F363D01_ = "disabled"; 
                $_obfuscated_0D280C252A0E081D32031E21073824161B3230033D0601_ = "disabled"; 
                $_obfuscated_0D07121A18312B23243E0412222F1E2F1E03131F1C3101_ = "disabled"; 
                $_obfuscated_0532_ = "disabled"; 
                $_obfuscated_361522_ = "disabled"; 
                break; 
            case acctype_aclstaros: 
                $_obfuscated_22_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acctype_aclstaros"); 
                $_obfuscated_0D100D18192238071C123625213E2A0B142A3637182532_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_trafficreport"); 
                $_obfuscated_0D2A2B3102042A5B0632360E2D2E332426170A1E193332_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_trafrepdly"); 
                $_obfuscated_0D111A0B37070A183D30043212140D2502333B09273F01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_addcredits"); 
                $_obfuscated_0D370D1C1F2F402D132D13341C183C31265B141E0C1732_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_addmoney"); 
                $_obfuscated_0D1D3613270716385B1C242D3919152B0F3737330B3D11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_postpaidbilling"); 
                $_obfuscated_0C251D01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listinvoices"); 
                $_obfuscated_0D1C32321D3B3B11391A1916245B212107233B12255B11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_chgsrv"); 
                $_obfuscated_0D390A1A2D1513301630142E04311439033E1F03240F11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listconn"); 
                $_obfuscated_1E10212137382C1E32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listpostauth"); 
                $_obfuscated_0D3C0C11085B3E2622250538070312072622333C180911_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yymmdd"); 
                $_obfuscated_0D151819313324271B10321E051A27092E17262D3E1D32_ = "disabled"; 
                $_obfuscated_330922_ = "disabled"; 
                $_obfuscated_0D2E17062B3F3F5B31182930402A1911372A40091E1A22_ = "disabled"; 
                $_obfuscated_0D393425392C041F0A062118151C37343C311535223611_ = "disabled"; 
                $_obfuscated_2C01_ = "disabled"; 
                $_obfuscated_0D23293F170527254038041532224022103313363B0932_ = "disabled"; 
                $_obfuscated_0D125B1F3B15235B1503013F390E101F231934011A0A22_ = "disabled"; 
                $_obfuscated_0D34153D0B3E090B141B38360D2D160C065B3712252911_ = "disabled"; 
                $_obfuscated_1105243B2E030E35351811_ = "disabled"; 
                $_obfuscated_162B32_ = "disabled"; 
                $_obfuscated_0D2D280B1E033B082A2A31180C09170D1C03033D362B01_ = "disabled"; 
                $_obfuscated_0D1123132B0F2A1A051A1C230C0A033F0C24241D3E2F11_ = "disabled"; 
                $_obfuscated_0D2211270C2E0435053E2E1C1B011C3F3C063C28051F11_ = "disabled"; 
                $_obfuscated_0D250E0F3403272C5B3F2B120314210D37092C10270E22_ = "disabled"; 
                $_obfuscated_0D1A183D03330C2D3C4030191B391C01331C13170C0201_ = "disabled"; 
                $_obfuscated_1C2816320B1729273E0B2C300422_ = "disabled"; 
                $_obfuscated_0D3603281F1119212F351405082B2128143338362E0422_ = "disabled"; 
                $_obfuscated_0D3C0D393E3E330E26243932160E0D165B19382C1D1611_ = "disabled"; 
                $_obfuscated_0D2F042739121C0B0E04253F0109181E24212813152801_ = "disabled"; 
                $_obfuscated_0D15163708161D10390B303E3725340F183C3F2F292411_ = "disabled"; 
                $_obfuscated_0D142C2B243F161A1B371A2136065B392117052B0B2F32_ = "disabled"; 
                $_obfuscated_0D10303F163615042C150F121B0B1216032D3C2D093601_ = "disabled"; 
                $_obfuscated_052D0C131315051E5B1A1501191A39210C3B1411_ = "disabled"; 
                $_obfuscated_0D322124013507033B2A3D0C232713402A230D08030411_ = "disabled"; 
                $_obfuscated_0D192E381122053D1A1B350E0D16051F241B3E1E2F1A32_ = "disabled"; 
                $_obfuscated_0B3C381B2A321D372C075B211222010A361B3711_ = "disabled"; 
                $_obfuscated_363E3001_ = "disabled"; 
                $_obfuscated_0D1025343D28270F2C16163326192A2B0524221D1B0C01_ = "disabled"; 
                $_obfuscated_09012A11_ = "disabled"; 
                $_obfuscated_0C2A1211_ = "disabled"; 
                $_obfuscated_0D381D2E0C051137232C3F10060D2E2D242B033D3F2F32_ = "disabled"; 
                $_obfuscated_0D1F0D0F11213B11061F220714032E263202020F363D01_ = "disabled"; 
                $_obfuscated_0D280C252A0E081D32031E21073824161B3230033D0601_ = "disabled"; 
                $_obfuscated_0D07121A18312B23243E0412222F1E2F1E03131F1C3101_ = "disabled"; 
                $_obfuscated_0532_ = "disabled"; 
                $_obfuscated_361522_ = "disabled"; 
                break; 
            case acctype_docsis: 
                $_obfuscated_22_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acctype_docsis"); 
                $_obfuscated_1E10212137382C1E32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("href_listpostauth"); 
                $expiration = substr($expiration, 0, 10); 
                $_obfuscated_0D3C0C11085B3E2622250538070312072622333C180911_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yymmdd"); 
                $_obfuscated_0D125B1F3B15235B1503013F390E101F231934011A0A22_ = "disabled"; 
                $_obfuscated_0C2A1211_ = "disabled"; 
                $_obfuscated_0D381D2E0C051137232C3F10060D2E2D242B033D3F2F32_ = "disabled"; 
                $_obfuscated_09012A11_ = "disabled"; 
                $_obfuscated_361522_ = "disabled"; 
        } 
        $res = mysql_query("" . "SELECT downrate, uprate, limitdl, limitul, limitcomb, limitexpiration, limituptime
     		      FROM rm_services
     		      WHERE srvid = '" . $srvid . "'
     		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D0D1F122D1E3540012E1C0A390436093140052A2B2F22_ = $row[0]; 
        $_obfuscated_0A12281028363007141E17312B1A2C0532_ = $row[1]; 
        $_obfuscated_303D2D3304220803172B1C01_ = $row[2]; 
        $_obfuscated_0D10330F382627070C0622102B10100F36382D402D2D01_ = $row[3]; 
        $_obfuscated_041C1E0A090D2C22040F290F22_ = $row[4]; 
        $_obfuscated_340710082201161C293E02183001_ = $row[5]; 
        $_obfuscated_3D2D1216073E381526320F142D300C3B402F1901_ = $row[6]; 
        $res = mysql_query("" . "SELECT newsrvname, scheduledate
                      FROM rm_changesrv
                      WHERE username = '" . $username . "' AND status = 0
                     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        if (0 < mysql_num_rows($res)) { 
            $row = mysql_fetch_array($res); 
            $_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_ = $row[0]; 
            $_obfuscated_0D30350B09245B2706285B0D3F3E0811303309400F1722_ = $row[1]; 
        } else { 
            $_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            $_obfuscated_0D30350B09245B2706285B0D3F3E0811303309400F1722_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($countrylist); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ = $countrylist[$_obfuscated_1E102C2A11_][0]; 
            if ($country == $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_) { 
                $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "'>" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_ .= "" . "<OPTION value='" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "'>" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "</OPTION>"; 
            } 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($stateslist); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ = $stateslist[$_obfuscated_1E102C2A11_][0]; 
            if ($state == $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_) { 
                $_obfuscated_2D32_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "'>" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "</OPTION>"; 
            } else { 
                $_obfuscated_2D32_ .= "" . "<OPTION value='" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "'>" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "</OPTION>"; 
            } 
        } 
        $res = mysql_query("SELECT managername
  		      FROM rm_managers
  		      ORDER BY managername
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_22_ = $row[0]; 
            if ($owner == $_obfuscated_22_) { 
                $_obfuscated_0D0A14313B21232E3430043F34032E2A1E390708183332_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_22_ . "'>" . $_obfuscated_22_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D0A14313B21232E3430043F34032E2A1E390708183332_ .= "" . "<OPTION value='" . $_obfuscated_22_ . "'>" . $_obfuscated_22_ . "</OPTION>"; 
            } 
        } 
        $res = mysql_query("SELECT groupid, groupname
  		      FROM rm_usergroups
  		      ORDER BY groupname
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ = $row[0]; 
            $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ = $row[1]; 
            if ($groupid == $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_) { 
                $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ . "'>" . $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ .= "" . "<OPTION value='" . $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ . "'>" . $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ . "</OPTION>"; 
            } 
        } 
        if (_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editusers") && !_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_edituserspriv")) { 
            $_obfuscated_0D15163708161D10390B303E3725340F183C3F2F292411_ = "disabled"; 
            $_obfuscated_0D142C2B243F161A1B371A2136065B392117052B0B2F32_ = "disabled"; 
            $_obfuscated_0D10303F163615042C150F121B0B1216032D3C2D093601_ = "disabled"; 
            $_obfuscated_052D0C131315051E5B1A1501191A39210C3B1411_ = "disabled"; 
            $_obfuscated_0D322124013507033B2A3D0C232713402A230D08030411_ = "disabled"; 
            $_obfuscated_0D192E381122053D1A1B350E0D16051F241B3E1E2F1A32_ = "disabled"; 
            $_obfuscated_0D3B0433071B26363739230A181F2A0D28062E2B3F2E01_ = "disabled"; 
            $_obfuscated_0D2D37120C0C1E3F0A2E0B0516300C0605163914282C01_ = "disabled"; 
            $_obfuscated_0D361C0B2D1E3B3C33273115331E312D14021B23221E22_ = "disabled"; 
            $_obfuscated_0D1D1D0E193F010C3403090909370115061D2731061A01_ = "disabled"; 
            $_obfuscated_0D07121A18312B23243E0412222F1E2F1E03131F1C3101_ = "disabled"; 
            $_obfuscated_0D23293F170527254038041532224022103313363B0932_ = "disabled"; 
            $_obfuscated_0D125B1F3B15235B1503013F390E101F231934011A0A22_ = "disabled"; 
            $_obfuscated_0532_ = "disabled"; 
            $_obfuscated_0D27191E0C0E04150B010E133F28182E0B151938341432_ = "disabled"; 
            $_obfuscated_0D110F051D051E17403D5B271512122A0D1A2D2A2E1701_ = "disabled"; 
        } 
        if ($_obfuscated_0D2E052A405B17042A3E055B35054032242C3E242C0401_ == "") { 
            $_obfuscated_0D2E052A405B17042A3E055B35054032242C3E242C0401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } 
        $_obfuscated_0D15120D113F332F151709090C1D26392D4030161C0622_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        $_obfuscated_2B0B192135183B2B2A2F3E271522_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        $_obfuscated_0D404025152E241E15062D3310042D0D29292D11231301_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        $_obfuscated_0D280B3515042532230333332C3C06393712331C342601_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        $_obfuscated_0D1A31401B1931395B19090F05191F07192E321E263411_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        $_obfuscated_0D2A1E18280F2F2C0B4003371E082C1C33161C190D0A01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        $_obfuscated_29161726183237141901_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        $_obfuscated_0D0105271018090A2D1001_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        $_obfuscated_0D05402F39322D3C0A063C3430012A1223013F30100901_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
            $_obfuscated_2B0B192135183B2B2A2F3E271522_ = _obfuscated_0D1808312840222F0407311A3913052419173226332222_($username); 
            if ($_obfuscated_2B0B192135183B2B2A2F3E271522_ == "") { 
                $_obfuscated_2B0B192135183B2B2A2F3E271522_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } 
            $_obfuscated_0D404025152E241E15062D3310042D0D29292D11231301_ = _obfuscated_0D3C1939390D071703323B392A12130F0E3423032B0D11_($username); 
            if ($_obfuscated_0D404025152E241E15062D3310042D0D29292D11231301_ == "") { 
                $_obfuscated_0D404025152E241E15062D3310042D0D29292D11231301_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } 
            $_obfuscated_0D15120D113F332F151709090C1D26392D4030161C0622_ = _obfuscated_0D1A1711390E40302335242F301F2303183004090F1522_($username); 
            if ($_obfuscated_0D15120D113F332F151709090C1D26392D4030161C0622_ == "") { 
                $_obfuscated_0D15120D113F332F151709090C1D26392D4030161C0622_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } 
            $res = mysql_query("" . "SELECT snrds, snrus, rxpwr, txpwr, maccpe, ipcpe, pingtime, uptime, usifidx, ip, community
                        FROM rm_onlinecm, rm_cmts
                        WHERE username = '" . $username . "'
                        AND rm_onlinecm.cmtsid = rm_cmts.id
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            $row = mysql_fetch_array($res); 
            $_obfuscated_332617390C221B380B2311_ = $row["snrds"]; 
            $_obfuscated_390532_ = $row["snrus"]; 
            $_obfuscated_050C0118171C163D2632_ = $row["rxpwr"]; 
            $_obfuscated_0D5B013D1D131718081336390A3D0833360D0B0B293E32_ = $row["txpwr"]; 
            $_obfuscated_0D0B0C5B382F302D28213F173031133E16302640032301_ = $row["maccpe"]; 
            $_obfuscated_0D0704210738400A0C07375B293010023D093127192E11_ = $row["ipcpe"]; 
            $_obfuscated_0D323B12310611190F400113083D15312D1409120F3C32_ = $row["pingtime"]; 
            $_obfuscated_1032_ = $row["usifidx"]; 
            $_obfuscated_013B0D3318272311_ = $row["ip"]; 
            $_obfuscated_0D38261A19112B34371E30332F1E232B082B090C1D1511_ = $row["community"]; 
            if ($row["uptime"]) { 
                $_obfuscated_0D0105271018090A2D1001_ = $row["uptime"]; 
            } 
            $_obfuscated_0D280B3515042532230333332C3C06393712331C342601_ = $_obfuscated_332617390C221B380B2311_ . " dB"; 
            $_obfuscated_0D1A31401B1931395B19090F05191F07192E321E263411_ = $_obfuscated_390532_ . " dB"; 
            $_obfuscated_0D2A1E18280F2F2C0B4003371E082C1C33161C190D0A01_ = $_obfuscated_050C0118171C163D2632_ . " dB&micro;V"; 
            $_obfuscated_29161726183237141901_ = $_obfuscated_0D5B013D1D131718081336390A3D0833360D0B0B293E32_ . " dB&micro;V"; 
            if ($_obfuscated_0D323B12310611190F400113083D15312D1409120F3C32_) { 
                $_obfuscated_0D05402F39322D3C0A063C3430012A1223013F30100901_ = round($_obfuscated_0D323B12310611190F400113083D15312D1409120F3C32_, 1) . " ms"; 
            } 
        } 
        if (!$_obfuscated_0D0B0C5B382F302D28213F173031133E16302640032301_) { 
            $_obfuscated_0D0B0C5B382F302D28213F173031133E16302640032301_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } 
        if (!$_obfuscated_0D0704210738400A0C07375B293010023D093127192E11_) { 
            $_obfuscated_0D0704210738400A0C07375B293010023D093127192E11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } 
        _obfuscated_0D353C2B1D041B282E165B100501210635071636181322_($username, $_obfuscated_0D260D380440040E18161F31150217100F3E2428391E01_, $_obfuscated_0D3716363B1B273B1C3621341D15330F06241635211501_, $_obfuscated_0D402A2E23130B060D2A0C0A3C1E24060C2B3C1F2C2532_, $_obfuscated_0D1A302D2401271C2B152D363E34022F13210A2A1F3632_, $_obfuscated_0D40171204190E2F0C173F3B1D2B2E180C213F13143001_); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($_obfuscated_0D1A302D2401271C2B152D363E34022F13210A2A1F3632_); $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_0D1A302D2401271C2B152D363E34022F13210A2A1F3632_[$_obfuscated_1E102C2A11_]) { 
                $_obfuscated_0D2F22172A0E042B2E0E310B23010E0F03063537240E22_ .= "<a href='admin.php?cont=edit_ap&id=" . $_obfuscated_0D40171204190E2F0C173F3B1D2B2E180C213F13143001_[$_obfuscated_1E102C2A11_] . "'>" . $_obfuscated_0D1A302D2401271C2B152D363E34022F13210A2A1F3632_[$_obfuscated_1E102C2A11_] . "</a><br>"; 
            } 
        } 
        if (!$_obfuscated_0D2F22172A0E042B2E0E310B23010E0F03063537240E22_) { 
            $_obfuscated_0D2F22172A0E042B2E0E310B23010E0F03063537240E22_ .= _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } 
        _obfuscated_0D5C322F05151D12280E24233C2606213F131230172C22_($username, $_obfuscated_0D3036111B270A2B5B3015393B2D3C27030D122C0F2111_, $_obfuscated_0D1E16312F0E30021E063F180D3D361D19032340392901_, $_obfuscated_093422_, $_obfuscated_0D0816381B3B1537283603371F3B351D070F2301012B11_, $_obfuscated_0D0734045B300F2D1F170A0E010C0F3507253324160311_, $_obfuscated_0D321B1C30231111291F2809280A3E5B22241A023F2122_, $_obfuscated_25233533321F12375B163838061D2E33122A362D22_, $_obfuscated_31243833011F34103E2511_); 
        if (0 < $_obfuscated_0D0734045B300F2D1F170A0E010C0F3507253324160311_) { 
            $_obfuscated_0D3036111B270A2B5B3015393B2D3C27030D122C0F2111_ = _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D3036111B270A2B5B3015393B2D3C27030D122C0F2111_); 
        } else { 
            $_obfuscated_0D3036111B270A2B5B3015393B2D3C27030D122C0F2111_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_unlimited"); 
        } 
        if (0 < $_obfuscated_0D321B1C30231111291F2809280A3E5B22241A023F2122_) { 
            $_obfuscated_0D1E16312F0E30021E063F180D3D361D19032340392901_ = _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D1E16312F0E30021E063F180D3D361D19032340392901_); 
        } else { 
            $_obfuscated_0D1E16312F0E30021E063F180D3D361D19032340392901_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_unlimited"); 
        } 
        if (0 < $_obfuscated_25233533321F12375B163838061D2E33122A362D22_) { 
            $_obfuscated_093422_ = _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_093422_); 
        } else { 
            $_obfuscated_093422_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_unlimited"); 
        } 
        if (0 < $_obfuscated_31243833011F34103E2511_) { 
            $_obfuscated_0D0816381B3B1537283603371F3B351D070F2301012B11_ = _obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_0D0816381B3B1537283603371F3B351D070F2301012B11_); 
        } else { 
            $_obfuscated_0D0816381B3B1537283603371F3B351D070F2301012B11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_unlimited"); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USERNAME}", $username, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PASSWORD1}", $password1, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PASSWORD2}", $password2, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PSWCHARS}", rndchars, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FIRSTNAME}", $firstname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTNAME}", $lastname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMPANY}", $company, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TAXID}", $taxid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CNIC}", $_obfuscated_3C5B18380E020614373516212311_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EMAIL}", $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PHONE}", $_obfuscated_2D1A0D2839352927182F32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDRESS}", $address, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CITY}", $city, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ZIP}", $_obfuscated_1535143F362A0426310E302A32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COUNTRYLIST}", $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATESLIST}", $_obfuscated_2D32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENT}", $comment, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MACCM}", $maccm, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MAC}", $mac, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATICIPCM}", $staticipcm, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATICIPCPE}", $staticipcpe, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SIMUSE}", $simuse, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EXPIRATION}", $expiration, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EXPIRYTEXT}", $_obfuscated_0D3C0C11085B3E2622250538070312072622333C180911_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MOBILE}", $_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CREATEDON}", $_obfuscated_0D3706303909392B0330183740270D40320A0715292532_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CREDITS}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_22141931381B11_, false), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CURRENCY}", $GLOBALS["_currency"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CARDFAILS}", $cardfails, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{VERIFYFAILS}", $verifyfails, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CREATEDBY}", $_obfuscated_0D1F321C2801372E3E042F08390C17311F2D251D3F0522_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STRACCTYPE}", $_obfuscated_22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ACCTYPE}", $_obfuscated_1B01242F0F25053422_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CURRIP}", $_obfuscated_2C0A233E351D15260A2A3D2E1D3F38221E2622_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ONLINESTAT}", $_obfuscated_0D0917373901_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CALLERID}", $_obfuscated_0D0308362C3E3D09101B011B0F1023180236162E371101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{NASNAME}", $_obfuscated_0617153D3617173D032E37232D223D0B320C01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_ONLINESTATUS}", $_obfuscated_0D5B1A230C1022192D2D2A0E081A31142A2B1933111C11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CARDSER}", $_obfuscated_353728040A03271601023801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DELUSER}", $_obfuscated_3216263F3B021011_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{AUTHLOG}", $_obfuscated_1E10212137382C1E32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DISCONN}", $_obfuscated_32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICREPORT}", $_obfuscated_0D100D18192238071C123625213E2A0B142A3637182532_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFREPDLY}", $_obfuscated_0D2A2B3102042A5B0632360E2D2E332426170A1E193332_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LISTINVOICES}", $_obfuscated_0C251D01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDCREDITS}", $_obfuscated_0D111A0B37070A183D30043212140D2502333B09273F01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{POSTPAIDBILLING}", $_obfuscated_0D1D3613270716385B1C242D3919152B0F3737330B3D11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHGSRV}", $_obfuscated_0D1C32321D3B3B11391A1916245B212107233B12255B11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LISTSRVHISTORY}", $_obfuscated_0D15163410162231191940171611181313221F39050901_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LISTCONN}", $_obfuscated_0D390A1A2D1513301630142E04311439033E1F03240F11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDMONEY}", $_obfuscated_0D370D1C1F2F402D132D13341C183C31265B141E0C1732_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SENDEMAIL}", $_obfuscated_2D0A1B0F031D321211290F1A11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SENDSMS}", $_obfuscated_0D1321054024210B2B2C2A34183B0D040C383D2F172C11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{NEWSRVNAME}", $_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SCHEDULEDATE}", $_obfuscated_0D30350B09245B2706285B0D3F3E0811303309400F1722_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{APNAME}", $_obfuscated_0D2F22172A0E042B2E0E310B23010E0F03063537240E22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMTS}", $_obfuscated_0D15120D113F332F151709090C1D26392D4030161C0622_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DOWNSTREAM}", $_obfuscated_2B0B192135183B2B2A2F3E271522_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPSTREAM}", $_obfuscated_0D404025152E241E15062D3310042D0D29292D11231301_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMSNRDS}", $_obfuscated_0D280B3515042532230333332C3C06393712331C342601_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMSNRUS}", $_obfuscated_0D1A31401B1931395B19090F05191F07192E321E263411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMRXPWR}", $_obfuscated_0D2A1E18280F2F2C0B4003371E082C1C33161C190D0A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMTXPWR}", $_obfuscated_29161726183237141901_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMUPTIME}", $_obfuscated_0D0105271018090A2D1001_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMPINGTIME}", $_obfuscated_0D05402F39322D3C0A063C3430012A1223013F30100901_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMCPEMAC}", $_obfuscated_0D0B0C5B382F302D28213F173031133E16302640032301_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMCPEIP}", $_obfuscated_0D0704210738400A0C07375B293010023D093127192E11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{OWNERSLIST}", $_obfuscated_0D0A14313B21232E3430043F34032E2A1E390708183332_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GROUPLIST}", $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{VERIFYMOBILE}", $_obfuscated_0D2E052A405B17042A3E055B35054032242C3E242C0401_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{VERIFYSENTNUM}", $_obfuscated_11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PSWACTSMSNUM}", $pswactsmsnum, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CUSTATTR}", $custattr, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CONTRACTID}", $contractid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CONTRACTVALID}", $contractvalid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GPSLONG}", _obfuscated_0D3B12271634040D1C11061901221334032E3708400D22_($_obfuscated_3122_), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GPSLAT}", _obfuscated_0D3B12271634040D1C11061901221334032E3708400D22_($_obfuscated_01_), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INVSTAT}", _obfuscated_0D29072A103401082F352429302A142D4013283D031F32_($username), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLQUOTA}", $_obfuscated_0D3036111B270A2B5B3015393B2D3C27030D122C0F2111_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULQUOTA}", $_obfuscated_0D1E16312F0E30021E063F180D3D361D19032340392901_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TOTALQUOTA}", $_obfuscated_093422_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEQUOTA}", $_obfuscated_0D0816381B3B1537283603371F3B351D070F2301012B11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BASEURL}", baseurl, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMTSIP}", $_obfuscated_013B0D3318272311_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMUNITY}", $_obfuscated_0D38261A19112B34371E30332F1E232B082B090C1D1511_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USIFIDX}", $_obfuscated_1032_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($ipmodecpe == ipmode_radius) { 
            $_obfuscated_0532353C18112F35331A11_ = ""; 
        } else { 
            $_obfuscated_0532353C18112F35331A11_ = "disabled"; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_VERIFIED}", $_obfuscated_0C2A1211_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_PSW1}", $_obfuscated_330922_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_PSW2}", $_obfuscated_330922_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_IPMODECM}", $_obfuscated_0D1F0D0F11213B11061F220714032E263202020F363D01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_IPMODECPE}", $_obfuscated_0532_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_POOLIDCM}", $_obfuscated_0D280C252A0E081D32031E21073824161B3230033D0601_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_POOLIDCPE}", $_obfuscated_0532353C18112F35331A11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_MAC}", $_obfuscated_0D393425392C041F0A062118151C37343C311535223611_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_USEMACAUTH}", $_obfuscated_2C01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_STATICIPCM}", $_obfuscated_0D07121A18312B23243E0412222F1E2F1E03131F1C3101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_STATICIPCPE}", $_obfuscated_0D23293F170527254038041532224022103313363B0932_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_SIMUSE}", $_obfuscated_0D125B1F3B15235B1503013F390E101F231934011A0A22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_FIRSTNAME}", $_obfuscated_0D34153D0B3E090B141B38360D2D160C065B3712252911_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_LASTNAME}", $_obfuscated_1105243B2E030E35351811_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_COMPANY}", $_obfuscated_162B32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_ADDRESS}", $_obfuscated_0D2D280B1E033B082A2A31180C09170D1C03033D362B01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_CITY}", $_obfuscated_0D1123132B0F2A1A051A1C230C0A033F0C24241D3E2F11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_ZIP}", $_obfuscated_0D2211270C2E0435053E2E1C1B011C3F3C063C28051F11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_COUNTRY}", $_obfuscated_0D250E0F3403272C5B3F2B120314210D37092C10270E22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_STATE}", $_obfuscated_0D1A183D03330C2D3C4030191B391C01331C13170C0201_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_PHONE}", $_obfuscated_1C2816320B1729273E0B2C300422_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_MOBILE}", $_obfuscated_0D3603281F1119212F351405082B2128143338362E0422_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_TAXID}", $_obfuscated_0D2F042739121C0B0E04253F0109181E24212813152801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_EMAIL}", $_obfuscated_0D3C0D393E3E330E26243932160E0D165B19382C1D1611_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_SRVID}", $_obfuscated_0D3B0433071B26363739230A181F2A0D28062E2B3F2E01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_DOWNLIMIT}", $_obfuscated_0D15163708161D10390B303E3725340F183C3F2F292411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_UPLIMIT}", $_obfuscated_0D142C2B243F161A1B371A2136065B392117052B0B2F32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_COMBLIMIT}", $_obfuscated_0D10303F163615042C150F121B0B1216032D3C2D093601_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_EXPIRATION}", $_obfuscated_052D0C131315051E5B1A1501191A39210C3B1411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_UPTIMELIMIT}", $_obfuscated_0D322124013507033B2A3D0C232713402A230D08030411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_CREDITS}", $_obfuscated_0D192E381122053D1A1B350E0D16051F241B3E1E2F1A32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_CARDFAILS}", $_obfuscated_0B3C381B2A321D372C075B211222010A361B3711_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_VERIFYFAILS}", $_obfuscated_0D381D2E0C051137232C3F10060D2E2D242B033D3F2F32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_MACCM}", $_obfuscated_363E3001_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_CHANGEPSW}", $_obfuscated_0D151819313324271B10321E051A27092E17262D3E1D32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_OWNER}", $_obfuscated_0D2D37120C0C1E3F0A2E0B0516300C0605163914282C01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_GROUP}", $_obfuscated_0D361C0B2D1E3B3C33273115331E312D14021B23221E22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_VERIFYSENTNUM}", $_obfuscated_09012A11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_WARNINGSENT}", $_obfuscated_0D1025343D28270F2C16163326192A2B0524221D1B0C01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_CUSTATTR}", $_obfuscated_0D1D1D0E193F010C3403090909370115061D2731061A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_CONTRACTID}", $_obfuscated_0D27191E0C0E04150B010E133F28182E0B151938341432_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_CONTRACTVALID}", $_obfuscated_0D110F051D051E17403D5B271512122A0D1A2D2A2E1701_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_MACPSWMODE}", $_obfuscated_361522_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editusers")) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPDATESTATE}", "disabled", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPDATESTATE}", "enabled", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($enableuser == true) { 
            if ($_obfuscated_0D1E2B16350B28381D352703280D23260D1A290B103C01_ || $_obfuscated_1B01242F0F25053422_ == acctype_carduser || $_obfuscated_1B01242F0F25053422_ == acctype_ias) { 
                if ($verified) { 
                    if (_obfuscated_0D222D183C3440361E0A1F215C12161A0C180F28081332_($username)) { 
                        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATUS}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acc_active"), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_STATUS}", col_user_en, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                    } else { 
                        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATUS}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acc_expired"), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_STATUS}", col_user_exp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                    } 
                } else { 
                    $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_STATUS}", col_not_verified, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                    $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATUS}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acc_notverified"), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                } 
            } else { 
                if (_obfuscated_0D222D183C3440361E0A1F215C12161A0C180F28081332_($username)) { 
                    $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATUS}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acc_active"), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                    $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_STATUS}", col_user_en, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                } else { 
                    $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATUS}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acc_expired"), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                    $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_STATUS}", col_user_exp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                } 
            } 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATUS}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_acc_disabled"), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_STATUS}", col_user_dis, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($macpswmode) { 
            case MACPSWMODE_BLANK: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case MACPSWMODE_USER: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case MACPSWMODE_MAC: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($usemacauth == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDUSEMACAUTH}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDUSEMACAUTH}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($enableuser == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENUSER}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENUSER}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0B333C25362602011C11_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDWARNINGSENT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDWARNINGSENT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($verified == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDVERIFIED}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDVERIFIED}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($changepsw == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHANGEPSW}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHANGEPSW}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1F0E133D261E0D171F1E3F01320601_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKALERTEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKALERTEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($alertsms == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKALERTSMS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKALERTSMS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1E01_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDELCNIC1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDELCNIC1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1311171A03240A1D2B13301B3F151A32_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDELCNIC2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDELCNIC2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($autorenew == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKAUTORENEW}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKAUTORENEW}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($ipmodecm) { 
            case ipmode_radius: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECMNAS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECMRADIUS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECMSTATIC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ipmode_static: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECMNAS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECMRADIUS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECMSTATIC}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($ipmodecpe) { 
            case ipmode_nas: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPENAS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPERADIUS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPESTATIC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ipmode_radius: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPENAS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPERADIUS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPESTATIC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ipmode_static: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPENAS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPERADIUS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPESTATIC}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1B01242F0F25053422_ == acctype_carduser || $_obfuscated_1B01242F0F25053422_ == acctype_ias) { 
            for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_); $_obfuscated_1E102C2A11_++) { 
                $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ = $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][0]; 
                $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ = $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][1]; 
                if ($_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][2] == srvtype_prepaid_card) { 
                    if ($_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ == $srvid) { 
                        $_obfuscated_3D2F162E272B3139102117043218101013343732_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ . ">" . $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ . "</OPTION>"; 
                    } else { 
                        $_obfuscated_3D2F162E272B3139102117043218101013343732_ .= "" . "<OPTION value=" . $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ . ">" . $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ . "</OPTION>"; 
                    } 
                } 
            } 
        } else { 
            for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_); $_obfuscated_1E102C2A11_++) { 
                $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ = $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][0]; 
                $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ = $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][1]; 
                if ($_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][2] != srvtype_prepaid_card) { 
                    if ($_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ == $srvid) { 
                        $_obfuscated_3D2F162E272B3139102117043218101013343732_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ . ">" . $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ . "</OPTION>"; 
                    } else { 
                        $_obfuscated_3D2F162E272B3139102117043218101013343732_ .= "" . "<OPTION value=" . $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ . ">" . $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ . "</OPTION>"; 
                    } 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVLIST}", $_obfuscated_3D2F162E272B3139102117043218101013343732_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_32_ = $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][0]; 
            $_obfuscated_0D1D10051E243C1A1E3F371B0C321C0239043C1C230911_ = $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][1]; 
            if ($_obfuscated_32_ == $poolidcm) { 
                $_obfuscated_120637150824101A223C21162A320725280A01_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_32_ . ">" . $_obfuscated_0D1D10051E243C1A1E3F371B0C321C0239043C1C230911_ . "</OPTION>"; 
            } else { 
                $_obfuscated_120637150824101A223C21162A320725280A01_ .= "" . "<OPTION value=" . $_obfuscated_32_ . ">" . $_obfuscated_0D1D10051E243C1A1E3F371B0C321C0239043C1C230911_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{IPPOOLLISTCM}", $_obfuscated_120637150824101A223C21162A320725280A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D1125290713113D372610183F22131E123635022F1211_ = $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][0]; 
            $_obfuscated_391E2E2B211E13392C0433163E1C23010532_ = $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][1]; 
            if ($_obfuscated_0D1125290713113D372610183F22131E123635022F1211_ == $poolidcpe) { 
                $_obfuscated_0D400B250334231317190D2A1F123533070C1B39072932_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D1125290713113D372610183F22131E123635022F1211_ . ">" . $_obfuscated_391E2E2B211E13392C0433163E1C23010532_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D400B250334231317190D2A1F123533070C1B39072932_ .= "" . "<OPTION value=" . $_obfuscated_0D1125290713113D372610183F22131E123635022F1211_ . ">" . $_obfuscated_391E2E2B211E13392C0433163E1C23010532_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{IPPOOLLISTCPE}", $_obfuscated_0D400B250334231317190D2A1F123533070C1B39072932_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_ = _obfuscated_0D112E0F262D111B401A1B5C3312253708221E281F2922_(); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_); $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] == $lang) { 
                $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . ">" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . "</OPTION>"; 
            } else { 
                $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_ .= "" . "<OPTION value=" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . ">" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LANGLIST}", $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $res = mysql_query("" . "SELECT SUM(acctoutputoctets), SUM(acctinputoctets), SUM(acctsessiontime), MAX(acctstoptime)
                      FROM radacct
                      WHERE username = '" . $username . "'
                     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_2B062609362A19143811_ = $row[0]; 
        $_obfuscated_0D35371A0E3D0A3E1E1B333C35301931353132310F3E22_ = $row[1]; 
        $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_ = $row[2]; 
        $_obfuscated_0D032B35343D03182A323B313F3D3D0606082D3C040C22_ = $row[3]; 
        $res = mysql_query("" . "SELECT SUM(dlbytes), SUM(ulbytes), SUM(acctsessiontime)
                      FROM rm_radacct
                      WHERE username = '" . $username . "'
                     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D2A250B171E190240112528090C291737072132391601_ = $row[0]; 
        $_obfuscated_2537180D3330293411080A2E32_ = $row[1]; 
        $_obfuscated_0D30291816212B0B0C2E143B3D242C2B072D15350D2811_ = $row[2]; 
        $_obfuscated_0D35371A0E3D0A3E1E1B333C35301931353132310F3E22_ -= $_obfuscated_2537180D3330293411080A2E32_; 
        $_obfuscated_2B062609362A19143811_ -= $_obfuscated_0D2A250B171E190240112528090C291737072132391601_; 
        $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_ -= $_obfuscated_0D30291816212B0B0C2E143B3D242C2B072D15350D2811_; 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
            $downlimit = $downlimit - $_obfuscated_2B062609362A19143811_; 
            $uplimit = $uplimit - $_obfuscated_0D35371A0E3D0A3E1E1B333C35301931353132310F3E22_; 
            $comblimit = $comblimit - $_obfuscated_2B062609362A19143811_ - $_obfuscated_0D35371A0E3D0A3E1E1B333C35301931353132310F3E22_; 
            $_obfuscated_053601_ = $_obfuscated_053601_ - $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DOWNLIMIT}", number_format($downlimit, 0, " ", " "), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPLIMIT}", number_format($uplimit, 0, " ", " "), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMBLIMIT}", number_format($comblimit, 0, " ", " "), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPTIMELIMIT}", _obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_053601_), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_303D2D3304220803172B1C01_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CLASSLIMITDL}", css_cap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            if (0 < $downlimit) { 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITTRAFFICDL}", col_user_en, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            } else { 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITTRAFFICDL}", col_user_exp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            } 
        } 
        if ($_obfuscated_0D10330F382627070C0622102B10100F36382D402D2D01_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CLASSLIMITUL}", css_cap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            if (0 < $uplimit) { 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITTRAFFICUL}", col_user_en, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            } else { 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITTRAFFICUL}", col_user_exp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            } 
        } 
        if ($_obfuscated_041C1E0A090D2C22040F290F22_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CLASSLIMITTOTAL}", css_cap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            if (0 < $comblimit) { 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITTRAFFICCOMB}", col_user_en, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            } else { 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITTRAFFICCOMB}", col_user_exp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            } 
        } 
        if ($_obfuscated_340710082201161C293E02183001_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CLASSLIMITEXPIRATION}", css_cap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            if (!_obfuscated_0D111A280A293B011517390A01012B0B11072D2E3F3E22_($expiration)) { 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITEXPIRATION}", col_user_en, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            } else { 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITEXPIRATION}", col_user_exp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            } 
        } 
        if ($_obfuscated_3D2D1216073E381526320F142D300C3B402F1901_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CLASSLIMITONLINETIME}", css_cap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            if (0 < $_obfuscated_053601_) { 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITUPTIME}", col_user_en, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            } else { 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITUPTIME}", col_user_exp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITTRAFFICDL}", col_nocap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITTRAFFICUL}", col_nocap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITTRAFFICCOMB}", col_nocap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITEXPIRATION}", col_nocap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BG_LIMITUPTIME}", col_nocap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CLASSLIMITDL}", css_nocap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CLASSLIMITUL}", css_nocap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CLASSLIMITTOTAL}", css_nocap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CLASSLIMITEXPIRATION}", css_nocap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CLASSLIMITONLINETIME}", css_nocap, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_0D032B35343D03182A323B313F3D3D0606082D3C040C22_ == "") { 
            $_obfuscated_0D032B35343D03182A323B313F3D3D0606082D3C040C22_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTSEEN}", $_obfuscated_0D032B35343D03182A323B313F3D3D0606082D3C040C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_332422_ == "") { 
            $_obfuscated_332422_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{VERIFYCODE}", $_obfuscated_332422_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_352B1F380E0225191A223E062511_ = $username . "1.jpg"; 
        if (file_exists(cnic_dir . "/" . $_obfuscated_352B1F380E0225191A223E062511_)) { 
            $_obfuscated_0D5B18353B180C031C5B343D061D222A0C3F230D213101_ = md5(cnicsalt . $_obfuscated_352B1F380E0225191A223E062511_); 
            $_obfuscated_0D0222062B1527231A040A3E03043040093B020B122E22_ = "<img src=\"showcnic.php?filename=" . $_obfuscated_352B1F380E0225191A223E062511_ . "&hash=" . $_obfuscated_0D5B18353B180C031C5B343D061D222A0C3F230D213101_ . "\" width=\"" . cnic_width . "\" border = \"1\" >"; 
        } else { 
            $_obfuscated_0D0222062B1527231A040A3E03043040093B020B122E22_ = "<img src=\"images/idcardfront.gif\" border = \"0\" >"; 
        } 
        $_obfuscated_352B1F380E0225191A223E062511_ = $username . "2.jpg"; 
        if (file_exists(cnic_dir . "/" . $_obfuscated_352B1F380E0225191A223E062511_)) { 
            $_obfuscated_0D5B18353B180C031C5B343D061D222A0C3F230D213101_ = md5(cnicsalt . $_obfuscated_352B1F380E0225191A223E062511_); 
            $_obfuscated_2B322F262D33212802061503113E0333272B241332_ = "<img src=\"showcnic.php?filename=" . $_obfuscated_352B1F380E0225191A223E062511_ . "&hash=" . $_obfuscated_0D5B18353B180C031C5B343D061D222A0C3F230D213101_ . "\" width=\"" . cnic_width . "\" border = \"1\" >"; 
        } else { 
            $_obfuscated_2B322F262D33212802061503113E0333272B241332_ = "<img src=\"images/idcardback.gif\" border = \"0\" >"; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CNICIMG1}", $_obfuscated_0D0222062B1527231A040A3E03043040093B020B122E22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CNICIMG2}", $_obfuscated_2B322F262D33212802061503113E0333272B241332_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
            $_obfuscated_0D38041A13120C0F0E3F3D02353B352B40182D32071422_ = $username; 
        } else { 
            if (!$_obfuscated_0F183B32_) { 
                $res = mysql_query("" . "SELECT LOWER(callingstationid) AS callingstationid
                          FROM radacct
                          WHERE username = '" . $username . "'
                          ORDER BY acctstoptime DESC
                          LIMIT 1
                         ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $row = mysql_fetch_array($res); 
                $_obfuscated_0F183B32_ = $row["callingstationid"]; 
            } 
            $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ = "radius"; 
            $_obfuscated_0D38041A13120C0F0E3F3D02353B352B40182D32071422_ = $username . "-" . $_obfuscated_0F183B32_; 
            $cid = "&cid=" . $_obfuscated_0F183B32_; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHTRF1}", "<img id=\"trfgraph1\" onmouseover=\"this.style.cursor='pointer'\" src=\"showgraphtrf.php?interval=day&mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&user=" . $username . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHTRF2}", "<img id=\"trfgraph2\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphtrf.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=week&user=" . $username . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHTRF3}", "<img id=\"trfgraph3\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphtrf.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=month&user=" . $username . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHTRF4}", "<img id=\"trfgraph4\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphtrf.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=year&user=" . $username . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHSNR1}", "<img id=\"snrgraph1\" onmouseover=\"this.style.cursor='pointer'\" src=\"showgraphsig.php?interval=day&mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHSNR2}", "<img id=\"snrgraph2\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphsig.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=week&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHSNR3}", "<img id=\"snrgraph3\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphsig.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=month&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHSNR4}", "<img id=\"snrgraph4\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphsig.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=year&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHSIG1}", "<img id=\"siggraph1\" onmouseover=\"this.style.cursor='pointer'\" src=\"showgraphpwr.php?interval=day&mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHSIG2}", "<img id=\"siggraph2\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphpwr.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=week&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHSIG3}", "<img id=\"siggraph3\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphpwr.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=month&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHSIG4}", "<img id=\"siggraph4\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphpwr.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=year&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHLAT1}", "<img id=\"latgraph1\" onmouseover=\"this.style.cursor='pointer'\" src=\"showgraphlat.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=day&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHLAT2}", "<img id=\"latgraph2\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphlat.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=week&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHLAT3}", "<img id=\"latgraph3\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphlat.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=month&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GRAPHLAT4}", "<img id=\"latgraph4\" onmouseover=\"this.style.cursor='pointer'\" style=\"display: none;\" src=\"showgraphlat.php?mode=" . $_obfuscated_0D1B2C3F13030A3D260F0523252E40232A3C020B240411_ . "&interval=year&user=" . $username . $cid . "&rand=0\">", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_1132062F2D3B0E3825152532_ = "SELECT reg_firstname, reg_lastname, reg_address, reg_city, reg_zip, reg_country, reg_state, reg_phone,
  	    reg_mobile, reg_email, reg_vatid
  	    FROM rm_settings
  	   "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        if ($row["reg_firstname"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARFIRSTNAME}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARFIRSTNAME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_lastname"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARLASTNAME}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARLASTNAME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_address"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARADDRESS}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARADDRESS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_city"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARCITY}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARCITY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_zip"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARZIP}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARZIP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_country"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARCOUNTRY}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARCOUNTRY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_state"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARSTATE}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARSTATE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_phone"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARPHONE}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARPHONE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_mobile"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARMOBILE}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARMOBILE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_email"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STAREMAIL}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STAREMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_vatid"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARVATID}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARVATID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D23011007223C370719032411253C0B04040E3F255B01_($username, $enableuser, $srvid, $password1, $password2, $mac, $usemacauth, $firstname, $lastname, $company, $phone, $mobile, $email, $address, $city, $zip, $country, $state, $downlimit, $uplimit, $comblimit, $expiration, $uptimelimit, $comment, $staticipcm, $staticipcpe, $ipmodecm, $ipmodecpe, $simuse, $credits, $cardfails, $taxid, $cnic, $maccm, $warningsent, $verified, $verifyfails, $changepsw, $owner, $verifysentnum, $groupid, $custattr, $poolidcm, $poolidcpe, $contractid, $contractvalid, $pswactsmsnum, $gpslong, $gpslat, $alertemail, $alertsms, $lang, $cnicfile1, $cnicfile2, $delcnic1, $delcnic2, $autorenew, $macpswmode) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editusers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $downlimit = str_replace(" ", "", $downlimit); 
    $uplimit = str_replace(" ", "", $uplimit); 
    $comblimit = str_replace(" ", "", $comblimit); 
    $_obfuscated_0D2A3D0908253533210B32212D3229071C2E0126301622_ *= 1024; 
    $_obfuscated_0D1D3413302B2C2A291D061536213710143F3732012711_ *= 1024; 
    $_obfuscated_053601_ = _obfuscated_0D0A1636103430181206321F3E380D283D1D153B031632_($_obfuscated_053601_); 
    $maccm = strtolower($maccm); 
    $mac = strtolower($mac); 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT acctype, owner, ipmodecm, ipmodecpe
  		      FROM rm_users
  		      WHERE username = '" . $username . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_1B01242F0F25053422_ = $row[0]; 
    $_obfuscated_0D332A15222A0C3E19242E0A260D05061A251913112711_ = $row[1]; 
    $_obfuscated_111E0A17230E282B211E3E3D0B0511_ = $row[2]; 
    $_obfuscated_0D2804231101331F040F3C1B12071F31172F3C38300222_ = $row[3]; 
    if ($owner == "") { 
        $owner = $_obfuscated_0D332A15222A0C3E19242E0A260D05061A251913112711_; 
    } 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_edituserspriv")) { 
        _obfuscated_0D0C1A29240B1C1D3635332F3B1503323D210229393311_($username, $_obfuscated_0D35371A0E3D0A3E1E1B333C35301931353132310F3E22_, $_obfuscated_2B062609362A19143811_, $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_); 
        $res = mysql_query("" . "SELECT downlimit, uplimit, comblimit, expiration, uptimelimit, credits, srvid, owner, groupid,
    			custattr, staticipcm, staticipcpe, contractid, contractvalid, pswactsmsnum, ipmodecpe
                        FROM rm_users
                        WHERE username = '" . $username . "'
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $downlimit = $row[0] - $_obfuscated_2B062609362A19143811_; 
        $uplimit = $row[1] - $_obfuscated_0D35371A0E3D0A3E1E1B333C35301931353132310F3E22_; 
        $comblimit = $row[2] - $_obfuscated_0D35371A0E3D0A3E1E1B333C35301931353132310F3E22_ - $_obfuscated_2B062609362A19143811_; 
        $expiration = $row[3]; 
        $_obfuscated_053601_ = $row[4] - $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_; 
        $_obfuscated_22141931381B11_ = $row[5]; 
        $srvid = $row[6]; 
        $owner = $row[7]; 
        $groupid = $row[8]; 
        $custattr = $row[9]; 
        $staticipcm = $row[10]; 
        $staticipcpe = $row[11]; 
        $contractid = $row[12]; 
        $contractvalid = $row[13]; 
        $pswactsmsnum = $row[14]; 
        $ipmodecpe = $row[15]; 
        $res = mysql_query("" . "SELECT value
  		        FROM radcheck
  		        WHERE username = '" . $username . "' AND attribute = 'Simultaneous-Use'
  		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $simuse = $row[0]; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis && !$staticipcm && $ipmodecm == ipmode_radius) { 
        $res = mysql_query("" . "SELECT staticipcm
                        FROM rm_users
                        WHERE username = '" . $username . "'
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $staticipcm = $row[0]; 
    } 
    $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = false; 
    if ($password1 != $password2) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_nomatch"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if (($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_carduser || $_obfuscated_1B01242F0F25053422_ == acctype_ias || $_obfuscated_1B01242F0F25053422_ == acctype_docsis) && $changepsw) { 
        if (strlen($password1) < min_psw_len || max_psw_len < strlen($password1)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_length"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if (0 < strlen($password1) && !_obfuscated_0D332D09292C0C371B23123004141F1B280C32332E0932_($password1)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_invalid"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_maconly && $macpswmode == MACPSWMODE_USER && $changepsw) { 
        if (strlen($password1) < min_pswhsmac_len || max_pswhsmac_len < strlen($password1)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_length"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if (0 < strlen($password1) && !_obfuscated_0D332D09292C0C371B23123004141F1B280C32332E0932_($password1, true)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_invalid"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
        if (!_obfuscated_0D39093C370C052A022507042C3E403739023C2E132301_($maccm)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mac_cm"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if (_obfuscated_0D255C073E0C2B2D301336361234191701161503160B22_(dhcp_cm, $maccm, $username, $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_maccm_already_assigned") . " " . $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_; 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($mac != "" && !_obfuscated_0D39093C370C052A022507042C3E403739023C2E132301_($mac)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mac_cpe"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
        if ($ipmodecpe == ipmode_radius || $ipmodecpe == ipmode_static) { 
            if (!_obfuscated_0D39093C370C052A022507042C3E403739023C2E132301_($mac)) { 
                if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                    $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mac_cpe"); 
                } 
                $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
            } 
            if (_obfuscated_0D255C073E0C2B2D301336361234191701161503160B22_(dhcp_cpe, $mac, $username, $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_)) { 
                if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                    $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_maccpe_already_assigned") . " " . $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_; 
                } 
                $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
            } 
        } 
    } else { 
        if ($usemacauth == 1 && !_obfuscated_0D39093C370C052A022507042C3E403739023C2E132301_($mac)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mac_cpe"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($ipmodecm == ipmode_static) { 
        if (!_obfuscated_0D0E2C2127082E5B18290807153E3F153D3F0132090411_($staticipcm)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ip_format"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } else { 
        if ($staticipcm != "" && !_obfuscated_0D0E2C2127082E5B18290807153E3F153D3F0132090411_($staticipcm)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ip_format"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($ipmodecpe == ipmode_static) { 
        if (!_obfuscated_0D0E2C2127082E5B18290807153E3F153D3F0132090411_($staticipcpe)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ip_format"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } else { 
        if ($staticipcpe != "" && !_obfuscated_0D0E2C2127082E5B18290807153E3F153D3F0132090411_($staticipcpe)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ip_format"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($ipmodecm == ipmode_static && $staticipcm != "" && _obfuscated_0D400B0D32173125243039230F2821135C37252D382922_(dhcp_cm, $staticipcm, $username, $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_cm_ip_already_assigned") . " " . $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_; 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($ipmodecpe == ipmode_static && $staticipcpe != "" && _obfuscated_0D400B0D32173125243039230F2821135C37252D382922_(dhcp_cpe, $staticipcpe, $username, $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_cpe_ip_already_assigned") . " " . $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_; 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($srvid == "") { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_srv_not_sel"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if (($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_maconly) && !_obfuscated_0D342F3B363C3F27292717095C36080D0E2D27271F0501_($expiration)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_exp_date"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_22141931381B11_ < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_credits_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ != acctype_carduser && !is_numeric($simuse) && $simuse != "") { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_simuse_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis && $ipmodecm == ipmode_radius) { 
        $staticipcm = _obfuscated_0D1C242B0F100A3D1A0B29352A271D2103241F1C0E1332_($poolidcm, dhcp_cm, $username); 
        if (!$staticipcm) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_free_ip_cm"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis && $ipmodecpe == ipmode_radius) { 
        $staticipcpe = _obfuscated_0D1C242B0F100A3D1A0B29352A271D2103241F1C0E1332_($poolidcpe, dhcp_cpe, $username); 
        if (!$staticipcpe) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_free_ip_cpe"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ = _obfuscated_0D2A0C102B15103228350F2B3B0B085B0E38183D052232_(strtolower($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_)); 
    if ($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ != "" && !_obfuscated_0D5C26395B04403C2F120918380D10050F060533122F32_($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, TRUE)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_email_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    $_obfuscated_1132062F2D3B0E3825152532_ = "SELECT reg_firstname, reg_lastname, reg_address, reg_city, reg_zip, reg_country, reg_state, reg_phone,
  	    reg_mobile, reg_email, reg_vatid
  	    FROM rm_settings
  	   "; 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    if ($row["reg_firstname"] && !$firstname) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_firstname_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_lastname"] && !$lastname) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_lastname_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_address"] && !$address) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_address_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_city"] && !$city) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_city_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_zip"] && !$_obfuscated_1535143F362A0426310E302A32_) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_zip_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_country"] && !$country) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_country_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_state"] && !$state) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_state_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_phone"] && !$_obfuscated_2D1A0D2839352927182F32_) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_phone_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_mobile"] && !$_obfuscated_1D3C3209161C2A0D120F0D11_) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mobile_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_email"] && !$_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_email_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_vatid"] && !$taxid) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_vatid_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
        return _obfuscated_0D1638012D3233243031250A01375B233E3139375C3311_($username, $enableuser, $srvid, $password1, $password2, $mac, $usemacauth, $firstname, $lastname, $company, $_obfuscated_2D1A0D2839352927182F32_, $_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, $address, $city, $_obfuscated_1535143F362A0426310E302A32_, $country, $state, $downlimit, $uplimit, $comblimit, $expiration, $_obfuscated_053601_, $comment, $staticipcm, $staticipcpe, $ipmodecm, $ipmodecpe, $simuse, $_obfuscated_22141931381B11_, $cardfails, $taxid, $_obfuscated_3C5B18380E020614373516212311_, $maccm, $_obfuscated_0B333C25362602011C11_, $verified, $verifyfails, $changepsw, $owner, $_obfuscated_11_, $groupid, $custattr, $poolidcm, $poolidcpe, $contractid, $contractvalid, $pswactsmsnum, $_obfuscated_3122_, $_obfuscated_01_, $_obfuscated_1F0E133D261E0D171F1E3F01320601_, $alertsms, $lang, $_obfuscated_1E01_, $_obfuscated_1311171A03240A1D2B13301B3F151A32_, $autorenew, $macpswmode, $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
    } 
    _obfuscated_0D0C1A29240B1C1D3635332F3B1503323D210229393311_($username, $_obfuscated_0D35371A0E3D0A3E1E1B333C35301931353132310F3E22_, $_obfuscated_2B062609362A19143811_, $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_); 
    $_obfuscated_053601_ += $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_; 
    $_obfuscated_0D3F3C10253D1501272B130D173C2F23012D222F022811_ = $_obfuscated_0D35371A0E3D0A3E1E1B333C35301931353132310F3E22_ + $uplimit; 
    $_obfuscated_01281529403E2F24062E0B031E06100B3F22_ = $_obfuscated_2B062609362A19143811_ + $downlimit; 
    $_obfuscated_0D2A3F183C18043924372E3716401C172D231C5B171522_ = $_obfuscated_0D35371A0E3D0A3E1E1B333C35301931353132310F3E22_ + $_obfuscated_2B062609362A19143811_ + $comblimit; 
    $res = mysql_query("" . "SELECT mac, maccm, staticipcm, staticipcpe, enableuser, password, srvid, expiration
  		      FROM rm_users
  		      WHERE username = '" . $username . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_0D34361B1A3B0E3E222A2F3B261D033D2613181E011B22_ = $row[0]; 
    $_obfuscated_051722_ = $row[1]; 
    $_obfuscated_0D090E0439050414041A3B35273D3C1C041A2103322322_ = $row[2]; 
    $_obfuscated_0D24302A1B081E0E1833242D382B152D10132F233B1332_ = $row[3]; 
    $_obfuscated_0D063B391B1B372D3507301C1B153E15182F11250D3201_ = $row[4]; 
    $_obfuscated_08092319371A020E21283F081118332B22_ = $row[5]; 
    $_obfuscated_0D21030A061F0B362D0D220E1425242105161129273101_ = $row[6]; 
    $_obfuscated_11103D10313431051A0F07343D22_ = $row[7]; 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_maconly && $macpswmode != MACPSWMODE_USER) { 
        switch ($macpswmode) { 
            case MACPSWMODE_BLANK: 
                $password1 = ""; 
                break; 
            case MACPSWMODE_MAC: 
                $password1 = $username; 
        } 
        $res = mysql_query("" . "UPDATE radcheck
    		        SET Value = '" . $password1 . "'
    		        WHERE (UserName = '" . $username . "' AND Attribute = 'Cleartext-Password')
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    } 
    if ($changepsw) { 
        $res = mysql_query("" . "UPDATE rm_users
                        SET password = MD5('" . $password1 . "')
                        WHERE username = '" . $username . "'
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $res = mysql_query("" . "UPDATE radcheck
    		        SET Value = '" . $password1 . "'
    		        WHERE (UserName = '" . $username . "' AND Attribute = 'Cleartext-Password')
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    } 
    $_obfuscated_1132062F2D3B0E3825152532_ = "" . "UPDATE rm_users
            SET uplimit = '" . $_obfuscated_0D3F3C10253D1501272B130D173C2F23012D222F022811_ . "', downlimit = '" . $_obfuscated_01281529403E2F24062E0B031E06100B3F22_ . "', comblimit = '" . $_obfuscated_0D2A3F183C18043924372E3716401C172D231C5B171522_ . "',
            firstname = '" . $firstname . "', lastname = '" . $lastname . "', company = '" . $company . "', phone = '" . $_obfuscated_2D1A0D2839352927182F32_ . "',
            mobile = '" . $_obfuscated_1D3C3209161C2A0D120F0D11_ . "', email = '" . $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ . "', address = '" . $address . "', city = '" . $city . "', zip = '" . $_obfuscated_1535143F362A0426310E302A32_ . "',
            country = '" . $country . "', state = '" . $state . "', comment = '" . $comment . "', mac = '" . $mac . "',
            expiration = '" . $expiration . "', enableuser = '" . $enableuser . "', usemacauth = '" . $usemacauth . "',
            uptimelimit = '" . $_obfuscated_053601_ . "', srvid = '" . $srvid . "', staticipcm = '" . $staticipcm . "', staticipcpe = '" . $staticipcpe . "',
            ipmodecm = '" . $ipmodecm . "', ipmodecpe = '" . $ipmodecpe . "', credits = '" . $_obfuscated_22141931381B11_ . "', cardfails = '" . $cardfails . "', taxid = '" . $taxid . "',
            cnic = '" . $_obfuscated_3C5B18380E020614373516212311_ . "', maccm = '" . $maccm . "', warningsent = '" . $_obfuscated_0B333C25362602011C11_ . "', verified = '" . $verified . "',
            verifyfails = '" . $verifyfails . "', owner = '" . $owner . "', verifysentnum = '" . $_obfuscated_11_ . "', groupid = '" . $groupid . "',
            custattr = '" . $custattr . "', poolidcm = '" . $poolidcm . "', poolidcpe = '" . $poolidcpe . "', contractid = '" . $contractid . "',
            contractvalid = '" . $contractvalid . "', pswactsmsnum = '" . $pswactsmsnum . "', gpslong = '" . $_obfuscated_3122_ . "', gpslat = '" . $_obfuscated_01_ . "',
            alertemail = '" . $_obfuscated_1F0E133D261E0D171F1E3F01320601_ . "', alertsms = '" . $alertsms . "', lang = '" . $lang . "', autorenew = '" . $autorenew . "', 
            macpswmode = '" . $macpswmode . "'
            WHERE username = '" . $username . "'
           "; 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "SELECT value
  		      FROM radcheck
  		      WHERE username = '" . $username . "' AND attribute = 'Simultaneous-Use'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (mysql_num_rows($res) == 0) { 
        if ($simuse != "") { 
            $res = mysql_query("" . "INSERT INTO radcheck (UserName, Attribute, op, Value)
                          VALUES ('" . $username . "', 'Simultaneous-Use', ':=', '" . $simuse . "')
                         ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } 
    } else { 
        if ($simuse != "") { 
            $res = mysql_query("" . "UPDATE radcheck
      			  SET Value = '" . $simuse . "'
                          WHERE (UserName = '" . $username . "' AND Attribute = 'Simultaneous-Use')
                         ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } else { 
            $res = mysql_query("" . "DELETE FROM radcheck 
                          WHERE (UserName = '" . $username . "' AND Attribute = 'Simultaneous-Use')
                         ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_maconly || $_obfuscated_1B01242F0F25053422_ == acctype_carduser || $_obfuscated_1B01242F0F25053422_ == acctype_ias) { 
        if ($ipmodecpe == ipmode_radius) { 
            $res = mysql_query("" . "SELECT value
    		          FROM radcheck
      		          WHERE username = '" . $username . "' AND attribute = 'Pool-Name'
      		       	 ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            if (mysql_num_rows($res) == 0) { 
                if ($poolidcpe != "") { 
                    $res = mysql_query("" . "INSERT INTO radcheck (UserName, Attribute, op, Value)
                              VALUES ('" . $username . "', 'Pool-Name', ':=', '" . $poolidcpe . "')
                             ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                } 
            } else { 
                if ($poolidcpe != "") { 
                    $res = mysql_query("" . "UPDATE radcheck
          	  	      SET Value = '" . $poolidcpe . "'
                              WHERE (UserName = '" . $username . "' AND Attribute = 'Pool-Name')
                             ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                } 
            } 
        } else { 
            $res = mysql_query("" . "DELETE FROM radcheck
                          WHERE (UserName = '" . $username . "' AND Attribute = 'Pool-Name')
                         ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } 
    } 
    $res = mysql_query("" . "SELECT limitexpiration
  		      FROM rm_services
  		      WHERE srvid = " . $srvid . "
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_133611_ = $row[0]; 
    $_obfuscated_0D2F1C273B1A0E2B121C0411321D31110B3C05160E0622_ = "srv-" . str_pad($srvid, 3, "0", STR_PAD_LEFT) . ".cfg"; 
    $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
    $res = mysql_query("" . "SELECT srvname
                      FROM rm_services
                      WHERE srvid = '" . $srvid . "'
                     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_ = $row[0]; 
    if ($_obfuscated_0D21030A061F0B362D0D220E1425242105161129273101_ != $srvid) { 
        $status = srvchg_cancelled; 
        $res = mysql_query("" . "UPDATE rm_changesrv
    			SET status = '" . $status . "'
                        WHERE username = '" . $username . "' AND status = 0 AND scheduledate = NOW()
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $res = mysql_query("" . "INSERT INTO rm_changesrv
    			(username, newsrvid, newsrvname, scheduledate, requestdate, status, requested)
    			VALUES ('" . $username . "', '" . $srvid . "', '" . $_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_ . "', NOW(), NOW(), 1, '" . $_obfuscated_22_ . "')
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        if ($GLOBALS["_emailnewsrv"]) { 
            _obfuscated_0D05342B1713021F28024027211B1F325C16161A192F32_($username, $_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_); 
        } 
        if ($GLOBALS["_smsnewsrv"]) { 
            _obfuscated_0D10250E1E2C1936263735303125093814032A1F152511_($username, $_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_); 
        } 
        _obfuscated_0D2C0F0718152B2314173D213515280236223C24024022_($username); 
    } 
    if (!$enableuser || !_obfuscated_0D222D183C3440361E0A1F215C12161A0C180F28081332_($username)) { 
        _obfuscated_0D2C0F0718152B2314173D213515280236223C24024022_($username); 
    } 
    if (!$_obfuscated_0D063B391B1B372D3507301C1B153E15182F11250D3201_ && $enableuser) { 
        _obfuscated_0D2C0F0718152B2314173D213515280236223C24024022_($username); 
    } 
    if ($GLOBALS["_unixacc"] && ($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_docsis)) { 
        $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ = $firstname . " " . $lastname; 
        if ($_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ == "") { 
            $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_default_fullname"); 
        } 
        _obfuscated_0D1226303C0D39132611261828041727210E0C012F2222_($username, $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_); 
        if ($changepsw) { 
            _obfuscated_0D2C32192D2939121D063E223908240F0C2E1D381C1722_($username, $password1); 
        } 
        if ($enableuser) { 
            _obfuscated_0D2215012D10402D3F05030E090D081027052D13032C22_($username, true); 
        } else { 
            _obfuscated_0D2215012D10402D3F05030E090D081027052D13032C22_($username, false); 
        } 
        if ($_obfuscated_133611_) { 
            _obfuscated_0D3F083739090A293015063640213C131D1B2F1A250811_($username, true, $expiration); 
        } else { 
            _obfuscated_0D3F083739090A293015063640213C131D1B2F1A250811_($username, false); 
        } 
        if ($GLOBALS["_diskquota"]) { 
            _obfuscated_0D0402240E3E1E11273B3215090A2D32070916293C0B32_($username, $GLOBALS["_quotatpl"]); 
        } 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis && ($maccm != $_obfuscated_051722_ || $mac != $_obfuscated_0D34361B1A3B0E3E222A2F3B261D033D2613181E011B22_ || $staticipcm != $_obfuscated_0D090E0439050414041A3B35273D3C1C041A2103322322_ || $staticipcpe != $_obfuscated_0D24302A1B081E0E1833242D382B152D10132F233B1332_ || $enableuser != $_obfuscated_0D063B391B1B372D3507301C1B153E15182F11250D3201_ || $_obfuscated_11103D10313431051A0F07343D22_ != $expiration)) { 
        if (!_obfuscated_0D1B37280E101B381633272E393B2835301D083E252E32_(dhcp_cm, $username)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dhcp_file")); 
        } 
        if ($enableuser && _obfuscated_0D222D183C3440361E0A1F215C12161A0C180F28081332_($username) && !_obfuscated_0D322F243C2D09331931373D39403C281F36323C310122_(dhcp_cm, $username, $maccm, $staticipcm, $_obfuscated_0D2F1C273B1A0E2B121C0411321D31110B3C05160E0622_)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dhcp_file")); 
        } 
        if (!_obfuscated_0D1B37280E101B381633272E393B2835301D083E252E32_(dhcp_cpe, $username)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dhcp_file")); 
        } 
        if ($ipmodecpe != ipmode_nas && $enableuser && _obfuscated_0D222D183C3440361E0A1F215C12161A0C180F28081332_($username) && !_obfuscated_0D322F243C2D09331931373D39403C281F36323C310122_(dhcp_cpe, $username, $mac, $staticipcpe)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dhcp_file")); 
        } 
        _obfuscated_0D04293B295C3D2D402B0929061F1625021A0A3D293922_(); 
    } 
    if ($_obfuscated_1E01_ == 1) { 
        $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = cnic_dir . "/" . $username . "1.jpg"; 
        if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
            unlink($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
        } 
    } 
    if ($_obfuscated_1311171A03240A1D2B13301B3F151A32_ == 1) { 
        $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = cnic_dir . "/" . $username . "2.jpg"; 
        if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
            unlink($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
        } 
    } 
    if ($cnicfile1 && !move_uploaded_file($cnicfile1, cnic_dir . "/" . $username . "1.jpg")) { 
        exit(err_pic_upload); 
    } 
    if ($cnicfile2 && !move_uploaded_file($cnicfile2, cnic_dir . "/" . $username . "2.jpg")) { 
        exit(err_pic_upload); 
    } 
    _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_user_updated, $username); 
    if ($enableuser != $_obfuscated_0D063B391B1B372D3507301C1B153E15182F11250D3201_) { 
        if ($enableuser) { 
            _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_user_enabled, $username); 
        } else { 
            _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_user_disabled, $username); 
        } 
    } 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_user_updated")); 
} 
function _obfuscated_0D300C0E2C5B04290734360E361E3D313606353C0D1832_($username, $enableuser, $srvid, $password1, $password2, $mac, $usemacauth, $firstname, $lastname, $company, $phone, $mobile, $email, $address, $city, $zip, $country, $state, $downlimit, $uplimit, $comblimit, $expiration, $uptimelimit, $comment, $staticipcm, $staticipcpe, $ipmodecm, $ipmodecpe, $simuse, $acctype, $taxid, $cnic, $maccm, $credits, $groupid, $custattr, $poolidcm, $poolidcpe, $contractid, $contractvalid, $gpslong, $gpslat, $lang, $macpswmode, $cnicfile1, $cnicfile2) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_createusers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
        if (!_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_docsis)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mod_unavailable")); 
        } 
        $_obfuscated_32_ = _obfuscated_0D24173B300417260126080E210E3D30110F2703372D11_(modkey_maxusers_docsis); 
        if ($_obfuscated_32_ != 0 - 1 && $_obfuscated_32_ <= _obfuscated_0D40120A3C231D0C0B2714283510060D28015C16310E32_()) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_max_usernum")); 
        } 
    } else { 
        $_obfuscated_32_ = _obfuscated_0D24173B300417260126080E210E3D30110F2703372D11_(modkey_maxusers); 
        if ($_obfuscated_32_ != 0 - 1 && $_obfuscated_32_ <= _obfuscated_0D2A341E3819240F020E2F3D40080C39392215102D2711_()) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_max_usernum")); 
        } 
    } 
    $downlimit = str_replace(" ", "", $downlimit); 
    $uplimit = str_replace(" ", "", $uplimit); 
    $username = strtolower($username); 
    $maccm = strtolower($maccm); 
    $mac = strtolower($mac); 
    $_obfuscated_053601_ = _obfuscated_0D0A1636103430181206321F3E380D283D1D153B031632_($_obfuscated_053601_); 
    if ($cnicfile1) { 
        $_SESSION["TMPCNICIMG1"] = tempnam("/tmp", "tmpcnic"); 
        if (!move_uploaded_file($cnicfile1, $_SESSION["TMPCNICIMG1"])) { 
            exit(err_pic_upload); 
        } 
    } 
    if ($cnicfile2) { 
        $_SESSION["TMPCNICIMG2"] = tempnam("/tmp", "tmpcnic"); 
        if (!move_uploaded_file($cnicfile2, $_SESSION["TMPCNICIMG2"])) { 
            exit(err_pic_upload); 
        } 
    } 
    $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = false; 
    if (($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_docsis) && (strlen($username) < min_username_len || max_username_len < strlen($username))) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_user_name_length"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_maconly && strlen($username) != mac_username_len_mikrotik) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_user_name_length"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_aclmikrotik && strlen($username) != mac_username_len_mikrotik) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_user_name_length"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_aclstaros && strlen($username) != mac_username_len_staros) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_user_name_length"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($username == "" || !_obfuscated_0D380F281A5B271B27012E165B10055C5B3F043C170D32_($username, $_obfuscated_1B01242F0F25053422_)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_username_not_valid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($password1 != $password2) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_nomatch"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_carduser || $_obfuscated_1B01242F0F25053422_ == acctype_ias || $_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
        if (strlen($password1) < min_psw_len || max_psw_len < strlen($password1)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_length"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if (0 < strlen($password1) && !_obfuscated_0D332D09292C0C371B23123004141F1B280C32332E0932_($password1)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_invalid"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_maconly && $macpswmode == MACPSWMODE_USER) { 
        if (strlen($password1) < min_pswhsmac_len || max_pswhsmac_len < strlen($password1)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_length"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if (0 < strlen($password1) && !_obfuscated_0D332D09292C0C371B23123004141F1B280C32332E0932_($password1, true)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_invalid"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if (!is_numeric($simuse) && $simuse != "") { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_simuse_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($maccm != "" && !_obfuscated_0D39093C370C052A022507042C3E403739023C2E132301_($maccm)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mac_cm"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
        if (!_obfuscated_0D39093C370C052A022507042C3E403739023C2E132301_($maccm)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mac_cm"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if (_obfuscated_0D255C073E0C2B2D301336361234191701161503160B22_(dhcp_cm, $maccm, $username, $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_maccm_already_assigned") . " " . $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_; 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($mac != "" && !_obfuscated_0D39093C370C052A022507042C3E403739023C2E132301_($mac)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mac_cpe"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
        if ($ipmodecpe == ipmode_radius || $ipmodecpe == ipmode_static) { 
            if (!_obfuscated_0D39093C370C052A022507042C3E403739023C2E132301_($mac)) { 
                if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                    $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mac_cpe"); 
                } 
                $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
            } 
            if (_obfuscated_0D255C073E0C2B2D301336361234191701161503160B22_(dhcp_cpe, $mac, $username, $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_)) { 
                if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                    $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_maccpe_already_assigned") . " " . $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_; 
                } 
                $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
            } 
        } 
    } else { 
        if ($usemacauth == 1 && !_obfuscated_0D39093C370C052A022507042C3E403739023C2E132301_($mac)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mac_cpe"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
        if ($ipmodecm == ipmode_radius && _obfuscated_0D18180514231A2A11123C40363D3B15183B2E3F371E11_($poolidcm) != POOLTYPE_DOCSIS) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_invalid_pool"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if ($ipmodecpe == ipmode_radius && _obfuscated_0D18180514231A2A11123C40363D3B15183B2E3F371E11_($poolidcpe) != POOLTYPE_DOCSIS) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_invalid_pool"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if (($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_maconly) && $ipmodecpe == ipmode_radius && _obfuscated_0D18180514231A2A11123C40363D3B15183B2E3F371E11_($poolidcpe) != POOLTYPE_RADIUS) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_invalid_pool"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($ipmodecm == ipmode_static) { 
        if (!_obfuscated_0D0E2C2127082E5B18290807153E3F153D3F0132090411_($staticipcm)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ip_format"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } else { 
        if ($staticipcm != "" && !_obfuscated_0D0E2C2127082E5B18290807153E3F153D3F0132090411_($staticipcm)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ip_format"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($ipmodecpe == ipmode_static) { 
        if (!_obfuscated_0D0E2C2127082E5B18290807153E3F153D3F0132090411_($staticipcpe)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ip_format"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } else { 
        if ($staticipcpe != "" && !_obfuscated_0D0E2C2127082E5B18290807153E3F153D3F0132090411_($staticipcpe)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ip_format"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($ipmodecm == ipmode_static && $staticipcm != "" && _obfuscated_0D400B0D32173125243039230F2821135C37252D382922_(dhcp_cm, $staticipcm, $username, $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ip_cm_already_assigned") . " " . $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_; 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($ipmodecpe == ipmode_static && $staticipcpe != "" && _obfuscated_0D400B0D32173125243039230F2821135C37252D382922_(dhcp_cpe, $staticipcpe, $username, $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ip_cpe_already_assigned") . " " . $_obfuscated_0D0B0E31382D222B01030D320D282D252E5B363C0E0222_; 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($srvid == "") { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_srv_not_sel"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($expiration == "") { 
        $expiration = date("Y-m-d"); 
    } 
    if (!_obfuscated_0D342F3B363C3F27292717095C36080D0E2D27271F0501_($expiration)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_exp_date"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT username
  		      FROM rm_users
  		      WHERE username = '" . $username . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (0 < mysql_num_rows($res)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_user_exists"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_22141931381B11_ < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_credits_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
        if ($ipmodecm == ipmode_radius) { 
            $staticipcm = _obfuscated_0D1C242B0F100A3D1A0B29352A271D2103241F1C0E1332_($poolidcm, dhcp_cm, $username); 
            if (!$staticipcm) { 
                if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                    $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_free_ip_cm"); 
                } 
                $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
            } 
        } 
        if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis && $ipmodecpe == ipmode_radius) { 
            $staticipcpe = _obfuscated_0D1C242B0F100A3D1A0B29352A271D2103241F1C0E1332_($poolidcpe, dhcp_cpe, $username); 
            if (!$staticipcpe) { 
                if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                    $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_free_ip_cpe"); 
                } 
                $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
            } 
        } 
    } 
    $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ = _obfuscated_0D2A0C102B15103228350F2B3B0B085B0E38183D052232_(strtolower($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_)); 
    if ($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ != "" && !_obfuscated_0D5C26395B04403C2F120918380D10050F060533122F32_($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, TRUE)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_email_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if (!$_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
        if ($_SESSION["TMPCNICIMG1"]) { 
            rename($_SESSION["TMPCNICIMG1"], cnic_dir . "/" . $username . "1.jpg"); 
            $_SESSION["TMPCNICIMG1"] = NULL; 
        } 
        if ($_SESSION["TMPCNICIMG2"]) { 
            rename($_SESSION["TMPCNICIMG2"], cnic_dir . "/" . $username . "2.jpg"); 
            $_SESSION["TMPCNICIMG2"] = NULL; 
        } 
    } 
    $_obfuscated_1132062F2D3B0E3825152532_ = "SELECT reg_firstname, reg_lastname, reg_address, reg_city, reg_zip, reg_country, reg_state, reg_phone,
  	    reg_mobile, reg_email, reg_vatid
  	    FROM rm_settings
  	   "; 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    if ($row["reg_firstname"] && !$firstname) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_firstname_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_lastname"] && !$lastname) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_lastname_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_address"] && !$address) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_address_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_city"] && !$city) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_city_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_zip"] && !$_obfuscated_1535143F362A0426310E302A32_) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_zip_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_country"] && !$country) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_country_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_state"] && !$state) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_state_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_phone"] && !$_obfuscated_2D1A0D2839352927182F32_) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_phone_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_mobile"] && !$_obfuscated_1D3C3209161C2A0D120F0D11_) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mobile_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_email"] && !$_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_email_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($row["reg_vatid"] && !$taxid) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_vatid_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
        return _obfuscated_0D152D363E242B152A2C09251E1132132604155C0F1332_($username, $enableuser, $srvid, $password1, $password2, $mac, $usemacauth, $firstname, $lastname, $company, $_obfuscated_2D1A0D2839352927182F32_, $_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, $address, $city, $_obfuscated_1535143F362A0426310E302A32_, $country, $state, $downlimit, $uplimit, $comblimit, $expiration, $_obfuscated_053601_, $comment, $staticipcm, $staticipcpe, $ipmodecm, $ipmodecpe, $simuse, $_obfuscated_1B01242F0F25053422_, $taxid, $_obfuscated_3C5B18380E020614373516212311_, $maccm, $_obfuscated_22141931381B11_, $groupid, $custattr, $poolidcm, $poolidcpe, $contractid, $contractvalid, $_obfuscated_3122_, $_obfuscated_01_, $lang, $macpswmode, $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
    } 
    $_obfuscated_0D191D030617292C2A061822171118213818191F0E1101_ = $_SESSION["AUTH_MANAGER"]; 
    setcookie("newuser_acctype", $_obfuscated_1B01242F0F25053422_, time() + 60 * 60 * 24 * 365); 
    $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
    $res = mysql_query("" . "SELECT perm_edituserspriv
  		      FROM rm_managers
  		      WHERE managername = '" . $_obfuscated_22_ . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    if ($row["perm_edituserspriv"] == 0) { 
        $res = mysql_query("" . "SELECT initdl, initul, inittotal, inittimeexp, inittimeonline, timebaseexp, timebaseonline
  		        FROM rm_services
  		        WHERE srvid = " . $srvid . "
  		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $downlimit = $row["initdl"] * 1048576; 
        $uplimit = $row["initul"] * 1048576; 
        $comblimit = $row["inittotal"] * 1048576; 
        $_obfuscated_0D1E302B26242A1D1D0C033E09081F1032171F031B0501_ = $row["inittimeexp"]; 
        $_obfuscated_372E1F3D211F0E0B320B27372E193C01_ = $row["inittimeonline"]; 
        $_obfuscated_1C131E321C152D0F32_ = $row["timebaseexp"]; 
        $_obfuscated_0322_ = $row["timebaseonline"]; 
        switch ($_obfuscated_1C131E321C152D0F32_) { 
            case expiremode_days: 
                $expiration = date("Y-m-d", strtotime("+" . $_obfuscated_0D1E302B26242A1D1D0C033E09081F1032171F031B0501_ . "day")); 
                break; 
            case expiremode_months: 
                $expiration = date("Y-m-d", strtotime("+" . $_obfuscated_0D1E302B26242A1D1D0C033E09081F1032171F031B0501_ . "month")); 
        } 
        switch ($_obfuscated_0322_) { 
            case timebase_minutes: 
                $_obfuscated_053601_ = $_obfuscated_372E1F3D211F0E0B320B27372E193C01_ * 60; 
                break; 
            case timebase_hours: 
                $_obfuscated_053601_ = $_obfuscated_372E1F3D211F0E0B320B27372E193C01_ * 3600; 
        } 
    } 
    $_obfuscated_1132062F2D3B0E3825152532_ = "" . "INSERT INTO rm_users (
   	    username, password, downlimit, uplimit, comblimit, firstname, lastname, company,
   	    phone, mobile, email, address, city, zip, country, state, comment, mac, expiration,
   	    enableuser, usemacauth, uptimelimit, srvid, staticipcm, staticipcpe, ipmodecm, ipmodecpe,
            createdon, acctype, createdby, taxid, cnic, maccm, credits, owner, groupid, custattr, poolidcm, poolidcpe,
            contractid, contractvalid, gpslong, gpslat, alertemail, alertsms, autorenew, lang, macpswmode)
            VALUES (
   	    '" . $username . "', MD5('" . $password1 . "'), '" . $downlimit . "', '" . $uplimit . "', '" . $comblimit . "', '" . $firstname . "', '" . $lastname . "', '" . $company . "',
   	    '" . $_obfuscated_2D1A0D2839352927182F32_ . "', '" . $_obfuscated_1D3C3209161C2A0D120F0D11_ . "', '" . $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ . "', '" . $address . "', '" . $city . "', '" . $_obfuscated_1535143F362A0426310E302A32_ . "', '" . $country . "', '" . $state . "', '" . $comment . "', '" . $mac . "', '" . $expiration . "',
   	    '" . $enableuser . "', '" . $usemacauth . "', '" . $_obfuscated_053601_ . "', '" . $srvid . "', '" . $staticipcm . "', '" . $staticipcpe . "', '" . $ipmodecm . "', '" . $ipmodecpe . "',
   	    NOW(), '" . $_obfuscated_1B01242F0F25053422_ . "', '" . $_obfuscated_0D191D030617292C2A061822171118213818191F0E1101_ . "', '" . $taxid . "', '" . $_obfuscated_3C5B18380E020614373516212311_ . "', '" . $maccm . "', '" . $_obfuscated_22141931381B11_ . "', '" . $_obfuscated_0D191D030617292C2A061822171118213818191F0E1101_ . "', '" . $groupid . "', '" . $custattr . "', '" . $poolidcm . "', '" . $poolidcpe . "',
   	    '" . $contractid . "', '" . $contractvalid . "', '" . $_obfuscated_3122_ . "', '" . $_obfuscated_01_ . "', 1, 1, 1, '" . $lang . "', '" . $macpswmode . "' )
   	   "; 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_aclmikrotik) { 
        $password1 = ""; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_maconly) { 
        switch ($macpswmode) { 
            case MACPSWMODE_BLANK: 
                $password1 = ""; 
                break; 
            case MACPSWMODE_USER: 
                break; 
            case MACPSWMODE_MAC: 
                $password1 = $username; 
        } 
    } 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_aclstaros) { 
        $password1 = $username; 
    } 
    if ($_obfuscated_1B01242F0F25053422_ != acctype_docsis) { 
        $res = mysql_query("" . "INSERT INTO radcheck (UserName, Attribute, op, Value)
                        VALUES ('" . $username . "', 'Cleartext-Password', ':=', '" . $password1 . "')
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        if ($simuse != "") { 
            $res = mysql_query("" . "INSERT INTO radcheck (UserName, Attribute, op, Value)
                          VALUES ('" . $username . "', 'Simultaneous-Use', ':=', '" . $simuse . "')
                         ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } 
        if ($poolidcpe != "") { 
            $res = mysql_query("" . "INSERT INTO radcheck (UserName, Attribute, op, Value)
                          VALUES ('" . $username . "', 'Pool-Name', ':=', '" . $poolidcpe . "')
                         ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } 
    } 
    $res = mysql_query("" . "SELECT limitexpiration
  		      FROM rm_services
  		      WHERE srvid = " . $srvid . "
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_133611_ = $row[0]; 
    $_obfuscated_0D2F1C273B1A0E2B121C0411321D31110B3C05160E0622_ = "srv-" . str_pad($srvid, 3, "0", STR_PAD_LEFT) . ".cfg"; 
    $res = mysql_query("" . "SELECT srvname
                      FROM rm_services
                      WHERE srvid = '" . $srvid . "'
                     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_ = $row[0]; 
    $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
    $_obfuscated_1132062F2D3B0E3825152532_ = "INSERT INTO rm_changesrv
    	    (username, newsrvid, newsrvname, scheduledate, requestdate, status, requested)
            VALUES
            ('" . _obfuscated_0D020B3D3D5C0C3415352A281F2905291A3D1606323232_($username) . "', '" . _obfuscated_0D020B3D3D5C0C3415352A281F2905291A3D1606323232_($srvid) . "', '" . _obfuscated_0D020B3D3D5C0C3415352A281F2905291A3D1606323232_($_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_) . "', NOW(), NOW(), 1, '" . _obfuscated_0D020B3D3D5C0C3415352A281F2905291A3D1606323232_($_obfuscated_22_) . "')
           "; 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
        if (_obfuscated_0D10115B06380B0A085B3E141B26041C1037211D291732_(dhcp_cm, $username) && !_obfuscated_0D1B37280E101B381633272E393B2835301D083E252E32_(dhcp_cm, $username)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dhcp_file")); 
        } 
        if (_obfuscated_0D10115B06380B0A085B3E141B26041C1037211D291732_(dhcp_cpe, $username) && !_obfuscated_0D1B37280E101B381633272E393B2835301D083E252E32_(dhcp_cpe, $username)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dhcp_file")); 
        } 
        if ($enableuser && _obfuscated_0D3E18240F163E3D260E3D1E1A2D0602132A2E31013C32_($expiration, $srvid)) { 
            if (!_obfuscated_0D322F243C2D09331931373D39403C281F36323C310122_(dhcp_cm, $username, $maccm, $staticipcm, $_obfuscated_0D2F1C273B1A0E2B121C0411321D31110B3C05160E0622_)) { 
                return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dhcp_file")); 
            } 
            if (($ipmodecpe == ipmode_radius || $ipmodecpe == ipmode_static) && !_obfuscated_0D322F243C2D09331931373D39403C281F36323C310122_(dhcp_cpe, $username, $mac, $staticipcpe)) { 
                return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dhcp_file")); 
            } 
        } 
        _obfuscated_0D04293B295C3D2D402B0929061F1625021A0A3D293922_(); 
    } 
    if ($GLOBALS["_unixacc"] && ($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_docsis)) { 
        $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ = $firstname . " " . $lastname; 
        if ($_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ == "") { 
            $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_default_fullname"); 
        } 
        _obfuscated_0D3D1638331D0503180622113138360C3B2810231E0122_($username, $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_); 
        _obfuscated_0D2C32192D2939121D063E223908240F0C2E1D381C1722_($username, $password1); 
        _obfuscated_0D5C132C0215221518380E3D05122A193026151C333401_($username); 
        if ($enableuser) { 
            _obfuscated_0D2215012D10402D3F05030E090D081027052D13032C22_($username, true); 
        } else { 
            _obfuscated_0D2215012D10402D3F05030E090D081027052D13032C22_($username, false); 
        } 
        if ($_obfuscated_133611_) { 
            _obfuscated_0D3F083739090A293015063640213C131D1B2F1A250811_($username, true, $expiration); 
        } else { 
            _obfuscated_0D3F083739090A293015063640213C131D1B2F1A250811_($username, false); 
        } 
        if ($GLOBALS["_diskquota"]) { 
            _obfuscated_0D0402240E3E1E11273B3215090A2D32070916293C0B32_($username, $GLOBALS["_quotatpl"]); 
        } 
    } 
    if ($GLOBALS["_emailwelcome"] && ($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_maconly || $_obfuscated_1B01242F0F25053422_ == acctype_docsis)) { 
        $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = radman_dir . "/" . lang_dir . "/" . _obfuscated_0D0A363B320D02092B311815332722260C38302A0B3332_($username) . "/" . mailwelcomeuser_tpl; 
        if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
            $_obfuscated_1E3404280C0F3022_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
            if ($firstname == "" && $lastname == "") { 
                $_obfuscated_0D1918041B1F3F3F0A1616323C3C3E382A112A2B311101_ = $username; 
            } else { 
                $_obfuscated_0D1918041B1F3F3F0A1616323C3C3E382A112A2B311101_ = $firstname . " " . $lastname; 
            } 
            if ($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ == "" && mail_usedomain) { 
                $_obfuscated_0D2F0B150E013E0B36301B3022150410392B0E113D0732_ = $username . "@" . mail_domain; 
            } else { 
                $_obfuscated_0D2F0B150E013E0B36301B3022150410392B0E113D0732_ = $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_; 
            } 
            $_obfuscated_1E3404280C0F3022_ = str_replace("{NAME}", $_obfuscated_0D1918041B1F3F3F0A1616323C3C3E382A112A2B311101_, $_obfuscated_1E3404280C0F3022_); 
            $_obfuscated_1E3404280C0F3022_ = str_replace("{USERNAME}", $username, $_obfuscated_1E3404280C0F3022_); 
            $_obfuscated_1E3404280C0F3022_ = str_replace("{FIRSTNAME}", $_obfuscated_0D1918041B1F3F3F0A1616323C3C3E382A112A2B311101_, $_obfuscated_1E3404280C0F3022_); 
            $_obfuscated_1E3404280C0F3022_ = str_replace("{LASTNAME}", $_obfuscated_0D1918041B1F3F3F0A1616323C3C3E382A112A2B311101_, $_obfuscated_1E3404280C0F3022_); 
            $_obfuscated_1E3404280C0F3022_ = str_replace("{PASSWORD}", $password1, $_obfuscated_1E3404280C0F3022_); 
            $_obfuscated_1E3404280C0F3022_ = str_replace("{SRVNAME}", $_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_, $_obfuscated_1E3404280C0F3022_); 
            $_obfuscated_142509303C11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_emailsubjwelcome"); 
            _obfuscated_0D3F093728281012172C032E2E3C290D260E3625273C11_($_obfuscated_0D2F0B150E013E0B36301B3022150410392B0E113D0732_, $_obfuscated_142509303C11_, $_obfuscated_1E3404280C0F3022_, $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
        } else { 
            exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
        } 
    } 
    if ($GLOBALS["_smswelcome"] && ($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_maconly || $_obfuscated_1B01242F0F25053422_ == acctype_docsis)) { 
        $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = radman_dir . "/" . lang_dir . "/" . _obfuscated_0D0A363B320D02092B311815332722260C38302A0B3332_($username) . "/" . smswelcomeuser_tpl; 
        if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
            $_obfuscated_0D350B283836352E0E0F29392829170A23271C0C060911_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
            $_obfuscated_0D350B283836352E0E0F29392829170A23271C0C060911_ = str_replace("{USERNAME}", $username, $_obfuscated_0D350B283836352E0E0F29392829170A23271C0C060911_); 
            $_obfuscated_0D350B283836352E0E0F29392829170A23271C0C060911_ = str_replace("{PASSWORD}", $password1, $_obfuscated_0D350B283836352E0E0F29392829170A23271C0C060911_); 
            $_obfuscated_0D350B283836352E0E0F29392829170A23271C0C060911_ = str_replace("{SRVNAME}", $_obfuscated_0D1E1C293C30021D19021B401203190C3E10101E3D3F32_, $_obfuscated_0D350B283836352E0E0F29392829170A23271C0C060911_); 
            sendsms($_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_0D350B283836352E0E0F29392829170A23271C0C060911_, $_obfuscated_2C2532_); 
        } else { 
            exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
        } 
    } 
    _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_user_registered, $username); 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_user_created")); 
} 
function _obfuscated_0D2E1D1D073125043E012A070B0D362F180F021E1A1911_($username) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_deleteusers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT acctype
		      FROM rm_users
		      WHERE username = '" . $username . "'
		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_1B01242F0F25053422_ = $row[0]; 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_carduser || $_obfuscated_1B01242F0F25053422_ == acctype_ias) { 
        $res = mysql_query("" . "DELETE FROM rm_cards
	    		WHERE cardnum = '" . $username . "'
	    	       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    } 
    $res = mysql_query("" . "SELECT username
		      FROM rm_users
		      WHERE username = '" . $username . "'
		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (mysql_num_rows($res) == 0) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_user_not_found")); 
    } 
    _obfuscated_0D2C0F0718152B2314173D213515280236223C24024022_($username); 
    $res = mysql_query("" . "DELETE FROM rm_users
		      WHERE username = '" . $username . "'
		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "DELETE FROM rm_changesrv
		      WHERE username = '" . $username . "'
		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "DELETE FROM radcheck
		      WHERE username = '" . $username . "'
		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "DELETE FROM radacct
		      WHERE username = '" . $username . "'
		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "DELETE FROM rm_radacct
		      WHERE username = '" . $username . "'
		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ = invgroup_users; 
    $res = mysql_query("" . "DELETE FROM rm_invoices
		      WHERE username = '" . $username . "' AND invgroup = '" . $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ . "'
		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if ($_obfuscated_1B01242F0F25053422_ == acctype_docsis) { 
        if (!_obfuscated_0D1B37280E101B381633272E393B2835301D083E252E32_(dhcp_cm, $username)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dhcp_file")); 
        } 
        if (!_obfuscated_0D1B37280E101B381633272E393B2835301D083E252E32_(dhcp_cpe, $username)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dhcp_file")); 
        } 
        _obfuscated_0D04293B295C3D2D402B0929061F1625021A0A3D293922_(); 
    } 
    foreach (glob(cnic_dir . "/" . $username . "*") as $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_) { 
        unlink($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
    } 
    foreach (glob(RRD_DIR . "/" . $username . "*") as $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_) { 
        unlink($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
    } 
    if ($GLOBALS["_unixacc"] && ($_obfuscated_1B01242F0F25053422_ == acctype_regular || $_obfuscated_1B01242F0F25053422_ == acctype_docsis)) { 
        _obfuscated_0D5C2C22183B08351140050D312E232436100417162C22_($username); 
    } 
    _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_user_deleted, $username); 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_user_deleted")); 
} 
function _obfuscated_0D0628131F232F0C26261F07152B0F290D251E11330422_($from, $ordercol, $ordertype, $chord, $lastorder, $filternasid, $filterapid, $filtergroupid, $filterusername) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_listonlineusers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = listonlineradius_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ = "&filternasid={FILTERNASID}&filterapid={FILTERAPID}&filtergroupid={FILTERGROUPID}&filterusername={FILTERUSERNAME}"; 
        $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
        $_obfuscated_0D1B25133611270E32281538150D330C39174023271C11_ = COLSET_LISTRADIUS; 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT colname
  	    FROM `" . $_obfuscated_0D1B25133611270E32281538150D330C39174023271C11_ . "`
  	    WHERE managername = '" . $_obfuscated_22_ . "'
           "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_231D1A153B0709363F1D1B32_[$row[0]] = 1; 
        } 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_ = new CTable("100%"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("tb-header"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddHead(array("<a onclick=\"ToggleTable()\" href=\"#\">#</a>", "", "", "", table_col_width), array("<input name=\"select\" type=\"checkbox\" id=\"select\" onClick=\"ToggleCheckBoxes()\"", "", "", "", table_col_width), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=username&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR1}</a></strong></td><td><img src=\"images/{USERNAMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["username"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=starttime&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR2}</a><strong></td><td><img src=\"images/{STARTTIMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["starttime"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=onlinetime&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR3}</a><strong></td><td><img src=\"images/{ONLINETIMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["onlinetime"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=download&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR4}</a><strong></td><td><img src=\"images/{DLARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["download"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=upload&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR5}</a><strong></td><td><img src=\"images/{ULARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["upload"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=ip&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR6}</a><strong></td><td><img src=\"images/{IPARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["ip"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=mac&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR7}</a><strong></td><td><img src=\"images/{MACARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["mac"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=apname&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR16}</a><strong></td><td><img src=\"images/{APNAMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["apname"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=signal&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR17}</a><strong></td><td><img src=\"images/{SIGNALARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["signal"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=snr&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR18}</a><strong></td><td><img src=\"images/{SNRARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["snr"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=ccq&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR19}</a><strong></td><td><img src=\"images/{CCQARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["ccq"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=nas&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR8}</a><strong></td><td><img src=\"images/{NASARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["nas"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=group&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR15}</a><strong></td><td><img src=\"images/{GROUPARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["group"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=firstname&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR20}</a><strong></td><td><img src=\"images/{FIRSTNAMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["firstname"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=lastname&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR21}</a><strong></td><td><img src=\"images/{LASTNAMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["lastname"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=company&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR22}</a><strong></td><td><img src=\"images/{COMPANYARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["company"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=address&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR23}</a><strong></td><td><img src=\"images/{ADDRESSARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["address"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=city&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR24}</a><strong></td><td><img src=\"images/{CITYARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["city"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=zip&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR25}</a><strong></td><td><img src=\"images/{ZIPARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["zip"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=country&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR26}</a><strong></td><td><img src=\"images/{COUNTRYARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["country"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=state&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR27}</a><strong></td><td><img src=\"images/{STATEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["state"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=email&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR28}</a><strong></td><td><img src=\"images/{EMAILARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["email"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_online_radius&ordercol=comment&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}&" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{ONLINEUSR29}</a><strong></td><td><img src=\"images/{COMMENTARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["comment"])); 
        if ($ordercol == "") { 
            $ordercol = $_COOKIE["online_ordercol"]; 
        } 
        if ($ordertype == "") { 
            $ordertype = $_COOKIE["online_ordertype"]; 
        } 
        if ($lastorder == "") { 
            $lastorder = $_COOKIE["online_lastorder"]; 
        } 
        if ($ordertype == "") { 
            $ordertype = "ASC"; 
        } 
        if ($ordercol == "") { 
            $ordercol = "username"; 
        } 
        switch ($ordercol) { 
            case "username": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "radacct.username"; 
                break; 
            case "starttime": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "radacct.acctstarttime"; 
                break; 
            case "onlinetime": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "radacct.acctsessiontime"; 
                break; 
            case "download": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "radacct.acctoutputoctets"; 
                break; 
            case "upload": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "radacct.acctinputoctets"; 
                break; 
            case "ip": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "INET_ATON(radacct.framedipaddress)"; 
                break; 
            case "mac": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "radacct.callingstationid"; 
                break; 
            case "apname": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_ap.name"; 
                break; 
            case "signal": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_wlan.uspwr"; 
                break; 
            case "snr": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_wlan.snr"; 
                break; 
            case "ccq": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_wlan.ccq"; 
                break; 
            case "nas": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "nas.shortname"; 
                break; 
            case "group": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_usergroups.groupid"; 
                break; 
            case "firstname": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_users.firstname"; 
                break; 
            case "lastname": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_users.lastname"; 
                break; 
            case "company": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_users.company"; 
                break; 
            case "address": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_users.address"; 
                break; 
            case "city": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_users.city"; 
                break; 
            case "zip": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_users.zip"; 
                break; 
            case "country": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_users.country"; 
                break; 
            case "state": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_users.state"; 
                break; 
            case "email": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_users.email"; 
                break; 
            case "comment": 
                $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ = "rm_users.comment"; 
        } 
        if ($_obfuscated_042E210232_ == "true" && $lastorder == $ordercol) { 
            if ($ordertype == "DESC") { 
                $ordertype = "ASC"; 
            } else { 
                $ordertype = "DESC"; 
            } 
        } 
        setcookie("online_ordercol", $ordercol, time() + 60 * 60 * 24 * 365); 
        setcookie("online_ordertype", $ordertype, time() + 60 * 60 * 24 * 365); 
        setcookie("online_lastorder", $lastorder, time() + 60 * 60 * 24 * 365); 
        if (_obfuscated_0D0B1A021D04142810263E0E12092A212D161E2E2F2E22_("rm_wlan")) { 
            $_obfuscated_0B17311415142D211A2C3230193F3B32_ = ", rm_wlan.uspwr, rm_wlan.snr, rm_wlan.ccq, rm_wlan.timestamp, rm_ap.id, rm_ap.name"; 
            $_obfuscated_352F1E3D063C2F32_ = "LEFT JOIN rm_wlan ON rm_wlan.maccpe = REPLACE(radacct.callingstationid, '-', ':') OR rm_wlan.maccpe = radacct.callingstationid
    		      LEFT JOIN rm_ap ON rm_wlan.apip = rm_ap.ip"; 
        } 
        if ($filterusername != "") { 
            $_obfuscated_0D190D0703181D15151C331A0E190C1B33235B09301022_ = "" . "AND radacct.username LIKE '" . $filterusername . "%'"; 
        } 
        if ($filternasid != "") { 
            $_obfuscated_0D052A30123C30363D2A081D0B210E0B1C04240D2D1511_ = "" . "AND nas.id = '" . $filternasid . "'"; 
        } 
        if ($_obfuscated_08382F113638213C132801060601_ != "") { 
            $_obfuscated_0D08152129292208281938130C1E281C2D1E18160D0D22_ = "" . "AND rm_ap.id = '" . $_obfuscated_08382F113638213C132801060601_ . "'"; 
        } 
        if ($filtergroupid != "") { 
            $_obfuscated_1D3C06382E21063734072B322B32_ = "" . "AND rm_usergroups.groupid = '" . $filtergroupid . "'"; 
        } 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_allusers") && ($owner = $_SESSION["AUTH_MANAGER"])) { 
            $_obfuscated_0D2E190D1C311128062C241309211B3B16303F14254022_ = "" . "AND rm_users.owner = '" . $owner . "'"; 
        } 
        $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = rows_per_page; 
        if ($from == "" || $from < 0) { 
            $from = 0; 
        } 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT SQL_CALC_FOUND_ROWS radacct.acctuniqueid, radacct.username, radacct.nasipaddress, radacct.acctstarttime,
	  	    radacct.framedipaddress, radacct.acctoutputoctets, radacct.acctinputoctets, radacct.acctsessiontime,
	  	    radacct.callingstationid, nas.shortname, nas.id,
	  	    SUM(rm_radacct.dlbytes), SUM(rm_radacct.ulbytes), SUM(rm_radacct.acctsessiontime),
	  	    rm_usergroups.groupname, rm_usergroups.groupid,
	  	    firstname, lastname, company, address, city, zip, country, state, email, comment, enableuser
	  	    " . $_obfuscated_0B17311415142D211A2C3230193F3B32_ . "
	  	    FROM radacct
	  	    LEFT JOIN nas ON radacct.nasipaddress = nas.nasname
	  	    LEFT JOIN rm_radacct ON radacct.radacctid = rm_radacct.radacctid
	  	    LEFT JOIN rm_users ON radacct.username = rm_users.username
	  	    LEFT JOIN rm_usergroups ON rm_users.groupid = rm_usergroups.groupid
	  	    " . $_obfuscated_352F1E3D063C2F32_ . "
	  	    WHERE radacct.acctstoptime IS NULL
	  	    " . $_obfuscated_0D190D0703181D15151C331A0E190C1B33235B09301022_ . "
	  	    " . $_obfuscated_0D052A30123C30363D2A081D0B210E0B1C04240D2D1511_ . "
	  	    " . $_obfuscated_0D08152129292208281938130C1E281C2D1E18160D0D22_ . "
	  	    " . $_obfuscated_1D3C06382E21063734072B322B32_ . "
	  	    " . $_obfuscated_0D2E190D1C311128062C241309211B3B16303F14254022_ . "
	  	    GROUP BY radacct.radacctid
	  	    ORDER BY " . $_obfuscated_0D0F300C11322C362414180E0C21141C3E0C322D333811_ . " " . $ordertype . "" . "
	  	    LIMIT " . $from . ", " . $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ . "
	  	   "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("SELECT FOUND_ROWS()") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_row($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
        $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ = $row[0]; 
        $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
        $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ = $from + 1; 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_0D0E16111C102C0A100940280235125B2A22393D1E3401_ = $row[0]; 
            $username = $row[1]; 
            $_obfuscated_0D1C2B271D2B2F0F06395B2A1B231715152C0E18082332_ = $row[2]; 
            $_obfuscated_37330E3B2E083834013E31073B170A0C01_ = $row[3]; 
            $_obfuscated_2619031701_ = $row[4]; 
            $_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_ = $row[5]; 
            $_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_ = $row[6]; 
            $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_ = $row[7]; 
            $_obfuscated_0D0A2D2F0D05113613392203042A0934032E3E3F020D22_ = $row[8]; 
            $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ = $row[9]; 
            $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ = $row[10]; 
            $_obfuscated_0D1304270B222D3B3B0D3D1113053F022B0D2A5B120B22_ = $row[11]; 
            $_obfuscated_1D0428393236041332_ = $row[12]; 
            $_obfuscated_0D30291816212B0B0C2E143B3D242C2B072D15350D2811_ = $row[13]; 
            $_obfuscated_0D1E10172E1F0C1D0A0112343D28051614212E3D0D1E22_ = $row[14]; 
            $groupid = $row[15]; 
            $firstname = $row[16]; 
            $lastname = $row[17]; 
            $company = $row[18]; 
            $address = $row[19]; 
            $city = $row[20]; 
            $_obfuscated_1535143F362A0426310E302A32_ = $row[21]; 
            $country = $row[22]; 
            $state = $row[23]; 
            $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ = $row[24]; 
            $comment = $row[25]; 
            $enableuser = $row[26]; 
            $_obfuscated_0D2A05273F062330252C38361F1D160F2C31351A300A32_ = $row[27]; 
            $_obfuscated_2F3D33222F251B0201_ = $row[28]; 
            $_obfuscated_0D40231F0D041F045B14010C163B2A3D032D2F370E1011_ = $row[29]; 
            $_obfuscated_0D0C231332320921040A3C1D19133B1E0E1E5B080A0C11_ = $row[30]; 
            $_obfuscated_1C400F5B1131350E2A082E30121410333711_ = $row[31]; 
            $_obfuscated_0D030914372233332A2D150D2102370D2C380D39282C01_ = $row[32]; 
            $_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_ -= $_obfuscated_0D1304270B222D3B3B0D3D1113053F022B0D2A5B120B22_; 
            $_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_ -= $_obfuscated_1D0428393236041332_; 
            $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_ -= $_obfuscated_0D30291816212B0B0C2E143B3D242C2B072D15350D2811_; 
            if ($_obfuscated_0617153D3617173D032E37232D223D0B320C01_ != "") { 
                $_obfuscated_0D2C3D1B2A071D100A0B5B3111181D1A05112B02152132_ = "" . "<a href='admin.php?cont=edit_nas&id=" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . "'>" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</a>"; 
            } else { 
                $_obfuscated_0D2C3D1B2A071D100A0B5B3111181D1A05112B02152132_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } 
            if (0 < $_obfuscated_0D1304270B222D3B3B0D3D1113053F022B0D2A5B120B22_) { 
                $_obfuscated_0D18170522371F2739243B182223295B2E2E2B181E1201_ = col_specperiod; 
            } else { 
                $_obfuscated_0D18170522371F2739243B182223295B2E2E2B181E1201_ = $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_; 
            } 
            if (0 < $_obfuscated_1D0428393236041332_) { 
                $_obfuscated_12273D1831142E3C395B2B32_ = col_specperiod; 
            } else { 
                $_obfuscated_12273D1831142E3C395B2B32_ = $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_; 
            } 
            if (0 < $_obfuscated_0D30291816212B0B0C2E143B3D242C2B072D15350D2811_) { 
                $_obfuscated_0D3113091F4003282A061B3F2412032B10063D39381B32_ = col_specperiod; 
            } else { 
                $_obfuscated_0D3113091F4003282A061B3F2412032B10063D39381B32_ = $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_; 
            } 
            $_obfuscated_0D2C172F04013B310108192D1B3E2F15091E131E292222_ = strtotime($_obfuscated_0D0C231332320921040A3C1D19133B1E0E1E5B080A0C11_); 
            if ($_obfuscated_0D2A05273F062330252C38361F1D160F2C31351A300A32_ !== NULL) { 
                $_obfuscated_0D332F3B051E1E401C2C092A350E1A1012402E033F0101_ = _obfuscated_0D08191509071D5B31172F3C1D302E2B29190702220C11_($_obfuscated_0D2A05273F062330252C38361F1D160F2C31351A300A32_, SIG_PWRUS); 
                $_obfuscated_37371335011F01_ = new gradient_bar(GDBAR_WIDTH, GDBAR_HEIGHT, _obfuscated_0D2B0B0A2331050E020E033E073B0831111A0F3F132E32_($_obfuscated_0D2A05273F062330252C38361F1D160F2C31351A300A32_, WLAN_USSCALE_MIN, WLAN_USSCALE_MAX), $_obfuscated_0D332F3B051E1E401C2C092A350E1A1012402E033F0101_, $_obfuscated_0D332F3B051E1E401C2C092A350E1A1012402E033F0101_, $_obfuscated_0D332F3B051E1E401C2C092A350E1A1012402E033F0101_, GDBAR_BGCOLOR, tmp_images . "/wlan-" . $_obfuscated_0D0A2D2F0D05113613392203042A0934032E3E3F020D22_ . "-signal.png"); 
                $_obfuscated_0D242710123D0109052D2934361A2F1640301735111A32_ = $_obfuscated_0D2A05273F062330252C38361F1D160F2C31351A300A32_ . "<br><img src=\"" . tmp_images . "/wlan-" . $_obfuscated_0D0A2D2F0D05113613392203042A0934032E3E3F020D22_ . "" . "-signal.png?r=" . $_obfuscated_0D2C172F04013B310108192D1B3E2F15091E131E292222_ . "\" width=\"" . GDBAR_WIDTH . "\" height=\"" . GDBAR_HEIGHT . "\">"; 
            } else { 
                $_obfuscated_0D242710123D0109052D2934361A2F1640301735111A32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } 
            if ($_obfuscated_2F3D33222F251B0201_ !== NULL) { 
                $_obfuscated_32_ = _obfuscated_0D08191509071D5B31172F3C1D302E2B29190702220C11_($_obfuscated_2F3D33222F251B0201_, SIG_SNRUS); 
                $_obfuscated_37371335011F01_ = new gradient_bar(GDBAR_WIDTH, GDBAR_HEIGHT, _obfuscated_0D2B0B0A2331050E020E033E073B0831111A0F3F132E32_($_obfuscated_2F3D33222F251B0201_, WLAN_SNRSCALE_MIN, WLAN_SNRSCALE_MAX), $_obfuscated_32_, $_obfuscated_32_, $_obfuscated_32_, GDBAR_BGCOLOR, tmp_images . "/wlan-" . $_obfuscated_0D0A2D2F0D05113613392203042A0934032E3E3F020D22_ . "-snr.png"); 
                $_obfuscated_0D2E130C373F3E3B232C2C181823212E36173C2B211C11_ = $_obfuscated_2F3D33222F251B0201_ . "<br><img src=\"" . tmp_images . "/wlan-" . $_obfuscated_0D0A2D2F0D05113613392203042A0934032E3E3F020D22_ . "" . "-snr.png?r=" . $_obfuscated_0D2C172F04013B310108192D1B3E2F15091E131E292222_ . "\" width=\"" . GDBAR_WIDTH . "\" height=\"" . GDBAR_HEIGHT . "\">"; 
            } else { 
                $_obfuscated_0D2E130C373F3E3B232C2C181823212E36173C2B211C11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } 
            if ($_obfuscated_0D40231F0D041F045B14010C163B2A3D032D2F370E1011_ !== NULL) { 
                $_obfuscated_22_ = _obfuscated_0D08191509071D5B31172F3C1D302E2B29190702220C11_($_obfuscated_0D40231F0D041F045B14010C163B2A3D032D2F370E1011_, SIG_CCQUS); 
                $_obfuscated_37371335011F01_ = new gradient_bar(GDBAR_WIDTH, GDBAR_HEIGHT, $_obfuscated_0D40231F0D041F045B14010C163B2A3D032D2F370E1011_, $_obfuscated_22_, $_obfuscated_22_, $_obfuscated_22_, GDBAR_BGCOLOR, tmp_images . "/wlan-" . $_obfuscated_0D0A2D2F0D05113613392203042A0934032E3E3F020D22_ . "-ccq.png"); 
                $_obfuscated_1238371E281D073C03275B25100E261D11_ = $_obfuscated_0D40231F0D041F045B14010C163B2A3D032D2F370E1011_ . "<br><img src=\"" . tmp_images . "/wlan-" . $_obfuscated_0D0A2D2F0D05113613392203042A0934032E3E3F020D22_ . "" . "-ccq.png?r=" . $_obfuscated_0D2C172F04013B310108192D1B3E2F15091E131E292222_ . "\" width=\"" . GDBAR_WIDTH . "\" height=\"" . GDBAR_HEIGHT . "\">"; 
            } else { 
                $_obfuscated_1238371E281D073C03275B25100E261D11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } 
            if ($_obfuscated_1C400F5B1131350E2A082E30121410333711_ == "") { 
                $_obfuscated_0D01390A2B2240281B23401B29220812232F1E32332C11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } else { 
                $_obfuscated_0D01390A2B2240281B23401B29220812232F1E32332C11_ = "<a href=\"admin.php?cont=edit_ap&id=" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_ . "\">" . $_obfuscated_0D030914372233332A2D150D2102370D2C380D39282C01_ . "</a>"; 
            } 
            if ($_obfuscated_0D1E10172E1F0C1D0A0112343D28051614212E3D0D1E22_ == "") { 
                $_obfuscated_0D0C2C190B031D063707063527103D0A10081A1E1E3E11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } else { 
                $_obfuscated_0D0C2C190B031D063707063527103D0A10081A1E1E3E11_ = "<a href=\"admin.php?cont=edit_usergroup&id=" . $groupid . "\">" . $_obfuscated_0D1E10172E1F0C1D0A0112343D28051614212E3D0D1E22_ . "</a>"; 
            } 
            if ($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ != "") { 
                $_obfuscated_0D24261D031D262C23401E352124291C27253022270E11_ = "<a href=\"mailto:" . $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ . "\">" . $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ . "</a>"; 
            } else { 
                $_obfuscated_0D24261D031D262C23401E352124291C27253022270E11_ = ""; 
            } 
            if ($enableuser) { 
                $_obfuscated_0D2311170422120F24161B241B230D3C2B271B1E0F3422_ = $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_; 
            } else { 
                $_obfuscated_0D2311170422120F24161B241B230D3C2B271B1E0F3422_ = col_user_dis; 
            } 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("normal"); 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_); 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array($_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ . ".", "", "", $_obfuscated_0D2311170422120F24161B241B230D3C2B271B1E0F3422_), array("<input name=\"list[]\" type=\"checkbox\" id=\"list[]\" value=\"" . $_obfuscated_0D0E16111C102C0A100940280235125B2A22393D1E3401_ . "\">", "", "", ""), array("<a href=\"admin.php?cont=edit_user&username=" . strtolower($username) . "\">" . strtolower($username) . "</a>", "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["username"]), array($_obfuscated_37330E3B2E083834013E31073B170A0C01_, "right", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["starttime"]), array(_obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_), "right", "", $_obfuscated_0D3113091F4003282A061B3F2412032B10063D39381B32_, true, $_obfuscated_231D1A153B0709363F1D1B32_["onlinetime"]), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_, traffic_format_auto), "right", "", $_obfuscated_0D18170522371F2739243B182223295B2E2E2B181E1201_, true, $_obfuscated_231D1A153B0709363F1D1B32_["download"]), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_, traffic_format_auto), "right", "", $_obfuscated_12273D1831142E3C395B2B32_, true, $_obfuscated_231D1A153B0709363F1D1B32_["upload"]), array($_obfuscated_2619031701_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["ip"]), array($_obfuscated_0D0A2D2F0D05113613392203042A0934032E3E3F020D22_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["mac"]), array($_obfuscated_0D01390A2B2240281B23401B29220812232F1E32332C11_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["apname"]), array($_obfuscated_0D242710123D0109052D2934361A2F1640301735111A32_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["signal"]), array($_obfuscated_0D2E130C373F3E3B232C2C181823212E36173C2B211C11_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["snr"]), array($_obfuscated_1238371E281D073C03275B25100E261D11_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["ccq"]), array($_obfuscated_0D2C3D1B2A071D100A0B5B3111181D1A05112B02152132_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["nas"]), array($_obfuscated_0D0C2C190B031D063707063527103D0A10081A1E1E3E11_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["group"]), array($firstname, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["firstname"]), array($lastname, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["lastname"]), array($company, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["company"]), array($address, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["address"]), array($city, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["city"]), array($_obfuscated_1535143F362A0426310E302A32_, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["zip"]), array($country, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["country"]), array($state, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["state"]), array($_obfuscated_0D24261D031D262C23401E352124291C27253022270E11_, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["email"]), array($comment, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["comment"])); 
            $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_++; 
            if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor0) { 
                $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor1; 
            } else { 
                if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor1) { 
                    $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ONLINEUSERS}", $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->GetTable(), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_SPECPER}", col_specperiod, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_DISABLED}", col_user_dis, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($ordertype == "DESC") { 
            $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_ = arrow_up; 
        } else { 
            $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_ = arrow_down; 
        } 
        switch ($ordercol) { 
            case "username": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USERNAMEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "starttime": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARTTIMEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "onlinetime": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ONLINETIMEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "download": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "upload": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "ip": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{IPARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "mac": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MACARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "apname": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{APNAMEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "signal": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SIGNALARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "snr": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SNRARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "ccq": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CCQARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "nas": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{NASARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "group": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GROUPARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "firstname": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FIRSTNAMEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "lastname": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTNAMEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "company": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMPANYARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "address": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDRESSARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "city": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CITYARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "zip": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ZIPARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "country": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COUNTRYARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "state": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "email": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EMAILARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "comment": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENTARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USERNAMEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARTTIMEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ONLINETIMEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{IPARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MACARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{APNAMEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SIGNALARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SNRARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CCQARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{NASARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GROUPARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FIRSTNAMEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTNAMEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMPANYARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDRESSARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CITYARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ZIPARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COUNTRYARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EMAILARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENTARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SELCOLPARAMS}", "&from=" . $from . "&ordercol=" . $ordercol . "&ordertype=" . $ordertype . "&lastorder=" . $ordercol . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1229130223230A175B3E0D04403710071B2A06130632_ = array(array("colidx" => "encol_username", "colname" => "{ONLINEUSR1}"), array("colidx" => "encol_starttime", "colname" => "{ONLINEUSR2}"), array("colidx" => "encol_onlinetime", "colname" => "{ONLINEUSR3}"), array("colidx" => "encol_download", "colname" => "{ONLINEUSR4}"), array("colidx" => "encol_upload", "colname" => "{ONLINEUSR5}"), array("colidx" => "encol_ip", "colname" => "{ONLINEUSR6}"), array("colidx" => "encol_mac", "colname" => "{ONLINEUSR7}"), array("colidx" => "encol_apname", "colname" => "{ONLINEUSR16}"), array("colidx" => "encol_signal", "colname" => "{ONLINEUSR17}"), array("colidx" => "encol_snr", "colname" => "{ONLINEUSR18}"), array("colidx" => "encol_ccq", "colname" => "{ONLINEUSR19}"), array("colidx" => "encol_nas", "colname" => "{ONLINEUSR8}"), array("colidx" => "encol_group", "colname" => "{ONLINEUSR15}"), array("colidx" => "encol_firstname", "colname" => "{ONLINEUSR20}"), array("colidx" => "encol_lastname", "colname" => "{ONLINEUSR21}"), array("colidx" => "encol_company", "colname" => "{ONLINEUSR22}"), array("colidx" => "encol_address", "colname" => "{ONLINEUSR23}"), array("colidx" => "encol_city", "colname" => "{ONLINEUSR24}"), array("colidx" => "encol_zip", "colname" => "{ONLINEUSR25}"), array("colidx" => "encol_country", "colname" => "{ONLINEUSR26}"), array("colidx" => "encol_state", "colname" => "{ONLINEUSR27}"), array("colidx" => "encol_email", "colname" => "{ONLINEUSR28}"), array("colidx" => "encol_comment", "colname" => "{ONLINEUSR29}")); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COLUMNS}", _obfuscated_0D112B291818135C081E152C0E34050127283D0D063622_(COLSEL_OBJID, $_obfuscated_0D1229130223230A175B3E0D04403710071B2A06130632_, COLSET_LISTRADIUS), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_ = _obfuscated_0D0E06262D031728271222243B393C3819300725120A01_($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_, $from, rows_per_page, "admin.php?cont=list_online_radius" . "&ordercol=" . $ordercol . "&ordertype=" . $ordertype . "&lastorder=" . $ordercol . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{QUICKJUMP}", $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FILTERNASID}", $filternasid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FILTERAPID}", $_obfuscated_08382F113638213C132801060601_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FILTERGROUPID}", $filtergroupid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FILTERUSERNAME}", str_replace("%", "", $filterusername), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FROM}", $from, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTORDER}", $ordercol, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ORDERTYPE}", $ordertype, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($filternasid == "") { 
            $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ = "<OPTION SELECTED value=></OPTION>"; 
        } else { 
            $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ = "<OPTION value=></OPTION>"; 
        } 
        $res = mysql_query("SELECT id, shortname
  		      FROM nas
  		      ORDER BY shortname
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ = $row[0]; 
            $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ = $row[1]; 
            if ($filternasid == $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_) { 
                $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . "'>" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ .= "" . "<OPTION value='" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . "'>" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</OPTION>"; 
            } 
        } 
        if ($_obfuscated_08382F113638213C132801060601_ == "") { 
            $_obfuscated_0D272801390C38051E161E09292A3F2E14242A160B3432_ = "<OPTION SELECTED value=></OPTION>"; 
        } else { 
            $_obfuscated_0D272801390C38051E161E09292A3F2E14242A160B3432_ = "<OPTION value=></OPTION>"; 
        } 
        $res = mysql_query("SELECT id, name
  		      FROM rm_ap
  		      ORDER BY name
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_1C400F5B1131350E2A082E30121410333711_ = $row[0]; 
            $_obfuscated_0D030914372233332A2D150D2102370D2C380D39282C01_ = $row[1]; 
            if ($_obfuscated_08382F113638213C132801060601_ == $_obfuscated_1C400F5B1131350E2A082E30121410333711_) { 
                $_obfuscated_0D272801390C38051E161E09292A3F2E14242A160B3432_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_ . "'>" . $_obfuscated_0D030914372233332A2D150D2102370D2C380D39282C01_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D272801390C38051E161E09292A3F2E14242A160B3432_ .= "" . "<OPTION value='" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_ . "'>" . $_obfuscated_0D030914372233332A2D150D2102370D2C380D39282C01_ . "</OPTION>"; 
            } 
        } 
        if ($filtergroupid == "") { 
            $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ = "<OPTION SELECTED value=></OPTION>"; 
        } else { 
            $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ = "<OPTION value=></OPTION>"; 
        } 
        $res = mysql_query("SELECT groupid, groupname
  		      FROM rm_usergroups
  		      ORDER BY groupname
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ = $row[0]; 
            $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ = $row[1]; 
            if ($filtergroupid == $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_) { 
                $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ . "'>" . $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ .= "" . "<OPTION value='" . $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ . "'>" . $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{NASLIST}", $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{APLIST}", $_obfuscated_0D272801390C38051E161E09292A3F2E14242A160B3432_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GROUPLIST}", $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_113140231A2A2A2B32_($username) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_deleteusers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = confirmdeluser_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_2D300E230101_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_2D300E230101_ = str_replace("{USERNAME}", $username, $_obfuscated_2D300E230101_); 
        return $_obfuscated_2D300E230101_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D3F1024113D3431191401303F3B2B01052A2E1E0C3232_($sessid, $username) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_logout ")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = confirmclosesess_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_2D300E230101_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_2D300E230101_ = str_replace("{SESSID}", $_obfuscated_2F0716051C2B3B173810123F2601_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{USERNAME}", $username, $_obfuscated_2D300E230101_); 
        return $_obfuscated_2D300E230101_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0F1332_($username, $enableuser, $srvid, $password1, $password2, $mac, $usemacauth, $firstname, $lastname, $company, $phone, $mobile, $email, $address, $city, $zip, $country, $state, $downlimit, $uplimit, $comblimit, $expiration, $uptimelimit, $comment, $staticipcm, $staticipcpe, $ipmodecm, $ipmodecpe, $simuse, $acctype, $taxid, $cnic, $maccm, $credits, $groupid, $custattr, $poolidcm, $poolidcpe, $contractid, $contractvalid, $gpslong, $gpslat, $lang, $macpswmode, $error) 
{ 
    global $countrylist; 
    global $stateslist; 
    global $acctypeslist; 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_createusers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT rm_services.srvid, rm_services.srvname, rm_services.srvtype
  	  	      FROM rm_services
  		      LEFT JOIN rm_allowedmanagers ON rm_allowedmanagers.srvid = rm_services.srvid 
  		      WHERE enableservice = 1 AND rm_allowedmanagers.managername = '" . $_obfuscated_22_ . "'
  	  	      ORDER BY srvname
  	  	     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    for ($_obfuscated_1E102C2A11_ = 0; $row = mysql_fetch_array($res); $_obfuscated_1E102C2A11_++) { 
        $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][0] = $row[0]; 
        $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][1] = $row[1]; 
        $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][2] = $row[2]; 
    } 
    $res = mysql_query("SELECT id, name
  	  	      FROM rm_ippools
  	  	      ORDER BY name
  	  	     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    for ($_obfuscated_1E102C2A11_ = 0; $row = mysql_fetch_array($res); $_obfuscated_1E102C2A11_++) { 
        $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][0] = $row[0]; 
        $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][1] = $row[1]; 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = newuser_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
            $enableuser = 1; 
        } 
        if ($_obfuscated_383B38151816250D351704011601_ == "" || $_obfuscated_383B38151816250D351704011601_ < 0) { 
            $_obfuscated_383B38151816250D351704011601_ = 0; 
        } 
        if ($_obfuscated_0D2C0302283312042D320310240B1814222C0425152701_ == "" || $_obfuscated_0D2C0302283312042D320310240B1814222C0425152701_ < 0) { 
            $_obfuscated_0D2C0302283312042D320310240B1814222C0425152701_ = 0; 
        } 
        if ($simuse == "") { 
            $simuse = default_simuse; 
        } 
        if ($_obfuscated_1B01242F0F25053422_ == "") { 
            $_obfuscated_1B01242F0F25053422_ = $_COOKIE["newuser_acctype"]; 
            if ($_obfuscated_1B01242F0F25053422_ == "") { 
                $_obfuscated_1B01242F0F25053422_ = acctype_regular; 
            } 
        } 
        if ($expiration == "") { 
            $expiration = date("Y-m-d"); 
        } 
        if ($downlimit == "") { 
            $downlimit = 0; 
        } 
        if ($uplimit == "") { 
            $uplimit = 0; 
        } 
        if ($comblimit == "") { 
            $comblimit = 0; 
        } 
        if ($srvid == "") { 
            $srvid = 0; 
        } 
        if ($ipmodecm == "") { 
            $ipmodecm = ipmode_radius; 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($countrylist); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ = $countrylist[$_obfuscated_1E102C2A11_][0]; 
            if ($country == $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_) { 
                $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "'>" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_ .= "" . "<OPTION value='" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "'>" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "</OPTION>"; 
            } 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($stateslist); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ = $stateslist[$_obfuscated_1E102C2A11_][0]; 
            if ($state == $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_) { 
                $_obfuscated_2D32_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "'>" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "</OPTION>"; 
            } else { 
                $_obfuscated_2D32_ .= "" . "<OPTION value='" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "'>" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "</OPTION>"; 
            } 
        } 
        $res = mysql_query("SELECT groupid, groupname
  		      FROM rm_usergroups
  		      ORDER BY groupname
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ = $row[0]; 
            $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ = $row[1]; 
            if ($groupid == $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_) { 
                $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ . "'>" . $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ .= "" . "<OPTION value='" . $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ . "'>" . $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ . "</OPTION>"; 
            } 
        } 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_edituserspriv")) { 
            $_obfuscated_0D15163708161D10390B303E3725340F183C3F2F292411_ = "disabled"; 
            $_obfuscated_0D142C2B243F161A1B371A2136065B392117052B0B2F32_ = "disabled"; 
            $_obfuscated_0D10303F163615042C150F121B0B1216032D3C2D093601_ = "disabled"; 
            $_obfuscated_052D0C131315051E5B1A1501191A39210C3B1411_ = "disabled"; 
            $_obfuscated_0D322124013507033B2A3D0C232713402A230D08030411_ = "disabled"; 
            $_obfuscated_0D192E381122053D1A1B350E0D16051F241B3E1E2F1A32_ = "disabled"; 
            $_obfuscated_0D125B1F3B15235B1503013F390E101F231934011A0A22_ = "disabled"; 
            $_obfuscated_0D27191E0C0E04150B010E133F28182E0B151938341432_ = "disabled"; 
            $_obfuscated_0D110F051D051E17403D5B271512122A0D1A2D2A2E1701_ = "disabled"; 
        } 
        if (!_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_docsis)) { 
            $_obfuscated_0D1E2C321D163C361C243D261B3B400E2D1D24360C3922_ = "disabled"; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USERNAME}", $username, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PASSWORD1}", $password1, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PASSWORD2}", $password2, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PSWCHARS}", rndchars, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MAC}", $mac, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATICIPCM}", $staticipcm, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATICIPCPE}", $staticipcpe, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SIMUSE}", $simuse, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FIRSTNAME}", $firstname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTNAME}", $lastname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMPANY}", $company, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TAXID}", $taxid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CNIC}", $_obfuscated_3C5B18380E020614373516212311_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PHONE}", $_obfuscated_2D1A0D2839352927182F32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MOBILE}", $_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EMAIL}", $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDRESS}", $address, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CITY}", $city, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ZIP}", $_obfuscated_1535143F362A0426310E302A32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COUNTRYLIST}", $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATESLIST}", $_obfuscated_2D32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DOWNLIMIT}", $downlimit, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPLIMIT}", $uplimit, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMBLIMIT}", $comblimit, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EXPIRATION}", $expiration, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPTIMELIMIT}", _obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_053601_), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENT}", $comment, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MACCM}", $maccm, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CREDITS}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_22141931381B11_, false), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CURRENCY}", $GLOBALS["_currency"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GROUPLIST}", $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CUSTATTR}", $custattr, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CONTRACTID}", $contractid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CONTRACTVALID}", $contractvalid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GPSLONG}", $_obfuscated_3122_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GPSLAT}", $_obfuscated_01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_DOWNLIMIT}", $_obfuscated_0D15163708161D10390B303E3725340F183C3F2F292411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_UPLIMIT}", $_obfuscated_0D142C2B243F161A1B371A2136065B392117052B0B2F32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_COMBLIMIT}", $_obfuscated_0D10303F163615042C150F121B0B1216032D3C2D093601_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_EXPIRATION}", $_obfuscated_052D0C131315051E5B1A1501191A39210C3B1411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_UPTIMELIMIT}", $_obfuscated_0D322124013507033B2A3D0C232713402A230D08030411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_CREDITS}", $_obfuscated_0D192E381122053D1A1B350E0D16051F241B3E1E2F1A32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_DOCSIS}", $_obfuscated_0D1E2C321D163C361C243D261B3B400E2D1D24360C3922_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_SIMUSE}", $_obfuscated_0D125B1F3B15235B1503013F390E101F231934011A0A22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_CONTRACTID}", $_obfuscated_0D27191E0C0E04150B010E133F28182E0B151938341432_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_CONTRACTVALID}", $_obfuscated_0D110F051D051E17403D5B271512122A0D1A2D2A2E1701_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        switch ($_obfuscated_1B01242F0F25053422_) { 
            case acctype_regular: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGULAR}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACONLY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACLMIKROTIK}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACLSTAROS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCM}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case acctype_maconly: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGULAR}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACONLY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACLMIKROTIK}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACLSTAROS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCM}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case acctype_aclmikrotik: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGULAR}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACONLY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACLMIKROTIK}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACLSTAROS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCM}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case acctype_aclstaros: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGULAR}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACONLY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACLMIKROTIK}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACLSTAROS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCM}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case acctype_docsis: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGULAR}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACONLY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACLMIKROTIK}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACLSTAROS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCM}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($macpswmode) { 
            case MACPSWMODE_BLANK: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case MACPSWMODE_USER: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case MACPSWMODE_MAC: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACPSWMODE2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($enableuser == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENUSER}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENUSER}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($usemacauth == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDUSEMACAUTH}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDUSEMACAUTH}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($ipmodecm) { 
            case ipmode_radius: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECMRADIUS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECMSTATIC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ipmode_static: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECMRADIUS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECMSTATIC}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($ipmodecpe) { 
            case ipmode_nas: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPENAS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPERADIUS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPESTATIC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ipmode_radius: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPENAS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPERADIUS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPESTATIC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ipmode_static: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPENAS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPERADIUS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIPMODECPESTATIC}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ = $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][0]; 
            $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ = $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][1]; 
            if ($_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][2] != srvtype_prepaid_card) { 
                if ($_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ == $srvid) { 
                    $_obfuscated_3D2F162E272B3139102117043218101013343732_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ . ">" . $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ . "</OPTION>"; 
                } else { 
                    $_obfuscated_3D2F162E272B3139102117043218101013343732_ .= "" . "<OPTION value=" . $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ . ">" . $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ . "</OPTION>"; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVLIST}", $_obfuscated_3D2F162E272B3139102117043218101013343732_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_32_ = $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][0]; 
            $_obfuscated_0D1D10051E243C1A1E3F371B0C321C0239043C1C230911_ = $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][1]; 
            if ($_obfuscated_32_ == $poolidcm) { 
                $_obfuscated_120637150824101A223C21162A320725280A01_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_32_ . ">" . $_obfuscated_0D1D10051E243C1A1E3F371B0C321C0239043C1C230911_ . "</OPTION>"; 
            } else { 
                $_obfuscated_120637150824101A223C21162A320725280A01_ .= "" . "<OPTION value=" . $_obfuscated_32_ . ">" . $_obfuscated_0D1D10051E243C1A1E3F371B0C321C0239043C1C230911_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{IPPOOLLISTCM}", $_obfuscated_120637150824101A223C21162A320725280A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D1125290713113D372610183F22131E123635022F1211_ = $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][0]; 
            $_obfuscated_391E2E2B211E13392C0433163E1C23010532_ = $_obfuscated_0D22395B1802302808321E07293C102C27160C310E1F01_[$_obfuscated_1E102C2A11_][1]; 
            if ($_obfuscated_0D1125290713113D372610183F22131E123635022F1211_ == $poolidcpe) { 
                $_obfuscated_0D400B250334231317190D2A1F123533070C1B39072932_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D1125290713113D372610183F22131E123635022F1211_ . ">" . $_obfuscated_391E2E2B211E13392C0433163E1C23010532_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D400B250334231317190D2A1F123533070C1B39072932_ .= "" . "<OPTION value=" . $_obfuscated_0D1125290713113D372610183F22131E123635022F1211_ . ">" . $_obfuscated_391E2E2B211E13392C0433163E1C23010532_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{IPPOOLLISTCPE}", $_obfuscated_0D400B250334231317190D2A1F123533070C1B39072932_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_ = _obfuscated_0D112E0F262D111B401A1B5C3312253708221E281F2922_(); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_); $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] == $lang) { 
                $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . ">" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . "</OPTION>"; 
            } else { 
                $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_ .= "" . "<OPTION value=" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . ">" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LANGLIST}", $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_1B01242F0F25053422_ == acctype_regular) { 
            $_obfuscated_0D292F143126351901021B383D121D2D132A0A2C091111_ = ""; 
        } else { 
            $_obfuscated_0D292F143126351901021B383D121D2D132A0A2C091111_ = "disabled"; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENPSW}", $_obfuscated_0D292F143126351901021B383D121D2D132A0A2C091111_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENMAC}", $_obfuscated_0D292F143126351901021B383D121D2D132A0A2C091111_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENUSEMACAUTH}", $_obfuscated_0D292F143126351901021B383D121D2D132A0A2C091111_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_352B1F380E0225191A223E062511_ = $username . "1.jpg"; 
        if (file_exists(cnic_dir . "/" . $_obfuscated_352B1F380E0225191A223E062511_)) { 
            $_obfuscated_0D5B18353B180C031C5B343D061D222A0C3F230D213101_ = md5(cnicsalt . $_obfuscated_352B1F380E0225191A223E062511_); 
            $_obfuscated_0D0222062B1527231A040A3E03043040093B020B122E22_ = "<img src=\"showcnic.php?filename=" . $_obfuscated_352B1F380E0225191A223E062511_ . "&hash=" . $_obfuscated_0D5B18353B180C031C5B343D061D222A0C3F230D213101_ . "\" width=\"" . cnic_width . "\" border = \"1\" >"; 
        } else { 
            $_obfuscated_0D0222062B1527231A040A3E03043040093B020B122E22_ = "<img src=\"images/idcardfront.gif\" border = \"0\" >"; 
        } 
        $_obfuscated_352B1F380E0225191A223E062511_ = $username . "2.jpg"; 
        if (file_exists(cnic_dir . "/" . $_obfuscated_352B1F380E0225191A223E062511_)) { 
            $_obfuscated_0D5B18353B180C031C5B343D061D222A0C3F230D213101_ = md5(cnicsalt . $_obfuscated_352B1F380E0225191A223E062511_); 
            $_obfuscated_2B322F262D33212802061503113E0333272B241332_ = "<img src=\"showcnic.php?filename=" . $_obfuscated_352B1F380E0225191A223E062511_ . "&hash=" . $_obfuscated_0D5B18353B180C031C5B343D061D222A0C3F230D213101_ . "\" width=\"" . cnic_width . "\" border = \"1\" >"; 
        } else { 
            $_obfuscated_2B322F262D33212802061503113E0333272B241332_ = "<img src=\"images/idcardback.gif\" border = \"0\" >"; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CNICIMG1}", $_obfuscated_0D0222062B1527231A040A3E03043040093B020B122E22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CNICIMG2}", $_obfuscated_2B322F262D33212802061503113E0333272B241332_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_1132062F2D3B0E3825152532_ = "SELECT reg_firstname, reg_lastname, reg_address, reg_city, reg_zip, reg_country, reg_state, reg_phone,
  	    reg_mobile, reg_email, reg_vatid
  	    FROM rm_settings
  	   "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        if ($row["reg_firstname"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARFIRSTNAME}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARFIRSTNAME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_lastname"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARLASTNAME}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARLASTNAME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_address"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARADDRESS}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARADDRESS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_city"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARCITY}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARCITY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_zip"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARZIP}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARZIP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_country"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARCOUNTRY}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARCOUNTRY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_state"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARSTATE}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARSTATE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_phone"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARPHONE}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARPHONE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_mobile"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARMOBILE}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARMOBILE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_email"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STAREMAIL}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STAREMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($row["reg_vatid"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARVATID}", "*", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STARVATID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D1E3916192D34390716101D3B3103292C1D071C031D01_($from) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_listmanagers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = listmanagers_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1818113716171E3B400F312B11362A2B302226210622_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_ = new CTable("100%"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("tb-header"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddHead(array("#", "", "", "", table_col_width), array("<input name=\"select\" type=\"checkbox\" id=\"select\" onClick=\"ToggleCheckBoxes()\"", "", "", "", table_col_width), array("{LSTMNGR1}", "", "", "", ""), array("{LSTMNGR2}", "", "", "", ""), array("{LSTMNGR12}", "", "", "", ""), array("{LSTMNGR3}" . " (" . $GLOBALS["_currency"] . ")", "", "", "", ""), array("{LSTMNGR4}", "", "", "", "")); 
        if ($from == "" || $from < 0) { 
            $from = 0; 
        } 
        $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = rows_per_page; 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("" . "SELECT SQL_CALC_FOUND_ROWS managername, firstname, lastname, comment, enablemanager, balance
  		      FROM rm_managers
  		      ORDER BY managername
  		      LIMIT " . $from . ", " . $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ . "
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("SELECT FOUND_ROWS()") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
        $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ = $row[0]; 
        $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
        $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ = $from + 1; 
        $_obfuscated_0D1B0B0D1B0D26273D2B17402D150327080C182D172E01_ = 0; 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_22_ = $row[0]; 
            $firstname = $row[1]; 
            $lastname = $row[2]; 
            $comment = $row[3]; 
            $_obfuscated_0D042C101C28283E172705280D070F1E02385B3E270501_ = $row[4]; 
            $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ = $row[5]; 
            if ($_obfuscated_0D042C101C28283E172705280D070F1E02385B3E270501_) { 
                $_obfuscated_0D073E1E290C090E1C1017322F2F3601172B1515160622_ = col_manager_en; 
            } else { 
                $_obfuscated_0D073E1E290C090E1C1017322F2F3601172B1515160622_ = col_manager_dis; 
            } 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("normal"); 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_); 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array($_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ . ".", "", "", $_obfuscated_0D073E1E290C090E1C1017322F2F3601172B1515160622_), array("<input name=\"list[]\" type=\"checkbox\" id=\"list[]\" value=\"" . $_obfuscated_22_ . "\">", "", "", ""), array("<a href=\"admin.php?cont=edit_manager&managername=" . $_obfuscated_22_ . "\">" . $_obfuscated_22_ . "</a>", "left", "", ""), array($firstname, "left", "", ""), array($lastname, "left", "", ""), array(_obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_, true), "right", "", ""), array($comment, "left", "", "")); 
            $_obfuscated_0D1B0B0D1B0D26273D2B17402D150327080C182D172E01_ += $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_; 
            $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_++; 
            if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor0) { 
                $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor1; 
            } else { 
                if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor1) { 
                    $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                } 
            } 
        } 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("bold"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor(col_bgcolor); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array("", "", "", ""), array("", "", "", ""), array("", "", "", ""), array("", "", "", ""), array("", "", "", ""), array(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_totals") . " " . _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D1B0B0D1B0D26273D2B17402D150327080C182D172E01_, true), "right", "", ""), array($GLOBALS["_currency"], "left", "", "")); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MANAGERS}", $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->GetTable(), $_obfuscated_0D1818113716171E3B400F312B11362A2B302226210622_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_ENABLED}", col_manager_en, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_DISABLED}", col_manager_dis, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_ = _obfuscated_0D0E06262D031728271222243B393C3819300725120A01_($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_, $from, rows_per_page, "admin.php?cont=list_managers"); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{QUICKJUMP}", $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_043029071C16172501_($managername, $enablemanager, $password1, $password2, $firstname, $lastname, $address, $city, $zip, $country, $state, $phone, $mobile, $email, $company, $vatid, $comment, $lang, $perm_listusers, $perm_createusers, $perm_editusers, $perm_edituserspriv, $perm_deleteusers, $perm_listmanagers, $perm_createmanagers, $perm_editmanagers, $perm_deletemanagers, $perm_listservices, $perm_createservices, $perm_editservices, $perm_deleteservices, $perm_listonlineusers, $perm_listinvoices, $perm_trafficreport, $perm_addcredits, $perm_negbalance, $perm_logout, $perm_listallinvoices, $perm_showinvtotals, $perm_cardsys, $perm_editinvoice, $perm_allusers, $perm_allowdiscount, $perm_enwriteoff, $perm_accessap, $perm_cts, $perm_email, $perm_sms, $error) 
{ 
    global $countrylist; 
    global $stateslist; 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_createmanagers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = newmanager_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($countrylist); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ = $countrylist[$_obfuscated_1E102C2A11_][0]; 
            if ($country == $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_) { 
                $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "'>" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_ .= "" . "<OPTION value='" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "'>" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "</OPTION>"; 
            } 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($stateslist); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ = $stateslist[$_obfuscated_1E102C2A11_][0]; 
            if ($state == $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_) { 
                $_obfuscated_2D32_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "'>" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "</OPTION>"; 
            } else { 
                $_obfuscated_2D32_ .= "" . "<OPTION value='" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "'>" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_ = _obfuscated_0D112E0F262D111B401A1B5C3312253708221E281F2922_(); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_); $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] == $lang) { 
                $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . ">" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . "</OPTION>"; 
            } else { 
                $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_ .= "" . "<OPTION value=" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . ">" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MANAGERNAME}", $_obfuscated_22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PASSWORD1}", $password1, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PASSWORD2}", $password2, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FIRSTNAME}", $firstname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTNAME}", $lastname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDRESS}", $address, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CITY}", $city, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ZIP}", $_obfuscated_1535143F362A0426310E302A32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COUNTRYLIST}", $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATESLIST}", $_obfuscated_2D32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMPANY}", $company, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{VATID}", $vatid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PHONE}", $_obfuscated_2D1A0D2839352927182F32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MOBILE}", $_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EMAIL}", $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENT}", $comment, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LANGLIST}", $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
            $enablemanager = 1; 
        } 
        if ($enablemanager == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENMANAGER}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENMANAGER}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_30122916371C0E33072932_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATEUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATEUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_editusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0B2E38110805323B13395B0E32_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITUSERSPRIV}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITUSERSPRIV}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_deleteusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETEUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETEUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listmanagers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTMANAGERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTMANAGERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_31271723013F2B132340071F32_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATEMANAGERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATEMANAGERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_editmanagers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITMANAGERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITMANAGERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_deletemanagers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETEMANAGERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETEMANAGERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listservices == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTSERVICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTSERVICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_032F2728380D2B16181D3F162F22_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATESERVICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATESERVICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_editservices == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITSERVICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITSERVICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_deleteservices == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETESERVICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETESERVICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listonlineusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTONLINEUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTONLINEUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listinvoices == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTINVOICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTINVOICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_262E09093B0B3714222E22_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDTRAFFICREPORT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDTRAFFICREPORT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_addcredits == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDADDCREDITS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDADDCREDITS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_negbalance == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDNEGBALANCE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDNEGBALANCE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_371C01_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLOGOUT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLOGOUT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listallinvoices == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTALLINVOICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTALLINVOICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_showinvtotals == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSHOWINVTOTALS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSHOWINVTOTALS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_cardsys == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCARDSYS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCARDSYS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_editinvoice == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITINVOICE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITINVOICE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_allusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDALLUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDALLUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0E21291B272A080B0D2A1F330B3B0D3C2B0F11_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDALLOWDISCOUNT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDALLOWDISCOUNT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_enwriteoff == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENWRITEOFF}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENWRITEOFF}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_accessap == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCESSAP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCESSAP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_cts == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCTS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCTS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_email == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_sms == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_13352A323C02282C14383922_($managername, $enablemanager, $password1, $password2, $firstname, $lastname, $address, $city, $zip, $country, $state, $phone, $mobile, $email, $company, $vatid, $comment, $lang, $perm_listusers, $perm_createusers, $perm_editusers, $perm_edituserspriv, $perm_deleteusers, $perm_listmanagers, $perm_createmanagers, $perm_editmanagers, $perm_deletemanagers, $perm_listservices, $perm_createservices, $perm_editservices, $perm_deleteservices, $perm_listonlineusers, $perm_listinvoices, $perm_trafficreport, $perm_addcredits, $perm_negbalance, $perm_logout, $perm_listallinvoices, $perm_showinvtotals, $perm_cardsys, $perm_editinvoice, $perm_allusers, $perm_allowdiscount, $perm_enwriteoff, $perm_accessap, $perm_cts, $perm_email, $perm_sms) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_createmanagers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_22_ = strtolower($_obfuscated_22_); 
    $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = false; 
    if ($_obfuscated_22_ == "" || !_obfuscated_0D0815292D040C150C182D35122E1812393E041F330822_($_obfuscated_22_)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_managername_not_valid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if (strlen($_obfuscated_22_) < min_username_len || max_username_len < strlen($_obfuscated_22_)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_user_name_length"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($password1 != $password2) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_nomatch"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if (strlen($password1) < min_psw_len || max_psw_len < strlen($password1)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_length"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if (!_obfuscated_0D332D09292C0C371B23123004141F1B280C32332E0932_($password1)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_invalid"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT managername
  		      FROM rm_managers
  		      WHERE managername = '" . $_obfuscated_22_ . "'") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (0 < mysql_num_rows($res)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_user_exists"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
        return _obfuscated_0D1E0A0211222637103D0A5C0C5C043029071C16172501_($_obfuscated_22_, $enablemanager, $password1, $password2, $firstname, $lastname, $address, $city, $_obfuscated_1535143F362A0426310E302A32_, $country, $state, $_obfuscated_2D1A0D2839352927182F32_, $_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, $company, $vatid, $comment, $lang, $perm_listusers, $_obfuscated_30122916371C0E33072932_, $perm_editusers, $_obfuscated_0B2E38110805323B13395B0E32_, $perm_deleteusers, $perm_listmanagers, $_obfuscated_31271723013F2B132340071F32_, $perm_editmanagers, $perm_deletemanagers, $perm_listservices, $_obfuscated_032F2728380D2B16181D3F162F22_, $perm_editservices, $perm_deleteservices, $perm_listonlineusers, $perm_listinvoices, $_obfuscated_262E09093B0B3714222E22_, $perm_addcredits, $perm_negbalance, $_obfuscated_371C01_, $perm_listallinvoices, $perm_showinvtotals, $perm_cardsys, $perm_editinvoice, $perm_allusers, $_obfuscated_0E21291B272A080B0D2A1F330B3B0D3C2B0F11_, $perm_enwriteoff, $perm_accessap, $perm_cts, $perm_email, $perm_sms, $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
    } 
    $res = mysql_query("" . "INSERT INTO rm_managers (managername, enablemanager, password, firstname, lastname, address,
                      city, zip, country, state, phone, mobile, email, company, vatid, comment, lang, perm_listusers,
                      perm_createusers, perm_editusers, perm_edituserspriv, perm_deleteusers, perm_listmanagers,
                      perm_createmanagers, perm_editmanagers, perm_deletemanagers, perm_listservices, perm_createservices,
                      perm_editservices, perm_deleteservices, perm_listonlineusers, perm_listinvoices, perm_trafficreport,
                      perm_addcredits, perm_negbalance, perm_logout, perm_listallinvoices, perm_showinvtotals, perm_cardsys,
                      perm_editinvoice, perm_allusers, perm_allowdiscount, perm_enwriteoff, perm_accessap, perm_cts,
                      perm_email, perm_sms)
                      VALUES ('" . $_obfuscated_22_ . "', '" . $enablemanager . "', MD5('" . $password1 . "'), '" . $firstname . "', '" . $lastname . "', '" . $address . "',
                      '" . $city . "', '" . $_obfuscated_1535143F362A0426310E302A32_ . "', '" . $country . "', '" . $state . "', '" . $_obfuscated_2D1A0D2839352927182F32_ . "', '" . $_obfuscated_1D3C3209161C2A0D120F0D11_ . "', '" . $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ . "', '" . $company . "', '" . $vatid . "',
                      '" . $comment . "', '" . $lang . "', '" . $perm_listusers . "', '" . $_obfuscated_30122916371C0E33072932_ . "', '" . $perm_editusers . "', '" . $_obfuscated_0B2E38110805323B13395B0E32_ . "',
                      '" . $perm_deleteusers . "', '" . $perm_listmanagers . "', '" . $_obfuscated_31271723013F2B132340071F32_ . "', '" . $perm_editmanagers . "',
                      '" . $perm_deletemanagers . "', '" . $perm_listservices . "', '" . $_obfuscated_032F2728380D2B16181D3F162F22_ . "', '" . $perm_editservices . "',
                      '" . $perm_deleteservices . "', '" . $perm_listonlineusers . "', '" . $perm_listinvoices . "', '" . $_obfuscated_262E09093B0B3714222E22_ . "',
                      '" . $perm_addcredits . "', '" . $perm_negbalance . "', '" . $_obfuscated_371C01_ . "', '" . $perm_listallinvoices . "', '" . $perm_showinvtotals . "',
                      '" . $perm_cardsys . "', '" . $perm_editinvoice . "', '" . $perm_allusers . "', '" . $_obfuscated_0E21291B272A080B0D2A1F330B3B0D3C2B0F11_ . "', '" . $perm_enwriteoff . "',
                      '" . $perm_accessap . "', '" . $perm_cts . "', '" . $perm_email . "', '" . $perm_sms . "' )
                     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if ($GLOBALS["_newmanallsrv"]) { 
        $res = mysql_query("SELECT srvid
  		        FROM rm_services
  		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $srvid = $row[0]; 
            $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("" . "INSERT INTO rm_allowedmanagers (srvid, managername)
                           VALUES ('" . $srvid . "', '" . $_obfuscated_22_ . "')
                          ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } 
    } 
    _obfuscated_0D3D3E162B3C0B1A0D36142922322226252F382C163722_($_obfuscated_22_); 
    _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_manager_created, $_obfuscated_22_); 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_manager_created")); 
} 
function _obfuscated_0D23042D093E24243F1A3F32052F2A0E290A253E192F22_($managername, $enablemanager, $password1, $password2, $firstname, $lastname, $address, $city, $zip, $country, $state, $phone, $mobile, $email, $company, $vatid, $comment, $lang, $perm_listusers, $perm_createusers, $perm_editusers, $perm_edituserspriv, $perm_deleteusers, $perm_listmanagers, $perm_createmanagers, $perm_editmanagers, $perm_deletemanagers, $perm_listservices, $perm_createservices, $perm_editservices, $perm_deleteservices, $perm_listonlineusers, $perm_listinvoices, $perm_trafficreport, $perm_addcredits, $perm_negbalance, $perm_logout, $perm_listallinvoices, $perm_showinvtotals, $perm_cardsys, $perm_editinvoice, $perm_allusers, $perm_allowdiscount, $perm_enwriteoff, $perm_accessap, $perm_cts, $perm_email, $perm_sms, $changepsw, $error) 
{ 
    global $countrylist; 
    global $stateslist; 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editmanagers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = editmanager_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("" . "SELECT password, firstname, lastname, address, city, zip, country, state, phone, mobile, email,
  		      company, vatid, comment, perm_listusers, perm_createusers, perm_editusers, perm_edituserspriv,
  		      perm_deleteusers, perm_listmanagers, perm_createmanagers, perm_editmanagers, perm_deletemanagers,
  		      perm_listservices, perm_createservices, perm_editservices, perm_deleteservices, perm_listonlineusers,
  		      perm_listinvoices, perm_trafficreport, perm_addcredits, perm_negbalance, perm_logout,
  		      perm_listallinvoices, perm_showinvtotals, perm_cardsys, perm_editinvoice, perm_allusers, perm_allowdiscount,
  		      perm_enwriteoff, perm_accessap, perm_cts, perm_email, perm_sms, enablemanager, balance, lang
  		      FROM rm_managers
  		      WHERE managername = '" . $_obfuscated_22_ . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        if (mysql_num_rows($res) == 0) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_user_not_found")); 
        } 
        $row = mysql_fetch_array($res); 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
            $password1 = $row[0]; 
            $password2 = $row[0]; 
            $firstname = $row[1]; 
            $lastname = $row[2]; 
            $address = $row[3]; 
            $city = $row[4]; 
            $_obfuscated_1535143F362A0426310E302A32_ = $row[5]; 
            $country = $row[6]; 
            $state = $row[7]; 
            $_obfuscated_2D1A0D2839352927182F32_ = $row[8]; 
            $_obfuscated_1D3C3209161C2A0D120F0D11_ = $row[9]; 
            $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ = $row[10]; 
            $company = $row[11]; 
            $vatid = $row[12]; 
            $comment = $row[13]; 
            $perm_listusers = $row[14]; 
            $_obfuscated_30122916371C0E33072932_ = $row[15]; 
            $perm_editusers = $row[16]; 
            $_obfuscated_0B2E38110805323B13395B0E32_ = $row[17]; 
            $perm_deleteusers = $row[18]; 
            $perm_listmanagers = $row[19]; 
            $_obfuscated_31271723013F2B132340071F32_ = $row[20]; 
            $perm_editmanagers = $row[21]; 
            $perm_deletemanagers = $row[22]; 
            $perm_listservices = $row[23]; 
            $_obfuscated_032F2728380D2B16181D3F162F22_ = $row[24]; 
            $perm_editservices = $row[25]; 
            $perm_deleteservices = $row[26]; 
            $perm_listonlineusers = $row[27]; 
            $perm_listinvoices = $row[28]; 
            $_obfuscated_262E09093B0B3714222E22_ = $row[29]; 
            $perm_addcredits = $row[30]; 
            $perm_negbalance = $row[31]; 
            $_obfuscated_371C01_ = $row[32]; 
            $perm_listallinvoices = $row[33]; 
            $perm_showinvtotals = $row[34]; 
            $perm_cardsys = $row[35]; 
            $perm_editinvoice = $row[36]; 
            $perm_allusers = $row[37]; 
            $_obfuscated_0E21291B272A080B0D2A1F330B3B0D3C2B0F11_ = $row[38]; 
            $perm_enwriteoff = $row[39]; 
            $perm_accessap = $row[40]; 
            $perm_cts = $row[41]; 
            $perm_email = $row[42]; 
            $perm_sms = $row[43]; 
            $enablemanager = $row[44]; 
            $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ = $row[45]; 
            $lang = $row[46]; 
        } 
        if ($changepsw) { 
            $_obfuscated_330922_ = ""; 
            $_obfuscated_0D2E17062B3F3F5B31182930402A1911372A40091E1A22_ = ""; 
        } else { 
            $_obfuscated_330922_ = "disabled"; 
            $_obfuscated_0D2E17062B3F3F5B31182930402A1911372A40091E1A22_ = "disabled"; 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($countrylist); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ = $countrylist[$_obfuscated_1E102C2A11_][0]; 
            if ($country == $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_) { 
                $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "'>" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_ .= "" . "<OPTION value='" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "'>" . $_obfuscated_0D120C1F070E1A08081A29171C080E053E404038121B11_ . "</OPTION>"; 
            } 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($stateslist); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ = $stateslist[$_obfuscated_1E102C2A11_][0]; 
            if ($state == $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_) { 
                $_obfuscated_2D32_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "'>" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "</OPTION>"; 
            } else { 
                $_obfuscated_2D32_ .= "" . "<OPTION value='" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "'>" . $_obfuscated_0D3105250F01343534300B2909233B2112311D2C042A01_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_ = _obfuscated_0D112E0F262D111B401A1B5C3312253708221E281F2922_(); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_); $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] == $lang) { 
                $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . ">" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . "</OPTION>"; 
            } else { 
                $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_ .= "" . "<OPTION value=" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . ">" . $_obfuscated_0D3C1E2A322F2A052A3F403B221510052C050D302F1732_[$_obfuscated_1E102C2A11_] . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MANAGERNAME}", $_obfuscated_22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PASSWORD1}", $password1, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PASSWORD2}", $password2, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FIRSTNAME}", $firstname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTNAME}", $lastname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDRESS}", $address, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CITY}", $city, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ZIP}", $_obfuscated_1535143F362A0426310E302A32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COUNTRYLIST}", $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATESLIST}", $_obfuscated_2D32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PHONE}", $_obfuscated_2D1A0D2839352927182F32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MOBILE}", $_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EMAIL}", $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMPANY}", $company, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{VATID}", $vatid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENT}", $comment, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRANSID}", _obfuscated_0D2A1C1B081E31232A101E2115043C2A032B362D2E1B22_(), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_PSW1}", $_obfuscated_330922_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EN_PSW2}", $_obfuscated_330922_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DESCR}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_acc_credited"), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BALANCE}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_, true), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CURRENCY}", $GLOBALS["_currency"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LANGLIST}", $_obfuscated_0D363812012F363E0E28222B145B3E141532043B210432_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editmanagers")) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPDATESTATE}", "disabled", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPDATESTATE}", "enabled", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($enablemanager == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENMANAGER}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENMANAGER}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($changepsw == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHANGEPSW}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHANGEPSW}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_30122916371C0E33072932_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATEUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATEUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_editusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_deleteusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETEUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETEUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0B2E38110805323B13395B0E32_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITUSERSPRIV}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITUSERSPRIV}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_deleteusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETEUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETEUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listmanagers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTMANAGERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTMANAGERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_31271723013F2B132340071F32_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATEMANAGERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATEMANAGERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_editmanagers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITMANAGERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITMANAGERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_deletemanagers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETEMANAGERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETEMANAGERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listservices == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTSERVICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTSERVICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_032F2728380D2B16181D3F162F22_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATESERVICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCREATESERVICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_editservices == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITSERVICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITSERVICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_deleteservices == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETESERVICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDELETESERVICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listonlineusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTONLINEUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTONLINEUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listinvoices == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTINVOICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTINVOICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_262E09093B0B3714222E22_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDTRAFFICREPORT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDTRAFFICREPORT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_addcredits == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDADDCREDITS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDADDCREDITS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_negbalance == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDNEGBALANCE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDMAKEPAYOUTS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_371C01_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLOGOUT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLOGOUT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_listallinvoices == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTALLINVOICES}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLISTALLINVOICES}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_showinvtotals == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSHOWINVTOTALS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSHOWINVTOTALS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_cardsys == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCARDSYS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDCARDSYS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_editinvoice == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITINVOICE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEDITINVOICE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_allusers == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDALLUSERS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDALLUSERS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0E21291B272A080B0D2A1F330B3B0D3C2B0F11_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDALLOWDISCOUNT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDALLOWDISCOUNT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_enwriteoff == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENWRITEOFF}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENWRITEOFF}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_accessap == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCESSAP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCESSAP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_cts == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCTS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCTS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_email == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($perm_sms == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D1535371E291536013B382F2D2D1F3F1D18253C2B0A11_($managername) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_deletemanagers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = confirmdelmanager_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D290B1A180D221C21171C360708091A302C03283B0922_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_2D300E230101_ = str_replace("{MANAGERNAME}", $_obfuscated_22_, $_obfuscated_0D290B1A180D221C21171C360708091A302C03283B0922_); 
        return $_obfuscated_2D300E230101_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D191339062D2405021D10094014070B1A230F1A3C3722_($managername) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_deletemanagers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    if ($_obfuscated_22_ == admin_user) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_cant_del_admin")); 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT managername
  		      FROM rm_managers
  		      WHERE managername = '" . $_obfuscated_22_ . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (mysql_num_rows($res) == 0) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_manager_not_found")); 
    } 
    $res = mysql_query("" . "DELETE FROM rm_managers
  		      WHERE managername = '" . $_obfuscated_22_ . "'") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ = invgroup_managers; 
    $res = mysql_query("" . "DELETE FROM rm_invoices
  		      WHERE username = '" . $_obfuscated_22_ . "' AND invgroup = '" . $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "DELETE FROM rm_allowedmanagers
  		      WHERE managername = '" . $_obfuscated_22_ . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    _obfuscated_0D1D171F2C35253B4015300C072D2604152F14290F1A11_($_obfuscated_22_); 
    _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_manager_deleted, $_obfuscated_22_); 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_manager_deleted")); 
} 
function _obfuscated_0D3803381A262D2C0B2F2A2102403D363C3F37042D1922_($managername, $enablemanager, $password1, $password2, $firstname, $lastname, $address, $city, $zip, $country, $state, $phone, $mobile, $email, $company, $vatid, $comment, $lang, $perm_listusers, $perm_createusers, $perm_editusers, $perm_edituserspriv, $perm_deleteusers, $perm_listmanagers, $perm_createmanagers, $perm_editmanagers, $perm_deletemanagers, $perm_listservices, $perm_createservices, $perm_editservices, $perm_deleteservices, $perm_listonlineusers, $perm_listinvoices, $perm_trafficreport, $perm_addcredits, $perm_negbalance, $perm_logout, $perm_listallinvoices, $perm_showinvtotals, $perm_cardsys, $perm_editinvoice, $perm_allusers, $perm_allowdiscount, $perm_enwriteoff, $perm_accessap, $perm_cts, $perm_email, $perm_sms, $changepsw) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editmanagers")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = false; 
    if ($changepsw) { 
        if ($password1 != $password2) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_nomatch"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if (strlen($password1) < min_psw_len || max_psw_len < strlen($password1)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_length"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if (!_obfuscated_0D332D09292C0C371B23123004141F1B280C32332E0932_($password1)) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_psw_invalid"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
        return _obfuscated_0D23042D093E24243F1A3F32052F2A0E290A253E192F22_($_obfuscated_22_, $enablemanager, $password1, $password2, $firstname, $lastname, $address, $city, $_obfuscated_1535143F362A0426310E302A32_, $country, $state, $_obfuscated_2D1A0D2839352927182F32_, $_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_, $company, $vatid, $comment, $lang, $perm_listusers, $_obfuscated_30122916371C0E33072932_, $perm_editusers, $_obfuscated_0B2E38110805323B13395B0E32_, $perm_deleteusers, $perm_listmanagers, $_obfuscated_31271723013F2B132340071F32_, $perm_editmanagers, $perm_deletemanagers, $perm_listservices, $_obfuscated_032F2728380D2B16181D3F162F22_, $perm_editservices, $perm_deleteservices, $perm_listonlineusers, $perm_listinvoices, $_obfuscated_262E09093B0B3714222E22_, $perm_addcredits, $perm_negbalance, $_obfuscated_371C01_, $perm_listallinvoices, $perm_showinvtotals, $perm_cardsys, $perm_editinvoice, $perm_allusers, $_obfuscated_0E21291B272A080B0D2A1F330B3B0D3C2B0F11_, $perm_enwriteoff, $perm_accessap, $perm_cts, $perm_email, $perm_sms, $changepsw, $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT password
  		      FROM rm_managers
  		      WHERE managername = '" . $_obfuscated_22_ . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_08092319371A020E21283F081118332B22_ = $row[0]; 
    if ($changepsw && $_obfuscated_08092319371A020E21283F081118332B22_ != $password1) { 
        $res = mysql_query("" . "UPDATE rm_managers SET
      		          password = MD5('" . $password1 . "')
    		          WHERE managername = '" . $_obfuscated_22_ . "'
    		         ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    } 
    $res = mysql_query("" . "UPDATE rm_managers
  		      SET firstname = '" . $firstname . "', lastname = '" . $lastname . "', address = '" . $address . "', city = '" . $city . "',
  		      zip = '" . $_obfuscated_1535143F362A0426310E302A32_ . "', country = '" . $country . "', state = '" . $state . "', phone = '" . $_obfuscated_2D1A0D2839352927182F32_ . "', mobile = '" . $_obfuscated_1D3C3209161C2A0D120F0D11_ . "',
  		      email = '" . $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ . "',  company = '" . $company . "', vatid = '" . $vatid . "',  comment = '" . $comment . "',
  		      perm_listusers = '" . $perm_listusers . "', perm_createusers = '" . $_obfuscated_30122916371C0E33072932_ . "',
  		      perm_editusers = '" . $perm_editusers . "', perm_edituserspriv = '" . $_obfuscated_0B2E38110805323B13395B0E32_ . "',
  		      perm_deleteusers = '" . $perm_deleteusers . "', perm_listmanagers = '" . $perm_listmanagers . "',
  		      perm_createmanagers = '" . $_obfuscated_31271723013F2B132340071F32_ . "', perm_editmanagers = '" . $perm_editmanagers . "',
  		      perm_deletemanagers = '" . $perm_deletemanagers . "', perm_listservices = '" . $perm_listservices . "',
  		      perm_createservices = '" . $_obfuscated_032F2728380D2B16181D3F162F22_ . "', perm_editservices = '" . $perm_editservices . "',
  		      perm_deleteservices = '" . $perm_deleteservices . "', perm_listonlineusers = '" . $perm_listonlineusers . "',
  		      perm_listinvoices = '" . $perm_listinvoices . "', perm_trafficreport = '" . $_obfuscated_262E09093B0B3714222E22_ . "',
  		      perm_addcredits = '" . $perm_addcredits . "', perm_negbalance = '" . $perm_negbalance . "',
  		      perm_logout = '" . $_obfuscated_371C01_ . "', perm_listallinvoices = '" . $perm_listallinvoices . "',
  		      perm_showinvtotals = '" . $perm_showinvtotals . "', perm_cardsys = '" . $perm_cardsys . "',
  		      perm_editinvoice = '" . $perm_editinvoice . "', perm_allusers = '" . $perm_allusers . "',
  		      perm_allowdiscount = '" . $_obfuscated_0E21291B272A080B0D2A1F330B3B0D3C2B0F11_ . "', perm_enwriteoff = '" . $perm_enwriteoff . "',
  		      perm_accessap = '" . $perm_accessap . "', perm_cts = '" . $perm_cts . "', perm_email = '" . $perm_email . "',
  		      perm_sms = '" . $perm_sms . "', enablemanager = '" . $enablemanager . "',
  		      lang = '" . $lang . "'
  		      WHERE managername = '" . $_obfuscated_22_ . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if ($_SESSION["AUTH_MANAGER"] == $_obfuscated_22_) { 
        $GLOBALS["_lang"] = $lang; 
        setcookie("_lang", $_REQUEST["lang"], time() + 60 * 60 * 24 * 365); 
    } 
    _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_manager_updated, $_obfuscated_22_); 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_manager_updated")); 
} 
function _obfuscated_0D1B3D3F0C2C1B10143933342E172126142502281B0532_($from, $filterusername, $filterfirstname, $filterlastname, $filtercompany, $filteraddress, $filtercity, $filterzip, $filtercountry, $filterstate, $filterphone, $filtermobile, $filteremail, $filtercomment, $filterstatus, $filtersrvtype, $filtersrvid, $filtergroupid, $filtermac, $filtermaccm, $filtercmip, $filterstaticip, $filterowner, $filtercontractid, $filtercontractfrom, $filtercontractto, $filterregdatefrom, $filterregdateto, $filterlistacctype, $filteracctinfo, $filtercardstatus, $ordercol, $ordertype, $chord, $lastorder, $setcookie = false, $csvexport = false) 
{ 
    if ($filterlistacctype == "") { 
        $filterlistacctype = pow(2, acctype_regular) + pow(2, acctype_maconly) + pow(2, acctype_aclmikrotik) + pow(2, acctype_aclstaros) + pow(2, acctype_docsis); 
    } 
    $filterusername = trim($filterusername); 
    $filterfirstname = trim($filterfirstname); 
    $_obfuscated_36250E18140D1A1B151D1E0101_ = trim($_obfuscated_36250E18140D1A1B151D1E0101_); 
    $filtercompany = trim($filtercompany); 
    $filteraddress = trim($filteraddress); 
    $filtercity = trim($filtercity); 
    $filterzip = trim($filterzip); 
    $_obfuscated_0B0F162E1B0A19071A1322_ = trim($_obfuscated_0B0F162E1B0A19071A1322_); 
    $filtermobile = trim($filtermobile); 
    $filteremail = trim($filteremail); 
    $_obfuscated_113D090F3435150A29140A1F11_ = trim($_obfuscated_113D090F3435150A29140A1F11_); 
    $filtercomment = trim($filtercomment); 
    if (!_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_docsis)) { 
        $filterlistacctype -= pow(2, acctype_docsis); 
    } 
    if ($filterlistacctype & pow(2, acctype_carduser) || $filterlistacctype & pow(2, acctype_ias)) { 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_cardsys")) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
        } 
        if (!_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_card)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_mod_unavailable")); 
        } 
    } else { 
        if (($filterlistacctype & pow(2, acctype_regular) || $filterlistacctype & pow(2, acctype_maconly) || $filterlistacctype & pow(2, acctype_docsis) || $filterlistacctype & pow(2, acctype_aclmikrotik) || $filterlistacctype & pow(2, acctype_aclstaros)) && !_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_listusers")) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
        } 
    } 
    if ($_obfuscated_3F0F230A0234143632_) { 
        setcookie("fndusr_acctype0", "", time() - 3600); 
        setcookie("fndusr_acctype1", "", time() - 3600); 
        setcookie("fndusr_acctype2", "", time() - 3600); 
        setcookie("fndusr_acctype3", "", time() - 3600); 
        setcookie("fndusr_acctype4", "", time() - 3600); 
        setcookie("fndusr_acctype5", "", time() - 3600); 
        setcookie("fndusr_acctype6", "", time() - 3600); 
        setcookie("fndusr_srvtype", $_obfuscated_29293612175B22_, time() + 60 * 60 * 24 * 365); 
        setcookie("fndusr_accstatus", $filterstatus, time() + 60 * 60 * 24 * 365); 
        setcookie("fndusr_acctinfo", $filteracctinfo, time() + 60 * 60 * 24 * 365); 
        setcookie("fndusr_cardstatus", $filtercardstatus, time() + 60 * 60 * 24 * 365); 
    } 
    if ($filterlistacctype & pow(2, acctype_regular)) { 
        if ($_obfuscated_3F0F230A0234143632_) { 
            setcookie("fndusr_acctype0", 1, time() + 60 * 60 * 24 * 365); 
        } 
        $_obfuscated_0D3C241E3508133E313C25383414250F1837042C362722_ = true; 
    } 
    if ($filterlistacctype & pow(2, acctype_maconly)) { 
        if ($_obfuscated_3F0F230A0234143632_) { 
            setcookie("fndusr_acctype1", 1, time() + 60 * 60 * 24 * 365); 
        } 
        $_obfuscated_0D3E1016303C120C3B5B0124091E120A3D0F1840070F01_ = true; 
    } 
    if ($filterlistacctype & pow(2, acctype_carduser)) { 
        if ($_obfuscated_3F0F230A0234143632_) { 
            setcookie("fndusr_acctype2", 1, time() + 60 * 60 * 24 * 365); 
        } 
        $_obfuscated_020A2E082F0F35303501_ = true; 
    } 
    if ($filterlistacctype & pow(2, acctype_aclmikrotik)) { 
        if ($_obfuscated_3F0F230A0234143632_) { 
            setcookie("fndusr_acctype3", 1, time() + 60 * 60 * 24 * 365); 
        } 
        $_obfuscated_0D142C1C2C1D5B02322826393B1B143D2F1F0F1A080932_ = true; 
    } 
    if ($filterlistacctype & pow(2, acctype_aclstaros)) { 
        if ($_obfuscated_3F0F230A0234143632_) { 
            setcookie("fndusr_acctype4", 1, time() + 60 * 60 * 24 * 365); 
        } 
        $_obfuscated_0D372C020F3C333201061B131528091B0D0C0E03070811_ = true; 
    } 
    if ($filterlistacctype & pow(2, acctype_ias)) { 
        if ($_obfuscated_3F0F230A0234143632_) { 
            setcookie("fndusr_acctype5", 1, time() + 60 * 60 * 24 * 365); 
        } 
        $_obfuscated_0D34222328173C221A332A0A1D27282E3F090B0E1F2F01_ = true; 
    } 
    if ($filterlistacctype & pow(2, acctype_docsis)) { 
        if ($_obfuscated_3F0F230A0234143632_) { 
            setcookie("fndusr_acctype6", 1, time() + 60 * 60 * 24 * 365); 
        } 
        $_obfuscated_0D331B28283D3B381A1C112D19272A1522070522080601_ = true; 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = listusers_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_3C142110150A161111385B23173C2C171F32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
        $_obfuscated_0D1B25133611270E32281538150D330C39174023271C11_ = COLSET_LISTUSERS; 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT colname
  	    FROM `" . $_obfuscated_0D1B25133611270E32281538150D330C39174023271C11_ . "`
  	    WHERE managername = '" . $_obfuscated_22_ . "'
           "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_231D1A153B0709363F1D1B32_[$row[0]] = 1; 
        } 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_ = new CTable("100%"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("tb-header"); 
        $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ = "&username={USERNAME}&listacctype={LISTACCTYPE}&srvtype={SRVTYPE}&status={STATUS}&acctinfo={ACCTINFO}&cardstatus={CARDSTATUS}&groupid={GROUPID}&owner={OWNER}&srvid={SRVID}&mac={MAC}&maccm={MACCM}&cpeip={STATICIP}&firstname={FIRSTNAME}&lastname={LASTNAME}&company={COMPANY}&address={ADDRESS}&city={CITY}&zip={ZIP}&country={COUNTRY}&state={STATE}&phone={PHONE}&mobile={MOBILE}&email={EMAIL}&contractfrom={CONTRACTFROM}&contractto={CONTRACTTO}&regdatefrom={REGDATEFROM}&regdateto={REGDATETO}&comment={COMMENT}"; 
        if ($GLOBALS["_hidelimits"]) { 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddHead(array("<a onclick=\"ToggleTable()\" href=\"#\">#</a>", "", "", "", table_col_width), array("<input name=\"select\" type=\"checkbox\" id=\"select\" onClick=\"ToggleCheckBoxes()\"", "", "", "", table_col_width), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=username&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR1}</a></strong></td><td><img src=\"images/{USERNAMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["username"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=srvid&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR2}</a></strong></td><td><img src=\"images/{SRVIDARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["srvname"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=expiration&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR6}</a></strong></td><td><img src=\"images/{EXPARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["expiry"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=staticipcpe&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR3}</a></strong></td><td><img src=\"images/{STATICIPCPEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cpeip"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=staticipcm&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR34}</a></strong></td><td><img src=\"images/{STATICIPCMARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cmip"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=cmmac&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR33}</a></strong></td><td><img src=\"images/{CMMACARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cmmac"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=firstname&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR22}</a></strong></td><td><img src=\"images/{FIRSTNAMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["firstname"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=lastname&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR23}</a></strong></td><td><img src=\"images/{LASTNAMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["lastname"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=company&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR24}</a></strong></td><td><img src=\"images/{COMPANYARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["company"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=address&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR25}</a></strong></td><td><img src=\"images/{ADDRESSARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["address"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=city&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR26}</a></strong></td><td><img src=\"images/{CITYARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["city"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=zip&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR27}</a></strong></td><td><img src=\"images/{ZIPARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["zip"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=country&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR28}</a></strong></td><td><img src=\"images/{COUNTRYARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["country"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=state&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR29}</a></strong></td><td><img src=\"images/{STATEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["state"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=email&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR32}</a></strong></td><td><img src=\"images/{EMAILARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["email"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=createdon&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR20}</a></strong></td><td><img src=\"images/{CREATEDONARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["registered"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=lastlogoff&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR37}</a></strong></td><td><img src=\"images/{LASTLOGOFFARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["lastlogoff"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=comment&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR9}</a></strong></td><td><img src=\"images/{COMMENTARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["comment"])); 
        } else { 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddHead(array("<a onclick=\"ToggleTable()\" href=\"#\">#</a>", "", "", "", table_col_width), array("<input name=\"select\" type=\"checkbox\" id=\"select\" onClick=\"ToggleCheckBoxes()\"", "", "", "", table_col_width), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=username&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR1}</a></strong></td><td><img src=\"images/{USERNAMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["username"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=srvid&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR2}</a></strong></td><td><img src=\"images/{SRVIDARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["srvname"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=expiration&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR6}</a></strong></td><td><img src=\"images/{EXPARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["expiry"]), array("{LSTUSR4}", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["availdl"]), array("{LSTUSR5}", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["availul"]), array("{LSTUSR18}", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["availtotal"]), array("{LSTUSR7}", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["availtime"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=staticipcpe&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR3}</a></strong></td><td><img src=\"images/{STATICIPCPEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cpeip"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=staticipcm&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR34}</a></strong></td><td><img src=\"images/{STATICIPCMARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cmip"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=cmmac&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR33}</a></strong></td><td><img src=\"images/{CMMACARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cmmac"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=firstname&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR22}</a></strong></td><td><img src=\"images/{FIRSTNAMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["firstname"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=lastname&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR23}</a></strong></td><td><img src=\"images/{LASTNAMEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["lastname"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=company&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR24}</a></strong></td><td><img src=\"images/{COMPANYARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["company"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=address&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR25}</a></strong></td><td><img src=\"images/{ADDRESSARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["address"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=city&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR26}</a></strong></td><td><img src=\"images/{CITYARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["city"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=zip&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR27}</a></strong></td><td><img src=\"images/{ZIPARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["zip"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=country&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR28}</a></strong></td><td><img src=\"images/{COUNTRYARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["country"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=state&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR29}</a></strong></td><td><img src=\"images/{STATEARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["state"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=email&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR32}</a></strong></td><td><img src=\"images/{EMAILARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["email"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=createdon&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR20}</a></strong></td><td><img src=\"images/{CREATEDONARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["registered"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=lastlogoff&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR37}</a></strong></td><td><img src=\"images/{LASTLOGOFFARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["lastlogoff"]), array("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=\"tb-header\"><td nowrap><strong><a href=\"admin.php?cont=list_users&ordercol=comment&ordertype={ORDERTYPE}&chord=true&lastorder={LASTORDER}&from={FROM}" . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">{LSTUSR9}</a></strong></td><td><img src=\"images/{COMMENTARROW}\"></td></tr></table>", "", "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["comment"])); 
        } 
        $res = mysql_query("SELECT srvid, srvname
  		      FROM rm_services
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        for ($_obfuscated_1E102C2A11_ = 0; $row = mysql_fetch_array($res); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][0] = $row[0]; 
            $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][1] = $row[1]; 
        } 
        if ($filterusername) { 
            $_obfuscated_0D351B1C4036361439011627392E1F1D320D3821153732_ = "" . "AND username LIKE '" . $filterusername . "%'"; 
        } 
        if ($filterfirstname) { 
            $_obfuscated_0D1D082B1D2A390D310A170A0C265B3F40300F0D402E32_ = "" . "AND firstname LIKE '" . $filterfirstname . "%'"; 
        } 
        if ($_obfuscated_36250E18140D1A1B151D1E0101_) { 
            $_obfuscated_3737273E160A243C032D2A11112D353D100222_ = "" . "AND lastname LIKE '" . $_obfuscated_36250E18140D1A1B151D1E0101_ . "%'"; 
        } 
        if ($filtercompany) { 
            $_obfuscated_0D350B32291E5B180D263E352C031C032F131A24401A01_ = "" . "AND company LIKE '" . $filtercompany . "%'"; 
        } 
        if ($filteraddress) { 
            $_obfuscated_0D232C02221B19132C322F31391D362C01262C3F2B2311_ = "" . "AND address LIKE '" . $filteraddress . "%'"; 
        } 
        if ($filtercity) { 
            $_obfuscated_3C1C352F100F323617120507063E01363F230C01_ = "" . "AND city LIKE '" . $filtercity . "%'"; 
        } 
        if ($filterzip) { 
            $_obfuscated_0D373808195B391C2440235B083840190B1D19133E3F01_ = "" . "AND zip LIKE '" . $filterzip . "%'"; 
        } 
        if ($_obfuscated_352622_) { 
            $_obfuscated_0D2A401C315B32195B402D22311C01393F1F1507121322_ = "" . "AND country LIKE '" . $_obfuscated_352622_ . "%'"; 
        } 
        if ($filterstate) { 
            $_obfuscated_0D233C1D1E0F22273814381202242E4002290D32073D22_ = "" . "AND state LIKE '" . $filterstate . "%'"; 
        } 
        if ($_obfuscated_0B0F162E1B0A19071A1322_) { 
            $_obfuscated_0D0C132D0B381B0A1415380F2C255B1F0C35082B031922_ = "" . "AND phone LIKE '" . $_obfuscated_0B0F162E1B0A19071A1322_ . "%'"; 
        } 
        if ($filtermobile) { 
            $_obfuscated_0D34050E283F121C1037112228285B3E01170704342511_ = "" . "AND mobile LIKE '" . $filtermobile . "%'"; 
        } 
        if ($filteremail) { 
            $_obfuscated_0D35102725240333132E0B180519301740072D2A082201_ = "" . "AND email LIKE '" . $filteremail . "%'"; 
        } 
        if ($filtercomment) { 
            $_obfuscated_0D260325253D3F0E333B151523362B1111143D5B0C1F11_ = "" . "AND comment LIKE '%" . $filtercomment . "%'"; 
        } 
        if ($filterstaticip) { 
            $_obfuscated_2921063D1E25152A1B0201081F405B121A32_ = "" . "AND staticipcpe LIKE '" . $filterstaticip . "%'"; 
        } 
        if ($filtercmip) { 
            $_obfuscated_32_ = "" . "AND staticipcm LIKE '" . $filtercmip . "%'"; 
        } 
        if ($_obfuscated_2F1232_) { 
            $_obfuscated_0D372D2A4013085B0A0C23363C32110B150E3D1D2A0D01_ = "" . "AND mac LIKE '" . $_obfuscated_2F1232_ . "%'"; 
        } 
        if ($filtermaccm) { 
            $_obfuscated_0D312A3E0C1715021B352A0A2323102C231D0E330A3422_ = "" . "AND maccm LIKE '" . $filtermaccm . "%'"; 
        } 
        if ($_obfuscated_113D090F3435150A29140A1F11_) { 
            $_obfuscated_0D3536230B355B3D160A010E10390B2A2F3C3B2A1E2801_ = "" . "AND contractid LIKE '" . $_obfuscated_113D090F3435150A29140A1F11_ . "%'"; 
        } 
        if ($filtercontractfrom && !$filtercontractto) { 
            $_obfuscated_0D1729093D1E2D2A192B052810355B2E2A35090E010A22_ = "" . "AND '" . $filtercontractfrom . "' <= contractvalid AND contractvalid <> '0000-00-00'"; 
        } 
        if (!$filtercontractfrom && $filtercontractto) { 
            $_obfuscated_0D1729093D1E2D2A192B052810355B2E2A35090E010A22_ = "" . "AND contractvalid <= '" . $filtercontractto . "' AND contractvalid <> '0000-00-00'"; 
        } 
        if ($filtercontractfrom && $filtercontractto) { 
            $_obfuscated_0D1729093D1E2D2A192B052810355B2E2A35090E010A22_ = "" . "AND '" . $filtercontractfrom . "' <= contractvalid AND contractvalid <= '" . $filtercontractto . "'
    				AND contractvalid <> '0000-00-00'"; 
        } 
        if ($filterregdatefrom && !$_obfuscated_3B322411_) { 
            $_obfuscated_0D103E28133C1C0C143029392735255B391C040C023632_ = "" . "AND '" . $filterregdatefrom . "' <= createdon"; 
        } 
        if (!$filterregdatefrom && $_obfuscated_3B322411_) { 
            $_obfuscated_0D103E28133C1C0C143029392735255B391C040C023632_ = "" . "AND createdon <= '" . $_obfuscated_3B322411_ . "'"; 
        } 
        if ($filterregdatefrom && $_obfuscated_3B322411_) { 
            $_obfuscated_0D103E28133C1C0C143029392735255B391C040C023632_ = "" . "AND '" . $filterregdatefrom . "' <= createdon AND createdon <= '" . $_obfuscated_3B322411_ . "'"; 
        } 
        if ($_obfuscated_0D331A1F153E5B2539082D22_ != "") { 
            $_obfuscated_3F2E061F32_ = "" . "AND tmp.srvid = '" . $_obfuscated_0D331A1F153E5B2539082D22_ . "'"; 
        } 
        if ($filtergroupid) { 
            $_obfuscated_0D0103353D1A03292B041A043C2E321B0F1A3819272B32_ = "" . "AND groupid = '" . $filtergroupid . "'"; 
        } 
        if ($_obfuscated_29293612175B22_ != "" && $_obfuscated_29293612175B22_ != srvtype_any) { 
            $_obfuscated_0D3B1B02140510122B233938131622220C233522_ = "" . "AND srvtype = '" . $_obfuscated_29293612175B22_ . "'"; 
        } 
        $_obfuscated_0D1F19370636231B40113B1D12052419043321110E2232_ = acctype_regular; 
        $_obfuscated_1F09362D23035B133F2F213B32100A211D3B140132_ = acctype_maconly; 
        $_obfuscated_3213262B5B1F3F2E160E375B2B353E1632_ = acctype_carduser; 
        $_obfuscated_0D130432043F322702032F1F01120A3806180633083822_ = acctype_aclmikrotik; 
        $_obfuscated_0D2D352513342F362A050F1E0B3D022D2D315B5B182101_ = acctype_aclstaros; 
        $_obfuscated_0D331D062B0E33333807222B2D2B051B1D2916352D1122_ = acctype_ias; 
        $_obfuscated_0D353E5B3C372F06085B13232D0E0419381F2B242C0C22_ = acctype_docsis; 
        if ($_obfuscated_0D3C241E3508133E313C25383414250F1837042C362722_) { 
            if ($_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_) { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . " OR tmp.acctype = '" . $_obfuscated_0D1F19370636231B40113B1D12052419043321110E2232_ . "' "; 
            } else { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . "tmp.acctype = '" . $_obfuscated_0D1F19370636231B40113B1D12052419043321110E2232_ . "' "; 
            } 
        } 
        if ($_obfuscated_0D3E1016303C120C3B5B0124091E120A3D0F1840070F01_) { 
            if ($_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_) { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . " OR tmp.acctype = '" . $_obfuscated_1F09362D23035B133F2F213B32100A211D3B140132_ . "' "; 
            } else { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . "tmp.acctype = '" . $_obfuscated_1F09362D23035B133F2F213B32100A211D3B140132_ . "' "; 
            } 
        } 
        if ($_obfuscated_020A2E082F0F35303501_) { 
            if ($_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_) { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . " OR tmp.acctype = '" . $_obfuscated_3213262B5B1F3F2E160E375B2B353E1632_ . "' "; 
            } else { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . "tmp.acctype = '" . $_obfuscated_3213262B5B1F3F2E160E375B2B353E1632_ . "' "; 
            } 
        } 
        if ($_obfuscated_0D142C1C2C1D5B02322826393B1B143D2F1F0F1A080932_) { 
            if ($_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_) { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . " OR tmp.acctype = '" . $_obfuscated_0D130432043F322702032F1F01120A3806180633083822_ . "' "; 
            } else { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . "tmp.acctype = '" . $_obfuscated_0D130432043F322702032F1F01120A3806180633083822_ . "' "; 
            } 
        } 
        if ($_obfuscated_0D372C020F3C333201061B131528091B0D0C0E03070811_) { 
            if ($_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_) { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . " OR tmp.acctype = '" . $_obfuscated_0D2D352513342F362A050F1E0B3D022D2D315B5B182101_ . "' "; 
            } else { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . "tmp.acctype = '" . $_obfuscated_0D2D352513342F362A050F1E0B3D022D2D315B5B182101_ . "' "; 
            } 
        } 
        if ($_obfuscated_0D34222328173C221A332A0A1D27282E3F090B0E1F2F01_) { 
            if ($_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_) { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . " OR tmp.acctype = '" . $_obfuscated_0D331D062B0E33333807222B2D2B051B1D2916352D1122_ . "' "; 
            } else { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . "tmp.acctype = '" . $_obfuscated_0D331D062B0E33333807222B2D2B051B1D2916352D1122_ . "' "; 
            } 
        } 
        if ($_obfuscated_0D331B28283D3B381A1C112D19272A1522070522080601_) { 
            if ($_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_) { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . " OR tmp.acctype = '" . $_obfuscated_0D353E5B3C372F06085B13232D0E0419381F2B242C0C22_ . "' "; 
            } else { 
                $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ .= "" . "tmp.acctype = '" . $_obfuscated_0D353E5B3C372F06085B13232D0E0419381F2B242C0C22_ . "' "; 
            } 
        } 
        if ($_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_) { 
            $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ = " AND (" . $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ . ")"; 
        } else { 
            $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ = "AND tmp.acctype = -1"; 
        } 
        if ($ordercol == "") { 
            $ordercol = $_COOKIE["listusers_ordercol"]; 
        } 
        if ($ordertype == "") { 
            $ordertype = $_COOKIE["listusers_ordertype"]; 
        } 
        if ($lastorder == "") { 
            $lastorder = $_COOKIE["listusers_lastorder"]; 
        } 
        if ($ordertype == "") { 
            $ordertype = "ASC"; 
        } 
        if ($_obfuscated_042E210232_ == "true" && $lastorder == $ordercol) { 
            if ($ordertype == "DESC") { 
                $ordertype = "ASC"; 
            } else { 
                $ordertype = "DESC"; 
            } 
        } 
        if ($ordercol == "") { 
            $ordercol = "username"; 
        } 
        switch ($ordercol) { 
            case "username": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "username"; 
                break; 
            case "srvid": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "srvname"; 
                break; 
            case "expiration": 
                if ($ordertype == "ASC") { 
                    $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "limitexpiration DESC, expiration"; 
                } else { 
                    $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "limitexpiration ASC, expiration"; 
                } 
                break; 
            case "staticipcpe": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "INET_ATON(staticipcpe)"; 
                break; 
            case "staticipcm": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "INET_ATON(staticipcm)"; 
                break; 
            case "cmmac": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "maccm"; 
                break; 
            case "firstname": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "firstname"; 
                break; 
            case "lastname": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "lastname"; 
                break; 
            case "company": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "company"; 
                break; 
            case "address": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "address"; 
                break; 
            case "city": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "city"; 
                break; 
            case "zip": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "zip"; 
                break; 
            case "country": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "country"; 
                break; 
            case "state": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "state"; 
                break; 
            case "email": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "email"; 
                break; 
            case "createdon": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "createdon"; 
                break; 
            case "lastlogoff": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "lastlogoff"; 
                break; 
            case "comment": 
                $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ = "comment"; 
        } 
        setcookie("listusers_ordercol", $ordercol, time() + 60 * 60 * 24 * 365); 
        setcookie("listusers_ordertype", $ordertype, time() + 60 * 60 * 24 * 365); 
        setcookie("listusers_lastorder", $lastorder, time() + 60 * 60 * 24 * 365); 
        if ($from == "" || $from < 0) { 
            $from = 0; 
        } 
        $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = rows_per_page; 
        if ($_obfuscated_2A06321411_) { 
            $from = 0; 
            $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = csv_max_rows; 
        } 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_allusers")) { 
            $filterowner = $_SESSION["AUTH_MANAGER"]; 
            $_obfuscated_0D2308292E28035B28112B38140B3E3527113E33252132_ = "" . "AND tmp.owner = '" . $filterowner . "'"; 
        } else { 
            $_obfuscated_0D2308292E28035B28112B38140B3E3527113E33252132_ = ""; 
        } 
        if ($filterowner) { 
            $_obfuscated_0D0F26122E2C0A21302B18273C092F163704342E313611_ = "" . "AND tmp.owner = '" . $filterowner . "'"; 
        } else { 
            $_obfuscated_0D0F26122E2C0A21302B18273C092F163704342E313611_ = ""; 
        } 
        if ($filterstatus == "") { 
            $filterstatus = ACCSTATUS_ANY; 
        } 
        switch ($filterstatus) { 
            case ACCSTATUS_ANY: 
                $_obfuscated_0D013B23130D320A31021A2C241A060E052C2F2F3F0522_ = ""; 
                break; 
            case ACCSTATUS_ACTIVE: 
                $_obfuscated_0D013B23130D320A31021A2C241A060E052C2F2F3F0522_ = "AND tmp.enableuser = 1 AND
          		      (limitdl = 0 OR IF (limitdl =1, downlimit -
          		      (SELECT COALESCE(SUM(acctoutputoctets), 0)
             		      FROM radacct WHERE radacct.username = tmp.username) -
             		      (SELECT COALESCE(SUM(dlbytes), 0) 
             		      FROM rm_radacct WHERE rm_radacct.username = tmp.username) , 1) > 0)
             		      AND
             		      (limitul = 0 OR IF (limitul =1, uplimit -
             		      (SELECT COALESCE(SUM(acctinputoctets), 0)
                              FROM radacct WHERE radacct.username = tmp.username) -
                              (SELECT COALESCE(SUM(ulbytes ), 0)
                              FROM rm_radacct WHERE rm_radacct.username = tmp.username) , 1) > 0)
                              AND
                              (limitcomb = 0 OR IF (limitcomb =1, comblimit -
                              (SELECT COALESCE(SUM(acctinputoctets + acctoutputoctets), 0)
                              FROM radacct WHERE radacct.username = tmp.username) +
                              (SELECT COALESCE(SUM(ulbytes + dlbytes), 0)
                              FROM rm_radacct WHERE rm_radacct.username = tmp.username) , 1) > 0)
                              AND
                              (limituptime = 0 OR IF (limituptime=1, uptimelimit -
                              (SELECT COALESCE(SUM(acctsessiontime), 0)
                              FROM radacct WHERE radacct.username = tmp.username) - (SELECT COALESCE(SUM(acctsessiontime), 0) 
                              FROM rm_radacct WHERE rm_radacct.username = tmp.username) , 1) > 0)
                              AND
                              (limitexpiration = 0 OR IF (limitexpiration=1, UNIX_TIMESTAMP(expiration) - UNIX_TIMESTAMP(NOW()), 1) > 0)
                             "; 
                break; 
            case ACCSTATUS_EXPIRED: 
                $_obfuscated_0D013B23130D320A31021A2C241A060E052C2F2F3F0522_ = "AND tmp.enableuser = 1 AND
         		      (IF (limitdl = 1, downlimit - (SELECT COALESCE(SUM(acctoutputoctets), 0)
            		      FROM radacct WHERE radacct.username = tmp.username) - (SELECT COALESCE(SUM(dlbytes), 0) 
            		      FROM rm_radacct WHERE rm_radacct.username = tmp.username) , 1) <= 0
            		      OR 
            		      IF (limitul = 1, uplimit - (SELECT COALESCE(SUM(acctinputoctets), 0)
                              FROM radacct WHERE radacct.username = tmp.username) - (SELECT COALESCE(SUM(ulbytes), 0) 
                              FROM rm_radacct WHERE rm_radacct.username = tmp.username) , 1) <= 0
                              OR
                              IF (limitcomb = 1, comblimit -
                              (SELECT COALESCE(SUM(acctinputoctets + acctoutputoctets), 0)
                              FROM radacct WHERE radacct.username = tmp.username) +
                              (SELECT COALESCE(SUM(ulbytes + dlbytes), 0)
                              FROM rm_radacct WHERE rm_radacct.username = tmp.username) , 1) <= 0
                              OR 
                              IF (limituptime = 1, uptimelimit - (SELECT COALESCE(SUM(acctsessiontime), 0)
                              FROM radacct WHERE radacct.username = tmp.username) + (SELECT COALESCE(SUM(acctsessiontime), 0) 
                              FROM rm_radacct WHERE rm_radacct.username = tmp.username) , 1) <= 0
                              OR 
                              IF (limitexpiration=1, UNIX_TIMESTAMP(expiration) - UNIX_TIMESTAMP(NOW()), 1) <= 0)"; 
                break; 
            case ACCSTATUS_ENABLED: 
                $_obfuscated_0D013B23130D320A31021A2C241A060E052C2F2F3F0522_ = "AND tmp.enableuser = 1"; 
                break; 
            case ACCSTATUS_DISABLED: 
                $_obfuscated_0D013B23130D320A31021A2C241A060E052C2F2F3F0522_ = "AND tmp.enableuser = 0"; 
        } 
        if ($GLOBALS["_hidelimits"]) { 
            if ($filterstatus == ACCSTATUS_ACTIVE || $filterstatus == ACCSTATUS_EXPIRED) { 
                $_obfuscated_0D013B23130D320A31021A2C241A060E052C2F2F3F0522_ = ""; 
            } 
        } else { 
            $_obfuscated_0D5B253E2C051329312A1E345B3038233D30252D3D3B22_ = ", IF (limitdl = 1, downlimit - COALESCE((SELECT SUM(acctoutputoctets) FROM radacct
            	           WHERE radacct.username = tmp.username) -
            	           (SELECT COALESCE(SUM(dlbytes), 0) FROM rm_radacct
            	           WHERE rm_radacct.username = tmp.username), 0), 0),
            	       
             	           IF (limitul = 1, uplimit - COALESCE((SELECT SUM(acctinputoctets) FROM radacct
                           WHERE radacct.username = tmp.username) -
                           (SELECT COALESCE(SUM(ulbytes), 0) FROM rm_radacct
                           WHERE rm_radacct.username = tmp.username), 0), 0),
                           
                           IF (limitcomb =1, comblimit - COALESCE((SELECT SUM(acctinputoctets + acctoutputoctets) FROM radacct
                           WHERE radacct.username = tmp.username) -
                           (SELECT COALESCE(SUM(ulbytes + dlbytes), 0) FROM rm_radacct
                           WHERE rm_radacct.username = tmp.username), 0), 0),
                           
                           IF (limituptime = 1, uptimelimit - COALESCE((SELECT SUM(acctsessiontime) FROM radacct
                           WHERE radacct.username = tmp.username) - 
                           (SELECT COALESCE(SUM(acctsessiontime), 0) FROM rm_radacct
                           WHERE rm_radacct.username = tmp.username), 0), 0)
                          "; 
        } 
        if ($filteracctinfo == "") { 
            $filteracctinfo = ACCTINFO_ANY; 
        } 
        switch ($filteracctinfo) { 
            case ACCTINFO_FOUND: 
                $_obfuscated_0D1B390B3C3F2F2E2B3C24391C3F36400C1D3519345B22_ = "AND (SELECT username FROM radacct WHERE radacct.username = tmp.username LIMIT 1) IS NOT NULL"; 
                break; 
            case ACCTINFO_NOTFOUND: 
                $_obfuscated_0D1B390B3C3F2F2E2B3C24391C3F36400C1D3519345B22_ = "AND (SELECT username FROM radacct WHERE radacct.username = tmp.username LIMIT 1) IS NULL"; 
        } 
        if ($filtercardstatus == "") { 
            $filtercardstatus = CARDSTATUS_ANY; 
        } 
        switch ($filtercardstatus) { 
            case CARDSTATUS_INACTIVE: 
                $_obfuscated_0D360E21332C27073527010E1E170D3F2F16181A1E3801_ = "LEFT JOIN rm_cards ON cardnum = username WHERE rm_cards.timebaseexp = 1 AND active = 0"; 
                break; 
            case CARDSTATUS_ACTIVE: 
                $_obfuscated_0D360E21332C27073527010E1E170D3F2F16181A1E3801_ = "LEFT JOIN rm_cards ON cardnum = username WHERE rm_cards.timebaseexp = 1 AND active = 1"; 
        } 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT SQL_CALC_FOUND_ROWS username, firstname, lastname, address, city, zip, country, state, phone, mobile,
  	    email, company, taxid, srvid, downlimit, uplimit, comblimit, expiration, uptimelimit, credits, comment,
  	    enableuser, staticipcpe, staticipcm, ipmodecpe, ipmodecm, srvname, limitdl, limitul, limitcomb, limitexpiration,
  	    limituptime, createdon, verifycode, verified, selfreg, acctype, maccm, LEFT(lastlogoff, 10)
  	    " . $_obfuscated_0D5B253E2C051329312A1E345B3038233D30252D3D3B22_ . "
            FROM 
            (
              SELECT username, firstname, lastname, address, city, zip, country, state, phone, mobile, email, company,
              taxid, rm_users.srvid, rm_users.downlimit, rm_users.uplimit, rm_users.comblimit, rm_users.expiration,
              rm_users.uptimelimit, credits, comment, enableuser, staticipcpe, staticipcm, ipmodecpe, ipmodecm, srvname, limitdl,
              limitul, limitcomb, limitexpiration, limituptime, createdon, verifycode, verified, selfreg, acctype, maccm,
              mac, groupid, contractid, contractvalid, rm_users.owner, srvtype, lastlogoff
              FROM rm_users
              JOIN rm_services USING (srvid)
              " . $_obfuscated_0D360E21332C27073527010E1E170D3F2F16181A1E3801_ . "
            ) AS tmp
            WHERE 1
            " . $_obfuscated_0D351B1C4036361439011627392E1F1D320D3821153732_ . "
	    " . $_obfuscated_0D1D082B1D2A390D310A170A0C265B3F40300F0D402E32_ . "
	    " . $_obfuscated_3737273E160A243C032D2A11112D353D100222_ . "
	    " . $_obfuscated_0D350B32291E5B180D263E352C031C032F131A24401A01_ . "
	    " . $_obfuscated_0D232C02221B19132C322F31391D362C01262C3F2B2311_ . "
	    " . $_obfuscated_3C1C352F100F323617120507063E01363F230C01_ . "
	    " . $_obfuscated_0D373808195B391C2440235B083840190B1D19133E3F01_ . "
	    " . $_obfuscated_0D2A401C315B32195B402D22311C01393F1F1507121322_ . "
	    " . $_obfuscated_0D233C1D1E0F22273814381202242E4002290D32073D22_ . "
	    " . $_obfuscated_0D0C132D0B381B0A1415380F2C255B1F0C35082B031922_ . "
	    " . $_obfuscated_0D34050E283F121C1037112228285B3E01170704342511_ . "
	    " . $_obfuscated_0D35102725240333132E0B180519301740072D2A082201_ . "
	    " . $_obfuscated_0D260325253D3F0E333B151523362B1111143D5B0C1F11_ . "
	    " . $_obfuscated_2921063D1E25152A1B0201081F405B121A32_ . "
	    " . $_obfuscated_32_ . "
	    " . $_obfuscated_0D372D2A4013085B0A0C23363C32110B150E3D1D2A0D01_ . "
	    " . $_obfuscated_0D312A3E0C1715021B352A0A2323102C231D0E330A3422_ . "
	    " . $_obfuscated_0D3536230B355B3D160A010E10390B2A2F3C3B2A1E2801_ . "
	    " . $_obfuscated_0D1729093D1E2D2A192B052810355B2E2A35090E010A22_ . "
	    " . $_obfuscated_3F2E061F32_ . "
	    " . $_obfuscated_0D0103353D1A03292B041A043C2E321B0F1A3819272B32_ . "
	    " . $_obfuscated_0D3B1B02140510122B233938131622220C233522_ . "
	    " . $_obfuscated_0D1B390B3C3F2F2E2B3C24391C3F36400C1D3519345B22_ . "
	    " . $_obfuscated_0D320432153F08160C5B3715120E310919052233140A32_ . "
	    " . $_obfuscated_0D2308292E28035B28112B38140B3E3527113E33252132_ . "
	    " . $_obfuscated_0D0F26122E2C0A21302B18273C092F163704342E313611_ . "
	    " . $_obfuscated_0D013B23130D320A31021A2C241A060E052C2F2F3F0522_ . "
	    " . $_obfuscated_0D103E28133C1C0C143029392735255B391C040C023632_ . "
	    ORDER BY " . $_obfuscated_0D021431230925303D1C033B1A29100734240315092622_ . " " . $ordertype . "" . "
            LIMIT " . $from . ", " . $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ . "
           "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("SELECT FOUND_ROWS()") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_row($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
        $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ = $row[0]; 
        $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
        $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ = $from + 1; 
        while ($row = mysql_fetch_array($res)) { 
            $username = $row[0]; 
            $firstname = $row[1]; 
            $lastname = $row[2]; 
            $address = $row[3]; 
            $city = $row[4]; 
            $_obfuscated_1535143F362A0426310E302A32_ = $row[5]; 
            $country = $row[6]; 
            $state = $row[7]; 
            $_obfuscated_2D1A0D2839352927182F32_ = $row[8]; 
            $_obfuscated_1D3C3209161C2A0D120F0D11_ = $row[9]; 
            $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ = $row[10]; 
            $company = $row[11]; 
            $taxid = $row[12]; 
            $srvid = $row[13]; 
            $downlimit = $row[14]; 
            $uplimit = $row[15]; 
            $comblimit = $row[16]; 
            $expiration = $row[17]; 
            $_obfuscated_053601_ = $row[18]; 
            $_obfuscated_0D130E1A1F173E2B0B1F303E132F172C0D0A28022D1B11_ = $row[19]; 
            $comment = $row[20]; 
            $enableuser = $row[21]; 
            $_obfuscated_0D321C043C30042C3631292C25310E120F333D0D061F11_ = $row[22]; 
            $staticipcm = $row[23]; 
            $ipmodecpe = $row[24]; 
            $ipmodecm = $row[25]; 
            $_obfuscated_0D4039400D3E07301A080203070613301A372F21081A01_ = $row[26]; 
            $_obfuscated_0D0D3B27062D0D3B262F1F3315033B333F302C36151A32_ = $row[27]; 
            $_obfuscated_0D1926142406082A271F333C371422251B113826071711_ = $row[28]; 
            $_obfuscated_1C3B163932320E394010012E07360A19115B403632_ = $row[29]; 
            $_obfuscated_0D2422023702331D252D383027232E0F060F2714183D11_ = $row[30]; 
            $_obfuscated_0D37360215100F0A372B1F1A013337062D270C332B2722_ = $row[31]; 
            $_obfuscated_0D3706303909392B0330183740270D40320A0715292532_ = $row[32]; 
            $_obfuscated_332422_ = $row[33]; 
            $verified = $row[34]; 
            $_obfuscated_0D1E2B16350B28381D352703280D23260D1A290B103C01_ = $row[35]; 
            $_obfuscated_1B01242F0F25053422_ = $row[36]; 
            $maccm = $row[37]; 
            $_obfuscated_052A3F2D323E2501_ = $row[38]; 
            $_obfuscated_0D0D192B37291D05140E3110211F0C2C0C380138042701_ = $row[39]; 
            $_obfuscated_0D3F3E232E1F10043216271118333438091617035B3732_ = $row[40]; 
            $_obfuscated_0D08403712272C0D0C0F2A1E150215240F3C3D2A181932_ = $row[41]; 
            $_obfuscated_0D3922353E302D1E0D36192F3B1B29282F231815011601_ = $row[42]; 
            $_obfuscated_0D08250D101A0617161227170A2238303F0A3D06010111_ = ""; 
            $_obfuscated_0D2311170422120F24161B241B230D3C2B271B1E0F3422_ = ""; 
            $_obfuscated_0D1A30211D380C375B36093B253E2B0C3C042109071301_ = ""; 
            if (!$GLOBALS["_hidelimits"]) { 
                if ($enableuser) { 
                    if (_obfuscated_0D2503011A0505191209322D0D19212A2614113B191C01_($_obfuscated_0D0D3B27062D0D3B262F1F3315033B333F302C36151A32_, $_obfuscated_0D1926142406082A271F333C371422251B113826071711_, $_obfuscated_1C3B163932320E394010012E07360A19115B403632_, $_obfuscated_0D37360215100F0A372B1F1A013337062D270C332B2722_, $_obfuscated_0D2422023702331D252D383027232E0F060F2714183D11_, $_obfuscated_0D0D192B37291D05140E3110211F0C2C0C380138042701_, $_obfuscated_0D3F3E232E1F10043216271118333438091617035B3732_, $_obfuscated_0D08403712272C0D0C0F2A1E150215240F3C3D2A181932_, $_obfuscated_0D3922353E302D1E0D36192F3B1B29282F231815011601_, $expiration)) { 
                        $_obfuscated_0D2311170422120F24161B241B230D3C2B271B1E0F3422_ = col_user_en; 
                    } else { 
                        $_obfuscated_0D2311170422120F24161B241B230D3C2B271B1E0F3422_ = col_user_exp; 
                    } 
                } else { 
                    $_obfuscated_0D2311170422120F24161B241B230D3C2B271B1E0F3422_ = col_user_dis; 
                } 
                if (_obfuscated_0D31040B2D181B29403B0C0521250B072F5B22250C2822_($username)) { 
                    $_obfuscated_0D08250D101A0617161227170A2238303F0A3D06010111_ = col_user_online; 
                } 
                if ($_obfuscated_0D0D3B27062D0D3B262F1F3315033B333F302C36151A32_) { 
                    $_obfuscated_0D0D192B37291D05140E3110211F0C2C0C380138042701_ = _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D0D192B37291D05140E3110211F0C2C0C380138042701_, traffic_format_auto); 
                } else { 
                    $_obfuscated_0D0D192B37291D05140E3110211F0C2C0C380138042701_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_no_limit"); 
                } 
                if ($_obfuscated_0D1926142406082A271F333C371422251B113826071711_) { 
                    $_obfuscated_0D3F3E232E1F10043216271118333438091617035B3732_ = _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D3F3E232E1F10043216271118333438091617035B3732_, traffic_format_auto); 
                } else { 
                    $_obfuscated_0D3F3E232E1F10043216271118333438091617035B3732_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_no_limit"); 
                } 
                if ($_obfuscated_1C3B163932320E394010012E07360A19115B403632_) { 
                    $_obfuscated_0D08403712272C0D0C0F2A1E150215240F3C3D2A181932_ = _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D08403712272C0D0C0F2A1E150215240F3C3D2A181932_, traffic_format_auto); 
                } else { 
                    $_obfuscated_0D08403712272C0D0C0F2A1E150215240F3C3D2A181932_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_no_limit"); 
                } 
                if ($_obfuscated_0D37360215100F0A372B1F1A013337062D270C332B2722_) { 
                    $_obfuscated_0D3922353E302D1E0D36192F3B1B29282F231815011601_ = _obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_0D3922353E302D1E0D36192F3B1B29282F231815011601_); 
                } else { 
                    $_obfuscated_0D3922353E302D1E0D36192F3B1B29282F231815011601_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_no_limit"); 
                } 
            } else { 
                if (!$enableuser) { 
                    $_obfuscated_0D2311170422120F24161B241B230D3C2B271B1E0F3422_ = col_user_dis; 
                } 
            } 
            if ($_obfuscated_0D2422023702331D252D383027232E0F060F2714183D11_ == "0") { 
                $_obfuscated_062717271328091B282201_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_never_expires"); 
            } else { 
                $_obfuscated_062717271328091B282201_ = substr($expiration, 0, 10); 
            } 
            if ($ipmodecpe == ipmode_static) { 
                $_obfuscated_16112733232F0D243201_ = col_enstatip; 
            } else { 
                $_obfuscated_16112733232F0D243201_ = col_disstatip; 
            } 
            if ($ipmodecm == ipmode_static) { 
                $_obfuscated_0D2D361B2617033E060B320B1B313E150F0822240F1C32_ = col_enstatip; 
            } else { 
                $_obfuscated_0D2D361B2617033E060B320B1B313E150F0822240F1C32_ = col_disstatip; 
            } 
            if (($_obfuscated_0D1E2B16350B28381D352703280D23260D1A290B103C01_ || $_obfuscated_1B01242F0F25053422_ == acctype_carduser || $_obfuscated_1B01242F0F25053422_ == acctype_ias) && !$verified) { 
                $_obfuscated_0D1A30211D380C375B36093B253E2B0C3C042109071301_ = col_not_verified; 
            } 
            if ($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ != "") { 
                $_obfuscated_0D24261D031D262C23401E352124291C27253022270E11_ = "<a href=\"mailto:" . $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ . "\">" . $_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_ . "</a>"; 
            } else { 
                $_obfuscated_0D24261D031D262C23401E352124291C27253022270E11_ = ""; 
            } 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("normal"); 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_); 
            if ($GLOBALS["_hidelimits"]) { 
                $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array($_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ . ".", "", "", $_obfuscated_0D2311170422120F24161B241B230D3C2B271B1E0F3422_), array("<input name=\"list[]\" type=\"checkbox\" id=\"list[]\" value=\"" . $username . "\">", "", "", ""), array("<a href=\"admin.php?cont=edit_user&username=" . $username . "\">" . $username . "</a>", "left", "", $_obfuscated_0D08250D101A0617161227170A2238303F0A3D06010111_, true, $_obfuscated_231D1A153B0709363F1D1B32_["username"]), array("<a href=\"admin.php?cont=edit_service&srvid=" . $srvid . "\">" . $_obfuscated_0D4039400D3E07301A080203070613301A372F21081A01_ . "</a>", "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["srvname"]), array($_obfuscated_062717271328091B282201_, "", "", ""), array($_obfuscated_0D321C043C30042C3631292C25310E120F333D0D061F11_, "", $_obfuscated_16112733232F0D243201_, "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cpeip"]), array($staticipcm, "", $_obfuscated_0D2D361B2617033E060B320B1B313E150F0822240F1C32_, "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cmip"]), array($maccm, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cmmac"]), array($firstname, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["firstname"]), array($lastname, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["lastname"]), array($company, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["company"]), array($address, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["address"]), array($city, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["city"]), array($_obfuscated_1535143F362A0426310E302A32_, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["zip"]), array($country, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["country"]), array($state, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["state"]), array($_obfuscated_0D24261D031D262C23401E352124291C27253022270E11_, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["email"]), array($_obfuscated_0D3706303909392B0330183740270D40320A0715292532_, "", "", $_obfuscated_0D1A30211D380C375B36093B253E2B0C3C042109071301_, true, $_obfuscated_231D1A153B0709363F1D1B32_["registered"]), array($_obfuscated_052A3F2D323E2501_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["lastlogoff"]), array(_obfuscated_0D5C053F1740115B320C283E210F0E151007163D2F0122_($comment, comment_maxlen), "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["comment"])); 
            } else { 
                $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array($_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ . ".", "", "", $_obfuscated_0D2311170422120F24161B241B230D3C2B271B1E0F3422_), array("<input name=\"list[]\" type=\"checkbox\" id=\"list[]\" value=\"" . $username . "\">", "", "", ""), array("<a href=\"admin.php?cont=edit_user&username=" . $username . "\">" . $username . "</a>", "left", "", $_obfuscated_0D08250D101A0617161227170A2238303F0A3D06010111_, true, $_obfuscated_231D1A153B0709363F1D1B32_["username"]), array("<a href=\"admin.php?cont=edit_service&srvid=" . $srvid . "\">" . $_obfuscated_0D4039400D3E07301A080203070613301A372F21081A01_ . "</a>", "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["srvname"]), array($_obfuscated_062717271328091B282201_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["expiry"]), array($_obfuscated_0D0D192B37291D05140E3110211F0C2C0C380138042701_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["availdl"]), array($_obfuscated_0D3F3E232E1F10043216271118333438091617035B3732_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["availul"]), array($_obfuscated_0D08403712272C0D0C0F2A1E150215240F3C3D2A181932_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["availtotal"]), array($_obfuscated_0D3922353E302D1E0D36192F3B1B29282F231815011601_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["availtime"]), array($_obfuscated_0D321C043C30042C3631292C25310E120F333D0D061F11_, "", $_obfuscated_16112733232F0D243201_, "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cpeip"]), array($staticipcm, "", $_obfuscated_0D2D361B2617033E060B320B1B313E150F0822240F1C32_, "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cmip"]), array($maccm, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["cmmac"]), array($firstname, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["firstname"]), array($lastname, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["lastname"]), array($company, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["company"]), array($address, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["address"]), array($city, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["city"]), array($_obfuscated_1535143F362A0426310E302A32_, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["zip"]), array($country, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["country"]), array($state, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["state"]), array($_obfuscated_0D24261D031D262C23401E352124291C27253022270E11_, "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["email"]), array($_obfuscated_0D3706303909392B0330183740270D40320A0715292532_, "", "", $_obfuscated_0D1A30211D380C375B36093B253E2B0C3C042109071301_, true, $_obfuscated_231D1A153B0709363F1D1B32_["registered"]), array($_obfuscated_052A3F2D323E2501_, "", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["lastlogoff"]), array(_obfuscated_0D5C053F1740115B320C283E210F0E151007163D2F0122_($comment, comment_maxlen), "left", "", "", true, $_obfuscated_231D1A153B0709363F1D1B32_["comment"])); 
            } 
            if ($_obfuscated_2A06321411_) { 
                $_obfuscated_0D2F2C382B3B3C3D36401D293D1A0B1A101924293B0801_ .= _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($username) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D4039400D3E07301A080203070613301A372F21081A01_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_062717271328091B282201_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D0D192B37291D05140E3110211F0C2C0C380138042701_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D3F3E232E1F10043216271118333438091617035B3732_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D08403712272C0D0C0F2A1E150215240F3C3D2A181932_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D3922353E302D1E0D36192F3B1B29282F231815011601_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D321C043C30042C3631292C25310E120F333D0D061F11_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($staticipcm) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($maccm) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($firstname) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($lastname) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($company) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($address) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($city) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_1535143F362A0426310E302A32_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($country) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($state) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_2D1A0D2839352927182F32_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_1D3C3209161C2A0D120F0D11_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_2E0F25315B3B03233D1E375B2524030A160101_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D3706303909392B0330183740270D40320A0715292532_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_052A3F2D323E2501_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($comment) . "
"; 
                $_obfuscated_0D2F2C382B3B3C3D36401D293D1A0B1A101924293B0801_ = html_entity_decode($_obfuscated_0D2F2C382B3B3C3D36401D293D1A0B1A101924293B0801_); 
            } 
            $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_++; 
            if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor0) { 
                $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor1; 
            } else { 
                if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor1) { 
                    $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                } 
            } 
        } 
        if ($_obfuscated_2A06321411_) { 
            _obfuscated_0D3B3D333B0E395C372838281B3037302227033E131501_("users.csv"); 
            $_obfuscated_3E372E2613071D1B22_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv1") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv2") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv3") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv4") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv5") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv6") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv7") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv8") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv9") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv10") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv11") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv12") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv13") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv14") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv15") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv16") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv17") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv18") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv19") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv20") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv21") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv22") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv23") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstusrcsv24") . "
"; 
            print $_obfuscated_3E372E2613071D1B22_; 
            print $_obfuscated_0D2F2C382B3B3C3D36401D293D1A0B1A101924293B0801_; 
            exit; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USERS}", $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->GetTable(), $_obfuscated_3C142110150A161111385B23173C2C171F32_); 
        if ($ordertype == "DESC") { 
            $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_ = arrow_up; 
        } else { 
            $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_ = arrow_down; 
        } 
        switch ($ordercol) { 
            case "username": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USERNAMEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "srvid": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVIDARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "expiration": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EXPARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "staticipcpe": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATICIPCPEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "staticipcm": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATICIPCMARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "cmmac": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMMACARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "firstname": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FIRSTNAMEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "lastname": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTNAMEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "company": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMPANYARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "address": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDRESSARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "city": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CITYARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "zip": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ZIPARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "country": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COUNTRYARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "state": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATEARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "email": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EMAILARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "createdon": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CREATEDONARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "lastlogoff": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTLOGOFFARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "comment": 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENTARROW}", $_obfuscated_0D343C0C2B0A113830232B1C011C1935330D1A06053801_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USERNAMEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVIDARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EXPARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATICIPCPEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATICIPCMARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMMACARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FIRSTNAMEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTNAMEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMPANYARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDRESSARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CITYARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ZIPARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COUNTRYARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATEARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EMAILARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CREATEDONARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTLOGOFFARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENTARROW}", arrow_none, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_ = _obfuscated_0D0E06262D031728271222243B393C3819300725120A01_($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_, $from, rows_per_page, "admin.php?cont=list_users" . "&ordercol=" . $ordercol . "&ordertype=" . $ordertype . "&lastorder=" . $ordercol . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{QUICKJUMP}", $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_ENABLED}", col_user_en, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_DISABLED}", col_user_dis, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_EXPIRED}", col_user_exp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_ONLINE}", col_user_online, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_NOTVERIFIED}", col_not_verified, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D162B2B043B0D3C050525311738253D0133041A0A0E22_ = "[<a href=\"admin.php?cont=list_users&csvexport=1&odercol=username&ordertype=" . $ordertype . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_ . "\">" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_exportcsv") . "</a>]"; 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EXPORT}", $_obfuscated_0D162B2B043B0D3C050525311738253D0133041A0A0E22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SELCOLPARAMS}", "&from=" . $from . "&ordercol=" . $ordercol . "&ordertype=" . $ordertype . "&lastorder=" . $ordercol . $_obfuscated_0D160E360A1C0E3F1A0A0935290C252F403E1D0C1A2101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1229130223230A175B3E0D04403710071B2A06130632_ = array(array("colidx" => "encol_username", "colname" => "{LSTUSR1}"), array("colidx" => "encol_srvname", "colname" => "{LSTUSR2}"), array("colidx" => "encol_expiry", "colname" => "{LSTUSR6}"), array("colidx" => "encol_availdl", "colname" => "{LSTUSR4}"), array("colidx" => "encol_availul", "colname" => "{LSTUSR5}"), array("colidx" => "encol_availtotal", "colname" => "{LSTUSR18}"), array("colidx" => "encol_availtime", "colname" => "{LSTUSR7}"), array("colidx" => "encol_cpeip", "colname" => "{LSTUSR3}"), array("colidx" => "encol_cmip", "colname" => "{LSTUSR34}"), array("colidx" => "encol_cmmac", "colname" => "{LSTUSR33}"), array("colidx" => "encol_firstname", "colname" => "{LSTUSR22}"), array("colidx" => "encol_lastname", "colname" => "{LSTUSR23}"), array("colidx" => "encol_company", "colname" => "{LSTUSR24}"), array("colidx" => "encol_address", "colname" => "{LSTUSR25}"), array("colidx" => "encol_city", "colname" => "{LSTUSR26}"), array("colidx" => "encol_zip", "colname" => "{LSTUSR27}"), array("colidx" => "encol_country", "colname" => "{LSTUSR28}"), array("colidx" => "encol_state", "colname" => "{LSTUSR29}"), array("colidx" => "encol_email", "colname" => "{LSTUSR32}"), array("colidx" => "encol_registered", "colname" => "{LSTUSR20}"), array("colidx" => "encol_lastlogoff", "colname" => "{LSTUSR37}"), array("colidx" => "encol_comment", "colname" => "{LSTUSR9}")); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COLUMNS}", _obfuscated_0D112B291818135C081E152C0E34050127283D0D063622_(COLSEL_OBJID, $_obfuscated_0D1229130223230A175B3E0D04403710071B2A06130632_, COLSET_LISTUSERS), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FROM}", $from, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTORDER}", $ordercol, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ORDERTYPE}", $ordertype, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USERNAME}", $filterusername, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LISTACCTYPE}", $filterlistacctype, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVTYPE}", $_obfuscated_29293612175B22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATUS}", $filterstatus, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ACCTINFO}", $filteracctinfo, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CARDSTATUS}", $filtercardstatus, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GROUPID}", $filtergroupid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{OWNER}", $filterowner, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVID}", $_obfuscated_0D331A1F153E5B2539082D22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MAC}", $_obfuscated_2F1232_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MACCM}", $filtermaccm, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATICIP}", $filterstaticip, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FIRSTNAME}", $filterfirstname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{LASTNAME}", $_obfuscated_36250E18140D1A1B151D1E0101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMPANY}", $filtercompany, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDRESS}", $filteraddress, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CITY}", $filtercity, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ZIP}", $filterzip, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COUNTRY}", $_obfuscated_352622_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATE}", $filterstate, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PHONE}", $_obfuscated_0B0F162E1B0A19071A1322_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MOBILE}", $filtermobile, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EMAIL}", $filteremail, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENT}", $filtercomment, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{REGDATEFROM}", $filterregdatefrom, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{REGDATETO}", $_obfuscated_3B322411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CONTRACTFROM}", $filtercontractfrom, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CONTRACTTO}", $filtercontractto, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D1B06073E2D143222251A3C17321612242440295B1D11_($fromdate, $todate, $frominvnum, $toinvnum, $gwtransid, $issuedby, $issuedfor, $accowner, $comment, $trtype, $pmstatus, $invgroup, $paymode, $error) 
{ 
    global $monthlist; 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_listinvoices")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = searchinvoices_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_listallinvoices")) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MANAGER}", $_SESSION["AUTH_MANAGER"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MANAGER}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if (!$_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
            $_obfuscated_3034402311_ = date("Y-m-01"); 
            $todate = _obfuscated_0D032B1C06281B2A331D0A1C1C0B36350B2B3834103132_($_obfuscated_3034402311_, 1, timebase_months, datemode_add); 
            $todate = _obfuscated_0D032B1C06281B2A331D0A1C1C0B36350B2B3834103132_($todate, 1, timebase_days, datemode_sub); 
            $trtype = $_COOKIE["lstinv_trtype"]; 
            $pmstatus = $_COOKIE["lstinv_pmstatus"]; 
            $_obfuscated_0D29042C0E10240A34175B265B27350533253F18300E22_ = $_COOKIE["lstinv_trusr"]; 
            $_obfuscated_0D2A0D3F320B2B310C1B36181603370D191A0C3B391D11_ = $_COOKIE["lstinv_trman"]; 
            $_obfuscated_0D2B5B1A40243B081D21253B2E1B261D39330B1D2A3E11_ = $_COOKIE["lstinv_paymode0"]; 
            $_obfuscated_2D3729071E0222_ = $_COOKIE["lstinv_paymode1"]; 
            $_obfuscated_0D3D3D260D091132333F0C1A3F1B1C0D3B3D3C032C2501_ = $_COOKIE["lstinv_paymode2"]; 
            $_obfuscated_0D24121F0E100E0E3F0C09110937012910395B131D3B11_ = $_COOKIE["lstinv_paymode3"]; 
            $_obfuscated_0D0E0D400E17363B2B2B113F2219151F16121E243D2F11_ = $_COOKIE["lstinv_paymode4"]; 
            $_obfuscated_0D32232C331C0E1D35391F131B1D335B1A10043D181C01_ = $_COOKIE["lstinv_paymode5"]; 
            $_obfuscated_0D051D2D0E14043D1C1D3C3624231E3C3E0F0407273B01_ = $_COOKIE["lstinv_paymode6"]; 
            $_obfuscated_0D2B163F1F3926060C13141D142C2B0C1C29085B5B3732_ = $_COOKIE["lstinv_paymode7"]; 
            $_obfuscated_3506053B0310350C0C3F1F1E3F350D2F4032_ = $_COOKIE["lstinv_paymode8"]; 
            $_obfuscated_0D1E1008372A1C1E2C3712185B381A383236112C2A0B11_ = $_COOKIE["lstinv_paymode9"]; 
            $_obfuscated_0D1C012213010E1518022C373D19092F2D193539162811_ = $_COOKIE["lstinv_paymode10"]; 
            $_obfuscated_0D101F0E3B1C1E39335B3B34022128252C1B1A2F283D01_ = $_COOKIE["lstinv_paymode11"]; 
            $_obfuscated_0D3F340B4014221222303C030C05361D1E102104311B01_ = $_COOKIE["lstinv_paymode12"]; 
            $_obfuscated_13043622_ = $_COOKIE["lstinv_paymode13"]; 
            $_obfuscated_0D382C3D28061D232608151815040B390D3C1B293F2901_ = $_COOKIE["lstinv_paymode14"]; 
            $_obfuscated_0D371E1A0D28011D350B2625070B2A1A072F1515330601_ = $_COOKIE["lstinv_paymode15"]; 
            $_obfuscated_0D2A0E0829121F2F30033707282D3F161C34010A061901_ = $_COOKIE["lstinv_paymode16"]; 
            $_obfuscated_0D1128111C3C0E092B1E2F383F07101D22160E0B330F11_ = $_COOKIE["lstinv_paymode17"]; 
            $_obfuscated_0D140806325B24221D130732181F5B0C292B1621331C01_ = $_COOKIE["lstinv_paymode18"]; 
            if ($trtype == "") { 
                $trtype = 0; 
                $_obfuscated_0D29042C0E10240A34175B265B27350533253F18300E22_ = 1; 
                $_obfuscated_0D2A0D3F320B2B310C1B36181603370D191A0C3B391D11_ = 1; 
                $_obfuscated_0D2B5B1A40243B081D21253B2E1B261D39330B1D2A3E11_ = 1; 
                $_obfuscated_2D3729071E0222_ = 1; 
                $_obfuscated_0D3D3D260D091132333F0C1A3F1B1C0D3B3D3C032C2501_ = 1; 
                $_obfuscated_0D24121F0E100E0E3F0C09110937012910395B131D3B11_ = 1; 
                $_obfuscated_0D0E0D400E17363B2B2B113F2219151F16121E243D2F11_ = 1; 
                $_obfuscated_0D32232C331C0E1D35391F131B1D335B1A10043D181C01_ = 1; 
                $_obfuscated_0D051D2D0E14043D1C1D3C3624231E3C3E0F0407273B01_ = 1; 
                $_obfuscated_0D2B163F1F3926060C13141D142C2B0C1C29085B5B3732_ = 1; 
                $_obfuscated_3506053B0310350C0C3F1F1E3F350D2F4032_ = 1; 
                $_obfuscated_0D1E1008372A1C1E2C3712185B381A383236112C2A0B11_ = 1; 
                $_obfuscated_0D1C012213010E1518022C373D19092F2D193539162811_ = 1; 
                $_obfuscated_0D101F0E3B1C1E39335B3B34022128252C1B1A2F283D01_ = 1; 
                $_obfuscated_0D3F340B4014221222303C030C05361D1E102104311B01_ = 1; 
                $_obfuscated_13043622_ = 1; 
                $_obfuscated_0D382C3D28061D232608151815040B390D3C1B293F2901_ = 1; 
                $_obfuscated_0D371E1A0D28011D350B2625070B2A1A072F1515330601_ = 1; 
                $_obfuscated_0D2A0E0829121F2F30033707282D3F161C34010A061901_ = 1; 
                $_obfuscated_0D1128111C3C0E092B1E2F383F07101D22160E0B330F11_ = 1; 
                $_obfuscated_0D140806325B24221D130732181F5B0C292B1621331C01_ = 1; 
            } 
        } else { 
            for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($invgroup); $_obfuscated_1E102C2A11_++) { 
                if ($invgroup[$_obfuscated_1E102C2A11_] == 0) { 
                    $_obfuscated_0D29042C0E10240A34175B265B27350533253F18300E22_ = true; 
                } 
                if ($invgroup[$_obfuscated_1E102C2A11_] == 1) { 
                    $_obfuscated_0D2A0D3F320B2B310C1B36181603370D191A0C3B391D11_ = true; 
                } 
            } 
            for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($paymode); $_obfuscated_1E102C2A11_++) { 
                if ($paymode[$_obfuscated_1E102C2A11_] == 0) { 
                    $_obfuscated_0D2B5B1A40243B081D21253B2E1B261D39330B1D2A3E11_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 1) { 
                    $_obfuscated_2D3729071E0222_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 2) { 
                    $_obfuscated_0D3D3D260D091132333F0C1A3F1B1C0D3B3D3C032C2501_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 3) { 
                    $_obfuscated_0D24121F0E100E0E3F0C09110937012910395B131D3B11_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 4) { 
                    $_obfuscated_0D0E0D400E17363B2B2B113F2219151F16121E243D2F11_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 5) { 
                    $_obfuscated_0D32232C331C0E1D35391F131B1D335B1A10043D181C01_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 6) { 
                    $_obfuscated_0D051D2D0E14043D1C1D3C3624231E3C3E0F0407273B01_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 7) { 
                    $_obfuscated_0D2B163F1F3926060C13141D142C2B0C1C29085B5B3732_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 8) { 
                    $_obfuscated_3506053B0310350C0C3F1F1E3F350D2F4032_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 9) { 
                    $_obfuscated_0D1E1008372A1C1E2C3712185B381A383236112C2A0B11_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 10) { 
                    $_obfuscated_0D1C012213010E1518022C373D19092F2D193539162811_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 11) { 
                    $_obfuscated_0D101F0E3B1C1E39335B3B34022128252C1B1A2F283D01_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 12) { 
                    $_obfuscated_0D3F340B4014221222303C030C05361D1E102104311B01_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 13) { 
                    $_obfuscated_13043622_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 14) { 
                    $_obfuscated_0D382C3D28061D232608151815040B390D3C1B293F2901_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 15) { 
                    $_obfuscated_0D371E1A0D28011D350B2625070B2A1A072F1515330601_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 16) { 
                    $_obfuscated_0D2A0E0829121F2F30033707282D3F161C34010A061901_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 17) { 
                    $_obfuscated_0D1128111C3C0E092B1E2F383F07101D22160E0B330F11_ = true; 
                } 
                if ($paymode[$_obfuscated_1E102C2A11_] == 18) { 
                    $_obfuscated_0D140806325B24221D130732181F5B0C292B1621331C01_ = true; 
                } 
            } 
        } 
        if ($trtype == 0) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKTRTYPEUSR}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKTRTYPEMAN}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKTRTYPEUSR}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKTRTYPEMAN}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($pmstatus == "") { 
            $pmstatus = PMSTATUS_ANY; 
        } 
        switch ($pmstatus) { 
            case PMSTATUS_ANY: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMSTATUS0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case PMSTATUS_UNPAID: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMSTATUS1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case PMSTATUS_EXPIRED: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMSTATUS2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMSTATUS0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMSTATUS1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMSTATUS2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_0D29042C0E10240A34175B265B27350533253F18300E22_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKTRUSR}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D2A0D3F320B2B310C1B36181603370D191A0C3B391D11_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKTRMAN}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKTRUSR}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKTRMAN}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_0D2B5B1A40243B081D21253B2E1B261D39330B1D2A3E11_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_2D3729071E0222_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D3D3D260D091132333F0C1A3F1B1C0D3B3D3C032C2501_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D24121F0E100E0E3F0C09110937012910395B131D3B11_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM3}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D0E0D400E17363B2B2B113F2219151F16121E243D2F11_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM4}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D32232C331C0E1D35391F131B1D335B1A10043D181C01_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM5}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D051D2D0E14043D1C1D3C3624231E3C3E0F0407273B01_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM6}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D2B163F1F3926060C13141D142C2B0C1C29085B5B3732_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM7}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_3506053B0310350C0C3F1F1E3F350D2F4032_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM8}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D1E1008372A1C1E2C3712185B381A383236112C2A0B11_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM9}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D1C012213010E1518022C373D19092F2D193539162811_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM10}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D101F0E3B1C1E39335B3B34022128252C1B1A2F283D01_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM11}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D3F340B4014221222303C030C05361D1E102104311B01_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM12}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_13043622_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM13}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D382C3D28061D232608151815040B390D3C1B293F2901_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM14}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D371E1A0D28011D350B2625070B2A1A072F1515330601_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM15}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D2A0E0829121F2F30033707282D3F161C34010A061901_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM16}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D1128111C3C0E092B1E2F383F07101D22160E0B330F11_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM17}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D140806325B24221D130732181F5B0C292B1621331C01_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM18}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM3}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM4}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM5}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM6}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM7}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM8}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM9}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM10}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM11}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM12}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM13}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM14}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM15}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM16}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM17}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM18}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FROMDATE}", $_obfuscated_3034402311_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TODATE}", $todate, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{FROMINVNUM}", $frominvnum, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TOINVNUM}", $toinvnum, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GWTRANSID}", $_obfuscated_04131119270D21100532_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ISSUEDBY}", $issuedby, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ISSUEDFOR}", $_obfuscated_372F02160D0D04193D282C2F1732_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ACCOWNER}", $accowner, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENT}", $comment, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D0D0E160C213C03192E050F18132714192F17401C4011_($currency, $unixacc, $diskquota, $quotatpl, $paymentopt, $changesrv, $vatpercent, $advtaxpercent, $disablenotpaid, $disableexpcont, $resetctr, $disconnmethod, $warndl, $warndlpercent, $warnul, $warnulpercent, $warncomb, $warncombpercent, $warnuptime, $warnuptimepercent, $warnexpiry, $warnmode, $selfreg, $edituserdata, $hidelimits, $pm_internal, $pm_paypalstd, $pm_paypalpro, $pm_paypalexp, $pm_netcash, $pm_authorizenet, $pm_dps, $pm_2co, $pm_payfast, $pm_payu, $pm_paytm, $pm_bkash, $pm_flutterwave, $pm_easypay, $pm_mpesa, $pm_custom, $unixhost, $remotehostname, $selfreg_firstname, $selfreg_lastname, $selfreg_address, $selfreg_city, $selfreg_zip, $selfreg_country, $selfreg_state, $selfreg_phone, $selfreg_mobile, $selfreg_email, $selfreg_mobactsms, $selfreg_nameactemail, $selfreg_nameactsms, $selfreg_vatid, $selfreg_endupemail, $selfreg_endupmobile, $maclock, $billingstart, $changepswucp, $renewday, $redeemucp, $buycreditsucp, $buydepositucp, $emailselfregman, $emailwelcome, $emailnewsrv, $emailrenew, $smsrenew, $emailexpiry, $ias_email, $ias_mobile, $ias_verify, $ias_endupemail, $ias_endupmobile, $smswelcome, $smsexpiry, $newnasallsrv, $newmanallsrv, $simuseselfreg, $defgrpid, $expalertmode, $captcha, $disconnpostpaid, $smsnewsrv, $disconhour, $disconmin, $reg_firstname, $reg_lastname, $reg_address, $reg_city, $reg_zip, $reg_country, $reg_state, $reg_phone, $reg_mobile, $reg_email, $reg_vatid, $error) 
{ 
    if ($_SESSION["AUTH_MANAGER"] != admin_user) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_only_superuser")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = editsettings_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_1132062F2D3B0E3825152532_ = "SELECT currency, unixacc, diskquota, quotatpl, paymentopt, changesrv, vatpercent, advtaxpercent, disablenotpaid,
  	    disableexpcont, resetctr, disconnmethod, warndl, warnul, warncomb, warnuptime, warnexpiry, selfreg, edituserdata,
  	    hidelimits, pm_internal, pm_paypalstd, pm_paypalpro, pm_paypalexp, pm_netcash, pm_authorizenet, pm_dps, pm_2co,
  	    pm_payfast, pm_payu, pm_paytm, pm_bkash, pm_flutterwave, pm_easypay, pm_mpesa, pm_custom, unixhost, remotehostname,
  	    selfreg_firstname, selfreg_lastname, selfreg_address, selfreg_city, selfreg_zip, selfreg_country, selfreg_state,
  	    selfreg_phone, selfreg_mobile, selfreg_email, selfreg_mobactsms, selfreg_nameactemail, selfreg_nameactsms, selfreg_vatid,
  	    selfreg_endupemail, selfreg_endupmobile, maclock, billingstart, changepswucp, renewday, redeemucp, buycreditsucp,
  	    buydepositucp, warndlpercent, warnulpercent, warncombpercent, warnuptimepercent, warnmode, emailselfregman, emailwelcome,
  	    emailnewsrv, emailrenew, smsrenew, emailexpiry, ias_email, ias_mobile, ias_verify, ias_endupemail, ias_endupmobile,
  	    smswelcome, smsexpiry, newnasallsrv, newmanallsrv, simuseselfreg, defgrpid, expalertmode, captcha, disconnpostpaid,
  	    smsnewsrv, discontime, reg_firstname, reg_lastname, reg_address, reg_city, reg_zip, reg_country, reg_state, reg_phone,
  	    reg_mobile, reg_email, reg_vatid
  	    FROM rm_settings
  	   "; 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
            $currency = $row["currency"]; 
            $_obfuscated_1911041E232514310A163B0B073D5B1D22_ = $row["unixacc"]; 
            $diskquota = $row["diskquota"]; 
            $_obfuscated_1722233732_ = $row["quotatpl"]; 
            $_obfuscated_24133702362414312F1501_ = $row["paymentopt"]; 
            $_obfuscated_02163D1E2C1733331B3B1C323D342411_ = $row["changesrv"]; 
            $vatpercent = $row["vatpercent"]; 
            $advtaxpercent = $row["advtaxpercent"]; 
            $disablenotpaid = $row["disablenotpaid"]; 
            $disableexpcont = $row["disableexpcont"]; 
            $resetctr = $row["resetctr"]; 
            $disconnmethod = $row["disconnmethod"]; 
            $_obfuscated_1701_ = $row["warndl"]; 
            $warnul = $row["warnul"]; 
            $warncomb = $row["warncomb"]; 
            $warnuptime = $row["warnuptime"]; 
            $warnexpiry = $row["warnexpiry"]; 
            $selfreg = $row["selfreg"]; 
            $_obfuscated_113D02400A173E1604250322_ = $row["edituserdata"]; 
            $hidelimits = $row["hidelimits"]; 
            $pm_internal = $row["pm_internal"]; 
            $_obfuscated_11_ = $row["pm_paypalstd"]; 
            $pm_paypalpro = $row["pm_paypalpro"]; 
            $pm_paypalexp = $row["pm_paypalexp"]; 
            $_obfuscated_3B232E1226143B2E210D2D4040113C363701_ = $row["pm_netcash"]; 
            $pm_authorizenet = $row["pm_authorizenet"]; 
            $pm_dps = $row["pm_dps"]; 
            $pm_2co = $row["pm_2co"]; 
            $pm_payfast = $row["pm_payfast"]; 
            $pm_payu = $row["pm_payu"]; 
            $pm_paytm = $row["pm_paytm"]; 
            $_obfuscated_102411040813222822_ = $row["pm_bkash"]; 
            $pm_custom = $row["pm_custom"]; 
            $_obfuscated_2A010E1701_ = $row["pm_flutterwave"]; 
            $pm_easypay = $row["pm_easypay"]; 
            $_obfuscated_15300F372C22_ = $row["pm_mpesa"]; 
            $unixhost = $row["unixhost"]; 
            $remotehostname = $row["remotehostname"]; 
            $selfreg_firstname = $row["selfreg_firstname"]; 
            $selfreg_lastname = $row["selfreg_lastname"]; 
            $selfreg_address = $row["selfreg_address"]; 
            $selfreg_city = $row["selfreg_city"]; 
            $selfreg_zip = $row["selfreg_zip"]; 
            $selfreg_country = $row["selfreg_country"]; 
            $selfreg_state = $row["selfreg_state"]; 
            $selfreg_phone = $row["selfreg_phone"]; 
            $selfreg_mobile = $row["selfreg_mobile"]; 
            $selfreg_email = $row["selfreg_email"]; 
            $_obfuscated_12062C0F211F2611_ = $row["selfreg_mobactsms"]; 
            $selfreg_nameactemail = $row["selfreg_nameactemail"]; 
            $selfreg_nameactsms = $row["selfreg_nameactsms"]; 
            $selfreg_vatid = $row["selfreg_vatid"]; 
            $_obfuscated_1B1A0501_ = $row["selfreg_endupemail"]; 
            $_obfuscated_1511_ = $row["selfreg_endupmobile"]; 
            $maclock = $row["maclock"]; 
            $_obfuscated_2217091E2B0D2C251C3E01_ = $row["billingstart"]; 
            $changepswucp = $row["changepswucp"]; 
            $renewday = $row["renewday"]; 
            $redeemucp = $row["redeemucp"]; 
            $buycreditsucp = $row["buycreditsucp"]; 
            $_obfuscated_38391C120402053F3C1A32_ = $row["buydepositucp"]; 
            $warndlpercent = $row["warndlpercent"]; 
            $warnulpercent = $row["warnulpercent"]; 
            $warncombpercent = $row["warncombpercent"]; 
            $warnuptimepercent = $row["warnuptimepercent"]; 
            $warnmode = $row["warnmode"]; 
            $emailselfregman = $row["emailselfregman"]; 
            $emailwelcome = $row["emailwelcome"]; 
            $_obfuscated_2C26232131402B2A22_ = $row["emailnewsrv"]; 
            $_obfuscated_2C163101_ = $row["smsnewsrv"]; 
            $emailrenew = $row["emailrenew"]; 
            $smsrenew = $row["smsrenew"]; 
            $_obfuscated_1A22275B0236402E0E5B1D0B3B1F2501_ = $row["emailexpiry"]; 
            $ias_email = $row["ias_email"]; 
            $ias_mobile = $row["ias_mobile"]; 
            $ias_verify = $row["ias_verify"]; 
            $_obfuscated_1217393632253422_ = $row["ias_endupemail"]; 
            $ias_endupmobile = $row["ias_endupmobile"]; 
            $smswelcome = $row["smswelcome"]; 
            $_obfuscated_191B392E1F3211_ = $row["smsexpiry"]; 
            $newnasallsrv = $row["newnasallsrv"]; 
            $newmanallsrv = $row["newmanallsrv"]; 
            $_obfuscated_15401322_ = $row["simuseselfreg"]; 
            $defgrpid = $row["defgrpid"]; 
            $expalertmode = $row["expalertmode"]; 
            $_obfuscated_193E150C192A0D2D032B1A2E1A402C010F01_ = $row["captcha"]; 
            $_obfuscated_39271C230D3D263911_ = $row["disconnpostpaid"]; 
            $_obfuscated_0D38093E150C131F3F072F1D253630041B03241F081832_ = $row["discontime"]; 
            $_obfuscated_043F0131241E3B11_ = $row["reg_firstname"]; 
            $reg_lastname = $row["reg_lastname"]; 
            $_obfuscated_18132A330340393C1C04351F1119362C2F341D32_ = $row["reg_address"]; 
            $_obfuscated_1C2C051D2208081701_ = $row["reg_city"]; 
            $_obfuscated_0F180A14010D0907260811_ = $row["reg_zip"]; 
            $reg_country = $row["reg_country"]; 
            $reg_state = $row["reg_state"]; 
            $reg_phone = $row["reg_phone"]; 
            $reg_mobile = $row["reg_mobile"]; 
            $reg_email = $row["reg_email"]; 
            $reg_vatid = $row["reg_vatid"]; 
            $disconhour = substr($_obfuscated_0D38093E150C131F3F072F1D253630041B03241F081832_, 0, 2); 
            $_obfuscated_241C0A070A0A2D22_ = substr($_obfuscated_0D38093E150C131F3F072F1D253630041B03241F081832_, 3, 2); 
        } 
        if (!$_obfuscated_1701_) { 
            $_obfuscated_1701_ = 0; 
        } 
        if (!$warnul) { 
            $warnul = 0; 
        } 
        if (!$warncomb) { 
            $warncomb = 0; 
        } 
        if (!$warndlpercent) { 
            $warndlpercent = 0; 
        } 
        if (!$warnulpercent) { 
            $warnulpercent = 0; 
        } 
        if (!$warncombpercent) { 
            $warncombpercent = 0; 
        } 
        if (!$warnuptimepercent) { 
            $warnuptimepercent = 0; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CURRENCY}", $currency, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{QUOTATPL}", $_obfuscated_1722233732_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{REMOTEHOSTNAME}", $remotehostname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PAYMENTOPT}", $_obfuscated_24133702362414312F1501_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{VATPERCENT}", $vatpercent, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADVTAXPERCENT}", $advtaxpercent, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{WARNDL}", $_obfuscated_1701_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{WARNDLPERCENT}", $warndlpercent, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{WARNUL}", $warnul, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{WARNULPERCENT}", $warnulpercent, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{WARNCOMB}", $warncomb, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{WARNCOMBPERCENT}", $warncombpercent, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{WARNUPTIME}", _obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($warnuptime), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{WARNUPTIMEPERCENT}", $warnuptimepercent, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{WARNEXPIRY}", $warnexpiry, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BILLINGSTART}", $_obfuscated_2217091E2B0D2C251C3E01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SIMUSESELFREG}", $_obfuscated_15401322_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1C22402C26282F3505395B110117312C392A22301F11_ = ""; 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ <= 23; $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_1E102C2A11_ == $disconhour) { 
                $_obfuscated_1E102C2A11_ = str_pad($_obfuscated_1E102C2A11_, 2, "0", STR_PAD_LEFT); 
                $_obfuscated_0D1C22402C26282F3505395B110117312C392A22301F11_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_1E102C2A11_ . ">" . $_obfuscated_1E102C2A11_ . "</OPTION>"; 
            } else { 
                $_obfuscated_1E102C2A11_ = str_pad($_obfuscated_1E102C2A11_, 2, "0", STR_PAD_LEFT); 
                $_obfuscated_0D1C22402C26282F3505395B110117312C392A22301F11_ .= "" . "<OPTION value=" . $_obfuscated_1E102C2A11_ . ">" . $_obfuscated_1E102C2A11_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{HOURS1}", $_obfuscated_0D1C22402C26282F3505395B110117312C392A22301F11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D352A110A080D3928213D0809270F2A123504110E1601_ = ""; 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ <= 59; $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_1E102C2A11_ == $_obfuscated_241C0A070A0A2D22_) { 
                $_obfuscated_1E102C2A11_ = str_pad($_obfuscated_1E102C2A11_, 2, "0", STR_PAD_LEFT); 
                $_obfuscated_0D352A110A080D3928213D0809270F2A123504110E1601_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_1E102C2A11_ . ">" . $_obfuscated_1E102C2A11_ . "</OPTION>"; 
            } else { 
                $_obfuscated_1E102C2A11_ = str_pad($_obfuscated_1E102C2A11_, 2, "0", STR_PAD_LEFT); 
                $_obfuscated_0D352A110A080D3928213D0809270F2A123504110E1601_ .= "" . "<OPTION value=" . $_obfuscated_1E102C2A11_ . ">" . $_obfuscated_1E102C2A11_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MINUTES1}", $_obfuscated_0D352A110A080D3928213D0809270F2A123504110E1601_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_1911041E232514310A163B0B073D5B1D22_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKUNIXACC}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKUNIXACC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($diskquota) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDISKQUOTA}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDISKQUOTA}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($_obfuscated_02163D1E2C1733331B3B1C323D342411_) { 
            case changesrv_never: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHGSRV0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHGSRV1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHGSRV2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case changesrv_whenexpired: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHGSRV0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHGSRV1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHGSRV2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case changesrv_anytime: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHGSRV0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHGSRV1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHGSRV2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($warnmode == warnmode_fixed) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKWARNMODE0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKWARNMODE1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKWARNMODE0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKWARNMODE1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($resetctr) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKRESETCTR}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKRESETCTR}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($disconnmethod == disconn_method_auto) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDISCAUTO}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDISCREMOTE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDISCAUTO}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDDISCREMOTE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($unixhost == unixhost_local) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDUNIXLOCAL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDUNIXREMOTE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDUNIXLOCAL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDUNIXREMOTE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($diskquota) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDISKQUOTA}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDISKQUOTA}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_39271C230D3D263911_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDISCONNPOSTPAID}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDISCONNPOSTPAID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($disablenotpaid == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDISNOTPAID}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDISNOTPAID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($disableexpcont == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDISEXPCONT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKDISEXPCONT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($emailselfregman == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAILSELFREGMAN}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAILSELFREGMAN}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($emailwelcome == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAILWELCOME}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAILWELCOME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($smswelcome == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMSWELCOME}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMSWELCOME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_2C26232131402B2A22_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAILNEWSRV}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAILNEWSRV}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_2C163101_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMSNEWSRV}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMSNEWSRV}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($emailrenew == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAILRENEW}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAILRENEW}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($smsrenew == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMSRENEW}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMSRENEW}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1A22275B0236402E0E5B1D0B3B1F2501_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAILEXPIRY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEMAILEXPIRY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_191B392E1F3211_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMSEXPIRY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSMSEXPIRY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREG}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_113D02400A173E1604250322_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEDITUSERDATA}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEDITUSERDATA}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($changepswucp == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHANGEPSWUCP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCHANGEPSWUCP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($redeemucp == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREDEEMUCP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREDEEMUCP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($buycreditsucp == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKBUYCREDITSUCP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKBUYCREDITSUCP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_38391C120402053F3C1A32_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKBUYDEPOSITUCP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKBUYDEPOSITUCP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($hidelimits == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKHIDELIMITS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKHIDELIMITS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($newnasallsrv == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKNEWNASALLSRV}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKNEWNASALLSRV}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($newmanallsrv == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKNEWMANALLSRV}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKNEWMANALLSRV}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_internal == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMINTERNAL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMINTERNAL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_11_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYPALSTD}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYPALSTD}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_paypalpro == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYPALPRO}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYPALPRO}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_paypalexp == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYPALEXP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYPALEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_3B232E1226143B2E210D2D4040113C363701_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMNETCASH}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMNETCASH}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_authorizenet == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMAUTHORIZENET}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMAUTHORIZENET}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_dps == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMDPS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMDPS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_2co == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM2CO}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPM2CO}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_payfast == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYFAST}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYFAST}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_payu == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYU}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYU}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_paytm == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYTM}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMPAYTM}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_102411040813222822_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMBKASH}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMBKASH}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_2A010E1701_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMFLUTTERWAVE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMFLUTTERWAVE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_easypay == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMEASYPAY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMEASYPAY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_15300F372C22_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMMPESA}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMMPESA}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pm_custom == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMCUSTOM}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKPMCUSTOM}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($maclock == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACLOCK}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKMACLOCK}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_firstname == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGFIRSTNAME}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGFIRSTNAME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_lastname == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGLASTNAME}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGLASTNAME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_address == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGADDRESS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGADDRESS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_city == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGCITY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGCITY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_zip == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGZIP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGZIP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_country == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGCOUNTRY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGCOUNTRY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_state == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGSTATE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGSTATE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_phone == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGPHONE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGPHONE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_mobile == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGMOBILE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGMOBILE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_email == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_vatid == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGVATID}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGVATID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_043F0131241E3B11_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGFIRSTNAME}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGFIRSTNAME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($reg_lastname == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGLASTNAME}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGLASTNAME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_18132A330340393C1C04351F1119362C2F341D32_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGADDRESS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGADDRESS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1C2C051D2208081701_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGCITY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGCITY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0F180A14010D0907260811_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGZIP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGZIP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($reg_country == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGCOUNTRY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGCOUNTRY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($reg_state == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGSTATE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGSTATE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($reg_phone == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGPHONE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGPHONE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($reg_mobile == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGMOBILE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGMOBILE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($reg_email == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($reg_vatid == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGVATID}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKREGVATID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1B1A0501_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGENDUPEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGENDUPEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1511_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGENDUPMOBILE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGENDUPMOBILE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_nameactsms == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGNAMEACTSMS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGNAMEACTSMS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($selfreg_nameactemail == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGNAMEACTEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGNAMEACTEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_12062C0F211F2611_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGMOBACTSMS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSELFREGMOBACTSMS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($ias_email == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIASEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIASEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($ias_mobile == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIASMOBILE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIASMOBILE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1217393632253422_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIASENDUPEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIASENDUPEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($ias_endupmobile == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIASENDUPMOBILE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIASENDUPMOBILE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($ias_verify == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIASVERIFY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIASVERIFY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        for ($_obfuscated_1E102C2A11_ = 1; $_obfuscated_1E102C2A11_ <= 28; $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_1E102C2A11_ == $_obfuscated_2217091E2B0D2C251C3E01_) { 
                $_obfuscated_0D103402340C0D3708252D1B221019140E3F37042D1722_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_1E102C2A11_ . ">" . $_obfuscated_1E102C2A11_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D103402340C0D3708252D1B221019140E3F37042D1722_ .= "" . "<OPTION value=" . $_obfuscated_1E102C2A11_ . ">" . $_obfuscated_1E102C2A11_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BILLINGSTARTLIST}", $_obfuscated_0D103402340C0D3708252D1B221019140E3F37042D1722_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        for ($_obfuscated_1E102C2A11_ = 1; $_obfuscated_1E102C2A11_ <= 28; $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_1E102C2A11_ == $renewday) { 
                $_obfuscated_0D020C0B2D04372B112813100E0C360A2A221D34310B32_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_1E102C2A11_ . ">" . $_obfuscated_1E102C2A11_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D020C0B2D04372B112813100E0C360A2A221D34310B32_ .= "" . "<OPTION value=" . $_obfuscated_1E102C2A11_ . ">" . $_obfuscated_1E102C2A11_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{RENEWDAYLIST}", $_obfuscated_0D020C0B2D04372B112813100E0C360A2A221D34310B32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $res = mysql_query("SELECT groupid, groupname
  		      FROM rm_usergroups
  		      ORDER BY groupname
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ = $row[0]; 
            $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ = $row[1]; 
            if ($defgrpid == $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_) { 
                $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ .= "" . "<OPTION SELECTED value='" . $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ . "'>" . $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ . "</OPTION>"; 
            } else { 
                $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ .= "" . "<OPTION value='" . $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ . "'>" . $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DEFGRPLIST}", $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_193E150C192A0D2D032B1A2E1A402C010F01_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCAPTCHA}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCAPTCHA}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($expalertmode == EXPALERT_ONCE) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEXPALERT0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEXPALERT1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEXPALERT0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKEXPALERT1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_2C13370B5B33103D391A0B390F21032F29342601_($currency, $unixacc, $diskquota, $quotatpl, $paymentopt, $changesrv, $vatpercent, $advtaxpercent, $disablenotpaid, $disableexpcont, $resetctr, $disconnmethod, $warndl, $warndlpercent, $warnul, $warnulpercent, $warncomb, $warncombpercent, $warnuptime, $warnuptimepercent, $warnexpiry, $warnmode, $selfreg, $edituserdata, $hidelimits, $pm_internal, $pm_paypalstd, $pm_paypalpro, $pm_paypalexp, $pm_netcash, $pm_authorizenet, $pm_dps, $pm_2co, $pm_payfast, $pm_payu, $pm_paytm, $pm_bkash, $pm_flutterwave, $pm_easypay, $pm_mpesa, $pm_custom, $unixhost, $remotehostname, $selfreg_firstname, $selfreg_lastname, $selfreg_address, $selfreg_city, $selfreg_zip, $selfreg_country, $selfreg_state, $selfreg_phone, $selfreg_mobile, $selfreg_email, $selfreg_mobactsms, $selfreg_nameactemail, $selfreg_nameactsms, $selfreg_vatid, $selfreg_endupemail, $selfreg_endupmobile, $maclock, $billingstart, $changepswucp, $renewday, $redeemucp, $buycreditsucp, $buydepositucp, $emailselfregman, $emailwelcome, $emailnewsrv, $emailrenew, $smsrenew, $emailexpiry, $ias_email, $ias_mobile, $ias_verify, $ias_endupemail, $ias_endupmobile, $smswelcome, $smsexpiry, $newnasallsrv, $newmanallsrv, $simuseselfreg, $defgrpid, $expalertmode, $captcha, $disconnpostpaid, $smsnewsrv, $disconhour, $disconmin, $reg_firstname, $reg_lastname, $reg_address, $reg_city, $reg_zip, $reg_country, $reg_state, $reg_phone, $reg_mobile, $reg_email, $reg_vatid) 
{ 
    if ($_SESSION["AUTH_MANAGER"] != admin_user) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_only_superuser")); 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $warnuptime = _obfuscated_0D0A1636103430181206321F3E380D283D1D153B031632_($warnuptime); 
    $_obfuscated_0D15113640131618241B1604112C12010D33013D291232_ = false; 
    if ($currency == "") { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_currency"); 
        } 
        $_obfuscated_0D15113640131618241B1604112C12010D33013D291232_ = true; 
    } 
    if ($_obfuscated_24133702362414312F1501_ < 1 || 365 < $_obfuscated_24133702362414312F1501_) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_invalid_paymentopt"); 
        } 
        $_obfuscated_0D15113640131618241B1604112C12010D33013D291232_ = true; 
    } 
    if ($_obfuscated_15401322_ < 1) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_simuse_invalid"); 
        } 
        $_obfuscated_0D15113640131618241B1604112C12010D33013D291232_ = true; 
    } 
    if ($unixhost == unixhost_remote && $remotehostname == "") { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_remotehost"); 
        } 
        $_obfuscated_0D15113640131618241B1604112C12010D33013D291232_ = true; 
    } 
    if ($warnmode == warnmode_fixed) { 
        if ($_obfuscated_1701_ < 0 || $warnul < 0 || $warncomb < 0 || $warnexpiry < 0 || $warnuptime < 0) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_invalid_warnlevel"); 
            } 
            $_obfuscated_0D15113640131618241B1604112C12010D33013D291232_ = true; 
        } 
    } else { 
        if ($warndlpercent < 0 || $warnulpercent < 0 || $warncombpercent < 0 || $warnuptimepercent < 0 || 100 < $warndlpercent || 100 < $warnulpercent || 100 < $warncombpercent || 100 < $warnuptimepercent) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_invalid_warnlevel"); 
            } 
            $_obfuscated_0D15113640131618241B1604112C12010D33013D291232_ = true; 
        } 
    } 
    if ($_obfuscated_0D15113640131618241B1604112C12010D33013D291232_) { 
        return _obfuscated_0D0D0E160C213C03192E050F18132714192F17401C4011_($currency, $_obfuscated_1911041E232514310A163B0B073D5B1D22_, $diskquota, $_obfuscated_1722233732_, $_obfuscated_24133702362414312F1501_, $_obfuscated_02163D1E2C1733331B3B1C323D342411_, $vatpercent, $advtaxpercent, $disablenotpaid, $disableexpcont, $resetctr, $disconnmethod, $_obfuscated_1701_, $warndlpercent, $warnul, $warnulpercent, $warncomb, $warncombpercent, $warnuptime, $warnuptimepercent, $warnexpiry, $warnmode, $selfreg, $_obfuscated_113D02400A173E1604250322_, $hidelimits, $pm_internal, $_obfuscated_11_, $pm_paypalpro, $pm_paypalexp, $_obfuscated_3B232E1226143B2E210D2D4040113C363701_, $pm_authorizenet, $pm_dps, $pm_2co, $pm_payfast, $pm_payu, $pm_paytm, $_obfuscated_102411040813222822_, $_obfuscated_2A010E1701_, $pm_easypay, $_obfuscated_15300F372C22_, $pm_custom, $unixhost, $remotehostname, $selfreg_firstname, $selfreg_lastname, $selfreg_address, $selfreg_city, $selfreg_zip, $selfreg_country, $selfreg_state, $selfreg_phone, $selfreg_mobile, $selfreg_email, $_obfuscated_12062C0F211F2611_, $selfreg_nameactemail, $selfreg_nameactsms, $selfreg_vatid, $_obfuscated_1B1A0501_, $_obfuscated_1511_, $maclock, $_obfuscated_2217091E2B0D2C251C3E01_, $changepswucp, $renewday, $redeemucp, $buycreditsucp, $_obfuscated_38391C120402053F3C1A32_, $emailselfregman, $emailwelcome, $_obfuscated_2C26232131402B2A22_, $emailrenew, $smsrenew, $_obfuscated_1A22275B0236402E0E5B1D0B3B1F2501_, $ias_email, $ias_mobile, $ias_verify, $_obfuscated_1217393632253422_, $ias_endupmobile, $smswelcome, $_obfuscated_191B392E1F3211_, $newnasallsrv, $newmanallsrv, $_obfuscated_15401322_, $defgrpid, $expalertmode, $_obfuscated_193E150C192A0D2D032B1A2E1A402C010F01_, $_obfuscated_39271C230D3D263911_, $_obfuscated_2C163101_, $disconhour, $_obfuscated_241C0A070A0A2D22_, $_obfuscated_043F0131241E3B11_, $reg_lastname, $_obfuscated_18132A330340393C1C04351F1119362C2F341D32_, $_obfuscated_1C2C051D2208081701_, $_obfuscated_0F180A14010D0907260811_, $reg_country, $reg_state, $reg_phone, $reg_mobile, $reg_email, $reg_vatid, $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
    } 
    $_obfuscated_0D38093E150C131F3F072F1D253630041B03241F081832_ = $disconhour . ":" . $_obfuscated_241C0A070A0A2D22_; 
    $_obfuscated_1132062F2D3B0E3825152532_ = "" . "UPDATE rm_settings
  	    SET currency = '" . $currency . "', unixacc = '" . $_obfuscated_1911041E232514310A163B0B073D5B1D22_ . "', diskquota = '" . $diskquota . "', quotatpl = '" . $_obfuscated_1722233732_ . "',
  	    paymentopt = '" . $_obfuscated_24133702362414312F1501_ . "', changesrv = '" . $_obfuscated_02163D1E2C1733331B3B1C323D342411_ . "', vatpercent = '" . $vatpercent . "', advtaxpercent = '" . $advtaxpercent . "',
  	    disablenotpaid = '" . $disablenotpaid . "', disableexpcont = '" . $disableexpcont . "', resetctr = '" . $resetctr . "',
  	    disconnmethod = '" . $disconnmethod . "', warndl = '" . $_obfuscated_1701_ . "', warnul = '" . $warnul . "', warncomb = '" . $warncomb . "',
  	    warndlpercent = '" . $warndlpercent . "', warnulpercent = '" . $warnulpercent . "', warncombpercent = '" . $warncombpercent . "',
  	    warnuptimepercent = '" . $warnuptimepercent . "', warnmode = '" . $warnmode . "', warnuptime = '" . $warnuptime . "',
  	    warnexpiry = '" . $warnexpiry . "',  selfreg = '" . $selfreg . "', edituserdata = '" . $_obfuscated_113D02400A173E1604250322_ . "', hidelimits = '" . $hidelimits . "',
  	    pm_internal = '" . $pm_internal . "', pm_paypalstd = '" . $_obfuscated_11_ . "', pm_paypalpro = '" . $pm_paypalpro . "',
  	    pm_paypalexp = '" . $pm_paypalexp . "', pm_netcash = '" . $_obfuscated_3B232E1226143B2E210D2D4040113C363701_ . "', pm_authorizenet = '" . $pm_authorizenet . "',
  	    pm_dps = '" . $pm_dps . "', pm_2co = '" . $pm_2co . "', pm_payfast = '" . $pm_payfast . "', pm_payu = '" . $pm_payu . "', pm_paytm = '" . $pm_paytm . "',
  	    pm_bkash = '" . $_obfuscated_102411040813222822_ . "', pm_flutterwave = '" . $_obfuscated_2A010E1701_ . "', pm_easypay = '" . $pm_easypay . "', pm_mpesa = '" . $_obfuscated_15300F372C22_ . "',
  	    pm_custom = '" . $pm_custom . "', unixhost = '" . $unixhost . "', remotehostname = '" . $remotehostname . "',
  	    selfreg_firstname = '" . $selfreg_firstname . "', selfreg_lastname = '" . $selfreg_lastname . "',
  	    selfreg_address = '" . $selfreg_address . "', selfreg_city = '" . $selfreg_city . "', selfreg_zip = '" . $selfreg_zip . "',
  	    selfreg_country = '" . $selfreg_country . "', selfreg_state = '" . $selfreg_state . "', selfreg_phone = '" . $selfreg_phone . "',
  	    selfreg_mobile = '" . $selfreg_mobile . "', selfreg_email = '" . $selfreg_email . "', selfreg_mobactsms = '" . $_obfuscated_12062C0F211F2611_ . "',
  	    selfreg_nameactemail = '" . $selfreg_nameactemail . "', selfreg_nameactsms = '" . $selfreg_nameactsms . "',
  	    selfreg_vatid = '" . $selfreg_vatid . "', selfreg_endupemail = '" . $_obfuscated_1B1A0501_ . "',
  	    selfreg_endupmobile = '" . $_obfuscated_1511_ . "', maclock = '" . $maclock . "', billingstart = '" . $_obfuscated_2217091E2B0D2C251C3E01_ . "',
  	    changepswucp = '" . $changepswucp . "', renewday = '" . $renewday . "', redeemucp = '" . $redeemucp . "', buycreditsucp = '" . $buycreditsucp . "',
  	    buydepositucp = '" . $_obfuscated_38391C120402053F3C1A32_ . "', emailselfregman = '" . $emailselfregman . "', emailwelcome = '" . $emailwelcome . "',
  	    emailnewsrv = '" . $_obfuscated_2C26232131402B2A22_ . "', emailrenew = '" . $emailrenew . "', smsrenew = '" . $smsrenew . "', emailexpiry = '" . $_obfuscated_1A22275B0236402E0E5B1D0B3B1F2501_ . "',
  	    ias_email = '" . $ias_email . "', ias_mobile = '" . $ias_mobile . "', ias_verify = '" . $ias_verify . "', ias_endupemail = '" . $_obfuscated_1217393632253422_ . "',
  	    ias_endupmobile = '" . $ias_endupmobile . "', smswelcome = '" . $smswelcome . "', smsexpiry = '" . $_obfuscated_191B392E1F3211_ . "',
  	    newnasallsrv = '" . $newnasallsrv . "', newmanallsrv = '" . $newmanallsrv . "', simuseselfreg = '" . $_obfuscated_15401322_ . "',
  	    defgrpid = '" . $defgrpid . "', expalertmode = '" . $expalertmode . "', captcha = '" . $_obfuscated_193E150C192A0D2D032B1A2E1A402C010F01_ . "', disconnpostpaid = '" . $_obfuscated_39271C230D3D263911_ . "',
  	    smsnewsrv = '" . $_obfuscated_2C163101_ . "', discontime ='" . $_obfuscated_0D38093E150C131F3F072F1D253630041B03241F081832_ . "', reg_firstname = '" . $_obfuscated_043F0131241E3B11_ . "', reg_lastname = '" . $reg_lastname . "',
  	    reg_address = '" . $_obfuscated_18132A330340393C1C04351F1119362C2F341D32_ . "', reg_city = '" . $_obfuscated_1C2C051D2208081701_ . "', reg_zip = '" . $_obfuscated_0F180A14010D0907260811_ . "', reg_country = '" . $reg_country . "',
  	    reg_state = '" . $reg_state . "', reg_phone = '" . $reg_phone . "', reg_mobile = '" . $reg_mobile . "', reg_email = '" . $reg_email . "',
  	    reg_vatid = '" . $reg_vatid . "'
 	   "; 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $_obfuscated_1132062F2D3B0E3825152532_ = "" . "UPDATE rm_services
  	    SET unitpricetax = unitprice * '" . $vatpercent . "' / 100, unitpriceaddtax = unitpriceadd * '" . $vatpercent . "' / 100
 	   "; 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    _obfuscated_0D253D041F0418030D252E34350F0C2C3C16390D261D22_(); 
    _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_sysset_changed); 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_settings_updated")); 
} 
function _obfuscated_1A1E060F08391B31011E312314062A2D300901_($managername, $amount, $descr, $paymode, $transid) 
{ 
    if ($_SESSION["AUTH_MANAGER"] != admin_user) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_only_superuser")); 
    } 
    $invgroup = invgroup_managers; 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT transid
  		      FROM rm_invoices
  		      WHERE transid = '" . $transid . "' AND invgroup = '" . $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ . "'
  		      ORDER BY id DESC
  		      LIMIT 1
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    if (0 < mysql_num_rows($res)) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_payout_already_submitted")); 
    } 
    if ($amount == 0) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_zero_payout")); 
    } 
    $res = mysql_query("SELECT invnum
  		      FROM rm_invoices
  		      WHERE invnum != ''
  		      ORDER BY id DESC
  		      LIMIT 1
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_0D0C02022908183813262B10303801132F37381C110501_ = $row[0]; 
    $_obfuscated_22_ = _obfuscated_0D013B171B160F1D161F0111152C05014036171E1E3801_($_obfuscated_0D0C02022908183813262B10303801132F37381C110501_); 
    $res = mysql_query("" . "SELECT balance, firstname, lastname, address, city, zip, country, state, phone, mobile, company, vatid
		      FROM rm_managers
		      WHERE managername = '" . $_obfuscated_22_ . "'
		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ = $row[0]; 
    $firstname = $row[1]; 
    $lastname = $row[2]; 
    $address = $row[3]; 
    $city = $row[4]; 
    $_obfuscated_1535143F362A0426310E302A32_ = $row[5]; 
    $country = $row[6]; 
    $state = $row[7]; 
    $_obfuscated_2D1A0D2839352927182F32_ = $row[8]; 
    $_obfuscated_1D3C3209161C2A0D120F0D11_ = $row[9]; 
    $company = $row[10]; 
    $vatid = $row[11]; 
    if ($company == "") { 
        $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ = $firstname . " " . $lastname; 
    } else { 
        $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ = $company; 
    } 
    $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ += $amount; 
    $_obfuscated_033F1C01_ = $_SESSION["AUTH_MANAGER"]; 
    $_obfuscated_24133702362414312F1501_ = $GLOBALS["_paymentopt"]; 
    $vatpercent = $GLOBALS["_vatpercent"]; 
    $_obfuscated_0D19341B221317393C36403834310A2F0E0B231C012722_ = $amount / ($vatpercent / 100 + 1); 
    $_obfuscated_0D265B172722391736212D34351D18360E281B0D5B2622_ = $amount - $_obfuscated_0D19341B221317393C36403834310A2F0E0B231C012722_; 
    if ($paymode == paymode_cash) { 
        $_obfuscated_0D2E26263E0E34290D011306192524393B0319383D0D11_ = date("Y-m-d"); 
    } 
    $_obfuscated_1132062F2D3B0E3825152532_ = "" . "INSERT INTO rm_invoices
            (invnum, managername, username, amount, price, tax, vatpercent, balance,
	    date, service, paymode, invgroup, paymentopt, transid, fullname, address, city, zip, country, state, phone,
	    mobile, taxid, paid)
            VALUES ('" . $_obfuscated_22_ . "', '" . $_obfuscated_033F1C01_ . "', '" . $_obfuscated_22_ . "', 1, '" . $_obfuscated_0D19341B221317393C36403834310A2F0E0B231C012722_ . "', '" . $_obfuscated_0D265B172722391736212D34351D18360E281B0D5B2622_ . "', '" . $vatpercent . "',
            '" . $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ . "', NOW(), '" . $descr . "', '" . $paymode . "', '" . $invgroup . "', DATE_ADD(CURDATE(), INTERVAL '" . $_obfuscated_24133702362414312F1501_ . "' DAY),
            '" . $transid . "', '" . $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ . "', '" . $address . "', '" . $city . "', '" . $_obfuscated_1535143F362A0426310E302A32_ . "', '" . $country . "', '" . $state . "', '" . $_obfuscated_2D1A0D2839352927182F32_ . "', '" . $_obfuscated_1D3C3209161C2A0D120F0D11_ . "', '" . $vatid . "',
            '" . $_obfuscated_0D2E26263E0E34290D011306192524393B0319383D0D11_ . "')
           "; 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $_obfuscated_1132062F2D3B0E3825152532_ = "" . "UPDATE rm_managers
  	    SET balance = '" . $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ . "'
            WHERE managername = '" . $_obfuscated_22_ . "'
  	   "; 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_credits_added")); 
} 
function _obfuscated_0D331018030C27113E153E3511301D1C012101270F3901_() 
{ 
    if ($_SESSION["AUTH_MANAGER"] != admin_user) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_only_superuser")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = sysinfo_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_2D300E230101_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        if (_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_card)) { 
            $_obfuscated_0D0B305B18352E195B371E3E0B382B2D39273D40163B32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yes"); 
        } else { 
            $_obfuscated_0D0B305B18352E195B371E3E0B382B2D39273D40163B32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_no"); 
        } 
        if (_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_cts)) { 
            $_obfuscated_0D0E2E2833042D2B0C213F363E1907102E241604072F11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yes"); 
        } else { 
            $_obfuscated_0D0E2E2833042D2B0C213F363E1907102E241604072F11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_no"); 
        } 
        if (_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_cisco)) { 
            $_obfuscated_240B01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yes"); 
        } else { 
            $_obfuscated_240B01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_no"); 
        } 
        if (_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_docsis)) { 
            $_obfuscated_1D400C2128160E01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_yes"); 
        } else { 
            $_obfuscated_1D400C2128160E01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_no"); 
        } 
        $expiration = _obfuscated_0D24173B300417260126080E210E3D30110F2703372D11_(modkey_expiration); 
        if ($expiration == 0 - 1) { 
            $expiration = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_never_expires"); 
        } 
        $_obfuscated_0D111A3F0C13390E3804310503233C2436093319073F32_ = _obfuscated_0D0609160403181C0112150B101225011C262212081222_(); 
        $_obfuscated_0D111A3F0C13390E3804310503233C2436093319073F32_ = str_replace("{", "", $_obfuscated_0D111A3F0C13390E3804310503233C2436093319073F32_); 
        $_obfuscated_0D111A3F0C13390E3804310503233C2436093319073F32_ = str_replace("}", "", $_obfuscated_0D111A3F0C13390E3804310503233C2436093319073F32_); 
        $_obfuscated_32_ = _obfuscated_0D24173B300417260126080E210E3D30110F2703372D11_(modkey_maxusers); 
        $_obfuscated_2432_ = _obfuscated_0D24173B300417260126080E210E3D30110F2703372D11_(modkey_maxnas); 
        $_obfuscated_0D2A1C12125B061D2A382A311117210D33231B31022E11_ = _obfuscated_0D24173B300417260126080E210E3D30110F2703372D11_(modkey_maxusers_docsis); 
        $_obfuscated_3807132B2C3607403D29122A1237072201311B0B11_ = _obfuscated_0D24173B300417260126080E210E3D30110F2703372D11_(modkey_maxcmts); 
        $_obfuscated_0D1C192E333F1F2C1828070304191E063C140F110B0701_ = _obfuscated_0D24173B300417260126080E210E3D30110F2703372D11_(modkey_regname); 
        if ($_obfuscated_32_ == 0 - 1) { 
            $_obfuscated_32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_unlimited"); 
        } 
        if ($_obfuscated_2432_ == 0 - 1) { 
            $_obfuscated_2432_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_unlimited"); 
        } 
        if ($_obfuscated_0D2A1C12125B061D2A382A311117210D33231B31022E11_ == 0 - 1) { 
            $_obfuscated_0D2A1C12125B061D2A382A311117210D33231B31022E11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_unlimited"); 
        } 
        if ($_obfuscated_3807132B2C3607403D29122A1237072201311B0B11_ == 0 - 1) { 
            $_obfuscated_3807132B2C3607403D29122A1237072201311B0B11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_unlimited"); 
        } 
        $_obfuscated_2D300E230101_ = str_replace("{REGNAME}", $_obfuscated_0D1C192E333F1F2C1828070304191E063C140F110B0701_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MAC}", strtoupper($_obfuscated_0D111A3F0C13390E3804310503233C2436093319073F32_[0]), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{EXPIRATION}", $expiration, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{UPGRADEOPT}", _obfuscated_0D24173B300417260126080E210E3D30110F2703372D11_(modkey_upgradeopt), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{CARDSYS}", $_obfuscated_0D0B305B18352E195B371E3E0B382B2D39273D40163B32_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{CTS}", $_obfuscated_0D0E2E2833042D2B0C213F363E1907102E241604072F11_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{CISCO}", $_obfuscated_240B01_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{DOCSIS}", $_obfuscated_1D400C2128160E01_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MAXUSERS}", $_obfuscated_32_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MAXNAS}", $_obfuscated_2432_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MAXUSERSDOCSIS}", $_obfuscated_0D2A1C12125B061D2A382A311117210D33231B31022E11_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MAXCMTS}", $_obfuscated_3807132B2C3607403D29122A1237072201311B0B11_, $_obfuscated_2D300E230101_); 
        return $_obfuscated_2D300E230101_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D261C0D2E313227303E040E3D171A103D2C3E120B1011_() 
{ 
    if ($_SESSION["AUTH_MANAGER"] != admin_user) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_only_superuser")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = sysstats_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_2D300E230101_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0D1F19370636231B40113B1D12052419043321110E2232_ = acctype_regular; 
        $_obfuscated_1F09362D23035B133F2F213B32100A211D3B140132_ = acctype_maconly; 
        $_obfuscated_3213262B5B1F3F2E160E375B2B353E1632_ = acctype_carduser; 
        $_obfuscated_0D130432043F322702032F1F01120A3806180633083822_ = acctype_aclmikrotik; 
        $_obfuscated_0D2D352513342F362A050F1E0B3D022D2D315B5B182101_ = acctype_aclstaros; 
        $_obfuscated_0D331D062B0E33333807222B2D2B051B1D2916352D1122_ = acctype_ias; 
        $_obfuscated_0D353E5B3C372F06085B13232D0E0419381F2B242C0C22_ = acctype_docsis; 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("SELECT COUNT(*)
  		      FROM rm_users
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D22290628400B0D3E0D1B33373C3F341F14115B033F22_ = $row[0]; 
        $res = mysql_query("" . "SELECT COUNT(username)
  		      FROM rm_users
  		      WHERE acctype != " . $_obfuscated_0D353E5B3C372F06085B13232D0E0419381F2B242C0C22_ . ";
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D1B09175B0B1136141E0F023401380A34020D3D0C3632_ = $row[0]; 
        $res = mysql_query("" . "SELECT COUNT(username)
  		      FROM rm_users
  		      WHERE acctype = " . $_obfuscated_0D353E5B3C372F06085B13232D0E0419381F2B242C0C22_ . ";
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D1C35293F1612023904181804321737253F062A131C11_ = $row[0]; 
        $res = mysql_query("" . "SELECT COUNT(username)
  		      FROM rm_users
  		      WHERE acctype = " . $_obfuscated_0D1F19370636231B40113B1D12052419043321110E2232_ . ";
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D3C360D022E033D2C131E2B2B3F2A3C352F0D3C193832_ = $row[0]; 
        $res = mysql_query("" . "SELECT COUNT(username)
  		      FROM rm_users
  		      WHERE acctype = " . $_obfuscated_1F09362D23035B133F2F213B32100A211D3B140132_ . ";
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_283F38170B061C270F5B2B0C012F1F01_ = $row[0]; 
        $res = mysql_query("" . "SELECT COUNT(username)
  		      FROM rm_users
  		      WHERE acctype = " . $_obfuscated_0D130432043F322702032F1F01120A3806180633083822_ . ";
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D0123290309141114191C061D3028271B093B043F0901_ = $row[0]; 
        $res = mysql_query("" . "SELECT COUNT(username)
  		      FROM rm_users
  		      WHERE acctype = " . $_obfuscated_0D2D352513342F362A050F1E0B3D022D2D315B5B182101_ . ";
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D16040F34272A0D2728152F2C2B2F060A3C10075B2D01_ = $row[0]; 
        $res = mysql_query("" . "SELECT COUNT(username)
  		      FROM rm_users
  		      WHERE acctype = " . $_obfuscated_3213262B5B1F3F2E160E375B2B353E1632_ . ";
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D2E0A1816284022360B28260914252E040F381D1A1711_ = $row[0]; 
        $res = mysql_query("" . "SELECT COUNT(username)
  		      FROM rm_users
  		      WHERE acctype = " . $_obfuscated_0D331D062B0E33333807222B2D2B051B1D2916352D1122_ . ";
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D1816042E090714223B32193C31083F1515322F111211_ = $row[0]; 
        $_obfuscated_2D300E230101_ = str_replace("{TOTAL}", $_obfuscated_0D22290628400B0D3E0D1B33373C3F341F14115B033F22_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{RADIUS}", $_obfuscated_0D1B09175B0B1136141E0F023401380A34020D3D0C3632_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{DOCSIS}", $_obfuscated_0D1C35293F1612023904181804321737253F062A131C11_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{REGULAR}", $_obfuscated_0D3C360D022E033D2C131E2B2B3F2A3C352F0D3C193832_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{HSMAC}", $_obfuscated_283F38170B061C270F5B2B0C012F1F01_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MIKROTIKACL}", $_obfuscated_0D0123290309141114191C061D3028271B093B043F0901_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{STAROSACL}", $_obfuscated_0D16040F34272A0D2728152F2C2B2F060A3C10075B2D01_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{CARD}", $_obfuscated_0D2E0A1816284022360B28260914252E040F381D1A1711_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{IAS}", $_obfuscated_0D1816042E090714223B32193C31083F1515322F111211_, $_obfuscated_2D300E230101_); 
        return $_obfuscated_2D300E230101_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D090F2D062F33402D25080B262C343313221430332B11_($from) 
{ 
    $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_listservices")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = listservices_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1316232C031D12161E0B0A043E23050235270C0D0922_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_ = new CTable("100%"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("tb-header"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddHead(array("#", "", "", "", table_col_width), array("<input name=\"select\" type=\"checkbox\" id=\"select\" onClick=\"ToggleCheckBoxes()\"", "", "", "", table_col_width), array("{LSTSRV1}", "", "", "", ""), array("{LSTSRV2}<br>({CURRENCY})", "", "", "", ""), array("{LSTSRV4}", "", "", "", ""), array("{LSTSRV5}", "", "", "", ""), array("{LSTSRV18}", "", "", "", ""), array("{LSTSRV19}", "", "", "", ""), array("{LSTSRV3}", "", "", "", ""), array("{LSTSRV6}", "", "", "", ""), array("{LSTSRV7}", "", "", "", ""), array("{LSTSRV16}", "", "", "", ""), array("{LSTSRV8}", "", "", "", ""), array("{LSTSRV9}", "", "", "", ""), array("{LSTSRV21}", "", "", "", ""), array("{LSTSRV17}", "", "", "", ""), array("{LSTSRV20}", "", "", "", "")); 
        if ($_obfuscated_22_ != admin_user) { 
            $_obfuscated_0D3505070A053E30313614150F1A153022130332372801_ = "" . "JOIN rm_allowedmanagers USING (srvid) WHERE rm_allowedmanagers.managername = '" . $_obfuscated_22_ . "'"; 
        } 
        if ($from == "" || $from < 0) { 
            $from = 0; 
        } 
        $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = rows_per_page; 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT SQL_CALC_FOUND_ROWS rm_services.srvid, rm_services.srvname, rm_services.limitdl, rm_services.limitul,
  	    rm_services.limitcomb, rm_services.limitexpiration, rm_services.limituptime, rm_services.downrate, rm_services.uprate,
  	    rm_services.poolname, rm_services.unitprice, rm_services.unitpricetax, rm_services.enableservice, rm_services.nextsrvid,
  	    rm_services.dailynextsrvid, rm_services.disnextsrvid, rm_services.policymapdl, rm_services.policymapul,
  	    rm_services.srvtype
  	    FROM rm_services
  	    " . $_obfuscated_0D3505070A053E30313614150F1A153022130332372801_ . "
  	    ORDER BY srvname
  	    LIMIT " . $from . ", " . $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ . "
           "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("SELECT FOUND_ROWS()") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
        $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ = $row[0]; 
        $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
        $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ = $from + 1; 
        $_obfuscated_0D050B32173D090C283B11363808051622263501031B11_ = "<img src=\"images/icon-checked.gif\">"; 
        while ($row = mysql_fetch_array($res)) { 
            $srvid = $row[0]; 
            $_obfuscated_0D4039400D3E07301A080203070613301A372F21081A01_ = $row[1]; 
            $_obfuscated_0D0D3B27062D0D3B262F1F3315033B333F302C36151A32_ = $row[2]; 
            $_obfuscated_0D1926142406082A271F333C371422251B113826071711_ = $row[3]; 
            $_obfuscated_1C3B163932320E394010012E07360A19115B403632_ = $row[4]; 
            $_obfuscated_0D2422023702331D252D383027232E0F060F2714183D11_ = $row[5]; 
            $_obfuscated_0D37360215100F0A372B1F1A013337062D270C332B2722_ = $row[6]; 
            $_obfuscated_0D2A3D0908253533210B32212D3229071C2E0126301622_ = $row[7]; 
            $_obfuscated_0D1D3413302B2C2A291D061536213710143F3732012711_ = $row[8]; 
            $_obfuscated_0D2A3504061C2C2F2B3432395B370A3B183C233D051A22_ = $row[9]; 
            $_obfuscated_0D2223253F08241A3824030B230F352D1C3217160E0822_ = $row[10]; 
            $_obfuscated_0D300B101C1A221C21213B1A3F1A082433033308342422_ = $row[11]; 
            $_obfuscated_0D3D0C400C2D3F312E130A082A21051822193D190C1822_ = $row[12]; 
            $_obfuscated_0D251D27063C311B123E333E370E092A33233D0F0D3101_ = $row[13]; 
            $_obfuscated_0A1205320E151201252A2C070C403B01_ = $row[14]; 
            $_obfuscated_0D2D1D34252D1A403309362127223823250A2B370F1A22_ = $row[15]; 
            $_obfuscated_3F2F15323C230F01383E01_ = $row[16]; 
            $_obfuscated_0D3923373805390507142310122D0608370A315B283D11_ = $row[17]; 
            $_obfuscated_0D2C353C371201230303403B083F1B40231D3E1F383511_ = $row[18]; 
            $_obfuscated_0D263C231801393C1A3B1B14153E1B0B0D332828152811_ = ""; 
            if ($_obfuscated_0D251D27063C311B123E333E370E092A33233D0F0D3101_ != 0 - 1) { 
                $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("" . "SELECT srvname
      		        FROM rm_services
      		        WHERE srvid = '" . $_obfuscated_0D251D27063C311B123E333E370E092A33233D0F0D3101_ . "'
      		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $_obfuscated_0D2D34331C0F07392E32142C0F32291E36023F2C032211_ = mysql_fetch_row($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
                $_obfuscated_0D3D400D042E222839302B1228253913281B3D2D1D1001_ = $_obfuscated_0D2D34331C0F07392E32142C0F32291E36023F2C032211_[0]; 
                if (mysql_num_rows($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_)) { 
                    $_obfuscated_0D263C231801393C1A3B1B14153E1B0B0D332828152811_ = "" . "<a href=admin.php?cont=edit_service&srvid=" . $_obfuscated_0D251D27063C311B123E333E370E092A33233D0F0D3101_ . ">" . $_obfuscated_0D3D400D042E222839302B1228253913281B3D2D1D1001_ . "</a>"; 
                } 
            } 
            $_obfuscated_0D0A0C3C3B161235031E1D1F0F27143215083E28241601_ = ""; 
            if ($_obfuscated_0A1205320E151201252A2C070C403B01_ != 0 - 1) { 
                $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("" . "SELECT srvname
      		        FROM rm_services
      		        WHERE srvid = '" . $_obfuscated_0A1205320E151201252A2C070C403B01_ . "'
      		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $_obfuscated_0D2D34331C0F07392E32142C0F32291E36023F2C032211_ = mysql_fetch_row($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
                $_obfuscated_0D2311271C011F22130C0C062E300B1E2F261E3F2C4032_ = $_obfuscated_0D2D34331C0F07392E32142C0F32291E36023F2C032211_[0]; 
                if (mysql_num_rows($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_)) { 
                    $_obfuscated_0D0A0C3C3B161235031E1D1F0F27143215083E28241601_ = "" . "<a href=admin.php?cont=edit_service&srvid=" . $_obfuscated_0A1205320E151201252A2C070C403B01_ . ">" . $_obfuscated_0D2311271C011F22130C0C062E300B1E2F261E3F2C4032_ . "</a>"; 
                } 
            } 
            $_obfuscated_05151F091E1A0D133325282D2111_ = ""; 
            if ($_obfuscated_0D2D1D34252D1A403309362127223823250A2B370F1A22_ != 0 - 1) { 
                $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("" . "SELECT srvname
      		        FROM rm_services
      		        WHERE srvid = '" . $_obfuscated_0D2D1D34252D1A403309362127223823250A2B370F1A22_ . "'
      		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $_obfuscated_0D2D34331C0F07392E32142C0F32291E36023F2C032211_ = mysql_fetch_row($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
                $_obfuscated_1C231B3F29143418233B32273D243C22_ = $_obfuscated_0D2D34331C0F07392E32142C0F32291E36023F2C032211_[0]; 
                if (mysql_num_rows($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_)) { 
                    $_obfuscated_05151F091E1A0D133325282D2111_ = "" . "<a href=admin.php?cont=edit_service&srvid=" . $_obfuscated_0D2D1D34252D1A403309362127223823250A2B370F1A22_ . ">" . $_obfuscated_1C231B3F29143418233B32273D243C22_ . "</a>"; 
                } 
            } 
            if ($_obfuscated_0D2C353C371201230303403B083F1B40231D3E1F383511_ == srvtype_prepaid_regular || $_obfuscated_0D2C353C371201230303403B083F1B40231D3E1F383511_ == srvtype_postpaid) { 
                $_obfuscated_0D1E1E051B041E1A0136361A350127042E0F0528083D11_ = _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D2223253F08241A3824030B230F352D1C3217160E0822_ + $_obfuscated_0D300B101C1A221C21213B1A3F1A082433033308342422_, true, 6); 
            } else { 
                $_obfuscated_0D1E1E051B041E1A0136361A350127042E0F0528083D11_ = ""; 
            } 
            if ($_obfuscated_0D3D0C400C2D3F312E130A082A21051822193D190C1822_ == 1) { 
                $_obfuscated_0D073E1E290C090E1C1017322F2F3601172B1515160622_ = col_service_en; 
            } else { 
                $_obfuscated_0D073E1E290C090E1C1017322F2F3601172B1515160622_ = col_service_dis; 
            } 
            if ($_obfuscated_0D2A3D0908253533210B32212D3229071C2E0126301622_ == 0) { 
                $_obfuscated_0823143D36233611_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_no_limit"); 
            } else { 
                $_obfuscated_0823143D36233611_ = $_obfuscated_0D2A3D0908253533210B32212D3229071C2E0126301622_ / 1024; 
            } 
            if ($_obfuscated_0D1D3413302B2C2A291D061536213710143F3732012711_ == 0) { 
                $_obfuscated_0D351C183B160106351E040C1B241C0E0F353640013122_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_no_limit"); 
            } else { 
                $_obfuscated_0D351C183B160106351E040C1B241C0E0F353640013122_ = $_obfuscated_0D1D3413302B2C2A291D061536213710143F3732012711_ / 1024; 
            } 
            if ($_obfuscated_0D0D3B27062D0D3B262F1F3315033B333F302C36151A32_ == 1) { 
                $_obfuscated_0D303D3B17243F1F0F15342E042B3D0C1F1A0E293D0522_ = $_obfuscated_0D050B32173D090C283B11363808051622263501031B11_; 
            } else { 
                $_obfuscated_0D303D3B17243F1F0F15342E042B3D0C1F1A0E293D0522_ = ""; 
            } 
            if ($_obfuscated_0D1926142406082A271F333C371422251B113826071711_ == 1) { 
                $_obfuscated_0D1E283E231B1D152F371A2B2D2716070832293B220332_ = $_obfuscated_0D050B32173D090C283B11363808051622263501031B11_; 
            } else { 
                $_obfuscated_0D1E283E231B1D152F371A2B2D2716070832293B220332_ = ""; 
            } 
            if ($_obfuscated_1C3B163932320E394010012E07360A19115B403632_ == 1) { 
                $_obfuscated_033B3D2D1B2F0B32_ = $_obfuscated_0D050B32173D090C283B11363808051622263501031B11_; 
            } else { 
                $_obfuscated_033B3D2D1B2F0B32_ = ""; 
            } 
            if ($_obfuscated_0D2422023702331D252D383027232E0F060F2714183D11_ == 1) { 
                $_obfuscated_0D21211D3625283721291B2C2E010602173B0D07032401_ = $_obfuscated_0D050B32173D090C283B11363808051622263501031B11_; 
            } else { 
                $_obfuscated_0D21211D3625283721291B2C2E010602173B0D07032401_ = ""; 
            } 
            if ($_obfuscated_0D37360215100F0A372B1F1A013337062D270C332B2722_ == 1) { 
                $_obfuscated_361D3B3B3B132A2F13082C033D1A073432_ = $_obfuscated_0D050B32173D090C283B11363808051622263501031B11_; 
            } else { 
                $_obfuscated_361D3B3B3B132A2F13082C033D1A073432_ = ""; 
            } 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("normal"); 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_); 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array($_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ . ".", "", "", $_obfuscated_0D073E1E290C090E1C1017322F2F3601172B1515160622_), array("<input name=\"list[]\" type=\"checkbox\" id=\"list[]\" value=\"" . $srvid . "\">", "", "", ""), array("<a href=\"admin.php?cont=edit_service&srvid=" . $srvid . "\">" . $_obfuscated_0D4039400D3E07301A080203070613301A372F21081A01_ . "</a>", "left", "", ""), array($_obfuscated_0D1E1E051B041E1A0136361A350127042E0F0528083D11_, "right", "", ""), array($_obfuscated_0823143D36233611_, "", "", ""), array($_obfuscated_0D351C183B160106351E040C1B241C0E0F353640013122_, "", "", ""), array($_obfuscated_3F2F15323C230F01383E01_, "", "", ""), array($_obfuscated_0D3923373805390507142310122D0608370A315B283D11_, "", "", ""), array($_obfuscated_0D2A3504061C2C2F2B3432395B370A3B183C233D051A22_, "", "", ""), array($_obfuscated_0D303D3B17243F1F0F15342E042B3D0C1F1A0E293D0522_, "", "", ""), array($_obfuscated_0D1E283E231B1D152F371A2B2D2716070832293B220332_, "", "", ""), array($_obfuscated_033B3D2D1B2F0B32_, "", "", ""), array($_obfuscated_0D21211D3625283721291B2C2E010602173B0D07032401_, "", "", ""), array($_obfuscated_361D3B3B3B132A2F13082C033D1A073432_, "", "", ""), array($_obfuscated_05151F091E1A0D133325282D2111_, "", "", ""), array($_obfuscated_0D263C231801393C1A3B1B14153E1B0B0D332828152811_, "", "", ""), array($_obfuscated_0D0A0C3C3B161235031E1D1F0F27143215083E28241601_, "", "", "")); 
            $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_++; 
            if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor0) { 
                $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor1; 
            } else { 
                if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor1) { 
                    $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SERVICES}", $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->GetTable(), $_obfuscated_0D1316232C031D12161E0B0A043E23050235270C0D0922_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CURRENCY}", $GLOBALS["_currency"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_ENABLED}", col_service_en, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_DISABLED}", col_service_dis, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_ = _obfuscated_0D0E06262D031728271222243B393C3819300725120A01_($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_, $from, rows_per_page, "admin.php?cont=list_services"); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{QUICKJUMP}", $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D3C100C343322050525292E2511313737161D34133122_($srvid, $srvname, $descr, $downrate, $uprate, $limitdl, $limitul, $limitcomb, $limitexp, $limituptime, $poolname, $unitprice, $unitpriceadd, $timeunitexp, $timeunitonline, $timebaseexp, $timebaseonline, $trafficunitdl, $trafficunitul, $trafficunitcomb, $srvtype, $timeaddmodeexp, $timeaddmodeonline, $trafficaddmode, $monthly, $enaddcredits, $minamount, $minamountadd, $resetctrdate, $resetctrneg, $pricecalcdownload, $pricecalcupload, $pricecalcuptime, $unitpricetax, $unitpriceaddtax, $enableburst, $dlburstlimit, $ulburstlimit, $dlburstthreshold, $ulburstthreshold, $dlbursttime, $ulbursttime, $enableservice, $dlquota, $ulquota, $combquota, $timequota, $priority, $nextsrvid, $dailynextsrvid, $disnextsrvid, $availucp, $renew, $inittimeexp, $inittimeonline, $initdl, $initul, $inittotal, $policymapdl, $policymapul, $allowednases, $allowedmanagers, $custattr, $gentftp, $cmcfg, $advcmcfg, $carryover, $addamount, $ignstatip, $error) 
{ 
    global $timeunitlist; 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editservices")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = editservice_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
        if ($_obfuscated_22_ != admin_user) { 
            $_obfuscated_0D0E37283E04242A1221310C292A3E285B0D0E08343811_ = "JOIN rm_allowedmanagers USING (srvid)"; 
            $_obfuscated_01_ = "" . "AND rm_allowedmanagers.managername = '" . $_obfuscated_22_ . "'"; 
        } 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT srvname, descr, downrate, uprate, limitdl, limitul, limitcomb, limitexpiration, limituptime, poolname,
  	    unitprice, unitpriceadd, timebaseexp, timebaseonline, timeunitexp, timeunitonline, trafficunitdl,
  	    trafficunitul, trafficunitcomb, srvtype, timeaddmodeexp, timeaddmodeonline, trafficaddmode,  monthly,
  	    enaddcredits, minamount, resetctrdate, pricecalcdownload, pricecalcupload, pricecalcuptime, unitpricetax,
  	    unitpriceaddtax, enableburst, dlburstlimit, ulburstlimit, dlburstthreshold, ulburstthreshold, dlbursttime,
  	    ulbursttime, enableservice, dlquota, ulquota, combquota, timequota, priority, nextsrvid, dailynextsrvid,
  	    disnextsrvid, availucp, renew, minamountadd, inittimeexp, inittimeonline, initdl, initul, inittotal, policymapdl,
  	    policymapul, custattr, gentftp, cmcfg, advcmcfg, carryover, addamount, ignstatip, resetctrneg
    	    FROM rm_services
    	    " . $_obfuscated_0D0E37283E04242A1221310C292A3E285B0D0E08343811_ . "
    	    WHERE srvid = '" . $srvid . "'
    	    " . $_obfuscated_01_ . "
           "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        if (mysql_num_rows($res) == 0) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_srv_not_found")); 
        } 
        $row = mysql_fetch_array($res); 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
            $srvname = $row[0]; 
            $descr = $row[1]; 
            $downrate = $row[2]; 
            $uprate = $row[3]; 
            $limitdl = $row[4]; 
            $limitul = $row[5]; 
            $_obfuscated_1C3B163932320E394010012E07360A19115B403632_ = $row[6]; 
            $limitexp = $row[7]; 
            $limituptime = $row[8]; 
            $poolname = $row[9]; 
            $unitprice = $row[10]; 
            $_obfuscated_15140722321C1B1C0419360307080A05020722_ = $row[11]; 
            $_obfuscated_1C131E321C152D0F32_ = $row[12]; 
            $_obfuscated_0322_ = $row[13]; 
            $timeunitexp = $row[14]; 
            $timeunitonline = $row[15]; 
            $trafficunitdl = $row[16]; 
            $trafficunitul = $row[17]; 
            $trafficunitcomb = $row[18]; 
            $srvtype = $row[19]; 
            $timeaddmodeexp = $row[20]; 
            $timeaddmodeonline = $row[21]; 
            $trafficaddmode = $row[22]; 
            $_obfuscated_40310521113C0831192622_ = $row[23]; 
            $enaddcredits = $row[24]; 
            $_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_ = $row[25]; 
            $_obfuscated_162C1F1528050E0524390E01_ = $row[26]; 
            $pricecalcdownload = $row[27]; 
            $pricecalcupload = $row[28]; 
            $pricecalcuptime = $row[29]; 
            $unitpricetax = $row[30]; 
            $unitpriceaddtax = $row[31]; 
            $enableburst = $row[32]; 
            $_obfuscated_210B11101F2C0E2832_ = $row[33]; 
            $ulburstlimit = $row[34]; 
            $dlburstthreshold = $row[35]; 
            $_obfuscated_1E013F020211_ = $row[36]; 
            $_obfuscated_08023B262101_ = $row[37]; 
            $ulbursttime = $row[38]; 
            $enableservice = $row[39]; 
            $dlquota = $row[40]; 
            $ulquota = $row[41]; 
            $_obfuscated_11_ = $row[42]; 
            $_obfuscated_31243833011F34103E2511_ = $row[43]; 
            $priority = $row[44]; 
            $nextsrvid = $row[45]; 
            $_obfuscated_0A1205320E151201252A2C070C403B01_ = $row[46]; 
            $disnextsrvid = $row[47]; 
            $availucp = $row[48]; 
            $renew = $row[49]; 
            $minamountadd = $row[50]; 
            $inittimeexp = $row[51]; 
            $_obfuscated_372E1F3D211F0E0B320B27372E193C01_ = $row[52]; 
            $initdl = $row[53]; 
            $initul = $row[54]; 
            $inittotal = $row[55]; 
            $_obfuscated_3F2F15323C230F01383E01_ = $row[56]; 
            $policymapul = $row[57]; 
            $custattr = $row[58]; 
            $gentftp = $row[59]; 
            $_obfuscated_1A232329231D080A2238112C222325271732_ = $row[60]; 
            $advcmcfg = $row[61]; 
            $_obfuscated_0B361433141C24311F36195B2E5B2908162211_ = $row[62]; 
            $addamount = $row[63]; 
            $ignstatip = $row[64]; 
            $resetctrneg = $row[65]; 
        } 
        if ($priority == "") { 
            $priority = 8; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVID}", $srvid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVNAME}", $srvname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DESCR}", $descr, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DOWNRATE}", $downrate / 1024, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPRATE}", $uprate / 1024, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLBURSTLIMIT}", $_obfuscated_210B11101F2C0E2832_ / 1024, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULBURSTLIMIT}", $ulburstlimit / 1024, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLBURSTTHRESHOLD}", $dlburstthreshold / 1024, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULBURSTTHRESHOLD}", $_obfuscated_1E013F020211_ / 1024, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLBURSTTIME}", $_obfuscated_08023B262101_ / 1, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULBURSTTIME}", $ulbursttime / 1, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLQUOTA}", number_format($dlquota / 1048576, 0, " ", " "), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULQUOTA}", number_format($ulquota / 1048576, 0, " ", " "), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMBQUOTA}", number_format($_obfuscated_11_ / 1048576, 0, " ", " "), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEQUOTA}", _obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_31243833011F34103E2511_), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PRIORITY}", $priority, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{POOLNAME}", $poolname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{POLICYMAPDL}", $_obfuscated_3F2F15323C230F01383E01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{POLICYMAPUL}", $policymapul, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICE}", $unitprice, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICEADD}", $_obfuscated_15140722321C1B1C0419360307080A05020722_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TAXPERCENT}", $GLOBALS["_vatpercent"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEUNITEXP}", $timeunitexp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEUNITONLINE}", $timeunitonline, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITDL}", $trafficunitdl, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITUL}", $trafficunitul, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITCOMB}", $trafficunitcomb, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CURRENCY}", $GLOBALS["_currency"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MINAMOUNT}", $_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MINAMOUNTADD}", $minamountadd, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICETAX}", $unitpricetax, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICEADDTAX}", $unitpriceaddtax, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INITTIMEEXP}", $inittimeexp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INITTIMEONLINE}", $_obfuscated_372E1F3D211F0E0B320B27372E193C01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INITDL}", $initdl, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INITUL}", $initul, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INITTOTAL}", $inittotal, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SPECPERACNT}", _obfuscated_0D21095C313B1F3C350C0F050827071B223D1D07401B32_($srvid), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SPECPERBW}", _obfuscated_0D25372726251F0801231C0238350A26312B3401290832_($srvid), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CUSTATTR}", $custattr, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMCFG}", $_obfuscated_1A232329231D080A2238112C222325271732_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDAMOUNT}", $addamount, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $res = mysql_query("" . "SELECT srvid, srvname
    		      FROM rm_services
    		      WHERE srvid != '" . $srvid . "'
    		      ORDER BY srvname
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_24342D1A24172B3430042E160111362B5B11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_none"); 
        if (mysql_num_rows($res) == 0) { 
            $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
        } else { 
            if ($nextsrvid == 0 - 1) { 
                $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } else { 
                $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_ .= "" . "<OPTION value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_395B2A0E312B37351F0B3C070D11_ = $row[0]; 
                $_obfuscated_0D293D3B12393D031A06040E063E1A3B3E122F2C3B0601_ = $row[1]; 
                if ($nextsrvid == $_obfuscated_395B2A0E312B37351F0B3C070D11_) { 
                    $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_395B2A0E312B37351F0B3C070D11_ . ">" . $_obfuscated_0D293D3B12393D031A06040E063E1A3B3E122F2C3B0601_ . "</OPTION>
"; 
                } else { 
                    $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_ .= "" . "<OPTION value=" . $_obfuscated_395B2A0E312B37351F0B3C070D11_ . ">" . $_obfuscated_0D293D3B12393D031A06040E063E1A3B3E122F2C3B0601_ . "</OPTION>
"; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{NEXTSRVLIST}", $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $res = mysql_query("" . "SELECT srvid, srvname
    		      FROM rm_services
    		      WHERE srvid != '" . $srvid . "'
    		      ORDER BY srvname
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_24342D1A24172B3430042E160111362B5B11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_none"); 
        if (mysql_num_rows($res) == 0) { 
            $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
        } else { 
            if ($_obfuscated_0A1205320E151201252A2C070C403B01_ == 0 - 1) { 
                $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } else { 
                $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_ .= "" . "<OPTION value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_0D3E1E022802123F082F2D101B033914273124072C2922_ = $row[0]; 
                $_obfuscated_0D0C335B29320F1E1E183C023F1535143030021A3D0411_ = $row[1]; 
                if ($_obfuscated_0A1205320E151201252A2C070C403B01_ == $_obfuscated_0D3E1E022802123F082F2D101B033914273124072C2922_) { 
                    $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D3E1E022802123F082F2D101B033914273124072C2922_ . ">" . $_obfuscated_0D0C335B29320F1E1E183C023F1535143030021A3D0411_ . "</OPTION>
"; 
                } else { 
                    $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_ .= "" . "<OPTION value=" . $_obfuscated_0D3E1E022802123F082F2D101B033914273124072C2922_ . ">" . $_obfuscated_0D0C335B29320F1E1E183C023F1535143030021A3D0411_ . "</OPTION>
"; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DAILYNEXTSRVLIST}", $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $res = mysql_query("" . "SELECT srvid, srvname
    		      FROM rm_services
    		      WHERE srvid != '" . $srvid . "'
    		      ORDER BY srvname
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_24342D1A24172B3430042E160111362B5B11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_none"); 
        if (mysql_num_rows($res) == 0) { 
            $_obfuscated_1C32_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
        } else { 
            if ($disnextsrvid == 0 - 1) { 
                $_obfuscated_1C32_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } else { 
                $_obfuscated_1C32_ .= "" . "<OPTION value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_0D291A3E39340A2633042D343C25110F18370E3E0F0611_ = $row[0]; 
                $_obfuscated_0D3732131E111A2F1A010E1007272D3902180F0F1C1B22_ = $row[1]; 
                if ($disnextsrvid == $_obfuscated_0D291A3E39340A2633042D343C25110F18370E3E0F0611_) { 
                    $_obfuscated_1C32_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D291A3E39340A2633042D343C25110F18370E3E0F0611_ . ">" . $_obfuscated_0D3732131E111A2F1A010E1007272D3902180F0F1C1B22_ . "</OPTION>
"; 
                } else { 
                    $_obfuscated_1C32_ .= "" . "<OPTION value=" . $_obfuscated_0D291A3E39340A2633042D343C25110F18370E3E0F0611_ . ">" . $_obfuscated_0D3732131E111A2F1A010E1007272D3902180F0F1C1B22_ . "</OPTION>
"; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DISNEXTSRVLIST}", $_obfuscated_1C32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($enableservice) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENSERVICE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENSERVICE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($availucp) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDAVAILUCP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDAVAILUCP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($renew) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRENEW}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRENEW}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pricecalcdownload) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCDL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCDL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pricecalcupload) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCUL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCUL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pricecalcuptime) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCUPTIME}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCUPTIME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_40310521113C0831192622_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDMONTHLY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDMONTHLY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_162C1F1528050E0524390E01_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETCTRDATE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETCTRDATE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($resetctrneg) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETCTRNEG}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETCTRNEG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($enaddcredits) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENADDCREDITS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENADDCREDITS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($limitdl) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITDL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITDL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($limitul) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITUL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITUL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1C3B163932320E394010012E07360A19115B403632_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITCOMB}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITCOMB}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($limitexp) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITEXP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($limituptime) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITUPTIME}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITUPTIME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($ignstatip) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIGNSTATIP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIGNSTATIP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($gentftp) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKGENTFTP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKGENTFTP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($advcmcfg) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKADVCMCFG}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKADVCMCFG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0B361433141C24311F36195B2E5B2908162211_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCARRYOVER}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCARRYOVER}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($srvtype) { 
            case srvtype_prepaid_regular: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDREG}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDCARD}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPOSTPAID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDACL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_prepaid_card: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDREG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDCARD}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPOSTPAID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDACL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_postpaid: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDREG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDCARD}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPOSTPAID}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDACL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_email_only: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDREG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDCARD}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPOSTPAID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDACL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_access_list: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDREG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDCARD}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPOSTPAID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDACL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($timeaddmodeexp) { 
            case timeaddmode_reset: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTIMEEXP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXPFIX}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case timeaddmode_prolong: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTIMEEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXPFIX}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case timeaddmode_prolongfix: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTIMEEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXPFIX}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($timeaddmodeonline == timeaddmode_reset) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTIMEONLINE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEONLINE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTIMEONLINE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEONLINE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($trafficaddmode == trafficaddmode_reset) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTRAFFIC}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDADDITIVETRAFFIC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTRAFFIC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDADDITIVETRAFFIC}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($enableburst) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENBURST}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENBURST}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        for ($_obfuscated_1E102C2A11_ = 2; $_obfuscated_1E102C2A11_ < sizeof($timeunitlist); $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_1C131E321C152D0F32_ == $_obfuscated_1E102C2A11_) { 
                $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_1E102C2A11_ . ">" . $timeunitlist[$_obfuscated_1E102C2A11_] . "</OPTION>
"; 
            } else { 
                $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_ .= "" . "<OPTION value=" . $_obfuscated_1E102C2A11_ . ">" . $timeunitlist[$_obfuscated_1E102C2A11_] . "</OPTION>
"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEBASELISTEXP}", $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_ = ""; 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < 2; $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_0322_ == $_obfuscated_1E102C2A11_) { 
                $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_1E102C2A11_ . ">" . $timeunitlist[$_obfuscated_1E102C2A11_] . "</OPTION>
"; 
            } else { 
                $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_ .= "" . "<OPTION value=" . $_obfuscated_1E102C2A11_ . ">" . $timeunitlist[$_obfuscated_1E102C2A11_] . "</OPTION>
"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEBASELISTONLINE}", $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
            $res = mysql_query("SELECT shortname, id
  		        FROM nas
  		        ORDER BY shortname
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ = $row[0]; 
                $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ = $row[1]; 
                $_obfuscated_0D2A40230A0C393521333C273E22295B282C035B1E0932_ = false; 
                foreach ($_obfuscated_321304073024251A0F281A0E0B3E0408121B1C32_ as $_obfuscated_0D02072D2934181604051F152C1F0412322C14063D1211_) { 
                    if ($_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ == $_obfuscated_0D02072D2934181604051F152C1F0412322C14063D1211_) { 
                        $_obfuscated_0D2A40230A0C393521333C273E22295B282C035B1E0932_ = true; 
                    } 
                } 
                if ($_obfuscated_0D2A40230A0C393521333C273E22295B282C035B1E0932_) { 
                    $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . ">" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</OPTION>"; 
                } else { 
                    $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ .= "" . "<OPTION value=" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . ">" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</OPTION>"; 
                } 
            } 
        } else { 
            $res = mysql_query("" . "SELECT rm_allowednases.nasid, nas.shortname, nas.id
  		        FROM nas
  		        LEFT JOIN rm_allowednases ON nas.id = rm_allowednases.nasid AND
  		        rm_allowednases.srvid = '" . $srvid . "'
    		        ORDER BY shortname
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_0D1322320D03281B120F173C1623120114091540261411_ = $row[0]; 
                $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ = $row[1]; 
                $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ = $row[2]; 
                if ($_obfuscated_0D1322320D03281B120F173C1623120114091540261411_) { 
                    $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . ">" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</OPTION>"; 
                } else { 
                    $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ .= "" . "<OPTION value=" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . ">" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</OPTION>"; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{NASLIST}", $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
            $res = mysql_query("SELECT managername
  		        FROM rm_managers
  		        ORDER BY managername
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_22_ = $row[0]; 
                $_obfuscated_0D2F0B1A05190C28173F0F0E072623132D370E2C150332_ = false; 
                foreach ($_obfuscated_3B22_ as $_obfuscated_0D1A1A34020240092916081F24280F303D24280D040D01_) { 
                    if ($_obfuscated_22_ == $_obfuscated_0D1A1A34020240092916081F24280F303D24280D040D01_) { 
                        $_obfuscated_0D2F0B1A05190C28173F0F0E072623132D370E2C150332_ = true; 
                    } 
                } 
                if ($_obfuscated_0D2F0B1A05190C28173F0F0E072623132D370E2C150332_) { 
                    $_obfuscated_0D2111103E381C122B0C0E241612352F07150D21132B01_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_22_ . ">" . $_obfuscated_22_ . "</OPTION>"; 
                } else { 
                    $_obfuscated_0D2111103E381C122B0C0E241612352F07150D21132B01_ .= "" . "<OPTION value=" . $_obfuscated_22_ . ">" . $_obfuscated_22_ . "</OPTION>"; 
                } 
            } 
        } else { 
            $res = mysql_query("" . "SELECT rm_allowedmanagers.managername, rm_managers.managername
  		        FROM rm_managers
  		        LEFT JOIN rm_allowedmanagers ON rm_managers.managername = rm_allowedmanagers.managername AND
  		        rm_allowedmanagers.srvid = '" . $srvid . "'
    		        ORDER BY rm_managers.managername
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_0D1518160715211130193210180E300D13050E0E1B3901_ = $row[0]; 
                $_obfuscated_22_ = $row[1]; 
                if ($_obfuscated_0D1518160715211130193210180E300D13050E0E1B3901_) { 
                    $_obfuscated_0D2111103E381C122B0C0E241612352F07150D21132B01_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_22_ . ">" . $_obfuscated_22_ . "</OPTION>"; 
                } else { 
                    $_obfuscated_0D2111103E381C122B0C0E241612352F07150D21132B01_ .= "" . "<OPTION value=" . $_obfuscated_22_ . ">" . $_obfuscated_22_ . "</OPTION>"; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MANAGERLIST}", $_obfuscated_0D2111103E381C122B0C0E241612352F07150D21132B01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_2B11170C142C04341A350B11_($srvid, $srvname, $descr, $downrate, $uprate, $limitdl, $limitul, $limitcomb, $limitexp, $limituptime, $poolname, $unitprice, $unitpriceadd, $timeunitexp, $timeunitonline, $timebaseexp, $timebaseonline, $trafficunitdl, $trafficunitul, $trafficunitcomb, $srvtype, $timeaddmodeexp, $timeaddmodeonline, $trafficaddmode, $monthly, $enaddcredits, $minamount, $minamountadd, $resetctrdate, $resetctrneg, $pricecalcdownload, $pricecalcupload, $pricecalcuptime, $unitpricetax, $unitpriceaddtax, $enableburst, $dlburstlimit, $ulburstlimit, $dlburstthreshold, $ulburstthreshold, $dlbursttime, $ulbursttime, $enableservice, $dlquota, $ulquota, $combquota, $timequota, $priority, $nextsrvid, $dailynextsrvid, $disnextsrvid, $availucp, $renew, $inittimeexp, $inittimeonline, $initdl, $initul, $inittotal, $policymapdl, $policymapul, $allowednases, $allowedmanagers, $custattr, $gentftp, $cmcfg, $advcmcfg, $carryover, $addamount, $ignstatip) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editservices")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $dlquota = str_replace(" ", "", $dlquota); 
    $ulquota = str_replace(" ", "", $ulquota); 
    $_obfuscated_11_ = str_replace(" ", "", $_obfuscated_11_); 
    $dlquota *= 1048576; 
    $ulquota *= 1048576; 
    $_obfuscated_11_ *= 1048576; 
    $downrate *= 1024; 
    $uprate *= 1024; 
    $_obfuscated_210B11101F2C0E2832_ *= 1024; 
    $ulburstlimit *= 1024; 
    $dlburstthreshold *= 1024; 
    $_obfuscated_1E013F020211_ *= 1024; 
    $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = false; 
    if ($srvname == "") { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_srv_no_srvname"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($unitprice < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_unit_price"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_0D375B050D3E0A34195B1F15062916280C0A293F082D11_ < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_unit_time"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($trafficunitdl < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_unit_trafficdl"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($trafficunitul < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_unit_trafficul"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($trafficunitcomb < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_unit_trafficcomb"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_ < 1 || $minamountadd < 1) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_minamount"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($addamount < 1) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_addamount"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($enableburst) { 
        if ($_obfuscated_210B11101F2C0E2832_ < $downrate) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_burst_dl"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if ($ulburstlimit < $uprate) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_burst_ul"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if ($_obfuscated_08023B262101_ < 1) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dlbursttime"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if ($ulbursttime < 1) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ulbursttime"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if ($priority < 1 || 8 < $priority) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_priority"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT srvname
  		      FROM rm_services
  		      WHERE srvname = '" . $srvname . "' AND srvid != '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (0 < mysql_num_rows($res)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_srv_exists"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
        return _obfuscated_0D3C100C343322050525292E2511313737161D34133122_($srvid, $srvname, $descr, $downrate, $uprate, $limitdl, $limitul, $_obfuscated_1C3B163932320E394010012E07360A19115B403632_, $limitexp, $limituptime, $poolname, $unitprice, $_obfuscated_15140722321C1B1C0419360307080A05020722_, $timeunitexp, $timeunitonline, $_obfuscated_1C131E321C152D0F32_, $_obfuscated_0322_, $trafficunitdl, $trafficunitul, $trafficunitcomb, $srvtype, $timeaddmodeexp, $timeaddmodeonline, $trafficaddmode, $_obfuscated_40310521113C0831192622_, $enaddcredits, $_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_, $minamountadd, $_obfuscated_162C1F1528050E0524390E01_, $resetctrneg, $pricecalcdownload, $pricecalcupload, $pricecalcuptime, $unitpricetax, $unitpriceaddtax, $enableburst, $_obfuscated_210B11101F2C0E2832_, $ulburstlimit, $dlburstthreshold, $_obfuscated_1E013F020211_, $_obfuscated_08023B262101_, $ulbursttime, $enableservice, $dlquota, $ulquota, $_obfuscated_11_, $_obfuscated_31243833011F34103E2511_, $priority, $nextsrvid, $_obfuscated_0A1205320E151201252A2C070C403B01_, $disnextsrvid, $availucp, $renew, $inittimeexp, $_obfuscated_372E1F3D211F0E0B320B27372E193C01_, $initdl, $initul, $inittotal, $_obfuscated_3F2F15323C230F01383E01_, $policymapul, $_obfuscated_321304073024251A0F281A0E0B3E0408121B1C32_, $_obfuscated_3B22_, $custattr, $gentftp, $_obfuscated_1A232329231D080A2238112C222325271732_, $advcmcfg, $_obfuscated_0B361433141C24311F36195B2E5B2908162211_, $addamount, $ignstatip, $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
    } 
    $_obfuscated_1D3D3F083F3C3801_ = _obfuscated_0D0A1636103430181206321F3E380D283D1D153B031632_($_obfuscated_31243833011F34103E2511_); 
    $_obfuscated_1132062F2D3B0E3825152532_ = "" . "UPDATE rm_services
            SET srvname = '" . $srvname . "', descr = '" . $descr . "', downrate = '" . $downrate . "', uprate = '" . $uprate . "', 
            limitdl = '" . $limitdl . "', limitul = '" . $limitul . "', limitcomb = '" . $_obfuscated_1C3B163932320E394010012E07360A19115B403632_ . "', limitexpiration = '" . $limitexp . "',
            limituptime = '" . $limituptime . "', poolname = '" . $poolname . "', unitprice  = '" . $unitprice . "', 
            unitpriceadd  = '" . $_obfuscated_15140722321C1B1C0419360307080A05020722_ . "', timebaseexp = '" . $_obfuscated_1C131E321C152D0F32_ . "', timebaseonline = '" . $_obfuscated_0322_ . "', 
            timeunitexp = '" . $timeunitexp . "', timeunitonline = '" . $timeunitonline . "', trafficunitdl = '" . $trafficunitdl . "',
            trafficunitul = '" . $trafficunitul . "', trafficunitcomb = '" . $trafficunitcomb . "', srvtype = '" . $srvtype . "',
            timeaddmodeexp = '" . $timeaddmodeexp . "', timeaddmodeonline = '" . $timeaddmodeonline . "',
            trafficaddmode = '" . $trafficaddmode . "', monthly = '" . $_obfuscated_40310521113C0831192622_ . "',  enaddcredits = '" . $enaddcredits . "',
            minamount = '" . $_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_ . "', minamountadd = '" . $minamountadd . "', resetctrdate = '" . $_obfuscated_162C1F1528050E0524390E01_ . "', resetctrneg = '" . $resetctrneg . "',
            pricecalcdownload = '" . $pricecalcdownload . "', pricecalcupload = '" . $pricecalcupload . "', pricecalcuptime = '" . $pricecalcuptime . "',
            unitpricetax = '" . $unitpricetax . "', unitpriceaddtax = '" . $unitpriceaddtax . "', enableburst = '" . $enableburst . "',
            dlburstlimit = '" . $_obfuscated_210B11101F2C0E2832_ . "', ulburstlimit = '" . $ulburstlimit . "', dlburstthreshold = '" . $dlburstthreshold . "',
            ulburstthreshold = '" . $_obfuscated_1E013F020211_ . "', dlbursttime = '" . $_obfuscated_08023B262101_ . "', ulbursttime = '" . $ulbursttime . "',
            enableservice = '" . $enableservice . "', dlquota = '" . $dlquota . "', ulquota = '" . $ulquota . "', combquota = '" . $_obfuscated_11_ . "',
            timequota = '" . $_obfuscated_1D3D3F083F3C3801_ . "', priority = '" . $priority . "', nextsrvid = '" . $nextsrvid . "', dailynextsrvid = '" . $_obfuscated_0A1205320E151201252A2C070C403B01_ . "',
            disnextsrvid = '" . $disnextsrvid . "', availucp = '" . $availucp . "', renew = '" . $renew . "', inittimeexp = '" . $inittimeexp . "',
            inittimeonline = '" . $_obfuscated_372E1F3D211F0E0B320B27372E193C01_ . "', initdl = '" . $initdl . "', initul = '" . $initul . "', inittotal= '" . $inittotal . "',
            policymapdl = '" . $_obfuscated_3F2F15323C230F01383E01_ . "', policymapul = '" . $policymapul . "', custattr = '" . $custattr . "', gentftp = '" . $gentftp . "',
            cmcfg = '" . $_obfuscated_1A232329231D080A2238112C222325271732_ . "', advcmcfg = '" . $advcmcfg . "', carryover = '" . $_obfuscated_0B361433141C24311F36195B2E5B2908162211_ . "', addamount = '" . $addamount . "', ignstatip = '" . $ignstatip . "'
            WHERE srvid = '" . $srvid . "'
           "; 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "DELETE FROM rm_allowednases
		      WHERE srvid = '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if ($_obfuscated_321304073024251A0F281A0E0B3E0408121B1C32_) { 
        foreach ($_obfuscated_321304073024251A0F281A0E0B3E0408121B1C32_ as $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_) { 
            $res = mysql_query("" . "INSERT INTO rm_allowednases (srvid, nasid)
                        VALUES ('" . $srvid . "', '" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . "')
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } 
    } 
    $res = mysql_query("" . "DELETE FROM rm_allowedmanagers
		      WHERE srvid = '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if ($_obfuscated_3B22_) { 
        foreach ($_obfuscated_3B22_ as $_obfuscated_22_) { 
            $res = mysql_query("" . "INSERT INTO rm_allowedmanagers (srvid, managername)
                        VALUES ('" . $srvid . "', '" . $_obfuscated_22_ . "')
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } 
    } 
    $_obfuscated_0D2F1C273B1A0E2B121C0411321D31110B3C05160E0622_ = "srv-" . str_pad($srvid, 3, "0", STR_PAD_LEFT) . ".cfg"; 
    $_obfuscated_22_ = radman_dir . "/" . tftp_dir . "/" . $_obfuscated_0D2F1C273B1A0E2B121C0411321D31110B3C05160E0622_; 
    if ($gentftp) { 
        $res = _obfuscated_0D30352301031F28040714301A113E0F2C1C0F0F011122_($_obfuscated_22_, $downrate, $uprate, $_obfuscated_1A232329231D080A2238112C222325271732_, $advcmcfg, $srvid, $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
    } 
    if ($res == TRUE) { 
        _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_service_updated, $srvname); 
        return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_service_updated")); 
    } 
    return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
} 
function _obfuscated_0D250C153C3B010B1504120717260226360B5B0F043C11_($srvname, $descr, $downrate, $uprate, $limitdl, $limitul, $limitcomb, $limitexp, $limituptime, $poolname, $unitprice, $unitpriceadd, $timeunitexp, $timeunitonline, $timebaseexp, $timebaseonline, $trafficunitdl, $trafficunitul, $trafficunitcomb, $srvtype, $timeaddmodeexp, $timeaddmodeonline, $trafficaddmode, $monthly, $enaddcredits, $minamount, $minamountadd, $resetctrdate, $resetctrneg, $pricecalcdownload, $pricecalcupload, $pricecalcuptime, $unitpricetax, $unitpriceaddtax, $enableburst, $dlburstlimit, $ulburstlimit, $dlburstthreshold, $ulburstthreshold, $dlbursttime, $ulbursttime, $enableservice, $dlquota, $ulquota, $combquota, $timequota, $priority, $nextsrvid, $dailynextsrvid, $disnextsrvid, $availucp, $renew, $inittimeexp, $inittimeonline, $initdl, $initul, $inittotal, $policymapdl, $policymapul, $allowednases, $allowedmanagers, $custattr, $gentftp, $cmcfg, $advcmcfg, $carryover, $addamount, $ignstatip, $error) 
{ 
    global $timeunitlist; 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_createservices")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = newservice_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        if ($downrate == "" || $downrate < 0) { 
            $downrate = 0; 
        } 
        if ($uprate == "" || $uprate < 0) { 
            $uprate = 0; 
        } 
        if ($unitprice == "") { 
            $unitprice = "0.000000"; 
        } 
        if ($_obfuscated_15140722321C1B1C0419360307080A05020722_ == "") { 
            $_obfuscated_15140722321C1B1C0419360307080A05020722_ = "0.000000"; 
        } 
        if ($unitpricetax == "") { 
            $unitpricetax = "0.000000"; 
        } 
        if ($unitpriceaddtax == "") { 
            $unitpriceaddtax = "0.000000"; 
        } 
        if ($timeunitexp == "") { 
            $timeunitexp = 0; 
        } 
        if ($timeunitonline == "") { 
            $timeunitonline = 0; 
        } 
        if ($trafficunitdl == "") { 
            $trafficunitdl = 0; 
        } 
        if ($trafficunitul == "") { 
            $trafficunitul = 0; 
        } 
        if ($trafficunitcomb == "") { 
            $trafficunitcomb = 0; 
        } 
        if ($_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_ == "") { 
            $_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_ = 1; 
        } 
        if ($minamountadd == "") { 
            $minamountadd = 1; 
        } 
        if ($addamount == "") { 
            $addamount = 1; 
        } 
        if ($enableburst == "") { 
            $enableburst = 0; 
        } 
        if ($_obfuscated_210B11101F2C0E2832_ == "") { 
            $_obfuscated_210B11101F2C0E2832_ = 0; 
        } 
        if ($ulburstlimit == "") { 
            $ulburstlimit = 0; 
        } 
        if ($dlburstthreshold == "") { 
            $dlburstthreshold = 0; 
        } 
        if ($_obfuscated_1E013F020211_ == "") { 
            $_obfuscated_1E013F020211_ = 0; 
        } 
        if ($_obfuscated_08023B262101_ == "") { 
            $_obfuscated_08023B262101_ = 0; 
        } 
        if ($ulbursttime == "") { 
            $ulbursttime = 0; 
        } 
        if ($dlquota == "") { 
            $dlquota = 0; 
        } 
        if ($ulquota == "") { 
            $ulquota = 0; 
        } 
        if ($_obfuscated_11_ == "") { 
            $_obfuscated_11_ = 0; 
        } 
        if ($_obfuscated_31243833011F34103E2511_ == "") { 
            $_obfuscated_31243833011F34103E2511_ = 0; 
        } 
        if ($priority == "") { 
            $priority = 8; 
        } 
        if ($nextsrvid == "") { 
            $nextsrvid = 0 - 1; 
        } 
        if ($_obfuscated_0A1205320E151201252A2C070C403B01_ == "") { 
            $_obfuscated_0A1205320E151201252A2C070C403B01_ = 0 - 1; 
        } 
        if ($disnextsrvid == "") { 
            $disnextsrvid = 0 - 1; 
        } 
        if ($inittimeexp == "") { 
            $inittimeexp = 0; 
        } 
        if ($_obfuscated_372E1F3D211F0E0B320B27372E193C01_ == "") { 
            $_obfuscated_372E1F3D211F0E0B320B27372E193C01_ = 0; 
        } 
        if ($initdl == "") { 
            $initdl = 0; 
        } 
        if ($initul == "") { 
            $initul = 0; 
        } 
        if ($inittotal == "") { 
            $inittotal = 0; 
        } 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
            $enableservice = 1; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVNAME}", $srvname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DESCR}", $descr, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DOWNRATE}", $downrate, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UPRATE}", $uprate, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLBURSTLIMIT}", $_obfuscated_210B11101F2C0E2832_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULBURSTLIMIT}", $ulburstlimit, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLBURSTTHRESHOLD}", $dlburstthreshold, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULBURSTTHRESHOLD}", $_obfuscated_1E013F020211_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLBURSTTIME}", $_obfuscated_08023B262101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULBURSTTIME}", $ulbursttime, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DLQUOTA}", $dlquota / 1048576, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ULQUOTA}", $ulquota / 1048576, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMBQUOTA}", $_obfuscated_11_ / 1048576, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEQUOTA}", _obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_31243833011F34103E2511_), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PRIORITY}", $priority, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{POOLNAME}", $poolname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{POLICYMAPDL}", $_obfuscated_3F2F15323C230F01383E01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{POLICYMAPUL}", $policymapul, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICE}", $unitprice, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICEADD}", $_obfuscated_15140722321C1B1C0419360307080A05020722_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICETAX}", $unitpricetax, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICEADDTAX}", $unitpriceaddtax, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEUNITEXP}", $timeunitexp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEUNITONLINE}", $timeunitonline, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITDL}", $trafficunitdl, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITUL}", $trafficunitul, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITCOMB}", $trafficunitcomb, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CURRENCY}", $GLOBALS["_currency"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TAXPERCENT}", $GLOBALS["_vatpercent"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MINAMOUNT}", $_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MINAMOUNTADD}", $minamountadd, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDAMOUNT}", $addamount, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INITTIMEEXP}", $inittimeexp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INITTIMEONLINE}", $_obfuscated_372E1F3D211F0E0B320B27372E193C01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INITDL}", $initdl, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INITUL}", $initul, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INITTOTAL}", $inittotal, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CUSTATTR}", $custattr, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CMCFG}", $_obfuscated_1A232329231D080A2238112C222325271732_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("SELECT srvid, srvname
    		      FROM rm_services
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_24342D1A24172B3430042E160111362B5B11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_none"); 
        if (mysql_num_rows($res) == 0) { 
            $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
        } else { 
            if ($_obfuscated_0D3134112A382F2C293F090A3F2E031F5B40023F223701_ == 0 - 1) { 
                $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } else { 
                $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_ .= "" . "<OPTION value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_395B2A0E312B37351F0B3C070D11_ = $row[0]; 
                $_obfuscated_0D293D3B12393D031A06040E063E1A3B3E122F2C3B0601_ = $row[1]; 
                if ($nextsrvid == $_obfuscated_395B2A0E312B37351F0B3C070D11_) { 
                    $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_395B2A0E312B37351F0B3C070D11_ . ">" . $_obfuscated_0D293D3B12393D031A06040E063E1A3B3E122F2C3B0601_ . "</OPTION>
"; 
                } else { 
                    $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_ .= "" . "<OPTION value=" . $_obfuscated_395B2A0E312B37351F0B3C070D11_ . ">" . $_obfuscated_0D293D3B12393D031A06040E063E1A3B3E122F2C3B0601_ . "</OPTION>
"; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{NEXTSRVLIST}", $_obfuscated_0D0D0F341624382D36150E1B5B2A071D2508371B191222_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("SELECT srvid, srvname
    		      FROM rm_services
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_24342D1A24172B3430042E160111362B5B11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_none"); 
        if (mysql_num_rows($res) == 0) { 
            $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
        } else { 
            if ($_obfuscated_0D382E091E353C0A082A1C09340C0C1128052D361E0E01_ == 0 - 1) { 
                $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } else { 
                $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_ .= "" . "<OPTION value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_0D3E1E022802123F082F2D101B033914273124072C2922_ = $row[0]; 
                $_obfuscated_0D0C335B29320F1E1E183C023F1535143030021A3D0411_ = $row[1]; 
                if ($_obfuscated_0A1205320E151201252A2C070C403B01_ == $_obfuscated_0D3E1E022802123F082F2D101B033914273124072C2922_) { 
                    $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D3E1E022802123F082F2D101B033914273124072C2922_ . ">" . $_obfuscated_0D0C335B29320F1E1E183C023F1535143030021A3D0411_ . "</OPTION>
"; 
                } else { 
                    $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_ .= "" . "<OPTION value=" . $_obfuscated_0D3E1E022802123F082F2D101B033914273124072C2922_ . ">" . $_obfuscated_0D0C335B29320F1E1E183C023F1535143030021A3D0411_ . "</OPTION>
"; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DAILYNEXTSRVLIST}", $_obfuscated_0D1B2A0B191525371A06261D2A091133223709402C1201_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("SELECT srvid, srvname
    		      FROM rm_services
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_24342D1A24172B3430042E160111362B5B11_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_none"); 
        if (mysql_num_rows($res) == 0) { 
            $_obfuscated_1C32_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
        } else { 
            if ($_obfuscated_01_ == 0 - 1) { 
                $_obfuscated_1C32_ .= "" . "<OPTION SELECTED value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } else { 
                $_obfuscated_1C32_ .= "" . "<OPTION value=-1>" . $_obfuscated_24342D1A24172B3430042E160111362B5B11_ . "</OPTION>
"; 
            } 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_0D291A3E39340A2633042D343C25110F18370E3E0F0611_ = $row[0]; 
                $_obfuscated_0D3732131E111A2F1A010E1007272D3902180F0F1C1B22_ = $row[1]; 
                if ($disnextsrvid == $_obfuscated_0D291A3E39340A2633042D343C25110F18370E3E0F0611_) { 
                    $_obfuscated_1C32_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D291A3E39340A2633042D343C25110F18370E3E0F0611_ . ">" . $_obfuscated_0D3732131E111A2F1A010E1007272D3902180F0F1C1B22_ . "</OPTION>
"; 
                } else { 
                    $_obfuscated_1C32_ .= "" . "<OPTION value=" . $_obfuscated_0D291A3E39340A2633042D343C25110F18370E3E0F0611_ . ">" . $_obfuscated_0D3732131E111A2F1A010E1007272D3902180F0F1C1B22_ . "</OPTION>
"; 
                } 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DISNEXTSRVLIST}", $_obfuscated_1C32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($enableservice) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENSERVICE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENSERVICE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($renew) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRENEW}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRENEW}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($availucp) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDAVAILUCP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDAVAILUCP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pricecalcdownload) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCDL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCDL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pricecalcupload) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCUL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCUL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($pricecalcuptime) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCUPTIME}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPCALCUPTIME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($limitdl == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITDL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITDL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($limitul == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITUL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITUL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_1C3B163932320E394010012E07360A19115B403632_ == 1) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITCOMB}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITCOMB}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($limitexp) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITEXP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($limituptime) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITUPTIME}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDLIMITUPTIME}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($ignstatip) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIGNSTATIP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKIGNSTATIP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($gentftp) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKGENTFTP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKGENTFTP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($advcmcfg) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKADVCMCFG}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKADVCMCFG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0B361433141C24311F36195B2E5B2908162211_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCARRYOVER}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCARRYOVER}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($srvtype) { 
            case srvtype_prepaid_regular: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDREG}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDCARD}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPOSTPAID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_prepaid_card: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDREG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDCARD}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPOSTPAID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_postpaid: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDREG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDCARD}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPOSTPAID}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEMAIL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_email_only: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDREG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPREPAIDCARD}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPOSTPAID}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDEMAIL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_40310521113C0831192622_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDMONTHLY}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDMONTHLY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_162C1F1528050E0524390E01_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETCTRDATE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETCTRDATE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($resetctrneg) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETCTRNEG}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETCTRNEG}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($enaddcredits) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENADDCREDITS}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENADDCREDITS}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        switch ($timeaddmodeexp) { 
            case timeaddmode_reset: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTIMEEXP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXPFIX}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case timeaddmode_prolong: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTIMEEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXP}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXPFIX}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case timeaddmode_prolongfix: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTIMEEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXP}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMEEXPFIX}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($timeaddmodeonline == timeaddmode_reset) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTIMEONLINE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMENLINE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTIMENLINE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDPROLONGTIMENLINE}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($trafficaddmode == trafficaddmode_reset) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTRAFFIC}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDADDITIVETRAFFIC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDRESETTRAFFIC}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDADDITIVETRAFFIC}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($enableburst) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENBURST}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHECKEDENBURST}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        for ($_obfuscated_1E102C2A11_ = 2; $_obfuscated_1E102C2A11_ < sizeof($timeunitlist); $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_1C131E321C152D0F32_ == $_obfuscated_1E102C2A11_) { 
                $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_1E102C2A11_ . ">" . $timeunitlist[$_obfuscated_1E102C2A11_] . "</OPTION>
"; 
            } else { 
                $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_ .= "" . "<OPTION value=" . $_obfuscated_1E102C2A11_ . ">" . $timeunitlist[$_obfuscated_1E102C2A11_] . "</OPTION>
"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEBASELISTEXP}", $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_ = ""; 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < 2; $_obfuscated_1E102C2A11_++) { 
            if ($_obfuscated_0322_ == $_obfuscated_1E102C2A11_) { 
                $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_1E102C2A11_ . ">" . $timeunitlist[$_obfuscated_1E102C2A11_] . "</OPTION>
"; 
            } else { 
                $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_ .= "" . "<OPTION value=" . $_obfuscated_1E102C2A11_ . ">" . $timeunitlist[$_obfuscated_1E102C2A11_] . "</OPTION>
"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEBASELISTONLINE}", $_obfuscated_0D131B1A30033F2103320916171A223D30402919163411_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
            $res = mysql_query("SELECT shortname, id
  		        FROM nas
  		        ORDER BY shortname
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ = $row[0]; 
                $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ = $row[1]; 
                $_obfuscated_0D2A40230A0C393521333C273E22295B282C035B1E0932_ = false; 
                foreach ($_obfuscated_321304073024251A0F281A0E0B3E0408121B1C32_ as $_obfuscated_0D02072D2934181604051F152C1F0412322C14063D1211_) { 
                    if ($_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ == $_obfuscated_0D02072D2934181604051F152C1F0412322C14063D1211_) { 
                        $_obfuscated_0D2A40230A0C393521333C273E22295B282C035B1E0932_ = true; 
                    } 
                } 
                if ($_obfuscated_0D2A40230A0C393521333C273E22295B282C035B1E0932_) { 
                    $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . ">" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</OPTION>"; 
                } else { 
                    $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ .= "" . "<OPTION value=" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . ">" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</OPTION>"; 
                } 
            } 
        } else { 
            $res = mysql_query("SELECT shortname, id
  		        FROM nas
    		        ORDER BY shortname
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ = $row[0]; 
                $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ = $row[1]; 
                $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . ">" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{NASLIST}", $_obfuscated_0D11053122315B0E01050A3703263119022E2E120C0F22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
            $res = mysql_query("SELECT managername
  		        FROM rm_managers
  		        ORDER BY managername
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_22_ = $row[0]; 
                $_obfuscated_0D233B21102B13310A3C2B0413041A372A3D3F1C2E0222_ = false; 
                foreach ($_obfuscated_3B22_ as $_obfuscated_0D1A1A34020240092916081F24280F303D24280D040D01_) { 
                    if ($_obfuscated_22_ == $_obfuscated_0D1A1A34020240092916081F24280F303D24280D040D01_) { 
                        $_obfuscated_0D233B21102B13310A3C2B0413041A372A3D3F1C2E0222_ = true; 
                    } 
                } 
                if ($_obfuscated_0D233B21102B13310A3C2B0413041A372A3D3F1C2E0222_) { 
                    $_obfuscated_0D2111103E381C122B0C0E241612352F07150D21132B01_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_22_ . ">" . $_obfuscated_22_ . "</OPTION>"; 
                } else { 
                    $_obfuscated_0D2111103E381C122B0C0E241612352F07150D21132B01_ .= "" . "<OPTION value=" . $_obfuscated_22_ . ">" . $_obfuscated_22_ . "</OPTION>"; 
                } 
            } 
        } else { 
            $res = mysql_query("SELECT managername
  		        FROM rm_managers
    		        ORDER BY managername
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            while ($row = mysql_fetch_array($res)) { 
                $_obfuscated_22_ = $row[0]; 
                $_obfuscated_0D2111103E381C122B0C0E241612352F07150D21132B01_ .= "" . "<OPTION SELECTED value=" . $_obfuscated_22_ . ">" . $_obfuscated_22_ . "</OPTION>"; 
            } 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{MANAGERLIST}", $_obfuscated_0D2111103E381C122B0C0E241612352F07150D21132B01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D3B2505032F403E1B19012E341F3E3F39401824010732_($srvname, $descr, $downrate, $uprate, $limitdl, $limitul, $limitcomb, $limitexp, $limituptime, $poolname, $unitprice, $unitpriceadd, $timeunitexp, $timeunitonline, $timebaseexp, $timebaseonline, $trafficunitdl, $trafficunitul, $trafficunitcomb, $srvtype, $timeaddmodeexp, $timeaddmodeonline, $trafficaddmode, $monthly, $enaddcredits, $minamount, $minamountadd, $resetctrdate, $resetctrneg, $pricecalcdownload, $pricecalcupload, $pricecalcuptime, $unitpricetax, $unitpriceaddtax, $enableburst, $dlburstlimit, $ulburstlimit, $dlburstthreshold, $ulburstthreshold, $dlbursttime, $ulbursttime, $enableservice, $dlquota, $ulquota, $combquota, $timequota, $priority, $nextsrvid, $dailynextsrvid, $disnextsrvid, $availucp, $renew, $inittimeexp, $inittimeonline, $initdl, $initul, $inittotal, $policymapdl, $policymapul, $allowednases, $allowedmanagers, $custattr, $gentftp, $cmcfg, $advcmcfg, $carryover, $addamount, $ignstatip) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_createservices")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $dlquota *= 1048576; 
    $ulquota *= 1048576; 
    $_obfuscated_11_ *= 1048576; 
    $_obfuscated_31243833011F34103E2511_ = _obfuscated_0D0A1636103430181206321F3E380D283D1D153B031632_($_obfuscated_31243833011F34103E2511_); 
    $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = false; 
    if ($srvname == "") { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_srv_no_srvname"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($unitprice < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_unit_price"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_0D375B050D3E0A34195B1F15062916280C0A293F082D11_ < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_unit_time"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($trafficunitdl < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_unit_trafficdl"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($trafficunitul < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_unit_trafficul"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($trafficunitcomb < 0) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_unit_trafficcomb"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_ < 1 || $minamountadd < 1) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_minamount"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($addamount < 1) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_addamount"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($enableburst) { 
        if ($_obfuscated_210B11101F2C0E2832_ < $downrate) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_burst_dl"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if ($ulburstlimit < $uprate) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_burst_ul"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if ($_obfuscated_08023B262101_ < 1) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_dlbursttime"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if ($ulbursttime < 1) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ulbursttime"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
        if ($priority < 1 || 8 < $priority) { 
            if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
                $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_priority"); 
            } 
            $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
        } 
    } 
    if ($downrate == "" || $downrate < 0) { 
        $downrate = 0; 
    } 
    if ($uprate == "" || $uprate < 0) { 
        $uprate = 0; 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT srvid
  		      FROM rm_services
  		      WHERE srvname = '" . $srvname . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (0 < mysql_num_rows($res)) { 
        if ($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ == "") { 
            $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_srv_exists"); 
        } 
        $_obfuscated_1A2C2E150C113D1B22061E3F042C22_ = true; 
    } 
    if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_) { 
        return _obfuscated_0D250C153C3B010B1504120717260226360B5B0F043C11_($srvname, $descr, $downrate, $uprate, $limitdl, $limitul, $_obfuscated_1C3B163932320E394010012E07360A19115B403632_, $limitexp, $limituptime, $poolname, $unitprice, $_obfuscated_15140722321C1B1C0419360307080A05020722_, $timeunitexp, $timeunitonline, $_obfuscated_1C131E321C152D0F32_, $_obfuscated_0322_, $trafficunitdl, $trafficunitul, $trafficunitcomb, $srvtype, $timeaddmodeexp, $timeaddmodeonline, $trafficaddmode, $_obfuscated_40310521113C0831192622_, $enaddcredits, $_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_, $minamountadd, $_obfuscated_162C1F1528050E0524390E01_, $resetctrneg, $pricecalcdownload, $pricecalcupload, $pricecalcuptime, $unitpricetax, $unitpriceaddtax, $enableburst, $_obfuscated_210B11101F2C0E2832_, $ulburstlimit, $dlburstthreshold, $_obfuscated_1E013F020211_, $_obfuscated_08023B262101_, $ulbursttime, $enableservice, $dlquota, $ulquota, $_obfuscated_11_, $_obfuscated_31243833011F34103E2511_, $priority, $nextsrvid, $_obfuscated_0A1205320E151201252A2C070C403B01_, $disnextsrvid, $availucp, $renew, $inittimeexp, $_obfuscated_372E1F3D211F0E0B320B27372E193C01_, $initdl, $initul, $inittotal, $_obfuscated_3F2F15323C230F01383E01_, $policymapul, $_obfuscated_321304073024251A0F281A0E0B3E0408121B1C32_, $_obfuscated_3B22_, $custattr, $gentftp, $_obfuscated_1A232329231D080A2238112C222325271732_, $advcmcfg, $_obfuscated_0B361433141C24311F36195B2E5B2908162211_, $addamount, $ignstatip, $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
    } 
    $res = mysql_query("SELECT MAX(srvid)
  		      FROM rm_services
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $srvid = $row[0] + 1; 
    $downrate *= 1024; 
    $uprate *= 1024; 
    $_obfuscated_210B11101F2C0E2832_ *= 1024; 
    $ulburstlimit *= 1024; 
    $dlburstthreshold *= 1024; 
    $_obfuscated_1E013F020211_ *= 1024; 
    $_obfuscated_0D2B2925020830053738040E3E3F10213326372C213032_ = "srv-" . str_pad($srvid, 3, "0", STR_PAD_LEFT) . ".cfg"; 
    $res = mysql_query("" . "INSERT INTO rm_services (
   		      srvid, srvname, descr, downrate, uprate, limitdl, limitul, limitcomb, limitexpiration,
   		      limituptime, poolname, unitprice, unitpriceadd, timebaseexp, timebaseonline,
   		      timeunitexp, timeunitonline, trafficunitdl, trafficunitul, trafficunitcomb,
   		      srvtype, timeaddmodeexp, timeaddmodeonline, trafficaddmode, monthly, enaddcredits,
   		      minamount, minamountadd, resetctrdate, resetctrneg, pricecalcdownload, pricecalcupload, pricecalcuptime,
   		      unitpricetax, unitpriceaddtax, enableburst, dlburstlimit, ulburstlimit,
   		      dlburstthreshold, ulburstthreshold, dlbursttime, ulbursttime, enableservice,
   		      dlquota, ulquota, combquota, timequota, priority, nextsrvid, dailynextsrvid, disnextsrvid, availucp, renew,
   		      inittimeexp, inittimeonline, initdl, initul, inittotal, policymapdl, policymapul, custattr, gentftp, cmcfg,
   		      advcmcfg, carryover, addamount, ignstatip )
                      VALUES (
                      '" . $srvid . "', '" . $srvname . "', '" . $descr . "', '" . $downrate . "', '" . $uprate . "', '" . $limitdl . "', '" . $limitul . "', '" . $_obfuscated_1C3B163932320E394010012E07360A19115B403632_ . "',
                      '" . $limitexp . "', '" . $limituptime . "', '" . $poolname . "', '" . $unitprice . "', '" . $_obfuscated_15140722321C1B1C0419360307080A05020722_ . "',
                      '" . $_obfuscated_1C131E321C152D0F32_ . "', '" . $_obfuscated_0322_ . "', '" . $timeunitexp . "', '" . $timeunitonline . "',
                      '" . $trafficunitdl . "', '" . $trafficunitul . "', '" . $trafficunitcomb . "', '" . $srvtype . "', '" . $timeaddmodeexp . "',
                      '" . $timeaddmodeonline . "', '" . $trafficaddmode . "', '" . $_obfuscated_40310521113C0831192622_ . "', '" . $enaddcredits . "', '" . $_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_ . "',
                      '" . $minamountadd . "', '" . $_obfuscated_162C1F1528050E0524390E01_ . "', '" . $resetctrneg . "', '" . $pricecalcdownload . "', '" . $pricecalcupload . "',
                      '" . $pricecalcuptime . "', '" . $unitpricetax . "', '" . $unitpriceaddtax . "', '" . $enableburst . "', '" . $_obfuscated_210B11101F2C0E2832_ . "',
                      '" . $ulburstlimit . "', '" . $dlburstthreshold . "', '" . $_obfuscated_1E013F020211_ . "', '" . $_obfuscated_08023B262101_ . "', '" . $ulbursttime . "',
                      '" . $enableservice . "', '" . $dlquota . "', '" . $ulquota . "', '" . $_obfuscated_11_ . "', '" . $_obfuscated_31243833011F34103E2511_ . "', '" . $priority . "',
                      '" . $nextsrvid . "', '" . $_obfuscated_0A1205320E151201252A2C070C403B01_ . "', '" . $disnextsrvid . "', '" . $availucp . "', '" . $renew . "', '" . $inittimeexp . "', '" . $_obfuscated_372E1F3D211F0E0B320B27372E193C01_ . "',
                      '" . $initdl . "', '" . $initul . "', '" . $inittotal . "', '" . $_obfuscated_3F2F15323C230F01383E01_ . "', '" . $policymapul . "', '" . $custattr . "', '" . $gentftp . "', '" . $_obfuscated_1A232329231D080A2238112C222325271732_ . "',
                      '" . $advcmcfg . "', '" . $_obfuscated_0B361433141C24311F36195B2E5B2908162211_ . "', '" . $addamount . "', '" . $ignstatip . "'
                      )
                     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if ($_obfuscated_321304073024251A0F281A0E0B3E0408121B1C32_) { 
        foreach ($_obfuscated_321304073024251A0F281A0E0B3E0408121B1C32_ as $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_) { 
            $res = mysql_query("" . "INSERT INTO rm_allowednases (srvid, nasid)
                        VALUES ('" . $srvid . "', '" . $_obfuscated_0D24033540020A091E31122E0506321B0C320A2A160C11_ . "')
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } 
    } 
    if ($_obfuscated_3B22_) { 
        foreach ($_obfuscated_3B22_ as $_obfuscated_22_) { 
            $res = mysql_query("" . "INSERT INTO rm_allowedmanagers (srvid, managername)
                        VALUES ('" . $srvid . "', '" . $_obfuscated_22_ . "')
                       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        } 
    } 
    $_obfuscated_0D2F1C273B1A0E2B121C0411321D31110B3C05160E0622_ = "srv-" . str_pad($srvid, 3, "0", STR_PAD_LEFT) . ".cfg"; 
    $_obfuscated_22_ = radman_dir . "/" . tftp_dir . "/" . $_obfuscated_0D2F1C273B1A0E2B121C0411321D31110B3C05160E0622_; 
    if ($gentftp) { 
        $res = _obfuscated_0D30352301031F28040714301A113E0F2C1C0F0F011122_($_obfuscated_22_, $downrate, $uprate, $_obfuscated_1A232329231D080A2238112C222325271732_, $advcmcfg, $srvid, $_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
    } 
    if ($res == TRUE) { 
        _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_service_created, $srvname); 
        return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_service_created")); 
    } 
    return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_($_obfuscated_0D05251907092D3C3D3616250D33091333163B112A3401_); 
} 
function _obfuscated_0D103D21270130221C3C093C240C1910041325263B1B22_($srvid, $srvname) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_deleteservices")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = confirmdelservice_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_2D300E230101_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_2D300E230101_ = str_replace("{SRVID}", $srvid, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{SRVNAME}", $srvname, $_obfuscated_2D300E230101_); 
        return $_obfuscated_2D300E230101_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D1E2C111E133207133F1A2426361037233E30170C1522_($srvid) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_deleteservices")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    if ($srvid == 0) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_del_def_srv")); 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT srvname
  		      FROM rm_services
  		      WHERE srvid = '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (mysql_num_rows($res) == 0) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_srv_not_found")); 
    } 
    $row = mysql_fetch_row($res); 
    $srvname = $row[0]; 
    $res = mysql_query("" . "DELETE FROM rm_services
  		      WHERE srvid = '" . $srvid . "' AND srvid != 0
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "UPDATE rm_services
  		      SET nextsrvid = -1
  		      WHERE nextsrvid = '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "UPDATE rm_services
  		      SET dailynextsrvid = -1
  		      WHERE dailynextsrvid = '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "UPDATE rm_services
  		      SET disnextsrvid = -1
  		      WHERE disnextsrvid = '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "UPDATE rm_users
                      SET srvid = 0
                      WHERE srvid = '" . $srvid . "'
                     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "UPDATE rm_ias
                      SET srvid = 0
                      WHERE srvid = '" . $srvid . "'
                     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "DELETE FROM rm_allowednases
		      WHERE srvid = '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "DELETE FROM rm_allowedmanagers
		      WHERE srvid = '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "DELETE FROM rm_specperacnt
		      WHERE srvid = '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "DELETE FROM rm_specperbw
		      WHERE srvid = '" . $srvid . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $_obfuscated_0D2F1C273B1A0E2B121C0411321D31110B3C05160E0622_ = "srv-" . str_pad($srvid, 3, "0", STR_PAD_LEFT) . ".cfg"; 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = radman_dir . "/" . tftp_dir . "/" . $_obfuscated_0D2F1C273B1A0E2B121C0411321D31110B3C05160E0622_; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        if (!unlink($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_upload")); 
        } 
        _obfuscated_0D04293B295C3D2D402B0929061F1625021A0A3D293922_(); 
    } 
    _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_service_deleted, $srvname); 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_service_deleted")); 
} 
function _obfuscated_0D0F124027260F223E2A03104011211C325B0F32182A01_($from, $fromdate, $todate, $frominvnum, $toinvnum, $gwtransid, $issuedby, $issuedfor, $accowner, $comment, $trtype, $pmstatus, $invgroup, $paymode, $csvexport = false, $print = false, $lastpage = false) 
{ 
    if ($todate < $_obfuscated_3034402311_) { 
        return _obfuscated_0D1B06073E2D143222251A3C17321612242440295B1D11_($_obfuscated_3034402311_, $todate, $frominvnum, $toinvnum, $_obfuscated_04131119270D21100532_, $issuedby, $_obfuscated_372F02160D0D04193D282C2F1732_, $accowner, $comment, $trtype, $pmstatus, $invgroup, $paymode, _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_invalid_interval")); 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = listinvoices_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        setcookie("lstinv_trusr", "", time() - 3600); 
        setcookie("lstinv_trman", "", time() - 3600); 
        setcookie("lstinv_paymode0", "", time() - 3600); 
        setcookie("lstinv_paymode1", "", time() - 3600); 
        setcookie("lstinv_paymode2", "", time() - 3600); 
        setcookie("lstinv_paymode3", "", time() - 3600); 
        setcookie("lstinv_paymode4", "", time() - 3600); 
        setcookie("lstinv_paymode5", "", time() - 3600); 
        setcookie("lstinv_paymode6", "", time() - 3600); 
        setcookie("lstinv_paymode7", "", time() - 3600); 
        setcookie("lstinv_paymode8", "", time() - 3600); 
        setcookie("lstinv_paymode9", "", time() - 3600); 
        setcookie("lstinv_paymode10", "", time() - 3600); 
        setcookie("lstinv_paymode11", "", time() - 3600); 
        setcookie("lstinv_paymode12", "", time() - 3600); 
        setcookie("lstinv_paymode13", "", time() - 3600); 
        setcookie("lstinv_paymode14", "", time() - 3600); 
        setcookie("lstinv_paymode15", "", time() - 3600); 
        setcookie("lstinv_paymode16", "", time() - 3600); 
        setcookie("lstinv_paymode17", "", time() - 3600); 
        setcookie("lstinv_paymode18", "", time() - 3600); 
        setcookie("lstinv_trtype", $trtype, time() + 60 * 60 * 24 * 365); 
        setcookie("lstinv_pmstatus", $pmstatus, time() + 60 * 60 * 24 * 365); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($invgroup); $_obfuscated_1E102C2A11_++) { 
            if ($invgroup[$_obfuscated_1E102C2A11_] == 0) { 
                setcookie("lstinv_trusr", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($invgroup[$_obfuscated_1E102C2A11_] == 1) { 
                setcookie("lstinv_trman", 1, time() + 60 * 60 * 24 * 365); 
            } 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($paymode); $_obfuscated_1E102C2A11_++) { 
            if ($paymode[$_obfuscated_1E102C2A11_] == 0) { 
                setcookie("lstinv_paymode0", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 1) { 
                setcookie("lstinv_paymode1", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 2) { 
                setcookie("lstinv_paymode2", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 3) { 
                setcookie("lstinv_paymode3", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 4) { 
                setcookie("lstinv_paymode4", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 5) { 
                setcookie("lstinv_paymode5", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 6) { 
                setcookie("lstinv_paymode6", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 7) { 
                setcookie("lstinv_paymode7", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 8) { 
                setcookie("lstinv_paymode8", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 9) { 
                setcookie("lstinv_paymode9", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 10) { 
                setcookie("lstinv_paymode10", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 11) { 
                setcookie("lstinv_paymode11", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 12) { 
                setcookie("lstinv_paymode12", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 13) { 
                setcookie("lstinv_paymode13", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 14) { 
                setcookie("lstinv_paymode14", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 15) { 
                setcookie("lstinv_paymode15", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 16) { 
                setcookie("lstinv_paymode16", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 17) { 
                setcookie("lstinv_paymode17", 1, time() + 60 * 60 * 24 * 365); 
            } 
            if ($paymode[$_obfuscated_1E102C2A11_] == 18) { 
                setcookie("lstinv_paymode18", 1, time() + 60 * 60 * 24 * 365); 
            } 
        } 
        if ($_SESSION["AUTH_MANAGER"] != "") { 
            $_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_ = true; 
        } else { 
            $_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_ = false; 
        } 
        if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
            if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_listinvoices")) { 
                return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
            } 
            if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_listallinvoices")) { 
                $issuedby = $_SESSION["AUTH_MANAGER"]; 
            } 
            $_obfuscated_110F0511310B2F2E0822_ = "admin.php?cont=list_invoices"; 
        } else { 
            $_obfuscated_110F0511310B2F2E0822_ = "user.php?cont=list_invoices"; 
        } 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_ = new CTable("100%"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("tb-header"); 
        if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddHead(array("{LSTINV2}", "", "", "", ""), array("{LSTINV10}", "", "", "", ""), array("{LSTINV1}", "", "", "", ""), array("{LSTINV30}", "", "", "", ""), array("{LSTINV3}", "", "", "", ""), array("{LSTINV4}", "", "", "", ""), array("{LSTINV5}", "", "", "", ""), array("{LSTINV6}<br>(" . $GLOBALS["_currency"] . ")", "", "", "", ""), array("{LSTINV7}<br>(" . $GLOBALS["_currency"] . ")", "", "", "", ""), array("{LSTINV25}", "", "", "", ""), array("{LSTINV19}", "", "", "", ""), array("{LSTINV20}", "", "", "", ""), array("{LSTINV26}", "", "", "", ""), array("{LSTINV21}", "", "", "", ""), array("{LSTINV27}", "", "", "", ""), array("{LSTINV11}", "", "", "", "")); 
        } else { 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddHead(array("{LSTINV2}", "", "", "", ""), array("{LSTINV10}", "", "", "", ""), array("{LSTINV1}", "", "", "", ""), array("{LSTINV30}", "", "", "", ""), array("{LSTINV3}", "", "", "", ""), array("{LSTINV5}", "", "", "", ""), array("{LSTINV6}<br>(" . $GLOBALS["_currency"] . ")", "", "", "", ""), array("{LSTINV7}<br>(" . $GLOBALS["_currency"] . ")", "", "", "", ""), array("{LSTINV25}", "", "", "", ""), array("{LSTINV19}", "", "", "", ""), array("{LSTINV20}", "", "", "", ""), array("{LSTINV26}", "", "", "", ""), array("{LSTINV21}", "", "", "", ""), array("{LSTINV27}", "", "", "", "")); 
        } 
        $_obfuscated_322701_ = $_obfuscated_3034402311_; 
        $_obfuscated_011F27392132_ = $todate; 
        $_obfuscated_1327191C133C1705131711_ = $frominvnum; 
        $_obfuscated_0D140727193E2B3E26101E3238343F0D10233D22235B11_ = $toinvnum; 
        $_obfuscated_0D09353122381F31332E2C1B05392F36350C1534402F32_ = $_obfuscated_04131119270D21100532_; 
        $_obfuscated_14273E2E072E28170C3511_ = $issuedby; 
        $_obfuscated_0D0A0B310F2F0D24012D2F345B2A39180B3B1F300C0732_ = $_obfuscated_372F02160D0D04193D282C2F1732_; 
        $_obfuscated_0D043B181F072A011D06050613231921182B14385B3401_ = $accowner; 
        $_obfuscated_0D11232E25320A0C33143722081B28343114011E2E2111_ = $comment; 
        $_obfuscated_0D390D172E21280E302C3737370D1A34122A2A5B2C3001_ = $trtype; 
        $_obfuscated_2E1F0E2407042E39321219133F1608045B360101_ = $pmstatus; 
        $_obfuscated_290F090B313E1C243D16111C3B230904231F32_ = $invgroup; 
        $_obfuscated_2D3729071E0222_ = $paymode; 
        if ($_obfuscated_3034402311_ == "") { 
            $_obfuscated_3034402311_ = "1900-01-01 00:00:00"; 
        } 
        if ($todate == "") { 
            $todate = "2100-01-01 23:59:59"; 
        } 
        if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
            if ($trtype == trtype_invoice) { 
                $_obfuscated_0D0E1506243502071E3F13073F270A090726113F363111_ = "AND invnum != ''"; 
            } 
            if ($invgroup != "") { 
                for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($invgroup); $_obfuscated_1E102C2A11_++) { 
                    $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ = invgroup_users; 
                    if ($invgroup[$_obfuscated_1E102C2A11_] == $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_) { 
                        if ($_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_) { 
                            $_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_ .= "" . " OR invgroup = '" . $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ . "' "; 
                        } else { 
                            $_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_ .= "" . "invgroup = '" . $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ . "' "; 
                        } 
                    } 
                    $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ = invgroup_managers; 
                    if ($invgroup[$_obfuscated_1E102C2A11_] == $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_) { 
                        if ($_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_) { 
                            $_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_ .= "" . " OR invgroup = '" . $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ . "' "; 
                        } else { 
                            $_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_ .= "" . "invgroup = '" . $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ . "' "; 
                        } 
                    } 
                } 
            } else { 
                $_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_ = " invgroup = -2"; 
            } 
            if ($_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_) { 
                $_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_ = " AND (" . $_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_ . ")"; 
            } 
            $_obfuscated_0D2C17192A070A370C1008021B2D01_ = invtype_postpaid; 
            $_obfuscated_0D0A113C183125210F5B061032122C381C2135213E2332_ = invtype_prepaid; 
            switch ($pmstatus) { 
                case PMSTATUS_ANY: 
                    $_obfuscated_0D300E0A3E322D112F390514041F3518072F3D33130A32_ = ""; 
                    break; 
                case PMSTATUS_UNPAID: 
                    $_obfuscated_0D300E0A3E322D112F390514041F3518072F3D33130A32_ = "" . "AND paid = '0000-00-00' AND (invtype = " . $_obfuscated_0D2C17192A070A370C1008021B2D01_ . " OR invtype = " . $_obfuscated_0D0A113C183125210F5B061032122C381C2135213E2332_ . ")"; 
                    break; 
                case PMSTATUS_EXPIRED: 
                    $_obfuscated_0D300E0A3E322D112F390514041F3518072F3D33130A32_ = "" . "AND paid = '0000-00-00' AND CURDATE() > paymentopt AND (invtype = " . $_obfuscated_0D2C17192A070A370C1008021B2D01_ . " OR invtype = " . $_obfuscated_0D0A113C183125210F5B061032122C381C2135213E2332_ . ")"; 
            } 
            $_obfuscated_0D0F29321D2A2A25090A3234191232010824072E5B2132_ = _obfuscated_0D0E5B5B1B0A01121A170512360F13162F151218290C01_($frominvnum, $toinvnum); 
            if ($paymode) { 
                $_obfuscated_1E3C175B1C223622_ = _obfuscated_0D3F3702053737232538100336230E1E0A32232C122F32_($paymode); 
            } 
            if ($issuedby) { 
                $_obfuscated_0D0A2223280F38321E210C1812332E400F1C0B33230101_ = "" . "AND rm_invoices.managername = '" . $issuedby . "'"; 
            } 
            if ($_obfuscated_04131119270D21100532_) { 
                $_obfuscated_0D01111211062135312E0E2D1F14390E2D235B36353432_ = "" . "AND rm_invoices.gwtransid = '" . $_obfuscated_04131119270D21100532_ . "'"; 
            } 
            if ($accowner) { 
                $_obfuscated_0D0D322A123B11093C1739102E3F27281A263E5B3F0811_ = "" . "AND rm_users.owner = '" . $accowner . "'"; 
            } 
            if ($comment) { 
                $filtercomment = "" . "AND rm_invoices.comment = '" . $comment . "'"; 
            } 
        } 
        if ($_obfuscated_372F02160D0D04193D282C2F1732_) { 
            $_obfuscated_0D0332143F072D1D1B2927221504311B323C5B08032601_ = "" . "AND rm_invoices.username = '" . $_obfuscated_372F02160D0D04193D282C2F1732_ . "'"; 
        } 
        if ($from == "" || $from < 0) { 
            $from = 0; 
        } 
        $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = rows_per_page; 
        if ($_obfuscated_2A06321411_ || $_obfuscated_4011_) { 
            $from = 0; 
            $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = csv_max_rows; 
        } 
        if ($_obfuscated_24342F01_) { 
            $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT SQL_CALC_FOUND_ROWS *
    	      FROM rm_invoices
    	      LEFT JOIN rm_users ON rm_users.username = rm_invoices.username
    	      WHERE date >= '" . $_obfuscated_3034402311_ . "' AND date <= '" . $todate . "'
    	      " . $_obfuscated_0D0A2223280F38321E210C1812332E400F1C0B33230101_ . "
    	      " . $_obfuscated_0D0332143F072D1D1B2927221504311B323C5B08032601_ . "
    	      " . $_obfuscated_0D01111211062135312E0E2D1F14390E2D235B36353432_ . "
  	      " . $filtercomment . "
    	      " . $_obfuscated_0D0F29321D2A2A25090A3234191232010824072E5B2132_ . "
    	      " . $_obfuscated_1E3C175B1C223622_ . "
    	      " . $_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_ . "
    	      " . $_obfuscated_0D0E1506243502071E3F13073F270A090726113F363111_ . "
    	      " . $_obfuscated_0D300E0A3E322D112F390514041F3518072F3D33130A32_ . "
    	      " . $_obfuscated_0D0D322A123B11093C1739102E3F27281A263E5B3F0811_ . "
      	      ORDER BY id
      	      LIMIT " . $from . ", " . $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ . "
      	     "; 
            $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            $res = mysql_query("SELECT FOUND_ROWS()") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            $row = mysql_fetch_array($res); 
            $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ = $row[0]; 
            if (rows_per_page < $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_) { 
                if ($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ % rows_per_page == 0) { 
                    $from = $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ - rows_per_page; 
                } else { 
                    $from = $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ - $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ % rows_per_page; 
                } 
            } 
        } 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT SQL_CALC_FOUND_ROWS rm_invoices.id, rm_invoices.invnum, rm_invoices.managername, rm_invoices.username,
  	    rm_invoices.date, rm_invoices.bytesdl, rm_invoices.bytesul, rm_invoices.bytescomb, rm_invoices.downlimit,
  	    rm_invoices.uplimit, rm_invoices.comblimit, rm_invoices.time, rm_invoices.uptimelimit, rm_invoices.days,
  	    rm_invoices.expiration, rm_invoices.comment, rm_invoices.service, rm_invoices.amount, rm_invoices.paid,
  	    rm_invoices.paymentopt, rm_invoices.paymode, rm_invoices.price, rm_invoices.tax, rm_invoices.balance,
  	    rm_invoices.invgroup
  	    FROM rm_invoices
  	    LEFT JOIN rm_users ON rm_users.username = rm_invoices.username
  	    WHERE date >= '" . $_obfuscated_3034402311_ . "' AND date <= '" . $todate . "'
  	    " . $_obfuscated_0D0A2223280F38321E210C1812332E400F1C0B33230101_ . "
  	    " . $_obfuscated_0D0332143F072D1D1B2927221504311B323C5B08032601_ . "
  	    " . $_obfuscated_0D01111211062135312E0E2D1F14390E2D235B36353432_ . "
	    " . $filtercomment . "
  	    " . $_obfuscated_0D0F29321D2A2A25090A3234191232010824072E5B2132_ . "
  	    " . $_obfuscated_1E3C175B1C223622_ . "
  	    " . $_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_ . "
  	    " . $_obfuscated_0D0E1506243502071E3F13073F270A090726113F363111_ . "
  	    " . $_obfuscated_0D300E0A3E322D112F390514041F3518072F3D33130A32_ . "
  	    " . $_obfuscated_0D0D322A123B11093C1739102E3F27281A263E5B3F0811_ . "
    	    ORDER BY id
    	    LIMIT " . $from . ", " . $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ . "
    	   "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("SELECT FOUND_ROWS()") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
        $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ = $row[0]; 
        $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ = $from + 1; 
        $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
        $_obfuscated_0D2B2F10330F0C1E2C1F1B1323163135293233032F1801_ = true; 
        while ($row = mysql_fetch_row($res)) { 
            $id = $row[0]; 
            $_obfuscated_22_ = $row[1]; 
            $_obfuscated_0D3D0E0C1C1D310E341416180F180B1B0F083625170222_ = $row[2]; 
            $_obfuscated_082E22_ = $row[3]; 
            $_obfuscated_36372E1C5B3D1E11_ = $row[4]; 
            $_obfuscated_12222D243529351B06341E27052401_ = $row[5]; 
            $_obfuscated_0D4006243210362A1405133124150C372908333D260B01_ = $row[6]; 
            $_obfuscated_32_ = $row[7]; 
            $downlimit = $row[8]; 
            $uplimit = $row[9]; 
            $comblimit = $row[10]; 
            $_obfuscated_252725250A22_ = $row[11]; 
            $_obfuscated_053601_ = $row[12]; 
            $_obfuscated_06015B22_ = $row[13]; 
            $expiration = $row[14]; 
            $_obfuscated_390936250A24111A2528300C0B0D011D16393D1E22_ = $row[15]; 
            $_obfuscated_10082A1A0919143F1A0E1C3422_ = $row[16]; 
            $amount = $row[17]; 
            $_obfuscated_0D2E26263E0E34290D011306192524393B0319383D0D11_ = $row[18]; 
            $_obfuscated_24133702362414312F1501_ = $row[19]; 
            $paymode = $row[20]; 
            $_obfuscated_0D2111113D3E053E0F261E18211E1225251D040B052F22_ = $row[21]; 
            $_obfuscated_0D153F310A083910280E310415282B152D23173C0A0322_ = $row[22]; 
            $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ = $row[23]; 
            $_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ = $row[24]; 
            if ($_obfuscated_4011_ && ($paymode == paymode_cash || $paymode == paymode_transfer || $paymode == paymode_paypalstd || $paymode == paymode_paypalpro || $paymode == paymode_paypalexp || $paymode == paymode_netcash || $paymode == paymode_authorizenet || $paymode == paymode_dps || $paymode == paymode_2co || $paymode == paymode_payfast || $paymode == paymode_payu || $paymode == paymode_paytm || $paymode == paymode_bkash || $paymode == paymode_flutterwave || $paymode == paymode_easypay || $paymode == paymode_mpesa || $paymode == paymode_custom)) { 
                if ($_obfuscated_0D2B2F10330F0C1E2C1F1B1323163135293233032F1801_) { 
                    $_obfuscated_0D2B2F10330F0C1E2C1F1B1323163135293233032F1801_ = false; 
                } else { 
                    print "<P CLASS=\"pagebreak\">"; 
                } 
                _obfuscated_0D5B36061E03011631072F171210383B3702281B3C2101_($id, false); 
                continue; 
            } 
            if ($expiration == "0000-00-00") { 
                $_obfuscated_0D1E112A3831400E393E0C233F1931242C3804302A0411_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } else { 
                $_obfuscated_0D1E112A3831400E393E0C233F1931242C3804302A0411_ = $expiration; 
            } 
            $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_ = _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * $_obfuscated_0D2111113D3E053E0F261E18211E1225251D040B052F22_, false) + _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * $_obfuscated_0D153F310A083910280E310415282B152D23173C0A0322_, false); 
            $_obfuscated_0D1A352C195B010C320D1E170536300A0E1A1035143F11_ = $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_; 
            if (($paymode == paymode_transfer || $paymode == paymode_cash) && $_obfuscated_0D2E26263E0E34290D011306192524393B0319383D0D11_ == "0000-00-00") { 
                if ($_obfuscated_24133702362414312F1501_ < date("Y-m-d")) { 
                    $_obfuscated_0D1A352C195B010C320D1E170536300A0E1A1035143F11_ = col_invoice_deadline; 
                } else { 
                    $_obfuscated_0D1A352C195B010C320D1E170536300A0E1A1035143F11_ = col_invoice_notpaid; 
                } 
            } 
            if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
                $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ = "admin.php"; 
            } else { 
                $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ = "user.php"; 
            } 
            $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_view"); 
            switch ($paymode) { 
                case paymode_cash: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_cash"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_transfer: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_transfer"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_internal: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_internal"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "<img src=\"images/icon-show-disabled.png\" border=\"0\">"; 
                    break; 
                case paymode_card: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_card"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "<img src=\"images/icon-show-disabled.png\" border=\"0\">"; 
                    break; 
                case paymode_paypalstd: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_paypalpro: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_paypalexp: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_netcash: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_authorizenet: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_dps: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_2co: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_payfast: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_payu: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_paytm: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_bkash: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_flutterwave: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_easypay: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_mpesa: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
                    break; 
                case paymode_custom: 
                    $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_online"); 
                    $_obfuscated_14220E1732045B16221817250311_ = "" . "<a href=" . $_obfuscated_0D0714321E2E2A3E0C1309120E2529160F1C2C0B3D1532_ . "?cont=print_invoice&id=" . $id . " target=_blank>" . "<img src=\"images/icon-show.png\" border=\"0\" alt=\"" . $_obfuscated_0D220E14395B1D27383417242E0E312A393E271D010422_ . "\">" . "</a>"; 
            } 
            if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
                $_obfuscated_321B0611_ = $_obfuscated_390936250A24111A2528300C0B0D011D16393D1E22_; 
                $_obfuscated_0D03060319013D08372E3E0313053336310F1C09032E32_ = "<a href=admin.php?cont=edit_invoice&id=" . $id . " target=_blank" . ">" . $_obfuscated_22_ . "</a>"; 
                if ($_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ == invgroup_users) { 
                    $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = "<a href=\"admin.php?cont=edit_user&username=" . $_obfuscated_082E22_ . "\">" . $_obfuscated_082E22_ . "</a>"; 
                } 
                if ($_obfuscated_0D110B18111C14363E243F302C3B0403013427220B1A01_ == invgroup_managers) { 
                    $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = "<a href=\"admin.php?cont=edit_manager&managername=" . $_obfuscated_082E22_ . "\">" . $_obfuscated_082E22_ . "</a>"; 
                } 
            } else { 
                $_obfuscated_321B0611_ = ""; 
                $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = $_obfuscated_082E22_; 
                $_obfuscated_0D03060319013D08372E3E0313053336310F1C09032E32_ = $_obfuscated_22_; 
            } 
            if ($_obfuscated_22_ == "") { 
                $_obfuscated_0D03060319013D08372E3E0313053336310F1C09032E32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("normal"); 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_); 
            if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
                $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array(substr($_obfuscated_36372E1C5B3D1E11_, 0, 10), "", "", ""), array($_obfuscated_14220E1732045B16221817250311_, "", "", ""), array($_obfuscated_0D03060319013D08372E3E0313053336310F1C09032E32_, "", "", $_obfuscated_0D1A352C195B010C320D1E170536300A0E1A1035143F11_), array($_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_, "", "", ""), array($_obfuscated_10082A1A0919143F1A0E1C3422_, "left", "", ""), array($_obfuscated_0D3D0E0C1C1D310E341416180F180B1B0F083625170222_, "", "", ""), array($_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_, "", "", ""), array(_obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_, true), "right", "", ""), array(_obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_, true), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_12222D243529351B06341E27052401_, traffic_format_auto) . "<br>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D4006243210362A1405133124150C372908333D260B01_, traffic_format_auto) . "<br>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_32_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($downlimit, traffic_format_auto) . "<br>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($uplimit, traffic_format_auto) . "<br>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($comblimit, traffic_format_auto), "right", "", ""), array(_obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_252725250A22_), "right", "", ""), array(_obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_053601_), "right", "", ""), array($_obfuscated_06015B22_, "right", "", ""), array($_obfuscated_0D1E112A3831400E393E0C233F1931242C3804302A0411_, "center", "", ""), array($_obfuscated_321B0611_, "left", "", "")); 
            } else { 
                $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array(substr($_obfuscated_36372E1C5B3D1E11_, 0, 10), "", "", ""), array($_obfuscated_14220E1732045B16221817250311_, "", "", ""), array($_obfuscated_0D03060319013D08372E3E0313053336310F1C09032E32_, "", "", $_obfuscated_0D1A352C195B010C320D1E170536300A0E1A1035143F11_), array($_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_, "", "", ""), array($_obfuscated_10082A1A0919143F1A0E1C3422_, "left", "", ""), array($_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_, "", "", ""), array(_obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_, true), "right", "", ""), array(_obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_, true), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_12222D243529351B06341E27052401_, traffic_format_auto) . "<br>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D4006243210362A1405133124150C372908333D260B01_, traffic_format_auto) . "<br>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_32_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($downlimit, traffic_format_auto) . "<br>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($uplimit, traffic_format_auto) . "<br>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($comblimit, traffic_format_auto), "right", "", ""), array(_obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_252725250A22_), "right", "", ""), array(_obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_053601_), "right", "", ""), array($_obfuscated_06015B22_, "right", "", ""), array($_obfuscated_0D1E112A3831400E393E0C233F1931242C3804302A0411_, "center", "", "")); 
            } 
            if ($_obfuscated_2A06321411_) { 
                $_obfuscated_0D2F2C382B3B3C3D36401D293D1A0B1A101924293B0801_ .= _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_(substr($_obfuscated_36372E1C5B3D1E11_, 0, 10)) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_22_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_10082A1A0919143F1A0E1C3422_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D3D0E0C1C1D310E341416180F180B1B0F083625170222_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_082E22_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_(_obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_, false, 2, ",")) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_(_obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_, false, 2, ",")) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_12222D243529351B06341E27052401_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($downlimit) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D4006243210362A1405133124150C372908333D260B01_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($uplimit) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_32_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($comblimit) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_(_obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_252725250A22_)) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_(_obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_053601_)) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_06015B22_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($expiration) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_390936250A24111A2528300C0B0D011D16393D1E22_) . ";" . _obfuscated_0D151D06372231372E28111D39091807163C2D23080301_($_obfuscated_0D2E26263E0E34290D011306192524393B0319383D0D11_) . "
"; 
                $_obfuscated_0D2F2C382B3B3C3D36401D293D1A0B1A101924293B0801_ = html_entity_decode($_obfuscated_0D2F2C382B3B3C3D36401D293D1A0B1A101924293B0801_); 
            } 
            $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_++; 
            if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor0) { 
                $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor1; 
            } else { 
                if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor1) { 
                    $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                } 
            } 
        } 
        if ($_obfuscated_4011_) { 
            exit; 
        } 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT amount, price, tax, paymode, paid
  	    FROM rm_invoices
  	    LEFT JOIN rm_users ON rm_users.username = rm_invoices.username
  	    WHERE date >= '" . $_obfuscated_3034402311_ . "' AND date <= '" . $todate . "'
  	    " . $_obfuscated_0D0A2223280F38321E210C1812332E400F1C0B33230101_ . "
  	    " . $_obfuscated_0D0332143F072D1D1B2927221504311B323C5B08032601_ . "
  	    " . $_obfuscated_0D01111211062135312E0E2D1F14390E2D235B36353432_ . "
	    " . $filtercomment . "
  	    " . $_obfuscated_0D0F29321D2A2A25090A3234191232010824072E5B2132_ . "
  	    " . $_obfuscated_1E3C175B1C223622_ . "
  	    " . $_obfuscated_0D0204121C0D181102040C303915170D3F022E022D2A22_ . "
  	    " . $_obfuscated_0D0E1506243502071E3F13073F270A090726113F363111_ . "
  	    " . $_obfuscated_0D300E0A3E322D112F390514041F3518072F3D33130A32_ . "
  	    " . $_obfuscated_0D0D322A123B11093C1739102E3F27281A263E5B3F0811_ . "
  	   "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        while ($row = mysql_fetch_array($res)) { 
            $amount = $row[0]; 
            $_obfuscated_0D2111113D3E053E0F261E18211E1225251D040B052F22_ = $row[1]; 
            $_obfuscated_0D153F310A083910280E310415282B152D23173C0A0322_ = $row[2]; 
            $paymode = $row[3]; 
            $_obfuscated_0D2E26263E0E34290D011306192524393B0319383D0D11_ = $row[4]; 
            $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_ = $amount * ($_obfuscated_0D2111113D3E053E0F261E18211E1225251D040B052F22_ + $_obfuscated_0D153F310A083910280E310415282B152D23173C0A0322_); 
            if ($paymode == paymode_cash || $paymode == paymode_paypalstd || $paymode == paymode_paypalpro || $paymode == paymode_paypalexp || $paymode == paymode_netcash || $paymode == paymode_authorizenet || $paymode == paymode_dps || $paymode == paymode_2co || $paymode == paymode_payfast || $paymode == paymode_payu || $paymode == paymode_paytm) { 
                $_obfuscated_0D38383C162D1B250B3F2D2C2E0C11073E020E04011D22_ += $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_; 
            } 
            if ($paymode == paymode_transfer) { 
                if ($_obfuscated_0D2E26263E0E34290D011306192524393B0319383D0D11_ != "0000-00-00") { 
                    $_obfuscated_0D38383C162D1B250B3F2D2C2E0C11073E020E04011D22_ += $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_; 
                } else { 
                    $_obfuscated_0D1C17180E273E06212B26022A383E0A27021637050432_ += $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_; 
                } 
            } 
            if ($paymode == paymode_internal) { 
                $_obfuscated_0D250E12012D090319343C292D3F151F16273102152622_ += $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_; 
            } 
            if ($paymode == paymode_card) { 
                $_obfuscated_3C063F143232_ += $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_; 
            } 
        } 
        if (_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_showinvtotals")) { 
            $_obfuscated_0D333C3D0127010A333328070C190D1A04273737313911_ = "<b>" . _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D38383C162D1B250B3F2D2C2E0C11073E020E04011D22_, true) . " " . $GLOBALS["_currency"] . "</b>"; 
            $_obfuscated_0D2936193D263531372F282F101D0529391C0210323532_ = "<b>" . _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D1C17180E273E06212B26022A383E0A27021637050432_, true) . " " . $GLOBALS["_currency"] . "</b>"; 
            $_obfuscated_0D01250F0C0229070C40323707253930240E183D102A11_ = "<b>" . _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D38383C162D1B250B3F2D2C2E0C11073E020E04011D22_ + $_obfuscated_0D1C17180E273E06212B26022A383E0A27021637050432_, true) . " " . $GLOBALS["_currency"] . "</b>"; 
            $_obfuscated_0D0C3624401327170C10340627391E3E19253129352522_ = "<b>" . _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D250E12012D090319343C292D3F151F16273102152622_, true) . " " . $GLOBALS["_currency"] . "</b>"; 
            $_obfuscated_0D1430383C2833392123193D333F2F0C39360125285B01_ = "<b>" . _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_3C063F143232_, true) . " " . $GLOBALS["_currency"] . "</b>"; 
        } else { 
            $_obfuscated_0D333C3D0127010A333328070C190D1A04273737313911_ = "<b>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na") . "</b>"; 
            $_obfuscated_0D2936193D263531372F282F101D0529391C0210323532_ = "<b>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na") . "</b>"; 
            $_obfuscated_0D01250F0C0229070C40323707253930240E183D102A11_ = "<b>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na") . "</b>"; 
            $_obfuscated_0D0C3624401327170C10340627391E3E19253129352522_ = "<b>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na") . "</b>"; 
            $_obfuscated_0D1430383C2833392123193D333F2F0C39360125285B01_ = "<b>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na") . "</b>"; 
        } 
        $_obfuscated_0D2613092F2B083712192D33190F2F1837181C5B2C2732_ = new CTable(""); 
        $_obfuscated_0D2613092F2B083712192D33190F2F1837181C5B2C2732_->SetRowStyle("normal"); 
        $_obfuscated_0D2613092F2B083712192D33190F2F1837181C5B2C2732_->SetRowBgColor(col_bgcolor); 
        $_obfuscated_0D2613092F2B083712192D33190F2F1837181C5B2C2732_->AddRow(array("{LSTINV12}:", "right", "", ""), array($_obfuscated_0D333C3D0127010A333328070C190D1A04273737313911_, "right", "", "")); 
        $_obfuscated_0D2613092F2B083712192D33190F2F1837181C5B2C2732_->AddRow(array("{LSTINV13}:", "right", "", ""), array($_obfuscated_0D2936193D263531372F282F101D0529391C0210323532_, "right", "", "")); 
        $_obfuscated_0D2613092F2B083712192D33190F2F1837181C5B2C2732_->AddRow(array("{LSTINV14}:", "right", "", ""), array($_obfuscated_0D01250F0C0229070C40323707253930240E183D102A11_, "right", "", "")); 
        $_obfuscated_0D3D3D2535180C350F312F173D132B0C3D2B331D352411_ = new CTable(""); 
        $_obfuscated_0D3D3D2535180C350F312F173D132B0C3D2B331D352411_->SetRowStyle("normal"); 
        $_obfuscated_0D3D3D2535180C350F312F173D132B0C3D2B331D352411_->SetRowBgColor(col_bgcolor); 
        $_obfuscated_0D3D3D2535180C350F312F173D132B0C3D2B331D352411_->AddRow(array("{LSTINV15}:", "right", "", ""), array($_obfuscated_0D0C3624401327170C10340627391E3E19253129352522_, "right", "", "")); 
        $_obfuscated_0D3D3D2535180C350F312F173D132B0C3D2B331D352411_->AddRow(array("{LSTINV23}:", "right", "", ""), array($_obfuscated_0D1430383C2833392123193D333F2F0C39360125285B01_, "right", "", "")); 
        if ($_obfuscated_2A06321411_) { 
            _obfuscated_0D3B3D333B0E395C372838281B3037302227033E131501_("invoices.csv"); 
            $_obfuscated_3E372E2613071D1B22_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv1") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv2") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv3") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv4") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv5") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv6") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv7") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv8") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv9") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv10") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv11") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv12") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv13") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv14") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv15") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv16") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv17") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv18") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv19") . ";" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_lstinvcsv20") . "
"; 
            print $_obfuscated_3E372E2613071D1B22_; 
            print $_obfuscated_0D2F2C382B3B3C3D36401D293D1A0B1A101924293B0801_; 
            exit; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PAYMENTS}", $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->GetTable(), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SUMMARY1}", $_obfuscated_0D2613092F2B083712192D33190F2F1837181C5B2C2732_->GetTable(), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SUMMARY2}", $_obfuscated_0D3D3D2535180C350F312F173D132B0C3D2B331D352411_->GetTable(), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_322701_ = rawurlencode($_obfuscated_322701_); 
        $_obfuscated_011F27392132_ = rawurlencode($_obfuscated_011F27392132_); 
        $_obfuscated_1327191C133C1705131711_ = rawurlencode($_obfuscated_1327191C133C1705131711_); 
        $_obfuscated_1327191C133C1705131711_ = rawurlencode($_obfuscated_1327191C133C1705131711_); 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($_obfuscated_2D3729071E0222_); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D1B135B02340C042E233839220C0D3E011A210A070432_ .= "&paymode[]=" . $_obfuscated_2D3729071E0222_[$_obfuscated_1E102C2A11_]; 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < count($_obfuscated_290F090B313E1C243D16111C3B230904231F32_); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D2D3D382A310F271738133F4012161934100F0D3C0322_ .= "&invgroup[]=" . $_obfuscated_290F090B313E1C243D16111C3B230904231F32_[$_obfuscated_1E102C2A11_]; 
        } 
        $_obfuscated_0D2F33082B2F05372D131D04242A2C332D230F163F2501_ = "&fromdate=" . $_obfuscated_322701_ . "&todate=" . $_obfuscated_011F27392132_ . "&frominvnum=" . $_obfuscated_1327191C133C1705131711_ . "&toinvnum=" . $_obfuscated_0D140727193E2B3E26101E3238343F0D10233D22235B11_ . "&gwtransid=" . $_obfuscated_0D09353122381F31332E2C1B05392F36350C1534402F32_ . "&issuedby=" . $_obfuscated_14273E2E072E28170C3511_ . "&issuedfor=" . $_obfuscated_0D0A0B310F2F0D24012D2F345B2A39180B3B1F300C0732_ . "&accowner=" . $_obfuscated_0D043B181F072A011D06050613231921182B14385B3401_ . "&comment=" . $_obfuscated_0D11232E25320A0C33143722081B28343114011E2E2111_ . "&trtype=" . $_obfuscated_0D390D172E21280E302C3737370D1A34122A2A5B2C3001_ . "&pmstatus=" . $_obfuscated_2E1F0E2407042E39321219133F1608045B360101_ . $_obfuscated_0D2D3D382A310F271738133F4012161934100F0D3C0322_ . $_obfuscated_0D1B135B02340C042E233839220C0D3E011A210A070432_; 
        if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
            $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_ = _obfuscated_0D0E06262D031728271222243B393C3819300725120A01_($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_, $from, rows_per_page, $_obfuscated_110F0511310B2F2E0822_ . $_obfuscated_0D2F33082B2F05372D131D04242A2C332D230F163F2501_); 
        } else { 
            $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_ = _obfuscated_0D0E06262D031728271222243B393C3819300725120A01_($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_, $from, rows_per_page, $_obfuscated_110F0511310B2F2E0822_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{QUICKJUMP}", $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_NOTPAID}", col_invoice_notpaid, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_DEADLINE}", col_invoice_deadline, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
            $_obfuscated_0D162B2B043B0D3C050525311738253D0133041A0A0E22_ = "[<a href=admin.php?cont=list_invoices&csvexport=1" . $_obfuscated_0D2F33082B2F05372D131D04242A2C332D230F163F2501_ . ">" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_exportcsv") . "</a>]"; 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EXPORT}", $_obfuscated_0D162B2B043B0D3C050525311738253D0133041A0A0E22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_11_ = "[<a href=admin.php?cont=list_invoices&print=1" . $_obfuscated_0D2F33082B2F05372D131D04242A2C332D230F163F2501_ . " target=_blank>" . _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_printallinv") . "</a>]"; 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PRINTALL}", $_obfuscated_11_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EXPORT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PRINTALL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_2E121711_() 
{ 
    global $countrylist; 
    global $stateslist; 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = search_users_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("SELECT srvid, srvname
  		      FROM rm_services
  		      ORDER BY srvname
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        for ($_obfuscated_1E102C2A11_ = 0; $row = mysql_fetch_array($res); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][0] = $row[0]; 
            $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][1] = $row[1]; 
        } 
        $_obfuscated_3D2F162E272B3139102117043218101013343732_ .= "<OPTION SELECTED value=></OPTION>"; 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ = $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][0]; 
            $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ = $_obfuscated_0D40071935282C5B040E3F273B0A261D2E1A15273C1E11_[$_obfuscated_1E102C2A11_][1]; 
            $_obfuscated_3D2F162E272B3139102117043218101013343732_ .= "" . "<OPTION value=" . $_obfuscated_0D181C3326280A081F1F0C33282A165B0B0C2336051D32_ . ">" . $_obfuscated_0D15381507333D3329302C1F3F1333022E0E211E1B1E32_ . "</OPTION>"; 
        } 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_listusers")) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENANBLEFIND}", "disabled", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENANBLEFIND}", "enabled", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($countrylist); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_363D35101821023D163111_ = $countrylist[$_obfuscated_1E102C2A11_][0]; 
            $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_ .= "" . "<OPTION value='" . $_obfuscated_363D35101821023D163111_ . "'>" . $_obfuscated_363D35101821023D163111_ . "</OPTION>"; 
        } 
        for ($_obfuscated_1E102C2A11_ = 0; $_obfuscated_1E102C2A11_ < sizeof($stateslist); $_obfuscated_1E102C2A11_++) { 
            $_obfuscated_4012013822383C05210C3E0232_ = $stateslist[$_obfuscated_1E102C2A11_][0]; 
            $_obfuscated_2D32_ .= "" . "<OPTION value='" . $_obfuscated_4012013822383C05210C3E0232_ . "'>" . $_obfuscated_4012013822383C05210C3E0232_ . "</OPTION>"; 
        } 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("SELECT groupid, groupname
  		      FROM rm_usergroups
  		      ORDER BY groupname
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ = "<OPTION value=''></OPTION>"; 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ = $row[0]; 
            $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ = $row[1]; 
            $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_ .= "" . "<OPTION value='" . $_obfuscated_0D2B14301340210A40381725403E0E27210C3C06132E01_ . "'>" . $_obfuscated_0D16041502340D133E06351E112408081A3E35241D2B32_ . "</OPTION>"; 
        } 
        $res = mysql_query("SELECT managername
  		      FROM rm_managers
  		      ORDER BY managername
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_0D1706383619391D3C35053B2D34350F021F34162F3932_ = "<OPTION value=''></OPTION>"; 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_22_ = $row[0]; 
            $_obfuscated_0D1706383619391D3C35053B2D34350F021F34162F3932_ .= "" . "<OPTION value='" . $_obfuscated_22_ . "'>" . $_obfuscated_22_ . "</OPTION>"; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVLIST}", $_obfuscated_3D2F162E272B3139102117043218101013343732_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COUNTRYLIST}", $_obfuscated_0D393B0F2A021C260D39152F252507180A311E3C373932_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATESLIST}", $_obfuscated_2D32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{GROUPLIST}", $_obfuscated_0D2E08242B170F232B16022C281C405B2B1222175B1201_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{OWNERLIST}", $_obfuscated_0D1706383619391D3C35053B2D34350F021F34162F3932_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_2632_ = $_COOKIE["fndusr_acctype0"]; 
        $_obfuscated_0D310D213F0A191E2F043C353C2B103E26120F383F0111_ = $_COOKIE["fndusr_acctype1"]; 
        $_obfuscated_0D253538342B2C2F1E022A2B060F290E1817032E312132_ = $_COOKIE["fndusr_acctype2"]; 
        $_obfuscated_0D0F292902315B0E23121D162F110F36330839402C0511_ = $_COOKIE["fndusr_acctype3"]; 
        $_obfuscated_0D351115343718290B2703070814240111041E3B400922_ = $_COOKIE["fndusr_acctype4"]; 
        $_obfuscated_0D2C042C3C3F373D1131101F2D0B021609232539173311_ = $_COOKIE["fndusr_acctype5"]; 
        $_obfuscated_0D10402233110C17063C190C0B3B5B0C0C163C220F0A22_ = $_COOKIE["fndusr_acctype6"]; 
        $srvtype = $_COOKIE["fndusr_srvtype"]; 
        $_obfuscated_5B09010C381D0B2102401F2A050B32_ = $_COOKIE["fndusr_accstatus"]; 
        $_obfuscated_0D3D23210D331D0D243938381819091C5B04082D250F22_ = $_COOKIE["fndusr_acctinfo"]; 
        $_obfuscated_0D3B23240C341C132523352134033C31321E261B300732_ = $_COOKIE["fndusr_cardstatus"]; 
        if ($GLOBALS["_hidelimits"]) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENACTIVE}", "disabled", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENEXPIRED}", "disabled", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            if ($_obfuscated_5B09010C381D0B2102401F2A050B32_ == ACCSTATUS_ACTIVE || $_obfuscated_5B09010C381D0B2102401F2A050B32_ == ACCSTATUS_EXPIRED) { 
                $_obfuscated_5B09010C381D0B2102401F2A050B32_ = ACCSTATUS_ANY; 
            } 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENACTIVE}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENEXPIRED}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($srvtype == "") { 
            $_obfuscated_2632_ = 1; 
            $_obfuscated_0D310D213F0A191E2F043C353C2B103E26120F383F0111_ = 1; 
            $_obfuscated_0D253538342B2C2F1E022A2B060F290E1817032E312132_ = 1; 
            $_obfuscated_0D0F292902315B0E23121D162F110F36330839402C0511_ = 1; 
            $_obfuscated_0D351115343718290B2703070814240111041E3B400922_ = 1; 
            $_obfuscated_0D2C042C3C3F373D1131101F2D0B021609232539173311_ = 1; 
            $_obfuscated_0D10402233110C17063C190C0B3B5B0C0C163C220F0A22_ = 1; 
        } 
        if ($_obfuscated_2632_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D310D213F0A191E2F043C353C2B103E26120F383F0111_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D253538342B2C2F1E022A2B060F290E1817032E312132_ && _obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_cardsys") && _obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_card)) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D0F292902315B0E23121D162F110F36330839402C0511_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE3}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D351115343718290B2703070814240111041E3B400922_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE4}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D2C042C3C3F373D1131101F2D0B021609232539173311_ && _obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_cardsys") && _obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_card)) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE5}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D10402233110C17063C190C0B3B5B0C0C163C220F0A22_) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE6}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE3}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE4}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE5}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTYPE6}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_cardsys") || !_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_card)) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENACCTYPE2}", "disabled", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENACCTYPE5}", "disabled", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if (!_obfuscated_0D070931393E3F250B1F32370B2133310A073617020F22_(mod_docsis)) { 
            $_obfuscated_0D1E2C321D163C361C243D261B3B400E2D1D24360C3922_ = "disabled"; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ENACCTYPE6}", $_obfuscated_0D1E2C321D163C361C243D261B3B400E2D1D24360C3922_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($srvtype == "") { 
            $srvtype = srvtype_any; 
        } 
        switch ($srvtype) { 
            case srvtype_any: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSRVTYPE0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_prepaid_regular: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSRVTYPE1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_postpaid: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSRVTYPE2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_email_only: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSRVTYPE3}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case srvtype_access_list: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSRVTYPE4}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSRVTYPE0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSRVTYPE1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSRVTYPE2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSRVTYPE3}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKSRVTYPE4}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_5B09010C381D0B2102401F2A050B32_ == "") { 
            $_obfuscated_5B09010C381D0B2102401F2A050B32_ = ACCSTATUS_ANY; 
        } 
        switch ($_obfuscated_5B09010C381D0B2102401F2A050B32_) { 
            case ACCSTATUS_ANY: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCSTATUS0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ACCSTATUS_ACTIVE: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCSTATUS1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ACCSTATUS_EXPIRED: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCSTATUS2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ACCSTATUS_ENABLED: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCSTATUS3}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ACCSTATUS_DISABLED: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCSTATUS4}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCSTATUS0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCSTATUS1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCSTATUS2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCSTATUS3}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCSTATUS4}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_0D3D23210D331D0D243938381819091C5B04082D250F22_ == "") { 
            $_obfuscated_0D3D23210D331D0D243938381819091C5B04082D250F22_ = ACCTINFO_ANY; 
        } 
        switch ($_obfuscated_0D3D23210D331D0D243938381819091C5B04082D250F22_) { 
            case ACCTINFO_ANY: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTINFO0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ACCTINFO_FOUND: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTINFO1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case ACCTINFO_NOTFOUND: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTINFO2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTINFO0}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTINFO1}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKACCTINFO2}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_0D3B23240C341C132523352134033C31321E261B300732_ == "") { 
            $_obfuscated_0D3B23240C341C132523352134033C31321E261B300732_ = CARDSTATUS_ANY; 
        } 
        switch ($_obfuscated_0D3B23240C341C132523352134033C31321E261B300732_) { 
            case CARDSTATUS_ANY: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCARDSTATUS0}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case CARDSTATUS_ACTIVE: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCARDSTATUS1}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case CARDSTATUS_INACTIVE: 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKCARDSTATUS2}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D17111B1E243B3D05172B2A112F3D1634322335240511_($from, $username, $framedip, $stationid, $listmode, $fromdate, $nasid = "", $apid = "", $filterfrom = "", $filterto = "", $enableint = false) 
{ 
    if ($_SESSION["AUTH_MANAGER"] != "") { 
        $_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_ = true; 
    } else { 
        $_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_ = false; 
    } 
    if ($enableint) { 
        return _obfuscated_0D1D171E17323E1D1D132D0823381328010A0A3C050B22_($from, $username, $_obfuscated_11_, $stationid, $nasid, $_obfuscated_1C400F5B1131350E2A082E30121410333711_, $filterfrom, $filterto); 
    } 
    if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_ && !$username && !_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_trafficreport")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = trafficreport_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_ = new CTable("100%"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("tb-header"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddHead(array("{TRAFFREP1}", "", "", "", ""), array("{TRAFFREP2}", "", "", "", ""), array("{TRAFFREP3}", "", "", "", ""), array("{TRAFFREP4}", "", "", "", ""), array("{TRAFFREP5}", "", "", "", ""), array("{TRAFFREP6}", "", "", "", "")); 
        $username = str_replace("%", "", $username); 
        $_obfuscated_11_ = str_replace("%", "", $_obfuscated_11_); 
        $stationid = str_replace("%", "", $stationid); 
        if ($username == "") { 
            $username = "%"; 
        } 
        if ($_obfuscated_11_ == "") { 
            $_obfuscated_11_ = "%"; 
        } 
        if ($stationid == "") { 
            $stationid = "%"; 
        } 
        if ($_obfuscated_1B283C32_ == "") { 
            $_obfuscated_1B283C32_ = "year"; 
        } 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("" . "SELECT nasname
  		      FROM nas
  		      WHERE id = '" . $nasid . "'
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D25332B30061228282B19183825362419353E221A2B01_ = $row[nasname]; 
        if ($_obfuscated_0D25332B30061228282B19183825362419353E221A2B01_) { 
            $_obfuscated_3E3313371A400E070701_ = "" . "AND nasipaddress = '" . $_obfuscated_0D25332B30061228282B19183825362419353E221A2B01_ . "'"; 
        } 
        if ($_obfuscated_1C400F5B1131350E2A082E30121410333711_) { 
            $_obfuscated_0D0E362D0E3F3B0D30110D33381C031F27233C0C1F2E32_ = "" . "AND _apid = '" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_ . "'"; 
        } 
        $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = rows_per_page; 
        switch ($_obfuscated_1B283C32_) { 
            case "day": 
                if ($from == "" || $from < 0) { 
                    $from = 0; 
                } 
                $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = rows_per_page; 
                $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT SQL_CALC_FOUND_ROWS
      		date,
      		SUM(allbytesdl) - COALESCE(SUM(specbytesdl), 0),
      	 	SUM(allbytesul) - COALESCE(SUM(specbytesul), 0),
      	 	SUM(alltime) - COALESCE(SUM(spectime), 0)
		FROM (
		  SELECT LEFT(radacct.acctstarttime, 10) AS date,
		  acctoutputoctets AS allbytesdl, SUM(dlbytes) AS specbytesdl,
		  acctinputoctets AS allbytesul, SUM(ulbytes) AS specbytesul,
		  radacct.acctsessiontime AS alltime, SUM(rm_radacct.acctsessiontime) AS spectime
		  FROM radacct
		  LEFT JOIN rm_radacct ON rm_radacct.radacctid = radacct.radacctid
		  WHERE LEFT(radacct.acctstarttime, 7) LIKE '" . $_obfuscated_3034402311_ . "%' AND radacct.username LIKE '" . $username . "' AND
      		  FramedIPAddress LIKE '" . $_obfuscated_11_ . "' AND CallingStationId LIKE '" . $stationid . "'
      		  " . $_obfuscated_3E3313371A400E070701_ . "
      		  " . $_obfuscated_0D0E362D0E3F3B0D30110D33381C031F27233C0C1F2E32_ . "
		  GROUP BY radacct.radacctid
		  ) AS tmp
		GROUP BY date
		LIMIT " . $from . ", " . $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ . "
      	       "; 
                $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("SELECT FOUND_ROWS()") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $row = mysql_fetch_array($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
                $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ = $row[0]; 
                $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                while ($row = mysql_fetch_array($res)) { 
                    $_obfuscated_37330E3B2E083834013E31073B170A0C01_ = $row[0]; 
                    $_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_ = $row[1]; 
                    $_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_ = $row[2]; 
                    $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_ = $row[3]; 
                    if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_ && $username != "%") { 
                        $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = "<a href=\"admin.php?cont=edit_user&username=" . $username . "\">" . $username . "</a>"; 
                    } else { 
                        $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = $username; 
                    } 
                    if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
                        $_obfuscated_0D280718042F3F0A0A32223435030C40160A1B112F3D11_ = "<a href=\"admin.php?cont=detailed_traffic_report&username=" . $username . "&fromdate=" . $row[0] . "&framedip=" . $_obfuscated_11_ . "&stationid=" . $stationid . "&nasid=" . $nasid . "&apid=" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_ . "\">" . $_obfuscated_37330E3B2E083834013E31073B170A0C01_ . "</a>"; 
                        $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ = "admin.php?cont=traffic_report&listmode=day"; 
                    } else { 
                        $_obfuscated_0D280718042F3F0A0A32223435030C40160A1B112F3D11_ = "<a href=\"user.php?cont=detailed_traffic_report&username=" . $username . "&fromdate=" . $row[0] . "\">" . $_obfuscated_37330E3B2E083834013E31073B170A0C01_ . "</a>"; 
                        $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ = "user.php?cont=traffic_report&listmode=day"; 
                    } 
                    $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("normal"); 
                    $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_); 
                    $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array($_obfuscated_0D280718042F3F0A0A32223435030C40160A1B112F3D11_, "", "", ""), array($_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_, "", "", ""), array(_obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_ + $_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_, traffic_format_auto), "right", "", "")); 
                    if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor0) { 
                        $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor1; 
                    } else { 
                        if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor1) { 
                            $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                        } 
                    } 
                } 
                $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_ = _obfuscated_0D0E06262D031728271222243B393C3819300725120A01_($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_, $from, rows_per_page, $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ . "&username=" . $username . "&fromdate=" . $_obfuscated_3034402311_ . "&framedip=" . $_obfuscated_11_ . "&stationid=" . $stationid . "&nasid=" . $nasid . "&apid=" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{QUICKJUMP}", $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "month": 
                if ($from == "" || $from < 0) { 
                    $from = 0; 
                } 
                $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = rows_per_page; 
                $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT SQL_CALC_FOUND_ROWS
      		date,
      		SUM(allbytesdl) - COALESCE(SUM(specbytesdl), 0),
      	 	SUM(allbytesul) - COALESCE(SUM(specbytesul), 0),
      	 	SUM(alltime) - COALESCE(SUM(spectime), 0)
		FROM (
		  SELECT LEFT(radacct.acctstarttime, 7) AS date,
		  acctoutputoctets AS allbytesdl, SUM(dlbytes) AS specbytesdl,
		  acctinputoctets AS allbytesul, SUM(ulbytes) AS specbytesul,
		  radacct.acctsessiontime AS alltime, SUM(rm_radacct.acctsessiontime) AS spectime
		  FROM radacct
		  LEFT JOIN rm_radacct ON rm_radacct.radacctid = radacct.radacctid
		  WHERE LEFT(radacct.acctstarttime, 4) LIKE '" . $_obfuscated_3034402311_ . "%' AND radacct.username LIKE '" . $username . "' AND
      		  FramedIPAddress LIKE '" . $_obfuscated_11_ . "' AND CallingStationId LIKE '" . $stationid . "'
      		  " . $_obfuscated_3E3313371A400E070701_ . "
      		  " . $_obfuscated_0D0E362D0E3F3B0D30110D33381C031F27233C0C1F2E32_ . "
		  GROUP BY radacct.radacctid
		  ) AS tmp
		GROUP BY date
		LIMIT " . $from . ", " . $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ . "
      	       "; 
                $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("SELECT FOUND_ROWS()") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $row = mysql_fetch_array($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
                $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ = $row[0]; 
                $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                while ($row = mysql_fetch_array($res)) { 
                    $_obfuscated_37330E3B2E083834013E31073B170A0C01_ = $row[0]; 
                    $_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_ = $row[1]; 
                    $_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_ = $row[2]; 
                    $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_ = $row[3]; 
                    if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_ && $username != "%") { 
                        $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = "<a href=\"admin.php?cont=edit_user&username=" . $username . "\">" . $username . "</a>"; 
                    } else { 
                        $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = $username; 
                    } 
                    if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
                        $_obfuscated_0D280718042F3F0A0A32223435030C40160A1B112F3D11_ = "<a href=\"admin.php?cont=traffic_report&listmode=day&username=" . $username . "&fromdate=" . $row[0] . "&framedip=" . $_obfuscated_11_ . "&stationid=" . $stationid . "&nasid=" . $nasid . "&apid=" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_ . "\">" . $_obfuscated_37330E3B2E083834013E31073B170A0C01_ . "</a>"; 
                        $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ = "admin.php?cont=traffic_report&listmode=month"; 
                    } else { 
                        $_obfuscated_0D280718042F3F0A0A32223435030C40160A1B112F3D11_ = "<a href=\"user.php?cont=traffic_report&listmode=day&username=" . $username . "&fromdate=" . $row[0] . "\">" . $_obfuscated_37330E3B2E083834013E31073B170A0C01_ . "</a>"; 
                        $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ = "user.php?cont=traffic_report&listmode=month"; 
                    } 
                    $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("normal"); 
                    $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_); 
                    $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array($_obfuscated_0D280718042F3F0A0A32223435030C40160A1B112F3D11_, "", "", ""), array($_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_, "", "", ""), array(_obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_ + $_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_, traffic_format_auto), "right", "", "")); 
                    if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor0) { 
                        $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor1; 
                    } else { 
                        if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor1) { 
                            $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                        } 
                    } 
                } 
                $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_ = _obfuscated_0D0E06262D031728271222243B393C3819300725120A01_($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_, $from, rows_per_page, $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ . "&username=" . $username . "&fromdate=" . $_obfuscated_3034402311_ . "&framedip=" . $_obfuscated_11_ . "&stationid=" . $stationid . "&nasid=" . $nasid . "&apid=" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{QUICKJUMP}", $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
                break; 
            case "year": 
                if ($from == "" || $from < 0) { 
                    $from = 0; 
                } 
                $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = rows_per_page; 
                $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT SQL_CALC_FOUND_ROWS
      		date,
      		SUM(allbytesdl) - COALESCE(SUM(specbytesdl), 0),
      	 	SUM(allbytesul) - COALESCE(SUM(specbytesul), 0),
      	 	SUM(alltime) - COALESCE(SUM(spectime), 0)
		FROM (
		  SELECT LEFT(radacct.acctstarttime, 4) AS date,
		  acctoutputoctets AS allbytesdl, SUM(dlbytes) AS specbytesdl,
		  acctinputoctets AS allbytesul, SUM(ulbytes) AS specbytesul,
		  radacct.acctsessiontime AS alltime, SUM(rm_radacct.acctsessiontime) AS spectime
		  FROM radacct
		  LEFT JOIN rm_radacct ON rm_radacct.radacctid = radacct.radacctid
		  WHERE radacct.username LIKE '" . $username . "' AND
      		  FramedIPAddress LIKE '" . $_obfuscated_11_ . "' AND CallingStationId LIKE '" . $stationid . "'
      		  " . $_obfuscated_3E3313371A400E070701_ . "
      		  " . $_obfuscated_0D0E362D0E3F3B0D30110D33381C031F27233C0C1F2E32_ . "
		  GROUP BY radacct.radacctid
		  ) AS tmp
		GROUP BY date
		LIMIT " . $from . ", " . $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ . "
      	       "; 
                $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("SELECT FOUND_ROWS()") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
                $row = mysql_fetch_array($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
                $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ = $row[0]; 
                $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                while ($row = mysql_fetch_array($res)) { 
                    $_obfuscated_37330E3B2E083834013E31073B170A0C01_ = $row[0]; 
                    $_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_ = $row[1]; 
                    $_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_ = $row[2]; 
                    $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_ = $row[3]; 
                    if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_ && $username != "%") { 
                        $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = "<a href=\"admin.php?cont=edit_user&username=" . $username . "\">" . $username . "</a>"; 
                    } else { 
                        $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = $username; 
                    } 
                    if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
                        $_obfuscated_0D280718042F3F0A0A32223435030C40160A1B112F3D11_ = "<a href=\"admin.php?cont=traffic_report&listmode=month&username=" . $username . "&fromdate=" . $row[0] . "&framedip=" . $_obfuscated_11_ . "&stationid=" . $stationid . "&nasid=" . $nasid . "&apid=" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_ . "\">" . $_obfuscated_37330E3B2E083834013E31073B170A0C01_ . "</a>"; 
                        $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ = "admin.php?cont=traffic_report&listmode=year"; 
                    } else { 
                        $_obfuscated_0D280718042F3F0A0A32223435030C40160A1B112F3D11_ = "<a href=\"user.php?cont=traffic_report&listmode=month&username=" . $username . "&fromdate=" . $row[0] . "\">" . $_obfuscated_37330E3B2E083834013E31073B170A0C01_ . "</a>"; 
                        $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ = "user.php?cont=traffic_report&listmode=year"; 
                    } 
                    $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("normal"); 
                    $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_); 
                    $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array($_obfuscated_0D280718042F3F0A0A32223435030C40160A1B112F3D11_, "", "", ""), array($_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_, "", "", ""), array(_obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_ + $_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_, traffic_format_auto), "right", "", "")); 
                    if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor0) { 
                        $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor1; 
                    } else { 
                        if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor1) { 
                            $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                        } 
                    } 
                } 
                $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_ = _obfuscated_0D0E06262D031728271222243B393C3819300725120A01_($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_, $from, rows_per_page, $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ . "&username=" . $username . "&fromdate=" . $_obfuscated_3034402311_ . "&framedip=" . $_obfuscated_11_ . "&stationid=" . $stationid . "&nasid=" . $nasid . "&apid=" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_); 
                $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{QUICKJUMP}", $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
            $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ = "admin.php?cont=traffic_report&listmode=year"; 
        } else { 
            $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ = "user.php?cont=traffic_report&listmode=year"; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATS}", $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->GetTable(), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D1D171E17323E1D1D132D0823381328010A0A3C050B22_($from, $username, $framedip, $stationid, $nasid, $apid, $fromdate, $todate) 
{ 
    if ($_SESSION["AUTH_MANAGER"] != "") { 
        $_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_ = true; 
    } else { 
        $_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_ = false; 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = detailedtraffic_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_ = new CTable("100%"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("tb-header"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddHead(array("#", "", "", "", table_col_width), array("{DETTRAFFREP1}", "", "", "", ""), array("{DETTRAFFREP2}", "", "", "", ""), array("{DETTRAFFREP3}", "", "", "", ""), array("{DETTRAFFREP4}", "", "", "", ""), array("{DETTRAFFREP14}", "", "", "", ""), array("{DETTRAFFREP5}", "", "", "", ""), array("{DETTRAFFREP15}", "", "", "", ""), array("{DETTRAFFREP6}", "", "", "", ""), array("{DETTRAFFREP16}", "", "", "", ""), array("{DETTRAFFREP11}", "", "", "", ""), array("{DETTRAFFREP17}", "", "", "", ""), array("{DETTRAFFREP7}", "", "", "", ""), array("{DETTRAFFREP8}", "", "", "", ""), array("{DETTRAFFREP12}", "", "", "", ""), array("{DETTRAFFREP18}", "", "", "", "")); 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        if ($todate == "" || $_obfuscated_3034402311_ == $todate) { 
            $res = mysql_query("" . "SELECT DATE_ADD('" . $_obfuscated_3034402311_ . "', INTERVAL 1 DAY)
    		       ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            $row = mysql_fetch_array($res); 
            $todate = $row[0]; 
        } 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("" . "SELECT nasname
  		      FROM nas
  		      WHERE id = '" . $nasid . "'
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D25332B30061228282B19183825362419353E221A2B01_ = $row[nasname]; 
        if ($_obfuscated_0D25332B30061228282B19183825362419353E221A2B01_) { 
            $_obfuscated_3E3313371A400E070701_ = "" . "AND nasipaddress = '" . $_obfuscated_0D25332B30061228282B19183825362419353E221A2B01_ . "'"; 
        } 
        if ($_obfuscated_1C400F5B1131350E2A082E30121410333711_) { 
            $_obfuscated_0D0E362D0E3F3B0D30110D33381C031F27233C0C1F2E32_ = "" . "AND _apid = '" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_ . "'"; 
        } 
        if ($username == "") { 
            $username = "%"; 
        } 
        if ($_obfuscated_11_ == "") { 
            $_obfuscated_11_ = "%"; 
        } 
        if ($stationid == "") { 
            $stationid = "%"; 
        } 
        if ($_obfuscated_3034402311_ == "") { 
            $_obfuscated_3034402311_ = "0000-00-00"; 
        } 
        if ($todate == "") { 
            $todate = "2100-12-31"; 
        } 
        $_obfuscated_0D1033112838265B0A240937142B043F280A2422321601_ = $username; 
        $_obfuscated_0D212601160F1D2C1411323F05390C1C1C250803251A22_ = $_obfuscated_11_; 
        $_obfuscated_0D181507102A323530012D1C0B1C1D3505250E30300C32_ = $stationid; 
        $_obfuscated_174036332B291E1D1A023F08233B2B0A3D2232_ = $nasid; 
        $_obfuscated_18370622_ = $_obfuscated_1C400F5B1131350E2A082E30121410333711_; 
        if ($from == "" || $from < 0) { 
            $from = 0; 
        } 
        $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ = rows_per_page; 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT SQL_CALC_FOUND_ROWS radacct.acctstarttime, radacct.acctstoptime, radacct.acctsessiontime,
	    radacct.acctoutputoctets, radacct.acctinputoctets, radacct.username, radacct.framedipaddress,
	    radacct.callingstationid, nas.id, nas.shortname,
	    SUM(rm_radacct.dlbytes), SUM(rm_radacct.ulbytes), SUM(rm_radacct.acctsessiontime), _apid, rm_ap.name
	    FROM radacct
	    LEFT JOIN nas ON nas.nasname = radacct.nasipaddress
	    LEFT JOIN rm_ap ON rm_ap.id = radacct._apid
	    LEFT JOIN rm_radacct ON radacct.radacctid = rm_radacct.radacctid
	    WHERE (radacct.username LIKE '" . $username . "' AND radacct.acctstarttime >= '" . $_obfuscated_3034402311_ . "' AND
	    radacct.acctstarttime <= '" . $todate . "' AND radacct.framedipaddress LIKE '" . $_obfuscated_11_ . "' AND
	    radacct.callingstationid LIKE '" . $stationid . "'
	    " . $_obfuscated_3E3313371A400E070701_ . "
	    " . $_obfuscated_0D0E362D0E3F3B0D30110D33381C031F27233C0C1F2E32_ . "
	    )
	    GROUP BY radacct.radacctid
	    ORDER BY radacct.acctstarttime
	    LIMIT " . $from . ", " . $_obfuscated_0D21040F262F0E2D3B372B2D0A121A11371D2817271F32_ . "
	   "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_ = mysql_query("SELECT FOUND_ROWS()") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($_obfuscated_0D0A3F0117381715080B263825090B3514403010222C32_); 
        $_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_ = $row[0]; 
        $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ = $from + 1; 
        $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
        while ($row = mysql_fetch_array($res)) { 
            $_obfuscated_37330E3B2E083834013E31073B170A0C01_ = $row[0]; 
            $_obfuscated_0D281812042D0226380623082934091B270F0508380E01_ = $row[1]; 
            $_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_ = $row[2]; 
            $_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_ = $row[3]; 
            $_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_ = $row[4]; 
            $username = $row[5]; 
            $_obfuscated_2619031701_ = $row[6]; 
            $_obfuscated_0D0A2D2F0D05113613392203042A0934032E3E3F020D22_ = $row[7]; 
            $nasid = $row[8]; 
            $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ = $row[9]; 
            $_obfuscated_0D1304270B222D3B3B0D3D1113053F022B0D2A5B120B22_ = $row[10]; 
            $_obfuscated_1D0428393236041332_ = $row[11]; 
            $_obfuscated_0D30291816212B0B0C2E143B3D242C2B072D15350D2811_ = $row[12]; 
            $_obfuscated_1C400F5B1131350E2A082E30121410333711_ = $row[13]; 
            $_obfuscated_0D030914372233332A2D150D2102370D2C380D39282C01_ = $row[14]; 
            $_obfuscated_0D13041F0E2A0F3508323C1B38241A1F12230626092532_ = $_obfuscated_0D335B021D3F0B3F1B2B1B093305312402173F2C180932_; 
            if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
                $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = "<a href=\"admin.php?cont=edit_user&username=" . $username . "\">" . $username . "</a>"; 
                if ($_obfuscated_0617153D3617173D032E37232D223D0B320C01_ != "") { 
                    $_obfuscated_0D2C3D1B2A071D100A0B5B3111181D1A05112B02152132_ = "" . "<a href='admin.php?cont=edit_nas&id=" . $nasid . "'>" . $_obfuscated_0617153D3617173D032E37232D223D0B320C01_ . "</a>"; 
                } else { 
                    $_obfuscated_0D2C3D1B2A071D100A0B5B3111181D1A05112B02152132_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
                } 
            } else { 
                $_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_ = $username; 
                if ($_obfuscated_0617153D3617173D032E37232D223D0B320C01_ != "") { 
                    $_obfuscated_0D2C3D1B2A071D100A0B5B3111181D1A05112B02152132_ = $_obfuscated_0617153D3617173D032E37232D223D0B320C01_; 
                } else { 
                    $_obfuscated_0D2C3D1B2A071D100A0B5B3111181D1A05112B02152132_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
                } 
            } 
            if ($_obfuscated_0D281812042D0226380623082934091B270F0508380E01_ == "") { 
                $_obfuscated_0D150C372E311F25093F3B2F310627292C1801161E1F22_ = ""; 
                $_obfuscated_0D2B3430032D3636191F3D31360A143B39103118372932_ = col_sess_active; 
            } else { 
                $_obfuscated_0D150C372E311F25093F3B2F310627292C1801161E1F22_ = $_obfuscated_0D281812042D0226380623082934091B270F0508380E01_; 
                $_obfuscated_0D2B3430032D3636191F3D31360A143B39103118372932_ = $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_; 
            } 
            if (0 < $_obfuscated_0D1304270B222D3B3B0D3D1113053F022B0D2A5B120B22_) { 
                $_obfuscated_0D18170522371F2739243B182223295B2E2E2B181E1201_ = col_specperiod; 
            } else { 
                $_obfuscated_0D18170522371F2739243B182223295B2E2E2B181E1201_ = $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_; 
            } 
            if (0 < $_obfuscated_1D0428393236041332_) { 
                $_obfuscated_12273D1831142E3C395B2B32_ = col_specperiod; 
            } else { 
                $_obfuscated_12273D1831142E3C395B2B32_ = $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_; 
            } 
            if (0 < $_obfuscated_0D1304270B222D3B3B0D3D1113053F022B0D2A5B120B22_ || 0 < $_obfuscated_1D0428393236041332_) { 
                $_obfuscated_1601_ = col_specperiod; 
            } else { 
                $_obfuscated_1601_ = $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_; 
            } 
            if (0 < $_obfuscated_0D30291816212B0B0C2E143B3D242C2B072D15350D2811_) { 
                $_obfuscated_0D3113091F4003282A061B3F2412032B10063D39381B32_ = col_specperiod; 
            } else { 
                $_obfuscated_0D3113091F4003282A061B3F2412032B10063D39381B32_ = $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_; 
            } 
            if ($_obfuscated_0D030914372233332A2D150D2102370D2C380D39282C01_) { 
                $_obfuscated_0D270E1D32012B1B2103051A0F031E0B27390536383022_ = "" . "<a href='admin.php?cont=edit_ap&id=" . $_obfuscated_1C400F5B1131350E2A082E30121410333711_ . "'>" . $_obfuscated_0D030914372233332A2D150D2102370D2C380D39282C01_ . "</a>"; 
            } else { 
                $_obfuscated_0D270E1D32012B1B2103051A0F031E0B27390536383022_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            } 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("normal"); 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_); 
            $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array($_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_ . ".", "", "", $_obfuscated_0D2B3430032D3636191F3D31360A143B39103118372932_), array($_obfuscated_0D323C0901393E25320730340B5B1D2C363D1513092801_, "left", "", ""), array($_obfuscated_37330E3B2E083834013E31073B170A0C01_, "right", "", ""), array($_obfuscated_0D150C372E311F25093F3B2F310627292C1801161E1F22_, "right", "", ""), array(_obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_0D153E1B182F0B383401352E402522310C2E3D2B403122_), "right", "", ""), array(_obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_0D30291816212B0B0C2E143B3D242C2B072D15350D2811_), "right", "", $_obfuscated_0D3113091F4003282A061B3F2412032B10063D39381B32_), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D1304270B222D3B3B0D3D1113053F022B0D2A5B120B22_, traffic_format_auto), "right", "", $_obfuscated_0D18170522371F2739243B182223295B2E2E2B181E1201_), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_1D0428393236041332_, traffic_format_auto), "right", "", $_obfuscated_12273D1831142E3C395B2B32_), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D14080933323E3F1407273F1F1F12280921220B222522_ + $_obfuscated_0D27210A37103C3E0B3515303D263E3B3E391306383411_, traffic_format_auto), "right", "", ""), array(_obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D1304270B222D3B3B0D3D1113053F022B0D2A5B120B22_ + $_obfuscated_1D0428393236041332_, traffic_format_auto), "right", "", $_obfuscated_1601_), array($_obfuscated_2619031701_, "", "", ""), array($_obfuscated_0D0A2D2F0D05113613392203042A0934032E3E3F020D22_, "", "", ""), array($_obfuscated_0D2C3D1B2A071D100A0B5B3111181D1A05112B02152132_, "", "", ""), array($_obfuscated_0D270E1D32012B1B2103051A0F031E0B27390536383022_, "", "", "")); 
            $_obfuscated_0D37390B24011B390B072F221D3234353F291606170C01_++; 
            if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor0) { 
                $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor1; 
            } else { 
                if ($_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ == col_bgcolor1) { 
                    $_obfuscated_0D13301C0B26161E2B092F3540253F32293431373C1822_ = col_bgcolor0; 
                } 
            } 
        } 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT
            SUM(allbytesdl) - COALESCE(SUM(specbytesdl), 0),
  	    SUM(allbytesul) - COALESCE(SUM(specbytesul), 0),
  	    SUM(alltime) - COALESCE(SUM(spectime), 0)
            FROM (
              SELECT acctoutputoctets AS allbytesdl, SUM(dlbytes) AS specbytesdl,
  	      acctinputoctets AS allbytesul, SUM(ulbytes) AS specbytesul,
              radacct.acctsessiontime AS alltime, SUM(rm_radacct.acctsessiontime) AS spectime
              FROM radacct
              LEFT JOIN rm_radacct ON rm_radacct.radacctid = radacct.radacctid
	      WHERE radacct.username LIKE '" . $_obfuscated_0D1033112838265B0A240937142B043F280A2422321601_ . "' AND radacct.acctstarttime > '" . $_obfuscated_3034402311_ . "' AND
  	      radacct.acctstarttime < '" . $todate . "' AND radacct.framedipaddress LIKE '" . $_obfuscated_11_ . "' AND
  	      radacct.callingstationid LIKE '" . $stationid . "'
       	      " . $_obfuscated_3E3313371A400E070701_ . "
  	      GROUP BY radacct.radacctid
            ) AS tmp
  	   "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D3D2A09210714035B2C05361F04263B31181A24090511_ = $row[0]; 
        $_obfuscated_0D265B0127402B1224082B0F0A2929271D29131F212501_ = $row[1]; 
        $_obfuscated_012F0F3C0E280D3C092D3C3C1B390601230301_ = $row[2]; 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowStyle("normal"); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->SetRowBgColor(col_bgcolor); 
        $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->AddRow(array("", "", "", ""), array("", "", "", ""), array("", "", "", ""), array("<b>{DETTRAFFREP10}:</b>", "right", "", ""), array("<b>" . _obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_012F0F3C0E280D3C092D3C3C1B390601230301_) . "</b>", "right", "", ""), array("", "", "", ""), array("<b>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D3D2A09210714035B2C05361F04263B31181A24090511_, traffic_format_auto) . "</b>", "right", "", ""), array("", "", "", ""), array("<b>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D265B0127402B1224082B0F0A2929271D29131F212501_, traffic_format_auto) . "</b>", "right", "", ""), array("", "", "", ""), array("<b>" . _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D3D2A09210714035B2C05361F04263B31181A24090511_ + $_obfuscated_0D265B0127402B1224082B0F0A2929271D29131F212501_, traffic_format_auto) . "</b>", "right", "", "")); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{STATS}", $_obfuscated_0D0925150D3621083604280E2A38283D13153728142311_->GetTable(), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_ACTIVE}", col_sess_active, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COL_SPECPER}", col_specperiod, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($_obfuscated_0D2714053F0A0C0236192126343E263608070902042E01_) { 
            $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ = "admin.php?cont=detailed_traffic_report"; 
        } else { 
            $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ = "user.php?cont=detailed_traffic_report"; 
        } 
        $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_ = _obfuscated_0D0E06262D031728271222243B393C3819300725120A01_($_obfuscated_0D33130C1E0806331E2B2617083D2D0F11163D0E0E3B32_, $from, rows_per_page, $_obfuscated_0D26303D2F1B180922250F2418331C1212021927121411_ . "&username=" . $_obfuscated_0D1033112838265B0A240937142B043F280A2422321601_ . "&fromdate=" . $_obfuscated_3034402311_ . "&todate=" . $todate . "&framedip=" . $_obfuscated_0D212601160F1D2C1411323F05390C1C1C250803251A22_ . "&stationid=" . $_obfuscated_0D181507102A323530012D1C0B1C1D3505250E30300C32_ . "&nasid=" . $_obfuscated_174036332B291E1D1A023F08233B2B0A3D2232_ . "&apid=" . $_obfuscated_18370622_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{QUICKJUMP}", $_obfuscated_0D0E06262D031728271222243B393C3819300725120A01_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D13083408150C1109270F122F3423363C1E2F0F091A32_($username, $price, $vat, $amount, $credaddmode, $paymode, $remark, $comment, $lock, $error) 
{ 
    global $timeunitlist; 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_addcredits")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = addcredits_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT rm_services.srvname, rm_services.unitprice, rm_services.unitpricetax, rm_services.unitpriceadd, 
  	    rm_services.unitpriceaddtax, rm_services.trafficunitdl, rm_services.trafficunitul, rm_services.trafficunitcomb,
  	    rm_services.timeunitexp, rm_services.timeunitonline, rm_services.timebaseexp, rm_services.timebaseonline,
  	    rm_services.monthly, rm_services.limitdl, rm_services.limitul, rm_services.limitexpiration, rm_services.enaddcredits,
  	    rm_users.expiration
  	    FROM rm_services, rm_users
  	    WHERE rm_services.srvid = rm_users.srvid AND rm_users.username = '" . $username . "'
  	   "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $srvname = $row[0]; 
        $unitprice = $row[1]; 
        $_obfuscated_0D1B1B3E23102940303B32292B1A361417370A19403E11_ = $row[2]; 
        $_obfuscated_15140722321C1B1C0419360307080A05020722_ = $row[3]; 
        $_obfuscated_0D25341E3B3C1631160D102F3938252206112A3F342701_ = $row[4]; 
        $trafficunitdl = $row[5]; 
        $trafficunitul = $row[6]; 
        $trafficunitcomb = $row[7]; 
        $timeunitexp = $row[8]; 
        $timeunitonline = $row[9]; 
        $_obfuscated_1C131E321C152D0F32_ = $row[10]; 
        $_obfuscated_0322_ = $row[11]; 
        $_obfuscated_40310521113C0831192622_ = $row[12]; 
        $limitdl = $row[13]; 
        $limitul = $row[14]; 
        $_obfuscated_0D2422023702331D252D383027232E0F060F2714183D11_ = $row[15]; 
        $enaddcredits = $row[16]; 
        $expiration = $row[17]; 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
            $price = 0; 
            $amount = 0; 
            $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_ = 0; 
            $credaddmode = 0; 
            $paymode = 0; 
            $price = 0; 
            $vat = 0; 
            $comment = ""; 
            $_obfuscated_0D2131352F19133938360507072D36351C13401C270532_ = $unitprice; 
            $_obfuscated_0E3C1D3007341A05042C22_ = $_obfuscated_0D1B1B3E23102940303B32292B1A361417370A19403E11_; 
            $_obfuscated_1F25260C03343B1F1A4038360B311E3911_ = $_obfuscated_15140722321C1B1C0419360307080A05020722_; 
            $_obfuscated_0D402515023C121E231E351C1727113F0A04400D331F32_ = $_obfuscated_0D25341E3B3C1631160D102F3938252206112A3F342701_; 
        } else { 
            if ($credaddmode == credaddmode_normal) { 
                $_obfuscated_0D2131352F19133938360507072D36351C13401C270532_ = $price; 
                $_obfuscated_0E3C1D3007341A05042C22_ = $vat; 
                $_obfuscated_1F25260C03343B1F1A4038360B311E3911_ = $_obfuscated_15140722321C1B1C0419360307080A05020722_; 
                $_obfuscated_0D402515023C121E231E351C1727113F0A04400D331F32_ = $_obfuscated_0D25341E3B3C1631160D102F3938252206112A3F342701_; 
            } else { 
                $_obfuscated_0D2131352F19133938360507072D36351C13401C270532_ = $unitprice; 
                $_obfuscated_0E3C1D3007341A05042C22_ = $_obfuscated_0D1B1B3E23102940303B32292B1A361417370A19403E11_; 
                $_obfuscated_1F25260C03343B1F1A4038360B311E3911_ = $price; 
                $_obfuscated_0D402515023C121E231E351C1727113F0A04400D331F32_ = $vat; 
            } 
        } 
        if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_negbalance")) { 
            $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
            $res = mysql_query("" . "SELECT balance
    		      FROM rm_managers
    		      WHERE managername = '" . $_obfuscated_22_ . "'
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
            $row = mysql_fetch_array($res); 
            $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ = $row[0]; 
            $_obfuscated_0D3F2504232E3024071840010F302B1836302B28303601_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_availbalance") . ": " . $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ . " " . $GLOBALS["_currency"]; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDCREDITS}", $_obfuscated_081A391728362F3D09250A5B053E0A22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ADDCREDITSSTR}", $_obfuscated_0D0E160D24051124042835061C3D0C164038363D250C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USERNAME}", $username, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVNAME}", $srvname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITDL}", $trafficunitdl, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITUL}", $trafficunitul, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITCOMB}", $trafficunitcomb, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFUNITDL}", $trafficunitdl, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFUNITUL}", $trafficunitul, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFUNITCOMB}", $trafficunitcomb, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFUNITADD}", 1, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEUNITEXP}", $timeunitexp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEUNITONLINE}", $timeunitonline, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEBASEEXP}", $timeunitlist[$_obfuscated_1C131E321C152D0F32_], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEBASEONLINE}", $timeunitlist[$_obfuscated_0322_], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CURRENCY}", $GLOBALS["_currency"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{VATPERCENT}", $GLOBALS["_vatpercent"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICENORMAL}", $_obfuscated_0D2131352F19133938360507072D36351C13401C270532_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICENORMALVAT}", $_obfuscated_0E3C1D3007341A05042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICEADD}", $_obfuscated_1F25260C03343B1F1A4038360B311E3911_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICEADDVAT}", $_obfuscated_0D402515023C121E231E351C1727113F0A04400D331F32_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{AMOUNT}", $amount, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TOTALPRICE}", $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENT}", $comment, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{REMARK}", $remark, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENT}", $comment, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{BALANCE}", $_obfuscated_0D3F2504232E3024071840010F302B1836302B28303601_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if ($credaddmode == credaddmode_normal) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKNORMAL}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKADDIT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKNORMAL}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKADDIT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($paymode == paymode_cash) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SELECTEDCASH}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SELECTEDTRANSFER}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SELECTEDCASH}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SELECTEDTRANSFER}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if ($lock == 0) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKLOCKUNIT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKLOCKAMOUNT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKLOCKUNIT}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CHKLOCKAMOUNT}", "checked", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        if (_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_allowdiscount")) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{READONLY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INPUTCLASS}", "normal", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{READONLY}", "readonly=\"\"", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INPUTCLASS}", "inputreadonly", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D1F043529082421133C2108081F1210220B162A132432_($username, $price, $vat, $amount, $expiration, $traffic, $time, $comment, $paymode, $credaddmode, $remark, $lock, $error) 
{ 
    global $timeunitlist; 
    global $paymodelist; 
    $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_addcredits")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    if (!is_numeric($price) || !is_numeric($vat) || !is_numeric($amount)) { 
        return _obfuscated_0D13083408150C1109270F122F3423363C1E2F0F091A32_($username, $price, $vat, $amount, $credaddmode, $paymode, $remark, $comment, $lock, _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ivalid_value")); 
    } 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT perm_enwriteoff
  		      FROM rm_managers
      		      WHERE managername = '" . $_obfuscated_22_ . "'
      		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_0D0F1126171D371E311E243D332C3913370C3B0B3B2D22_ = $row[0]; 
    if (!$_obfuscated_0D0F1126171D371E311E243D332C3913370C3B0B3B2D22_ && $amount < 0) { 
        return _obfuscated_0D13083408150C1109270F122F3423363C1E2F0F091A32_($username, $price, $vat, $amount, $credaddmode, $paymode, $remark, $comment, $lock, _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_ivalid_value")); 
    } 
    $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_ = $amount * ($price + $vat); 
    if (0 < $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_ && !_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_negbalance")) { 
        $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
        $res = mysql_query("" . "SELECT balance
      		          FROM rm_managers
      		          WHERE managername = '" . $_obfuscated_22_ . "'
      		         ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ = $row[0]; 
        if (round($_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_, 2) < round($_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_, 2)) { 
            return _obfuscated_0D13083408150C1109270F122F3423363C1E2F0F091A32_($username, $price, $vat, $amount, $credaddmode, $paymode, $remark, $comment, $lock, _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_add_credits_balance")); 
        } 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = confirmaddcredits_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $res = mysql_query("" . "SELECT srvname, rm_services.srvid, trafficunitdl, trafficunitul, trafficunitcomb, trafficaddmode,
  		      timeunitexp, timeunitonline, timebaseexp, timebaseonline, timeaddmodeexp, timeaddmodeonline,
  		      monthly, minamount, enaddcredits, expiration, limitul, limitdl, limitcomb, limitexpiration, addamount
  		      FROM rm_services, rm_users
  		      WHERE rm_services.srvid = rm_users.srvid AND rm_users.username = '" . $username . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $srvname = $row[0]; 
        $srvid = $row[1]; 
        $trafficunitdl = $row[2]; 
        $trafficunitul = $row[3]; 
        $trafficunitcomb = $row[4]; 
        $trafficaddmode = $row[5]; 
        $timeunitexp = $row[6]; 
        $timeunitonline = $row[7]; 
        $_obfuscated_1C131E321C152D0F32_ = $row[8]; 
        $_obfuscated_0322_ = $row[9]; 
        $timeaddmodeexp = $row[10]; 
        $timeaddmodeonline = $row[11]; 
        $_obfuscated_40310521113C0831192622_ = $row[12]; 
        $_obfuscated_102D3B0C0A3E142A0E240D063C2F2C032701_ = $row[13]; 
        $enaddcredits = $row[14]; 
        $expiration = $row[15]; 
        $limitul = $row[16]; 
        $limitdl = $row[17]; 
        $_obfuscated_0D053917390E071D2D133B223F13402817353B211B0F22_ = $row[18]; 
        $limitexp = $row[19]; 
        $addamount = $row[20]; 
        if (0 < amount && $_obfuscated_40310521113C0831192622_ && $limitexp) { 
            if ($credaddmode == credaddmode_additional) { 
                if (substr($expiration, 0, 10) <= date("Y-m-d")) { 
                    return _obfuscated_0D13083408150C1109270F122F3423363C1E2F0F091A32_($username, $price, $vat, $amount, $credaddmode, $paymode, $remark, $comment, $lock, _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_traffic_add_additional")); 
                } 
            } else { 
                if ($limitul || $limitdl || $_obfuscated_0D053917390E071D2D133B223F13402817353B211B0F22_) { 
                    if (date("Y-m-d") < substr($expiration, 0, 10)) { 
                        return _obfuscated_0D13083408150C1109270F122F3423363C1E2F0F091A32_($username, $price, $vat, $amount, $credaddmode, $paymode, $remark, $comment, $lock, _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_buy_services_month_active")); 
                    } 
                    if (!($amount == 1 || $amount == 0 - 1)) { 
                        return _obfuscated_0D13083408150C1109270F122F3423363C1E2F0F091A32_($username, $price, $vat, $amount, $credaddmode, $paymode, $remark, $comment, $lock, _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_traffic_add_monthly")); 
                    } 
                } else { 
                    if ($timeaddmodeexp == timeaddmode_reset && date("Y-m-d") < substr($expiration, 0, 10)) { 
                        return _obfuscated_0D13083408150C1109270F122F3423363C1E2F0F091A32_($username, $price, $vat, $amount, $credaddmode, $paymode, $remark, $comment, $lock, _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_buy_services_month_active")); 
                    } 
                } 
            } 
        } 
        $res = mysql_query("" . "SELECT expiration
  		      FROM rm_users
  		      WHERE username = '" . $username . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $_obfuscated_11103D10313431051A0F07343D22_ = $row[0]; 
        if ($timeaddmodeexp == timeaddmode_prolongfix && $_obfuscated_11103D10313431051A0F07343D22_ < date("Y-m-d")) { 
            $_obfuscated_11103D10313431051A0F07343D22_ = date("Y-m-d"); 
        } 
        $_obfuscated_0D2D123028163F1E37240E37273814371B292B3C090811_ = $amount * $timeunitexp; 
        $_obfuscated_22_ = $amount * $timeunitonline; 
        if ($credaddmode == credaddmode_normal) { 
            _obfuscated_0D02090822263D132818161C38301A3103183631222622_($_obfuscated_1405292A3122_, $_obfuscated_06015B22_, $_obfuscated_11103D10313431051A0F07343D22_, $timeaddmodeexp, $_obfuscated_1C131E321C152D0F32_, $_obfuscated_0D2D123028163F1E37240E37273814371B292B3C090811_, $amount); 
            $_obfuscated_0D0B0523401804221A0818240C033319251501322C3932_ = $trafficunitdl * $amount; 
            $_obfuscated_25052F3C193101_ = $trafficunitul * $amount; 
            $_obfuscated_0D2C220216081E33222C07273F0B293C1A16352E175B22_ = $trafficunitcomb * $amount; 
            if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
                $expiration = $_obfuscated_1405292A3122_; 
            } 
        } else { 
            $_obfuscated_0D0B0523401804221A0818240C033319251501322C3932_ = $amount * $addamount; 
            $_obfuscated_25052F3C193101_ = $amount * $addamount; 
            $_obfuscated_0D2C220216081E33222C07273F0B293C1A16352E175B22_ = $amount * $addamount; 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CREDADDMODE}", $credaddmode, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PAYMODE}", $paymode, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{USERNAME}", $username, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{SRVNAME}", $srvname, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{AMOUNT}", $amount, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITDL}", $trafficunitdl, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITUL}", $trafficunitul, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUNITCOMB}", $trafficunitcomb, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEUNITEXP}", $timeunitexp, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEUNITONLINE}", $timeunitonline, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEBASEEXP}", $timeunitlist[$_obfuscated_1C131E321C152D0F32_], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIMEBASEONLINE}", $timeunitlist[$_obfuscated_0322_], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{CURRENCY}", $GLOBALS["_currency"], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PRICE}", $price, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{VAT}", $vat, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{UNITPRICE}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($price + $vat, true, 6), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TOTALPRICE}", ($price + $vat) * $amount, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TOTALPRICESTR}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_(($price + $vat) * $amount, true, 2), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{EXPIRATION}", substr($expiration, 0, 10), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICDL}", $_obfuscated_0D0B0523401804221A0818240C033319251501322C3932_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICUL}", $_obfuscated_25052F3C193101_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRAFFICCOMB}", $_obfuscated_0D2C220216081E33222C07273F0B293C1A16352E175B22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TIME}", $_obfuscated_22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{DAYS}", $_obfuscated_06015B22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{PAYMODESTR}", $_obfuscated_0D1E1A3E310B3E263D2822_[$paymode], $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{REMARK}", $remark, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{COMMENT}", $comment, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{TRANSID}", _obfuscated_0D2A1C1B081E31232A101E2115043C2A032B362D2E1B22_(), $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        if (_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_allowdiscount")) { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{READONLY}", "", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INPUTCLASS}", "normal", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } else { 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{READONLY}", "readonly=\"\"", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
            $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{INPUTCLASS}", "inputreadonly", $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        } 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D3640142E3C282D230B350A40363631311840371C2932_($username, $expiration, $trafficdl, $trafficul, $trafficcomb, $time, $days, $unitprice, $comment, $transid, $paymode, $amount, $price, $vat, $credaddmode, $remark) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_addcredits")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = creditsadded_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_22_ = $_SESSION["AUTH_MANAGER"]; 
        if (!_obfuscated_0D222D183C3440361E0A1F215C12161A0C180F28081332_($username)) { 
            $_obfuscated_0D0A3D0A1A401F13122E262513370B2818313B1A322E22_ = true; 
        } else { 
            $_obfuscated_0D0A3D0A1A401F13122E262513370B2818313B1A322E22_ = false; 
        } 
        $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_ = $amount * ($price + $vat); 
        if (0 < $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_ && !_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_negbalance") && round(_obfuscated_0D2B0E2E291105082516322F0836373E02140F38051C22_($_obfuscated_22_), 2) < round($_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_, 2)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_add_credits_balance")); 
        } 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("" . "SELECT srvid
  		      FROM rm_users
  		      WHERE username = '" . $username . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $srvid = $row[0]; 
        $id = _obfuscated_0D22092E050B14071C2F3439072B1A1E2C36360C0F3622_($_obfuscated_22_, $username, $srvid, $expiration, $trafficdl, $trafficul, $trafficcomb, $_obfuscated_252725250A22_, $_obfuscated_06015B22_, $comment, $transid, $paymode, $amount, $price, $vat, $credaddmode, $remark); 
        if ($id == 0 - 1) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_invoice_already_submitted")); 
        } 
        if ($GLOBALS["_emailrenew"]) { 
            _obfuscated_0D3C2D0D2610071A155C0E2E030931230D05310A030311_($username); 
        } 
        if ($GLOBALS["_smsrenew"]) { 
            _obfuscated_0D230439301A07290C06240B3D0A023C07133F40401822_($username); 
        } 
        if ($_obfuscated_0D0A3D0A1A401F13122E262513370B2818313B1A322E22_) { 
            _obfuscated_0D2C0F0718152B2314173D213515280236223C24024022_($username); 
        } 
        $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_ = str_replace("{ID}", $id, $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_); 
        return $_obfuscated_0D1130160222160412320816102E3215133D5B3B360B32_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_0D390F3627263527080D012138063D3E3240083B141711_($id, $comment, $paid, $error) 
{ 
    global $paymodelist; 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editinvoice")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = editinvoice_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_2D300E230101_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query("" . "SELECT id, invnum, date, managername, username, bytesdl, bytesul, bytescomb, downlimit,
  		      uplimit, comblimit, time, uptimelimit, days, expiration, service, amount, paymentopt, paymode, price,
  		      tax, balance, gwtransid, fullname, address, city, zip, country, state, comment, paid
  		      FROM rm_invoices
  		      WHERE id = '" . $id . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $row = mysql_fetch_array($res); 
        $id = $row[0]; 
        $_obfuscated_22_ = $row[1]; 
        $_obfuscated_36372E1C5B3D1E11_ = $row[2]; 
        $_obfuscated_22_ = $row[3]; 
        $username = $row[4]; 
        $_obfuscated_12222D243529351B06341E27052401_ = $row[5]; 
        $_obfuscated_0D4006243210362A1405133124150C372908333D260B01_ = $row[6]; 
        $_obfuscated_32_ = $row[7]; 
        $downlimit = $row[8]; 
        $uplimit = $row[9]; 
        $comblimit = $row[10]; 
        $_obfuscated_252725250A22_ = $row[11]; 
        $_obfuscated_053601_ = $row[12]; 
        $_obfuscated_06015B22_ = $row[13]; 
        $expiration = $row[14]; 
        $srvname = $row[15]; 
        $amount = $row[16]; 
        $_obfuscated_24133702362414312F1501_ = $row[17]; 
        $paymode = $row[18]; 
        $price = $row[19]; 
        $vat = $row[20]; 
        $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ = $row[21]; 
        $_obfuscated_04131119270D21100532_ = $row[22]; 
        $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ = $row[23]; 
        $address = $row[24]; 
        $city = $row[25]; 
        $_obfuscated_1535143F362A0426310E302A32_ = $row[26]; 
        $country = $row[27]; 
        $state = $row[28]; 
        if ($_obfuscated_1A2C2E150C113D1B22061E3F042C22_ == "") { 
            $_obfuscated_0D11232E25320A0C33143722081B28343114011E2E2111_ = $row[29]; 
            $_obfuscated_0D172F1427110D1E3E09293B1013171B2A1E061F403D32_ = $row[30]; 
        } else { 
            $_obfuscated_0D11232E25320A0C33143722081B28343114011E2E2111_ = $comment; 
            $_obfuscated_0D172F1427110D1E3E09293B1013171B2A1E061F403D32_ = $paid; 
        } 
        if ($_obfuscated_0D172F1427110D1E3E09293B1013171B2A1E061F403D32_ == "0000-00-00") { 
            $_obfuscated_0D172F1427110D1E3E09293B1013171B2A1E061F403D32_ = ""; 
        } 
        if ($paymode == paymode_transfer) { 
            $_obfuscated_2D300E230101_ = str_replace("{ENREALIZED}", "", $_obfuscated_2D300E230101_); 
        } else { 
            $_obfuscated_2D300E230101_ = str_replace("{ENREALIZED}", "disabled", $_obfuscated_2D300E230101_); 
        } 
        $_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_ = $amount * ($price + $vat); 
        if ($paymode == paymode_card) { 
            $_obfuscated_0D3D193F3B381005043040031A1140253D290A19301B01_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            $_obfuscated_1A331A3411_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            $_obfuscated_0D282D2410040E1929273B0C16342119330A1F31362532_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
            $_obfuscated_0D190A2121401A2A10040F02110E3F2E392D133D0F2B32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } else { 
            $_obfuscated_0D3D193F3B381005043040031A1140253D290A19301B01_ = $amount; 
            $_obfuscated_1A331A3411_ = $vatpercent; 
            $_obfuscated_0D282D2410040E1929273B0C16342119330A1F31362532_ = _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * $vat, true); 
            $_obfuscated_0D190A2121401A2A10040F02110E3F2E392D133D0F2B32_ = $_obfuscated_24133702362414312F1501_; 
        } 
        if ($paymode == paymode_cash || $paymode == paymode_transfer || $paymode == paymode_internal || $paymode == paymode_card) { 
            $_obfuscated_04131119270D21100532_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } 
        $_obfuscated_2D300E230101_ = str_replace("{ID}", $id, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{INVNUM}", $_obfuscated_22_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{DATE}", $_obfuscated_36372E1C5B3D1E11_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{PAYMENTOPT}", $_obfuscated_0D190A2121401A2A10040F02110E3F2E392D133D0F2B32_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{PAYMODE}", $_obfuscated_0D1E1A3E310B3E263D2822_[$paymode], $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MANAGERNAME}", $_obfuscated_22_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{USERNAME}", $username, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{AMOUNT}", $_obfuscated_0D3D193F3B381005043040031A1140253D290A19301B01_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{UNITPRICE}", $price + $vat, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{PRICE}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * $price, true), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{TOTALPRICE}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D400A332D0D2F1E3B01340B180F01012D333804371032_, true), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{TRAFFICDL}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_12222D243529351B06341E27052401_, traffic_format_bytes), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{TRAFFICUL}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D4006243210362A1405133124150C372908333D260B01_, traffic_format_bytes), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{TRAFFICCOMB}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_32_, traffic_format_bytes), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{DOWNLIMIT}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($downlimit, traffic_format_bytes), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{UPLIMIT}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($uplimit, traffic_format_bytes), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{COMBLIMIT}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($comblimit, traffic_format_bytes), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{TIME}", _obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_0D1C22402C26282F3505395B110117312C392A22301F11_), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{UPTIMELIMIT}", _obfuscated_0D1814282E2F031416063F153F170E112929342E1B0C22_($_obfuscated_053601_), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{DAYS}", $_obfuscated_06015B22_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{EXPIRATION}", $expiration, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{SRVNAME}", $srvname, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{COMMENT}", $_obfuscated_0D11232E25320A0C33143722081B28343114011E2E2111_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{PAID}", $_obfuscated_0D172F1427110D1E3E09293B1013171B2A1E061F403D32_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{VATPERCENT}", $GLOBALS["_vatpercent"], $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{VAT}", $_obfuscated_0D282D2410040E1929273B0C16342119330A1F31362532_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{BALANCE}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_, true), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{CURRENCY}", $GLOBALS["_currency"], $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{GWTRANSID}", $_obfuscated_04131119270D21100532_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{FULLNAME}", $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{ADDRESS}", $address, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{CITY}", $city, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{ZIP}", $_obfuscated_1535143F362A0426310E302A32_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{COUNTRY}", $country, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{STATE}", $state, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{ERROR}", $_obfuscated_1A2C2E150C113D1B22061E3F042C22_, $_obfuscated_2D300E230101_); 
        return $_obfuscated_2D300E230101_; 
    } 
    exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
} 
function _obfuscated_3E33183516122D1B2922_($id, $comment, $paid) 
{ 
    if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editinvoice")) { 
        return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
    } 
    if ($paid != "" && !_obfuscated_0D342F3B363C3F27292717095C36080D0E2D27271F0501_($paid)) { 
        return _obfuscated_0D390F3627263527080D012138063D3E3240083B141711_($id, $comment, $paid, _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_payment_date")); 
    } 
    $_obfuscated_083F353324310A123626251C2303373332_ = paymode_transfer; 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "UPDATE rm_invoices
                      SET paid = '" . $paid . "'
  		      WHERE id = '" . $id . "' AND paymode = '" . $_obfuscated_083F353324310A123626251C2303373332_ . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "UPDATE rm_invoices
  		      SET comment = '" . $comment . "'
  		      WHERE id = '" . $id . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "SELECT invnum
  	    	      FROM rm_invoices
	              WHERE id = '" . $id . "'
    	             ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_row($res); 
    $_obfuscated_22_ = $row[0]; 
    _obfuscated_0D193706010E1A14162C36163E2D1B1B052C090D3C2801_($_SESSION["AUTH_MANAGER"], syslog_invoice_updated, $_obfuscated_22_); 
    return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_invoice_updated")); 
} 
function _obfuscated_0D5B33401B2C22313B381B23172106303333022A0F2D32_($action, $list) 
{ 
    switch ($_obfuscated_0201_) { 
        case online_users_action_logout: 
            if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_logout ")) { 
                return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
            } 
            if (0 < count($list)) { 
                foreach ($list as $_obfuscated_2F0716051C2B3B173810123F2601_) { 
                    _obfuscated_0D033830232B13261F18173B091A2F17342F2B17211E22_($_obfuscated_2F0716051C2B3B173810123F2601_); 
                } 
            } 
            break; 
        case online_users_action_closesess: 
            if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_logout ")) { 
                return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
            } 
            if (0 < count($list)) { 
                foreach ($list as $_obfuscated_2F0716051C2B3B173810123F2601_) { 
                    _obfuscated_0D07055C15102B0526281B2A283C032D172B5B08132511_($_obfuscated_2F0716051C2B3B173810123F2601_); 
                } 
            } 
    } 
    _obfuscated_0D5B373E07221B13211B395C013F140B181F1618032201_("admin.php?cont=list_online_radius"); 
} 
function _obfuscated_382423232D0D16040B38231801_($action, $list) 
{ 
    switch ($_obfuscated_0201_) { 
        case listuser_action_enable: 
            if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editusers")) { 
                return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
            } 
            if (0 < count($list)) { 
                foreach ($list as $username) { 
                    _obfuscated_0D34233C1A3C32382121020606300B0E355B0B320F2A32_($username, true); 
                } 
            } 
            return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_user_enabled")); 
        case listuser_action_disable: 
            if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_editusers")) { 
                return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
            } 
            if (0 < count($list)) { 
                foreach ($list as $username) { 
                    _obfuscated_0D34233C1A3C32382121020606300B0E355B0B320F2A32_($username, false); 
                } 
            } 
            return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_user_disabled")); 
        case listuser_action_disconnect: 
            if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_logout")) { 
                return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
            } 
            if (0 < count($list)) { 
                foreach ($list as $username) { 
                    _obfuscated_0D2C0F0718152B2314173D213515280236223C24024022_($username); 
                } 
            } 
            return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_disconnected")); 
        case listuser_action_delete: 
            if (!_obfuscated_0D3C1B301E3518120813371B1F3237022E0F1705101101_($_SESSION["AUTH_MANAGER"], "perm_deleteusers")) { 
                return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_no_perm")); 
            } 
            if (0 < count($list)) { 
                foreach ($list as $username) { 
                    _obfuscated_0D2E1D1D073125043E012A070B0D362F180F021E1A1911_($username); 
                } 
            } 
            return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_user_deleted")); 
    } 
} 
function _obfuscated_3401021D5B3F0522_($action, $list) 
{ 
    switch ($_obfuscated_0201_) { 
        case listmanagers_action_enable: 
            if (0 < count($list)) { 
                foreach ($list as $_obfuscated_22_) { 
                    _obfuscated_0D0B5B24292702133F043D24351E1012184031291A5B22_($_obfuscated_22_, true); 
                } 
            } 
            return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_manager_enabled")); 
        case listmanagers_action_disable: 
            if (0 < count($list)) { 
                foreach ($list as $_obfuscated_22_) { 
                    _obfuscated_0D0B5B24292702133F043D24351E1012184031291A5B22_($_obfuscated_22_, false); 
                } 
            } 
            return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_manager_disabled")); 
        case listmanagers_action_delete: 
            if (0 < count($list)) { 
                foreach ($list as $_obfuscated_22_) { 
                    _obfuscated_0D191339062D2405021D10094014070B1A230F1A3C3722_($_obfuscated_22_); 
                } 
            } 
            return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_manager_deleted")); 
    } 
} 
function _obfuscated_0D261D35142222232B2C300B0901342B020D0239294022_($action, $list) 
{ 
    switch ($_obfuscated_0201_) { 
        case listservices_action_enable: 
            if (0 < count($list)) { 
                foreach ($list as $srvid) { 
                    _obfuscated_0D0806035B1E212913100D1D0D1C173E291339291C0A11_($srvid, true); 
                } 
            } 
            return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_service_enabled")); 
        case listservices_action_disable: 
            if (0 < count($list)) { 
                foreach ($list as $srvid) { 
                    _obfuscated_0D0806035B1E212913100D1D0D1C173E291339291C0A11_($srvid, false); 
                } 
            } 
            return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_service_disabled")); 
        case listservices_action_delete: 
            if (0 < count($list)) { 
                foreach ($list as $srvid) { 
                    _obfuscated_0D1E2C111E133207133F1A2426361037233E30170C1522_($srvid); 
                } 
            } 
            return _obfuscated_0D0328133C305C013E2F0E2A173D5C310E09352E3D0322_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("msg_service_deleted")); 
    } 
} 
function _obfuscated_0D5B36061E03011631072F171210383B3702281B3C2101_($id, $end = true, $username = "", $alluser = 1) 
{ 
    global $paymodelist; 
    if (_obfuscated_0D0B30302A0F30190324333D120F033325240638303201_() == "admin.php") { 
        $lang = _obfuscated_0D152F0A2A0B3733340D2E5B1937295B242A212D1F1C32_($_SESSION["AUTH_MANAGER"]); 
    } else { 
        $lang = _obfuscated_0D0A363B320D02092B311815332722260C38302A0B3332_($_SESSION["AUTH_USER"]); 
    } 
    $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_ = radman_dir . "/" . lang_dir . "/" . $lang . "/" . invoice_dir . "/" . invoice_tpl; 
    if (file_exists($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)) { 
        $_obfuscated_2D300E230101_ = implode("", file($_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_)); 
        if ($_obfuscated_0A2D171E11_ && $username == "") { 
            $username = "%"; 
        } 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "SELECT service, amount, managername, username, date, invnum, fullname, address, city, zip, country,
  	    state, taxid, paymentopt, paymode, invnum, price, tax, remark, phone, mobile, vatpercent, gwtransid,
  	    capdl, capul, captotal, captime, capdate, bytesdl, bytesul, bytescomb, time, days,
  	    downlimit, uplimit, comblimit, uptimelimit, expiration, advtax, advtaxpercent, contractid
  	    FROM rm_invoices
  	    WHERE id = '" . $id . "' and username LIKE '" . $username . "'
    	   "; 
        $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        if (!mysql_num_rows($res)) { 
            return _obfuscated_0D330A1C1C3E2B0D5C0A0A0F042A07352B23255C3E2722_(_obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("err_inv_not_found")); 
        } 
        $row = mysql_fetch_row($res); 
        $_obfuscated_10082A1A0919143F1A0E1C3422_ = $row[0]; 
        $amount = $row[1]; 
        $_obfuscated_22_ = $row[2]; 
        $username = $row[3]; 
        $_obfuscated_36372E1C5B3D1E11_ = $row[4]; 
        $_obfuscated_22_ = $row[5]; 
        $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ = $row[6]; 
        $address = $row[7]; 
        $city = $row[8]; 
        $_obfuscated_1535143F362A0426310E302A32_ = $row[9]; 
        $country = $row[10]; 
        $state = $row[11]; 
        $vatid = $row[12]; 
        $_obfuscated_24133702362414312F1501_ = $row[13]; 
        $paymode = $row[14]; 
        $_obfuscated_22_ = $row[15]; 
        $price = $row[16]; 
        $vat = $row[17]; 
        $remark = $row[18]; 
        $_obfuscated_2D1A0D2839352927182F32_ = $row[19]; 
        $_obfuscated_1D3C3209161C2A0D120F0D11_ = $row[20]; 
        $vatpercent = $row[21]; 
        $_obfuscated_04131119270D21100532_ = $row[22]; 
        $_obfuscated_32362601030A251D162B2C3C3F11_ = $row[23]; 
        $_obfuscated_0D092E3D1E3930261827283C223702321B240C38223711_ = $row[24]; 
        $_obfuscated_0D331D07321025191F38211231090C0D2C310C1F314022_ = $row[25]; 
        $_obfuscated_0D371203253E23072F3E1B2C0D3924010C372A2C060401_ = $row[26]; 
        $_obfuscated_0D3E321640321B3B0E170F13100F022E3C2D3505191D01_ = $row[27]; 
        $_obfuscated_0D082E3E3D353437332505113E1C300E3B221D24302F32_ = $row[28]; 
        $_obfuscated_0D3D13332B082617110F0327091D333C1C5B0D380F3232_ = $row[29]; 
        $_obfuscated_0D2A1326120B1214081E1A21083D283C020E342E360A32_ = $row[30]; 
        $_obfuscated_0D361B15292F1126301836071207262E18040517093122_ = $row[31]; 
        $_obfuscated_0D1622351C0B32121034181B171319090517302A0C2A32_ = $row[32]; 
        $_obfuscated_0D0D192B37291D05140E3110211F0C2C0C380138042701_ = $row[33]; 
        $_obfuscated_0D3F3E232E1F10043216271118333438091617035B3732_ = $row[34]; 
        $_obfuscated_0D08403712272C0D0C0F2A1E150215240F3C3D2A181932_ = $row[35]; 
        $_obfuscated_0D17391005072840315B3D381739262B0F033B16022E32_ = $row[36]; 
        $_obfuscated_0D3F2B292D0A3F3E220A260524193F393C322D15060822_ = $row[37]; 
        $_obfuscated_0D361D1A2B291227053D011A075B0D3E3B14163F260911_ = $row[38]; 
        $advtaxpercent = $row[39]; 
        $contractid = $row[40]; 
        $_obfuscated_0D3F2A320E3F173612120A29083C1931021C363D1F2701_ = _obfuscated_0D301E0A392116371D0B240E4008010429361728193232_(false, false, false) . "/lang/" . $lang; 
        if (!$_obfuscated_04131119270D21100532_) { 
            $_obfuscated_04131119270D21100532_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_na"); 
        } 
        $_obfuscated_2D300E230101_ = str_replace("{LANGPATH}", $_obfuscated_0D3F2A320E3F173612120A29083C1931021C363D1F2701_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{ID}", $id, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MANAGERNAME}", $_obfuscated_22_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{FULLNAME}", $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{USERNAME}", $username, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{ADDRESS}", $address, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{CITY}", $city, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{ZIP}", $_obfuscated_1535143F362A0426310E302A32_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{COUNTRY}", $country, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{STATE}", $state, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{PHONE}", $_obfuscated_2D1A0D2839352927182F32_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MOBILE}", $_obfuscated_1D3C3209161C2A0D120F0D11_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{VATID}", $vatid, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{INVID}", $_obfuscated_22_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{YEAR1}", substr($_obfuscated_36372E1C5B3D1E11_, 0, 4), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MONTH1}", substr($_obfuscated_36372E1C5B3D1E11_, 5, 2), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{DAY1}", substr($_obfuscated_36372E1C5B3D1E11_, 8, 2), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{YEAR2}", substr($_obfuscated_24133702362414312F1501_, 0, 4), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{MONTH2}", substr($_obfuscated_24133702362414312F1501_, 5, 2), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{DAY2}", substr($_obfuscated_24133702362414312F1501_, 8, 2), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{SERVICE}", $_obfuscated_10082A1A0919143F1A0E1C3422_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{AMOUNT}", $amount, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{NETPRICE}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($price, grp_dec_inv, 6), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{VATPERCENT}", $vatpercent, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{PRICE}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * $price, grp_dec_inv), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{VAT}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * $vat, grp_dec_inv), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{CGST}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * $vat / 2, grp_dec_inv), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{SGST}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * $vat / 2, grp_dec_inv), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{ADVTAX}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($_obfuscated_0D361D1A2B291227053D011A075B0D3E3B14163F260911_, grp_dec_inv), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{TOTALPRICE}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * ($price + $vat), grp_dec_inv), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{TOTALPRICEADVTAX}", _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * ($price + $vat) + $_obfuscated_0D361D1A2B291227053D011A075B0D3E3B14163F260911_, grp_dec_inv), $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{CURRENCY}", $GLOBALS["_currency"], $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{PAYMODE}", $_obfuscated_0D1E1A3E310B3E263D2822_[$paymode], $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{REMARK}", $remark, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{GWTRANSID}", $_obfuscated_04131119270D21100532_, $_obfuscated_2D300E230101_); 
        $_obfuscated_2D300E230101_ = str_replace("{CONTRACTID}", $contractid, $_obfuscated_2D300E230101_); 
        if ($_obfuscated_32362601030A251D162B2C3C3F11_) { 
            $_obfuscated_2D300E230101_ = str_replace("{ADDEDDL}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D082E3E3D353437332505113E1C300E3B221D24302F32_), $_obfuscated_2D300E230101_); 
            $_obfuscated_2D300E230101_ = str_replace("{AVAILDL}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D0D192B37291D05140E3110211F0C2C0C380138042701_), $_obfuscated_2D300E230101_); 
        } else { 
            $_obfuscated_2D300E230101_ = str_replace("{ADDEDDL}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_hide"), $_obfuscated_2D300E230101_); 
            $_obfuscated_2D300E230101_ = str_replace("{AVAILDL}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_hide"), $_obfuscated_2D300E230101_); 
        } 
        if ($_obfuscated_0D092E3D1E3930261827283C223702321B240C38223711_) { 
            $_obfuscated_2D300E230101_ = str_replace("{ADDEDUL}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D3D13332B082617110F0327091D333C1C5B0D380F3232_), $_obfuscated_2D300E230101_); 
            $_obfuscated_2D300E230101_ = str_replace("{AVAILUL}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D3F3E232E1F10043216271118333438091617035B3732_), $_obfuscated_2D300E230101_); 
        } else { 
            $_obfuscated_2D300E230101_ = str_replace("{ADDEDUL}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_hide"), $_obfuscated_2D300E230101_); 
            $_obfuscated_2D300E230101_ = str_replace("{AVAILUL}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_hide"), $_obfuscated_2D300E230101_); 
        } 
        if ($_obfuscated_0D331D07321025191F38211231090C0D2C310C1F314022_) { 
            $_obfuscated_2D300E230101_ = str_replace("{ADDEDTOTAL}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D2A1326120B1214081E1A21083D283C020E342E360A32_), $_obfuscated_2D300E230101_); 
            $_obfuscated_2D300E230101_ = str_replace("{AVAILTOTAL}", _obfuscated_0D2B06222A190132100B402426242D3E332C175C113311_($_obfuscated_0D08403712272C0D0C0F2A1E150215240F3C3D2A181932_), $_obfuscated_2D300E230101_); 
        } else { 
            $_obfuscated_2D300E230101_ = str_replace("{ADDEDTOTAL}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_hide"), $_obfuscated_2D300E230101_); 
            $_obfuscated_2D300E230101_ = str_replace("{AVAILTOTAL}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_hide"), $_obfuscated_2D300E230101_); 
        } 
        if ($_obfuscated_0D371203253E23072F3E1B2C0D3924010C372A2C060401_) { 
            $_obfuscated_2D300E230101_ = str_replace("{ADDEDTIME}", _obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_0D361B15292F1126301836071207262E18040517093122_), $_obfuscated_2D300E230101_); 
            $_obfuscated_2D300E230101_ = str_replace("{AVAILTIME}", _obfuscated_0D10135C07300440292A313E265C360A2E190C271F3F22_($_obfuscated_0D17391005072840315B3D381739262B0F033B16022E32_), $_obfuscated_2D300E230101_); 
        } else { 
            $_obfuscated_2D300E230101_ = str_replace("{ADDEDTIME}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_hide"), $_obfuscated_2D300E230101_); 
            $_obfuscated_2D300E230101_ = str_replace("{AVAILTIME}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_hide"), $_obfuscated_2D300E230101_); 
        } 
        if ($_obfuscated_0D3E321640321B3B0E170F13100F022E3C2D3505191D01_) { 
            $_obfuscated_2D300E230101_ = str_replace("{ADDEDDAYS}", $_obfuscated_0D1622351C0B32121034181B171319090517302A0C2A32_, $_obfuscated_2D300E230101_); 
            $_obfuscated_2D300E230101_ = str_replace("{EXPIRY}", $_obfuscated_0D3F2B292D0A3F3E220A260524193F393C322D15060822_, $_obfuscated_2D300E230101_); 
        } else { 
            $_obfuscated_2D300E230101_ = str_replace("{ADDEDDAYS}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_hide"), $_obfuscated_2D300E230101_); 
            $_obfuscated_2D300E230101_ = str_replace("{EXPIRY}", _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_hide"), $_obfuscated_2D300E230101_); 
        } 
        print $_obfuscated_2D300E230101_; 
        if ($end) { 
            exit; 
        } 
    } else { 
        exit("" . "Can't find " . $_obfuscated_0D312E06260B3D090301310D0A251B3F0D361D083E0C11_); 
    } 
} 
function _obfuscated_0D22092E050B14071C2F3439072B1A1E2C36360C0F3622_($managername, $username, $srvid, $expiration, $trafficdl, $trafficul, $trafficcomb, $time, $days, $comment, $transid, $paymode, $amount, $price, $vat, $credaddmode, $remark, $gwtransid = "", $firstname = "", $lastname = "", $address = "", $city = "", $zip = "", $country = "", $state = "", $company = "", $taxid = "") 
{ 
    $_obfuscated_0E0122091922332602031706121001_ = _obfuscated_0D0616303E0B26370C1A2E363E042822053D1533271132_(); 
    $res = mysql_query("" . "SELECT transid
  		      FROM rm_invoices
  		      WHERE transid = '" . $transid . "'
  		      ORDER BY id DESC
  		      LIMIT 1
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (0 < mysql_num_rows($res)) { 
        return 0 - 1; 
    } 
    $res = mysql_query("" . "SELECT rm_services.srvname, rm_services.srvid, rm_services.trafficaddmode,
  		      rm_services.timeunitexp, rm_services.timeunitonline, rm_services.timebaseexp,
  		      rm_services.timebaseonline, rm_services.timeaddmodeexp, rm_services.timeaddmodeonline,
  		      rm_services.monthly, rm_services.resetctrdate, rm_services.resetctrneg,
  		      rm_services.limitexpiration, acctype, maccm, mac, staticipcm, staticipcpe, enableuser, ipmodecpe 
  		      FROM rm_services, rm_users
  		      WHERE rm_services.srvid = '" . $srvid . "' AND rm_users.username = '" . $username . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $srvname = $row[0]; 
    $srvid = $row[1]; 
    $trafficaddmode = $row[2]; 
    $_obfuscated_0D380A292106141E0E341D1C36322B0A2C080309381632_ = $row[3]; 
    $timeunitonline = $row[4]; 
    $_obfuscated_1C131E321C152D0F32_ = $row[5]; 
    $_obfuscated_0322_ = $row[6]; 
    $timeaddmodeexp = $row[7]; 
    $timeaddmodeonline = $row[8]; 
    $_obfuscated_40310521113C0831192622_ = $row[9]; 
    $_obfuscated_162C1F1528050E0524390E01_ = $row[10]; 
    $resetctrneg = $row[11]; 
    $_obfuscated_0D2422023702331D252D383027232E0F060F2714183D11_ = $row[12]; 
    $_obfuscated_1B01242F0F25053422_ = $row[13]; 
    $maccm = $row[14]; 
    $mac = $row[15]; 
    $staticipcm = $row[16]; 
    $staticipcpe = $row[17]; 
    $enableuser = $row[18]; 
    $ipmodecpe = $row[19]; 
    $res = mysql_query("" . "SELECT downlimit, uplimit, comblimit, uptimelimit, expiration, credits
  		      FROM rm_users
  		      WHERE username = '" . $username . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_3635031329081D5B091C093610210B131B01_ = $row[0]; 
    $_obfuscated_0D3F2C3B35021A231C2E361231062A2A1A1F1F331B3C22_ = $row[1]; 
    $_obfuscated_262226281C11_ = $row[2]; 
    $_obfuscated_0D3F2F32331632092C0D2C17353424042B29241A101522_ = $row[3]; 
    $_obfuscated_11103D10313431051A0F07343D22_ = $row[4]; 
    $_obfuscated_0D102C1D1C193F1423252E163F2A1B052216013F2A3811_ = $row[5]; 
    if ($paymode == paymode_internal) { 
        $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ = $_obfuscated_0D102C1D1C193F1423252E163F2A1B052216013F2A3811_ + _obfuscated_0D3C3F29181118302E3331170C1F11221B0D2C365B1901_($amount * ($price + $vat), false); 
    } else { 
        $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ = $_obfuscated_0D102C1D1C193F1423252E163F2A1B052216013F2A3811_; 
    } 
    _obfuscated_0D0C1A29240B1C1D3635332F3B1503323D210229393311_($username, $_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_, $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_, $_obfuscated_0D2D1D3040241122321E1C2B3624313E233F133B2B3F22_); 
    if ($trafficaddmode == trafficaddmode_reset) { 
        if ($credaddmode == credaddmode_normal) { 
            if ($amount < 0) { 
                $_obfuscated_0D2D400C3819230C232A2A312F0A341D250B39071A3922_ = $_obfuscated_3635031329081D5B091C093610210B131B01_ + $trafficdl * megabytes; 
                $_obfuscated_0D141528233C19062E1A1F1504311B5B370A3639382B22_ = $_obfuscated_0D3F2C3B35021A231C2E361231062A2A1A1F1F331B3C22_ + $trafficul * megabytes; 
                $_obfuscated_0D31041540182239270F123E2A2E35301E193F2E020C32_ = $_obfuscated_262226281C11_ + $trafficcomb * megabytes; 
            } else { 
                $_obfuscated_0D2D400C3819230C232A2A312F0A341D250B39071A3922_ = $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_ + $trafficdl * megabytes; 
                $_obfuscated_0D141528233C19062E1A1F1504311B5B370A3639382B22_ = $_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_ + $trafficul * megabytes; 
                $_obfuscated_0D31041540182239270F123E2A2E35301E193F2E020C32_ = $_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_ + $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_ + $trafficcomb * megabytes; 
            } 
        } else { 
            $_obfuscated_0D2D400C3819230C232A2A312F0A341D250B39071A3922_ = $_obfuscated_3635031329081D5B091C093610210B131B01_ + $trafficdl * megabytes; 
            $_obfuscated_0D141528233C19062E1A1F1504311B5B370A3639382B22_ = $_obfuscated_0D3F2C3B35021A231C2E361231062A2A1A1F1F331B3C22_ + $trafficul * megabytes; 
            $_obfuscated_0D31041540182239270F123E2A2E35301E193F2E020C32_ = $_obfuscated_262226281C11_ + $trafficcomb * megabytes; 
        } 
    } 
    if ($trafficaddmode == trafficaddmode_additive) { 
        if ($_obfuscated_162C1F1528050E0524390E01_ && $_obfuscated_11103D10313431051A0F07343D22_ <= date("Y-m-d H:i:s") && $_obfuscated_0D2422023702331D252D383027232E0F060F2714183D11_) { 
            $_obfuscated_0D2D400C3819230C232A2A312F0A341D250B39071A3922_ = $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_ + $trafficdl * megabytes; 
            $_obfuscated_0D141528233C19062E1A1F1504311B5B370A3639382B22_ = $_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_ + $trafficul * megabytes; 
            $_obfuscated_0D31041540182239270F123E2A2E35301E193F2E020C32_ = $_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_ + $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_ + $trafficcomb * megabytes; 
        } 
        if ($resetctrneg && $_obfuscated_3635031329081D5B091C093610210B131B01_ - $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_ < 0) { 
            $_obfuscated_0D2D400C3819230C232A2A312F0A341D250B39071A3922_ = $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_ + $trafficdl * megabytes; 
        } else { 
            $_obfuscated_0D2D400C3819230C232A2A312F0A341D250B39071A3922_ = $_obfuscated_3635031329081D5B091C093610210B131B01_ + $trafficdl * megabytes; 
        } 
        if ($resetctrneg && $_obfuscated_0D3F2C3B35021A231C2E361231062A2A1A1F1F331B3C22_ - $_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_ < 0) { 
            $_obfuscated_0D141528233C19062E1A1F1504311B5B370A3639382B22_ = $_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_ + $trafficul * megabytes; 
        } else { 
            $_obfuscated_0D141528233C19062E1A1F1504311B5B370A3639382B22_ = $_obfuscated_0D3F2C3B35021A231C2E361231062A2A1A1F1F331B3C22_ + $trafficul * megabytes; 
        } 
        if ($resetctrneg && $_obfuscated_262226281C11_ - ($_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_ + $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_) < 0) { 
            $_obfuscated_0D31041540182239270F123E2A2E35301E193F2E020C32_ = $_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_ + $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_ + $trafficcomb * megabytes; 
        } else { 
            $_obfuscated_0D31041540182239270F123E2A2E35301E193F2E020C32_ = $_obfuscated_262226281C11_ + $trafficcomb * megabytes; 
        } 
    } 
    if ($_obfuscated_0322_ == timebase_minutes) { 
        $_obfuscated_252725250A22_ = $_obfuscated_252725250A22_ * 60; 
    } 
    if ($_obfuscated_0322_ == timebase_hours) { 
        $_obfuscated_252725250A22_ = $_obfuscated_252725250A22_ * 3600; 
    } 
    if ($timeaddmodeonline == timeaddmode_reset) { 
        if ($_obfuscated_252725250A22_ < 0) { 
            $_obfuscated_0D27033839051A231603341C091D3E0A352C042D313111_ = $_obfuscated_0D3F2F32331632092C0D2C17353424042B29241A101522_ + $_obfuscated_252725250A22_; 
        } else { 
            $_obfuscated_0D27033839051A231603341C091D3E0A352C042D313111_ = $_obfuscated_0D2D1D3040241122321E1C2B3624313E233F133B2B3F22_ + $_obfuscated_252725250A22_; 
        } 
    } else { 
        if ($resetctrneg && $_obfuscated_0D3F2F32331632092C0D2C17353424042B29241A101522_ - $_obfuscated_0D2D1D3040241122321E1C2B3624313E233F133B2B3F22_ < 0) { 
            $_obfuscated_0D27033839051A231603341C091D3E0A352C042D313111_ = $_obfuscated_0D2D1D3040241122321E1C2B3624313E233F133B2B3F22_ + $_obfuscated_252725250A22_; 
        } else { 
            $_obfuscated_0D27033839051A231603341C091D3E0A352C042D313111_ = $_obfuscated_0D3F2F32331632092C0D2C17353424042B29241A101522_ + $_obfuscated_252725250A22_; 
        } 
    } 
    $_obfuscated_0D10232A1607212527383C04240A3F331C23050B333911_ = $trafficdl * megabytes; 
    $_obfuscated_0D2D3E5B050C5B2E3E033D013B0B150328252A1A191E22_ = $trafficul * megabytes; 
    $_obfuscated_0D1327311C01280A2C1B1E2F35013D3F3F351736401201_ = $trafficcomb * megabytes; 
    $_obfuscated_0638111F1B262B3B2636211311_ = $_obfuscated_0D2D400C3819230C232A2A312F0A341D250B39071A3922_ - $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_; 
    $_obfuscated_0D32302724210B050C3E183E025B3B260A5B1D280A3832_ = $_obfuscated_0D141528233C19062E1A1F1504311B5B370A3639382B22_ - $_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_; 
    $_obfuscated_0D3E31212C3322272B3E0D1F130B1E3F2B1D0410361C01_ = $_obfuscated_0D31041540182239270F123E2A2E35301E193F2E020C32_ - $_obfuscated_0D3F2E0E1C5B12280E2D0F232622223511160919141F32_ - $_obfuscated_0D1240251A3D3B1B1C1D1A3F32223C1428392A2D101232_; 
    $_obfuscated_0D1F101128280E32391D0D0D0936143E0C051A361D2A11_ = $_obfuscated_0D27033839051A231603341C091D3E0A352C042D313111_ - $_obfuscated_0D2D1D3040241122321E1C2B3624313E233F133B2B3F22_; 
    $_obfuscated_09090711_ = date("Y") . "%"; 
    $res = mysql_query("" . "SELECT invnum
  		      FROM rm_invoices
  		      WHERE date LIKE '" . $_obfuscated_09090711_ . "'
  		      ORDER BY invnum DESC
  		      LIMIT 1
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_0D0C02022908183813262B10303801132F37381C110501_ = $row[0]; 
    $_obfuscated_22_ = $_obfuscated_0D0C02022908183813262B10303801132F37381C110501_ + 1; 
    $res = mysql_query("" . "SELECT limitdl, limitul, limitcomb, limituptime, limitexpiration
    		      FROM rm_services
    		      WHERE srvid = '" . $srvid . "'
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_32362601030A251D162B2C3C3F11_ = $row[0]; 
    $_obfuscated_0D092E3D1E3930261827283C223702321B240C38223711_ = $row[1]; 
    $_obfuscated_0D331D07321025191F38211231090C0D2C310C1F314022_ = $row[2]; 
    $_obfuscated_0D371203253E23072F3E1B2C0D3924010C372A2C060401_ = $row[3]; 
    $_obfuscated_0D3E321640321B3B0E170F13100F022E3C2D3505191D01_ = $row[4]; 
    $res = mysql_query("" . "SELECT address, city, zip, country, state, firstname, lastname, company, taxid, phone, mobile, contractid
  		      FROM rm_users
    		      WHERE username = '" . $username . "'
    		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (0 < mysql_num_rows($res)) { 
        $row = _obfuscated_0D1D1537221812211B12312133100C3B2B01351C091122_(mysql_fetch_array($res)); 
        $address = $row[0]; 
        $city = $row[1]; 
        $_obfuscated_1535143F362A0426310E302A32_ = $row[2]; 
        $country = $row[3]; 
        $state = $row[4]; 
        $firstname = $row[5]; 
        $lastname = $row[6]; 
        $company = $row[7]; 
        $taxid = $row[8]; 
        $_obfuscated_2D1A0D2839352927182F32_ = $row[9]; 
        $_obfuscated_1D3C3209161C2A0D120F0D11_ = $row[10]; 
        $contractid = $row[11]; 
    } 
    $_obfuscated_24133702362414312F1501_ = $GLOBALS["_paymentopt"]; 
    if ($company == "") { 
        $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ = $firstname . " " . $lastname; 
    } else { 
        $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ = $company; 
    } 
    $res = mysql_query("SELECT invnum
  		      FROM rm_invoices
  		      WHERE invnum != ''
  		      ORDER BY id DESC
  		      LIMIT 1
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $_obfuscated_01_ = $row[0]; 
    if (!($paymode == paymode_internal || $paymode == paymode_card)) { 
        $_obfuscated_22_ = _obfuscated_0D013B171B160F1D161F0111152C05014036171E1E3801_($_obfuscated_01_); 
    } else { 
        $_obfuscated_22_ = ""; 
    } 
    $_obfuscated_0D332A160D0C051B370C093C1A123F24113C2814351101_ = invtype_prepaid; 
    $vatpercent = $GLOBALS["_vatpercent"]; 
    $advtaxpercent = $GLOBALS["_advtaxpercent"]; 
    $_obfuscated_0D361D1A2B291227053D011A075B0D3E3B14163F260911_ = $amount * ($price + $vat) * $advtaxpercent / 100; 
    if ($paymode != paymode_transfer) { 
        $paid = date("Y-m-d"); 
    } 
    $_obfuscated_1132062F2D3B0E3825152532_ = "" . "INSERT INTO rm_invoices
    	    (managername, username, date, bytesdl, bytesul, bytescomb, downlimit, uplimit, comblimit, time, uptimelimit,
    	    days, expiration, capdl, capul, captotal, captime, capdate, service, comment, transid, amount, invnum,
    	    address, city, zip, country, state, fullname, taxid, paymentopt, paymode, invtype, paid, price, tax, advtax, remark,
    	    balance, gwtransid, phone, mobile, vatpercent, advtaxpercent, contractid )
            VALUES
            ('" . $_obfuscated_22_ . "', '" . $username . "', NOW(), '" . $_obfuscated_0D10232A1607212527383C04240A3F331C23050B333911_ . "', '" . $_obfuscated_0D2D3E5B050C5B2E3E033D013B0B150328252A1A191E22_ . "', '" . $_obfuscated_0D1327311C01280A2C1B1E2F35013D3F3F351736401201_ . "', '" . $_obfuscated_0638111F1B262B3B2636211311_ . "',
            '" . $_obfuscated_0D32302724210B050C3E183E025B3B260A5B1D280A3832_ . "', '" . $_obfuscated_0D3E31212C3322272B3E0D1F130B1E3F2B1D0410361C01_ . "', '" . $_obfuscated_252725250A22_ . "', '" . $_obfuscated_0D1F101128280E32391D0D0D0936143E0C051A361D2A11_ . "', '" . $_obfuscated_06015B22_ . "', '" . $expiration . "', '" . $_obfuscated_32362601030A251D162B2C3C3F11_ . "', '" . $_obfuscated_0D092E3D1E3930261827283C223702321B240C38223711_ . "',
            '" . $_obfuscated_0D331D07321025191F38211231090C0D2C310C1F314022_ . "', '" . $_obfuscated_0D371203253E23072F3E1B2C0D3924010C372A2C060401_ . "', '" . $_obfuscated_0D3E321640321B3B0E170F13100F022E3C2D3505191D01_ . "', '" . $srvname . "', '" . $comment . "', '" . $transid . "', '" . $amount . "', '" . $_obfuscated_22_ . "', '" . $address . "', '" . $city . "',
            '" . $_obfuscated_1535143F362A0426310E302A32_ . "', '" . $country . "', '" . $state . "', '" . $_obfuscated_0D3C2A1E1402095B15353B121401181C2322101C030332_ . "', '" . $taxid . "', DATE_ADD(CURDATE(), INTERVAL '" . $_obfuscated_24133702362414312F1501_ . "' DAY), '" . $paymode . "',
            '" . $_obfuscated_0D332A160D0C051B370C093C1A123F24113C2814351101_ . "', '" . $paid . "', '" . $price . "', '" . $vat . "', '" . $_obfuscated_0D361D1A2B291227053D011A075B0D3E3B14163F260911_ . "', '" . $remark . "', '" . $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ . "', '" . $_obfuscated_04131119270D21100532_ . "', '" . $_obfuscated_2D1A0D2839352927182F32_ . "', '" . $_obfuscated_1D3C3209161C2A0D120F0D11_ . "',
            '" . $vatpercent . "', '" . $advtaxpercent . "', '" . $contractid . "')"; 
    $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("SELECT id
  		      FROM rm_invoices
  		      ORDER BY id DESC
  		      LIMIT 1
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $row = mysql_fetch_array($res); 
    $id = $row[0]; 
    $res = mysql_query("" . "UPDATE rm_users
		      SET downlimit = '" . $_obfuscated_0D2D400C3819230C232A2A312F0A341D250B39071A3922_ . "', uplimit = '" . $_obfuscated_0D141528233C19062E1A1F1504311B5B370A3639382B22_ . "', comblimit = '" . $_obfuscated_0D31041540182239270F123E2A2E35301E193F2E020C32_ . "',
		      expiration = '" . $expiration . "', uptimelimit = '" . $_obfuscated_0D27033839051A231603341C091D3E0A352C042D313111_ . "', warningsent = 0
		      WHERE username = '" . $username . "'
		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    $res = mysql_query("" . "SELECT balance
  		      FROM rm_managers
  		      WHERE managername = '" . $_obfuscated_22_ . "'
  		     ") or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
    if (0 < mysql_num_rows($res)) { 
        $row = mysql_fetch_array($res); 
        $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ = $row[0]; 
        switch ($paymode) { 
            case paymode_cash: 
                $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_cash"); 
                break; 
            case paymode_transfer: 
                $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_paymode_transfer"); 
        } 
        $_obfuscated_0D3E5B38092D3718110A22_ = $amount * ($price + $vat); 
        $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ += 0 - $_obfuscated_0D3E5B38092D3718110A22_; 
        $descr = _obfuscated_0D0C160A31081B3B252710111B27030F293B3F2A181222_("str_ref") . ": " . $_obfuscated_0D2318150B28064002053230370D0F072D382E213F2D32_ . "-" . $_obfuscated_22_; 
        $_obfuscated_033F1C01_ = admin_user; 
        $_obfuscated_0F0211_ = paymode_internal; 
        $invgroup = invgroup_managers; 
        $_obfuscated_1C38240A1040072E3E22_ = 0 - $price * $amount; 
        $_obfuscated_0D282D2410040E1929273B0C16342119330A1F31362532_ = 0 - $vat * $amount; 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "INSERT INTO rm_invoices (managername, username, amount, price, tax, vatpercent, balance,
    	      date, service, paymode, invgroup, paymentopt, transid)
              VALUES ('" . $_obfuscated_033F1C01_ . "', '" . $_obfuscated_22_ . "', 1, '" . $_obfuscated_1C38240A1040072E3E22_ . "', '" . $_obfuscated_0D282D2410040E1929273B0C16342119330A1F31362532_ . "', '" . $vatpercent . "',
              '" . $_obfuscated_0D1139353F1123013D1839320D173F2832383514310B22_ . "', NOW(), '" . $descr . "', '" . $_obfuscated_0F0211_ . "', '" . $invgroup . "', DATE_ADD(CURDATE(), INTERVAL '" . $_obfuscated_24133702362414312F1501_ . "' DAY),
              '" . $transid . "' )
             "; 
        $res = mysql_query($_obfuscated_1132062F2D3B0E3825152532_) or exit(mysql_error($_obfuscated_0E0122091922332602031706121001_)); 
        $_obfuscated_1132062F2D3B0E3825152532_ = "" . "UPDATE rm_managers
    	    SET balance = '" . $_obfuscated_0D1139353F1123013D1839320D173F28