<?PHP
$_OPTIMIZATION["title"] = $lang['account']['title'];
$user_id = $_SESSION["user_id"];
$db->Query("SELECT * FROM db_users_a, db_users_b WHERE db_users_a.id = db_users_b.id AND db_users_a.id = '$user_id'");
$prof_data = $db->FetchArray();
$pass= $prof_data['pass'];

$db->Query("SELECT COUNT(*) FROM db_users_a WHERE referer_id = '$user_id'");
$refs = $db->FetchRow();

$db->Query("SELECT COUNT(*) as num FROM db_users_a WHERE referer_id = '$user_id' and pass = '$pass' LIMIT 1");


$nums = $db->FetchRow();


if ($nums > 2)  {
	
	if ($user_id != 1) {
	$db->Query("UPDATE db_users_a SET banned = 1 WHERE id = '$user_id'");
	$db->Query("UPDATE db_users_a SET banned = 1 WHERE referer_id = '$user_id' and pass = '$pass'");
	
	header("Location: https://cashempire.cc/account/exit");
	
	}
}

$csrfCheck = $func->csrfVerify();



$avatardefault = ($prof_data['avatar'] == 'null') ? "images/avatars/878652928.jpg" : "images/avatars/".$prof_data['avatar'];

if (strlen($prof_data["deposit_address"])< 5){
	$api_key = 'DL8ZuXstdYfD1Ha8sWeOx4Dcj4lxcGLrEkHqVU9uXFU';
$url = 'https://bch.blockonomics.co/api/new_address';

$options = array( 
    'http' => array(
        'header'  => 'Authorization: Bearer '.$api_key,
        'method'  => 'POST',
        'content' => '',
        'ignore_errors' => true
    )   
);  

$context = stream_context_create($options);
$contents = file_get_contents($url, false, $context);
$object = json_decode($contents);

// Check if address was generated successfully
if (isset($object->address)) {
  
  
  $address=$object->address;
  $db->Query("UPDATE db_users_b SET deposit_address = '$address' WHERE id = '$usid'");
  
} else {
  // Show any possible errors
  echo $http_response_header[0]."\n".$contents;
}
	
	
	
}

?>
<?php

                    if (isset($_POST["img"]) and $csrfCheck == true) {
						$validate = GUMP::is_valid($_POST, array(
                            'img' => 'max_len,20',
                            
                        ));
						if ($validate === true) {
                            $img          = $_POST["img"];
							$db->Query("UPDATE db_users_b SET avatar = '$img' WHERE id = '$usid'");
							$avatardefault="images/avatars/".$img;
                                        $success_message = $lang['success_messages']['changesSaved'];
						}
					}
?>
							

<?php

                    if (isset($_POST["old"]) and $csrfCheck == true) {
                        $validate = GUMP::is_valid($_POST, array(
                            'old' => 'required|max_len,20|min_len,4|alpha_numeric',
                            'new' => 'required|max_len,20|min_len,4|alpha_numeric',
                            're_new' => 'required|max_len,20|min_len,4|alpha_numeric',
                        ));

                        if ($validate === true) {
                            $old           = $_POST["old"];
                            $new           = $_POST["new"];
                            $repass        = $_POST["re_new"];
                            $old_secure    = $func->md5Password($_POST["old"]);
                            $new_secure    = $func->md5Password($_POST["new"]);
                            $renew_secure  = $func->md5Password($_POST["re_new"]);
                            if ($old_secure !== false and $old_secure == $user_data["pass"]) {
                                if ($new_secure !== false) {
                                    if ($new_secure == $renew_secure) {
                                        $db->Query("UPDATE db_users_a SET pass = '$new_secure' WHERE id = '$usid'");
                                        $success_message = $lang['success_messages']['changesSaved'];
                                        echo "<div class='alert alert-success'>{$success_message}</div>";
                                    } else {
                                        $error_message = $lang['error_messages']['passwordMatch'];
                                        echo "<div class='alert alert-danger'>{$error_message}</div>";
                                    }
                                } else {
                                    $error_message = $lang['error_messages']['emptyPassword'];
                                    echo "<div class='alert alert-danger'>{$error_message}</div>";
                                }
                            } else {
                                $error_message = $lang['error_messages']['oldpassword'];
                                echo "<div class='alert alert-danger'>{$error_message}</div>";
                            }
                        } else {
                            $error_message = $lang['error_messages']['invalidData'];
                            echo "<div class='alert alert-danger'>{$error_message}</div>";
                        }
                    }
                ?>
              

    
     

        
                   
            <script type="text/javascript">
                $(".page_nav li[page='profile']").addClass('active');
                setInterval(function() {
                    $('.stiker-thumb').addClass('animated swing');
                    setTimeout(function() {
                        $('.stiker-thumb').removeClass('animated swing');
                    },1500);
                },7000);
            </script>
       
        <script>
            /*$('.news-nav-item').mouseenter(function() {
                $('.news_sticker').removeClass('animated pulse').addClass('animated hinge');
            });*/
            /*setTimeout(function() {
                $('.video_konkurs_notifier').fadeIn(0).addClass('animated zoomIn');
                setTimeout(function() {
                    $('.video_konkurs_notifier').removeClass('animated zoomIn');
                    $('.video_konkurs_notifier').addClass('animated zoomOut');
                },15000);
            }, 7000);*/
            setTimeout(function() {
                $('.extrabonus_notifier').fadeIn(0).addClass('animated zoomIn');
                $('.extrabonus_notifier_ru').fadeIn(0).addClass('animated zoomIn');
                setTimeout(function() {
                    $('.extrabonus_notifier').removeClass('animated zoomIn');
                    $('.extrabonus_notifier').addClass('animated zoomOut');
                    $('.extrabonus_notifier_ru').removeClass('animated zoomIn');
                    $('.extrabonus_notifier_ru').addClass('animated zoomOut');
                },18000);
            }, 2000);
        </script>
        <style>
            #logo.winter { background: url(../images/logo_winter.png) no-repeat; }
        </style>        <section class="main races">
            <div class="wrapper-constrained">
                <div class="content-wrapper flex">
                    <div class="perfpage">
                        <div class="pinfo">
                            <div class="picon"></div>
                            <div class="pcont">
                                Here you can see basic information about the status of your account.                            </div>
                        </div>
                        <div class="container elven">
                            <div class="decor big"></div>
                            <h3><span>My Profile</span></h3>
																					<center>		<iframe data-aa='2103704' loading='lazy' src='//ad.a-ads.com/2103704?size=728x90' style='width:728px; height:90px; border:0px; padding:0; overflow:hidden; background-color: transparent;'></iframe></center>

                            <div class="container-inner">
                                
                                <div class="user-stat">
								
                                    <small>Balance for purchases:</small>
                                    <div class="u-stat-row mt10">
                                        <div class="ic-gold1"></div>
                                        Silver:                                        <div class="u-stat-numb">{!BALANCE_B!}</div>
                                    </div>
                                    <div class="u-stat-row">
                                        <div class="ic-gold2"></div>
                                        Gold:                                        <div class="u-stat-numb">{!BALANCE_B1!}</div>
                                    </div>
                                    <div class="u-stat-row">
                                        <div class="ic-gold1"></div>
                                        From referrals:                                        <div class="u-stat-numb"><?=$prof_data ["from_referals"];?></div>
                                    </div>
                                    <hr>
									<small>Balance for crypto:</small>
                                    <div class="u-stat-row mt10">
                                        <div class="ic-gold1"></div>
                                        Silver:                                        <div class="u-stat-numb">{!BALANCE_P!}</div>
                                    </div>
                                    <div class="u-stat-row">
                                        <div class="ic-gold2"></div>
                                        Gold:                                        <div class="u-stat-numb">{!BALANCE_P1!}</div>
                                    </div>
                                    
                                    <hr>
									<p style="text-align:center"><a href="https://sweetflower.ma/?r=1232134" target="_blank"><img alt="" src="https://sweetflower.ma/wp-content/uploads/2021/02/sunshine_rose_mix-min__17939.1600865229.800.800.jpg_c_2_ga_2.54113320.1019283305.1613932724-1387032122__13331.1614252352-247x296.jpg" style="height:296px; width:247px" /></a></p>
<hr>
									<p class="mt10">
                                        <div class="mid-button" onclick="location.href='account/payment'"><i class="fa fa-users"></i> Deposit/withdrawal</div>
                                    </p>
                                    <div class="u-stat-row mt10">
                                        <div class="ic-gold3"></div>
                                        BCH Deposit (Total):                                        <div class="u-stat-numb"><?=$prof_data["insert_sum"];?></div>

                                    </div>
                                    <div class="u-stat-row">
                                        <div class="ic-gold3"></div>
                                        BCH for buy:                                        <div class="u-stat-numb"><?=$prof_data["bch_buy"];?></div>
                                    </div>
									<div class="u-stat-row">
                                        <div class="ic-gold3"></div>
                                        BCH for withdrawal:                                        <div class="u-stat-numb"><?=$prof_data["bch_withdrawal"];?></div>
                                    </div>

                                    

                                </div>
                                <div class="elfs-image">
                                    <div class="ch_ava_block">
                                        <div style="color:#fff"><small>Avatar</small></div>

                                                                                    <img id="uava" src="<?php echo($avatardefault) ;?>" height="80" />
                                                                                <p><button id="ch_ava" class="btn btn-small">Change</button></p>

                                                                                    <div class="select_ava">
                                                <div id="owl-ava" class="owl-carousel">
                                                                                                            <div class="item" ava="1">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/147813464.jpg" alt="Owl Image"><input type="hidden" name="img" value="147813464.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="2">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/163201773.jpg" alt="Owl Image"><input type="hidden" name="img" value="163201773.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="3">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/164984024.jpg" alt="Owl Image"><input type="hidden" name="img" value="164984024.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="4">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/207396155.jpg" alt="Owl Image"><input type="hidden" name="img" value="207396155.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="5">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/213113768.jpg" alt="Owl Image"><input type="hidden" name="img" value="213113768.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="6">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/248832618.jpg" alt="Owl Image"><input type="hidden" name="img" value="248832618.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="7">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/278042393.jpg" alt="Owl Image"><input type="hidden" name="img" value="278042393.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="8">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/28563197.jpg" alt="Owl Image"><input type="hidden" name="img" value="28563197.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="9">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/290003371.jpg" alt="Owl Image"><input type="hidden" name="img" value="290003371.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="10">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/321056369.jpg" alt="Owl Image"><input type="hidden" name="img" value="321056369.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="11">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/420598978.jpg" alt="Owl Image"><input type="hidden" name="img" value="420598978.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="12">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/465458511.jpg" alt="Owl Image"><input type="hidden" name="img" value="465458511.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="13">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/483479600.jpg" alt="Owl Image"><input type="hidden" name="img" value="483479600.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="14">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/554000392.jpg" alt="Owl Image"><input type="hidden" name="img" value="554000392.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="15">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/557260165.jpg" alt="Owl Image"><input type="hidden" name="img" value="557260165.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="16">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/55805841.jpg" alt="Owl Image"><input type="hidden" name="img" value="55805841.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="17">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/565226877.jpg" alt="Owl Image"><input type="hidden" name="img" value="565226877.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="18">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/60896872.jpg" alt="Owl Image"><input type="hidden" name="img" value="60896872.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="19">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/613564750.jpg" alt="Owl Image"><input type="hidden" name="img" value="613564750.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="20">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/734464658.jpg" alt="Owl Image"><input type="hidden" name="img" value="734464658.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="21">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/75207997.jpg" alt="Owl Image"><input type="hidden" name="img" value="75207997.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="22">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/776296849.jpg" alt="Owl Image"><input type="hidden" name="img" value="776296849.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="23">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/778793977.jpg" alt="Owl Image"><input type="hidden" name="img" value="778793977.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="24">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/859106122.jpg" alt="Owl Image"><input type="hidden" name="img" value="859106122.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="25">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/871196988.jpg" alt="Owl Image"><input type="hidden" name="img" value="871196988.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="26">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/878652928.jpg" alt="Owl Image"><input type="hidden" name="img" value="878652928.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="27">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/940840424.jpg" alt="Owl Image"><input type="hidden" name="img" value="940840424.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="28">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/962402340.jpg" alt="Owl Image"><input type="hidden" name="img" value="962402340.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="29">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/975040589.jpg" alt="Owl Image"><input type="hidden" name="img" value="975040589.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="30">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/996550309.jpg" alt="Owl Image"><input type="hidden" name="img" value="996550309.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="31">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/998806213.jpg" alt="Owl Image"><input type="hidden" name="img" value="998806213.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="32">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ent.jpg" alt="Owl Image"><input type="hidden" name="img" value="ent.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="33">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven1.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven1.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="34">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven2.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven2.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="35">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven3.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven3.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="36">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven4.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven4.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="37">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven5.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven5.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="38">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven6.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven6.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="39">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven7.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven7.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="40">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven8.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven8.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="41">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven9.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven9.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="42">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven10.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven10.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="43">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven11.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven11.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="44">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven12.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven12.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="45">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven13.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven13.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="46">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven14.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven14.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="47">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven15.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven15.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="48">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven16.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven16.jpg">

                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="49">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven17.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven17.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="50">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven18.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven18.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="51">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven19.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven19.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="52">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven20.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven20.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="53">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven21.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven21.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="54">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven22.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven22.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="55">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven23.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven23.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="56">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven24.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven24.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="57">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_elven25.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_elven16.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                            <div class="item" ava="58">
                                                            <form action="" method="post">
<?php $func->csrf(); ?><img src="images/avatars/ava_human1.jpg" alt="Owl Image"><input type="hidden" name="img" value="ava_human1.jpg">
                                                            <button type="submit" class="sel_av_btn btn btn-small">Save</button>
    </form>                                                    </div>
                                                                                                    </div>
                                            </div>
                                                                            </div>


<iframe data-aa='2106411' loading='lazy' src='//ad.a-ads.com/2106411?size=300x250' style='width:300px; height:250px; border:0px; padding:0; overflow:hidden; background-color: transparent;'></iframe>
                                    <div class="user-account-data-item">
                                                                                                                                                          Your username: <b><?=$prof_data["user"];?></b>
                                    </div>
                                    <div class="user-account-data-item">
                                        <input type="hidden" id="change_email_msg" value="E-mail address is successfully changed" />
                                        <input type="hidden" id="verify_email_msg" value="We sent an email with a confirmation link. Please check it." />
                                        Email: <span id="cmail"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="52333f3b3c370d213f333d273b122b333a3d3d7c3420"><?=$prof_data["email"];?></a></span>
                                        <i class="fa fa-check-circle"></i>                                                                             </div>
                                    <div class="user-account-data-item">
                                        Invited by:                                                                                   <?=$prof_data["referer"];?>                                                                           </div>
                                    <div class="user-account-data-item" style="height: 100px;">
                                        Your referral link:                                                                                <input type="text" value="<?php $func->url('?i='.$user_id);?>" title="The English language version of the site" />

                                    </div>
                                </div>
                                <div class="user-pass">
                                    <div class="ref-system"></div>
                                    <div class="invite">
								
                                        <div class="inf-icon"></div>
                                        Invite your friends - Increase your income and profit!                                    </div>
                                    <div class="clr"></div>
                                    <p class="mt10">
                                        <div class="mid-button" onclick="location.href='account/referals'"><i class="fa fa-users"></i> Your Referrals (<?=$refs;?>)</div>
                                    </p>
                                    <!--<p class="mt10">
                                        <div class="mid-button" onclick="location.href='/banners#nav'"><i class="fa fa-bullhorn"></i> Links And Banners</div>
                                    </p>-->
                                    <p class="mt10">
                                        <div class="mid-button" onclick="location.href='/account/chat'"><i class="fa fa-comments"></i> Chat system </div>
                                    </p>
                                    <div class="change_pass">
                                        <small>Password change:</small>
                                        <input type="hidden" id="change_pass_msg" value="Your password has been changed successfully" />
                                        <form action="" method="post">
										<?php $func->csrf(); ?>
                                            <div class="user-account-data-item pb10" style="margin-top: 6px;">
                                                <input type="password" name="old" value="<?=(isset($_POST["password"])) ? $_POST["password"] : false; ?>" placeholder="Your current password">
                                                <input type="password" name="new" placeholder="New password" value="<?=(isset($_POST["password"])) ? $_POST["password"] : false; ?>">
                                                <input type="password" name="re_new" placeholder="Repeat password" value="<?=(isset($_POST["repass"])) ? $_POST["repass"] : false; ?>">
                                                <p class="tac mt10">
												<button type="submit" name="save" class="sel_av_btn btn btn-small"><?php echo $lang['btn']['save'];?></button>
                                                </p>
                                                
                                            </div>

                                        </form>
										
										
                                    </div>
                                </div>
                                <div class="yablock mt30">
                                                                        Tell your friends about "Cash Empire" and make more money together:                                    
                                    <script type="text/javascript" src="//yastatic.net/share2/share.js" charset="windows-1251"></script>
                                    <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,moimir,gplus,twitter,blogger,evernote,linkedin,lj,tumblr,whatsapp,viber,skype,telegram,collections" data-url="https://cashempire.cc/r/492732/en" data-title="Cash Empire - Play and Make Real Money in the Best project ever! $1 bonus for registration!" data-description="Cash Empire is The Best innovative investment project, Quick and Easy Money all around the World!" data-image="http://cashempire.cc/images/slider/slide3_en.jpg" ></div>
                                </div>
                                <p class="mt20 vkshare tac">
                                    <script type="text/javascript" src="https://vk.com/js/api/share.js?90" charset="windows-1251"></script>
                                    <script type="text/javascript">
                                        document.write(VK.Share.button({
                                                url: 'https://cashempire.cc//r/492732',
                                                title: 'Cash Empire - Play and Make Real Money in the Best project ever! $1 bonus for registration!',
                                                description: 'Cash Empire is The Best innovative investment project, Quick and Easy Money all around the World!',
                                                image: 'http://cashempire.cc/images/slider/slide3_en.jpg',
                                                noparse: true
                                            },
                                            {
                                                type: 'button_nocount'  ,
                                                text: 'Invite Your Friends in VK'
                                            }
                                        ));
                                    </script>
                                </p>

                                <hr/>
                                <div class="user_competition_action">
                                    <h4>Your participation in the Cash Empire competitions</h4>
                                    <div class="user_comp_actions">



                                                                                                                    </div>
                                </div>
                            </div>
                            <div class="decor middle"></div>
                            <div class="decor left"></div>
                            <div class="decor right"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="devider bottom"></div>
        </section>
        <script>
            $('.email-verify-link').on('click', function() {
                $(this).fadeOut(700);
            })
        </script>        

    
    <!-- Snow 3D -->
    <script type="text/javascript" src="/js/winter/ThreeCanvas.js"></script>
    <script type="text/javascript" src="/js/winter/Snow.js"></script>
    <script type="text/javascript" src="/js/winter/SnowInit.js"></script>
    <!-- Snow 3D -->

    <script src="https://cashempire.cc/js/customscrollbar/jquery.mCustomScrollbar.concat.min.js?6"></script>
    <script src="https://cashempire.cc/js/slider/jquery.bxslider.js?6"></script>
    <script src="https://cashempire.cc/js/owl-carousel/owl.carousel.min.js?6"></script>

    <script type="text/javascript" src="https://cashempire.cc/js/custom.min.js?34"></script>
    <script type="text/javascript" src="https://cashempire.cc/js/cbonuses.js?1"></script>
<!--    <script type="text/javascript" src="js/no_selection.js"></script>-->

<!-- Yandex.Metrika counter --> <script type="text/javascript"> (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter39774535 = new Ya.Metrika({ id:39774535, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script> <noscript><div><img src="https://mc.yandex.ru/watch/39774535" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter -->

</body>
</html>