<html data-useragent="Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)" class="win chrome chrome39 webkit webkit5">
<head><title><?=$title;?></title>
<meta charset="UTF-8"><meta name="viewport" content="width=device-width">

<link rel="shortcut icon" href="/favicon.png" type="image/x-icon">
<link rel="icon" href="/favicon.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="/tmpl/still/jquery.reject.css">
<link rel="stylesheet" type="text/css" href="/tmpl/still/stylesheet.css">
<link rel="stylesheet" type="text/css" href="/tmpl/still/owl.carousel.css">
<link rel="stylesheet" type="text/css" href="/tmpl/still/jquery-ui.min.css">
<link rel="stylesheet" type="text/css" href="/tmpl/still/style.css">
<!--[if IE]><link rel="stylesheet" type="text/css" href="/tmpl/still/ie.css" /><![endif]-->
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">

<script type="text/javascript" src="/tmpl/still/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="/tmpl/still/jquery.reject.js"></script>
<script type="text/javascript" src="/tmpl/still/jquery-ui.min.js"></script>
<script type="text/javascript" src="/tmpl/still/owl.carousel.min.js"></script>
<script type="text/javascript" src="/tmpl/still/script_ru.js"></script>
</head>
<body>
<header class="inner" >
<?php
$cusers		= mysql_num_rows(mysql_query("SELECT id FROM users")) + cfgSET('fakeusers');
$cwm		= mysql_num_rows(mysql_query("SELECT id FROM users WHERE pm_balance != 0 OR lr_balance != 0")) + cfgSET('fakeactiveusers');

$money	= cfgSET('fakewithdraws');
$query	= "SELECT sum FROM output WHERE status = 2";
$result	= mysql_query($query);
while($row = mysql_fetch_array($result)) {
	$money = $money + $row['sum'];
}

$depmoney1	= cfgSET('fakedeposits');
$depmoney2	= cfgSET('fakedeposits');
$query	= "SELECT sum FROM deposits  WHERE plan = 2";
$result	= mysql_query($query);
while($row = mysql_fetch_array($result)) {
	$depmoney1 = $depmoney1 + ($row['sum']/65);
	$depmoney1 = sprintf( '%01.2f',$depmoney1);
}
$query	= "SELECT sum FROM deposits  WHERE plan = 1";
$result	= mysql_query($query);
while($row = mysql_fetch_array($result)) {
	$depmoney2 = $depmoney2 + $row['sum'];
	$depmoney = sprintf( '%01.2f',$depmoney2+$depmoney1);
}
?>
<div class="headingg">
<div class="container">
	<div class="line1">
	<a href="/" class="logo"></a>
	<div class="contacts">
		<div class="col">
			
			<a href="mailto:admin@120percent.ru" style="background-image: url(/tmpl/img/mail.png)">admin@120percent.ru</a>
		</div>       
		<div class="col">
			<a href="skype:live:admin120pecent?add" style="background-image: url(/tmpl/img/skype.png)">live:admin120pecent</a>

		</div>    
	</div>    
		  <ul class="soc">
			   
			  </ul>
			  <div class="lk">
			  <a href="/login/" class="log btn">войти</a>
			  <a href="/registration/" class="reg btn">зарегистрироваться</a>
			  </div>  
	</div> 
		  <ul class="menu">
			  <li><a href="/index.php" class="menuHome active">главная</a></li>
			  <li><a href="/law/" class="menuHome">Правила</a></li>
			  <li><a href="/faq/" class="menuHome">FAQ</a></li>
			  <li><a href="/news/" class="menuHome">Новости</a></li>
			  <li><a href="skype:?chat&blob=dOEZuYjYil4KyW-uuX1WWZVFMYWuMUS2Lo2ew0-dkPytOyaeZnowOnDO5IuqRSNbSxfIwMVkl-HEgmyLcQ5NNPk" class="menuHome">Skype Чат</a></li>
			    <? if($login){?><li><a href="/enter/" class="menuHome">Кабинет</a></li><? } ?>
			  <li><a href="/contacts/" class="menuHome">Контакты</a></li>
		  </ul>
		    
	   <div class="stat">
			<div class="item" style="background-image: url(/tmpl/img/3iconka_dnej_rab.png)">
				  <span>Дата старта</span>
				  <span class="n"><?php print date("d.m.Y", cfgSET('datestart')); ?></span>
			</div>  
		  <div class="item" style="background-image: url(/tmpl/img/3iconka_investors.png)">
			  <span>Инвесторов</span>
			  <span class="n"><?php print $cusers; ?></span>
		  </div>      
			<div class="item" style="background-image: url(/tmpl/img/3iconka_colum_invest.png)">
				  <span>Инвестировано</span>
				  <span class="n"><?php print $depmoney; ?>$</span>
			</div>    
			  <div class="item" style="background-image: url(/tmpl/img/3iconka_viplacheno.png)">
			  <span>Выплачено</span>
			  <span class="n"><?php print $money; ?>$</span>
			  </div>    
		</div>     
	</div>  

</header>
<div class="content">
     

     <?php
	defined('ACCESS') or die();
	if(!$page) {
		include "includes/index.php";
	} elseif(file_exists("../".$page."/index.php")) {
		
		include "../".$page."/".$page."_ru.php";
	} else {
		include "includes/errors/404.php";
	}
?>
</div> 
   </div> 
     
  
	<footer>
	<div class="container">
  
	    <div class="cols cfix"><div class="col1"><a href="/" class="logo"></a><p>120percent.ru Copyright © 2016</p><p>Все права защищены.</p></div>
		<div class="col2"><span class="cap">Мы принимаем:</span><center><p><img src="/tmpl/img/brands1.png" alt=""><img src="/tmpl/img/brands2.png" alt=""><img src="/tmpl/img/brands4.png" alt=""></p></center></div>
		
		<div class="col4"><span class="cap">Контакты:</span>
		<a href="mailto:admin@120percent.ru" style="background-image: url(/tmpl/img/mail.png)">admin@120percent.ru</a>
		<a href="skype:live:admin120pecent?add" style="background-image: url(/tmpl/img/skype.png)">live:admin120pecent</a>
</div></div>
	<ul class="menu">
			  
			  <li><a href="/index.php" class="menuHome active">главная</a></li>
			  <li><a href="/law/" class="menuHome">Правила</a></li>
			  <li><a href="/faq/" class="menuHome">FAQ</a></li>
			  <li><a href="/news/" class="menuHome">Новости</a></li>
			  <li><a href="skype:?chat&blob=dOEZuYjYil4KyW-uuX1WWZVFMYWuMUS2Lo2ew0-dkPytOyaeZnowOnDO5IuqRSNbSxfIwMVkl-HEgmyLcQ5NNPk" class="menuHome">Skype Чат</a></li>
			  <li><a href="/contacts/" class="menuHome">Контакты</a></li>
	</ul>
	</div>  
	</footer>
  <!-- Start SiteHeart code -->
<script>
(function(){
var widget_id = 851987;
_shcp =[{widget_id : widget_id}];
var lang =(navigator.language || navigator.systemLanguage 
|| navigator.userLanguage ||"en")
.substr(0,2).toLowerCase();
var url ="widget.siteheart.com/widget/sh/"+ widget_id +"/"+ lang +"/widget.js";
var hcc = document.createElement("script");
hcc.type ="text/javascript";
hcc.async =true;
hcc.src =("https:"== document.location.protocol ?"https":"http")
+"://"+ url;
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hcc, s.nextSibling);
})();
</script>
<!-- End SiteHeart code -->   
</body></html>