<?php
$_OPTIMIZATION["title"] = $lang['home']['title'];
$tfstats = time() - 60*60*24;
$db->Query("SELECT 
(SELECT COUNT(*) FROM db_users_a) all_users,
(SELECT SUM(insert_sum) FROM db_users_b) all_insert, 
(SELECT SUM(payment_sum) FROM db_users_b) all_payment, 
(SELECT COUNT(*) FROM db_users_a WHERE date_reg > '$tfstats') new_users");
$stats_data = $db->FetchArray();
$db->Query("SELECT COUNT(id) all_users, SUM(payment_sum) payment_sum FROM db_users_b");
$site_stats = $db->FetchArray();

?>

<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">
            <div class="top-wrapper" style="">
                <ul class="bxslider" style="height: auto; ">
                    <li><img src="https://cashempire.cc/images/slider/slide1_en.jpg" alt="Cash Empire, заработок, экономическая игра" /></li>
                    <li><img src="https://cashempire.cc/images/slider/slide2_en.jpg" alt="cashempire, заработок, автоматические выплаты" /></li>
                    <li><img src="https://cashempire.cc/images/slider/slide3_en.jpg" alt="cashempire, заработок на дому, автоматические выплаты, игра с выводом средств" /></li>
                </ul>
            </div>
            <div class="inner-wrapper">
                <div class="content-box elven v2 pt">
                    <h2><span translate="no">Cash Empire</span></h2>
																			<center>		
																			<br>
																			<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="inner">
                        <div class="article mainpage">
                            <img class="welcome_character" src="/images/character_elf_min.png" />
                            <h1 class="st-center">Welcome to <span>Cash Empire</span><br/><small>- the best game project with money withdrawal !</small></small></h1>

                            <div class="clr"></div>
                            <div class="mp_main">
                                <img class="mp_logo" src="https://cashempire.cc/images/logo.png">
                                <div class="mp_text">
                                    <h4 class="st-center">We pay real money <br/>for virtual gold coins!</h4>
                                    <img src="/images/money-icon.png" width="32" style="float: right; margin: -48px 0 0 0;" />
                                    <p>
<a href="/"><strong>CASH EMPIRE</strong></a> is a new generation game project where you can <strong>make money from home and around the world!</strong>
</p>
<p>
The project is developed by competent programmers and experienced designers, thus you have an efficient, and the most important - fair game with unlimited possibilities for making big money. <strong>Just register to make your money grow!</strong>
</p>                                </div>
                            </div>
							<?PHP if(!$_SESSION["user"]) { ?>
                            <p class="st-center"><a class="mp_reg" href="/signup"><button class="big-button">Register For Free!</button></a></p>
							<?} ?>
                            <div class="clr"></div>

                            <div class="yablock mt30 tac">
                                                                Tell your friends about "Cash Empire" and make more money together:                                <script type="text/javascript" src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js" charset="windows-1251"></script>
                                <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-counter="" data-url="https://cashempire.cc" 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>
                        </div>
                    </div>
                    <div class="decor middle"></div>
                    <div class="decor left"></div>
                    <div class="decor right"></div>
                </div>
            </div>

            <div class="bottom-wrapper">
                <h1>Make just three steps to success</h1>
                <div class="whyelvengold">
                    <div class="three_steps">
                        <div class="istep"><div class="st_text"><div style="padding-top: 10px;">Grow <br/>your city!</div></div></div>
                        <div class="istep"><div class="st_text"><div style="padding-top: 10px;">Gain <br/>income!</div></div></div>
                        <div class="istep"><div class="st_text"><div style="padding-top: 10px;">Withdraw <br/>real money!</div></div></div>
                    </div>
                    <div class="advantages">
                        <div class="adv adv1">Income<br/>every minute</div>
                        <div class="adv adv2">A Unique<br/>gameplay!</div>
                        <div class="adv adv3">Daily cash<br/>withdrawal</div>
                        <div class="adv adv4">Free building<br/>as gift</div>
                        <div class="adv adv5">Referral system<br/>Instant cash!</div>
                    </div>
                </div>
            </div><br>
			<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="inner-wrapper">
                <div class="content-box elven v2 pt">
                    <h2><span translate="no">Cash Empire</span></h2>
                    <div class="inner">
                        <div class="article mainpage">
                            <h3 class="st-center t-orange">The "CASH EMPIRE" project is based on three simple principles:</h3>
                            <div class="principles">
                                <div class="pitem">
                                    <img src="/images/server-uniq.png" />
                                    <h3>Uniqueness</h3>
                                    <p><strong>Cash Empire</strong> is a unique project for earning money. It had been created by the best specialists in the fields of design, finance and web technology. Perfectly designed economic component of the game, as well as the simplicity and ease of the gameplay surely will not leave indifferent even the most demanding user. 
Let yourself earning money with pleasure!</p>
                                </div>
                                <div class="pitem">
                                    <img src="/images/server-stable.png" />
                                    <h3>Stability and Security</h3>
                                    <p>The project was created with a great emphasis on the stability of your earnings, its withdrawal and the system as a whole. Playing the "Cash Empire" you will be able to receive income any moment and withdraw your money to e-wallet any day at the convenient for you time! Another important advantage of our project is the safety and protection of your personal data and funds.
</p>
                                </div>
                                <div class="pitem">
                                    <img src="/images/server-opened.png" />
                                    <h3>Transparency</h3>
                                    <p>In our project we had implemented a simple and open system of earnings and money withdrawal. There are no points, energy, hidden accounts or any other restrictions of  withdrawal your money In "Cash Empire". We also offer you the unlimited opportunities for making money. Just play and get real money while growing your virtual elven city and enjoying the game!</p>
                                </div>
                            </div>
                            <h3 class="st-center t-orange">Our statistics</h3>
                            <div class="statictics">
                                <div class="stat st1">
                                    <span class="hex-border"></span>
                                    <div class="content">
                                        Registered<br/>Users                                        <span><?php echo 456+ $stats_data["all_users"]; ?></span>
                                        <div class="man"></div>
                                    </div>
                                </div>
                                
                                <div class="stat st3">
                                    <span class="hex-border"></span>
                                    <div class="content">
                                        Days<br/>From start                                        <span><?php echo intval(((time() - $config->SYSTEM_START_TIME) / 86400 ) +1); ?></span>
                                        <div><i class="fa fa-calendar"></i></div>
                                    </div>
                                </div>
                                
                                <div class="stat st5">
                                    <span class="hex-border"></span>
                                    <div class="content">
                                        Total<br/>Paid                                        <span><?php echo sprintf("%.6f",$stats_data["all_payment"]); ?> </span>
                                        <div class="ic-gold3"></div>
                                    </div>
                                </div>
                            </div>

                            <div class="clr"></div>
                            <div class="yablock mt30 tac">
                                                                Tell your friends about "Cash Empire" and make more money together:                                <script type="text/javascript" src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js" charset="windows-1251"></script>
                                <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-counter="" data-url="https://cashempire.cc" data-title="Cash Empire - Play and Make Real Money in the Best project ever! 0.001 BCH 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>
                            <br>
							<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button" data-size="small"><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php $func->url('?i='.$user_id);?>" class="fb-xfbml-parse-ignore">Share</a></div>

							</div>

                        </div>
                    </div>
                    <div class="decor middle"></div>
                    <div class="decor left"></div>
                    <div class="decor right"></div>
                </div>

            </div>

            <div class="devider bottom"></div>
			 </section> 