@ 2015-11-17T19:49:23Z <?php
//error_reporting(0);
include('conf.php');
$site=$_SERVER['HTTP_HOST'];
@mysql_query('set character_set_client="cp1251"');
@mysql_query('set character_set_results="cp1251"');
@mysql_query('set collation_connection="cp1251_general_ci"');
ini_set('session.use_cookies', 'On');
ini_set('session.use_trans_sid', 'Off');
session_set_cookie_params(0, '/');
session_start();
$time=time()+$time_move*3600;
$start_time=strtotime($start_data);
$work_time=floor(($time-$start_time)/(24*3600));
if($start_time-$time<=0){
if($d_isum!=0){
$d_max=$d_max+$d_isum*floor(($time-$start_time)/($d_itime*3600));
if($d_max>$d_istop){ $d_max=$d_istop; }
}
}
// ======================================== IP ====================================================================================
if(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'),'unknown'))
$ip=getenv('HTTP_CLIENT_IP');
elseif(getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown'))
$ip=getenv('HTTP_X_FORWARDED_FOR');
elseif(getenv('REMOTE_ADDR') && strcasecmp(getenv("REMOTE_ADDR"), 'unknown'))
$ip=getenv('REMOTE_ADDR');
elseif(!empty($_SERVER['REMOTE_ADDR']) && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown'))
$ip=$_SERVER['REMOTE_ADDR'];
else{$ip='unknown';}
// ======================================== ÏÅÐÅÕÎÄ ÐÅÔÅÐÀËÀ ====================================================================================
if(!empty($_GET['ref'])){
session_unset();
$_GET['ref']=preg_replace("#[^a-z\_\-0-9]+#i",'',$_GET['ref']);
if($_GET['ref']!=''){
$refq=mysql_query("SELECT login FROM users WHERE login='".$_GET['ref']."'");
if(mysql_num_rows($refq)>0){
$refm=mysql_fetch_row($refq);
$_SESSION['ref_login']=$refm[0];
}
}
}
// ======================================== ÀÂÒÎÐÈÇÀÖÈß ====================================================================================
define('SID',session_id());
// ÔÓÍÊÖÈß ÂÕÎÄÀ
function login($uname,$qiwi){
$q=mysql_query("SELECT uid,login,qiwi,ref FROM users WHERE login='$uname' AND qiwi='$qiwi';");
$user=mysql_fetch_row($q);
if(!empty($user)) {
session_unset();
$_SESSION['uid']=$user[0];
$_SESSION['login']=$user[1];
$_SESSION['login2']=$user[1];
$_SESSION['qiwi']=$user[2];
$_SESSION['ref']=$user[3];
$_SESSION['can']=1;
return true;
}
else{
return false;
}
}
// ÅÑËÈ ÀÂÒÎÐÈÇÎÂÀÍ, ÁÅÐ¨Ì ÀÍÊÅÒÓ ÈÇ ÑÅÑÑÈÈ
if(!empty($_SESSION['uid']) && !empty($_SESSION['login']) && !empty($_SESSION['qiwi']) && isset($_SESSION['ref'])) {
define('USER_LOGGED',true);
$u_id=$_SESSION['uid'];
$u_login=$_SESSION['login'];
$u_login=$_SESSION['login2'];
$u_qiwi=$_SESSION['qiwi'];
$u_ref=$_SESSION['ref'];
}
else { define('USER_LOGGED',false); }
// ÏÐÈ¨Ì ÄÀÍÍÛÕ ÈÇ ÔÎÐÌÛ
if (!empty($_POST['login']) && !empty($_POST['qiwi'])) {
$_POST['login']=preg_replace("#[^a-z\_\-0-9]+#i",'',$_POST['login']);
$_POST['qiwi']=preg_replace('#[^a-zA-Z\-\_0-9]+#','',$_POST['qiwi']);
$_POST['qiwi']=md5($_POST['qiwi']);
if(login($_POST['login'],$_POST['qiwi'])){ header('Refresh: 0'); exit; }
else{ $wrong_lq=1; }
}
// ======================================== ÎÍËÀÉÍ ÞÇÅÐÛ ==============================================================================
function count_online($ip,$time){
if($ip!='unknown'){
$ip=preg_replace("#[^0-9]+#i",'',$ip);
$last_time=$time+20*60;
$result=mysql_query("SELECT last_time FROM online WHERE ip='$ip'");
if(mysql_num_rows($result)>0){ mysql_query("UPDATE online SET last_time=$last_time WHERE ip='$ip' LIMIT 1"); }
else{ mysql_query("INSERT INTO online (ip,last_time) VALUES ('$ip',$last_time)"); }
mysql_query('DELETE FROM online WHERE last_time<'.$time);
}
return mysql_num_rows(mysql_query('SELECT * FROM online'));
}
$dataq=mysql_query("SELECT * FROM data");
$d=mysql_fetch_row($dataq);
$d_users=$d[0];
$d_vklad=$d[1];
$d_popolnenie=$d[2];
$d_vyvod=$d[3];
$d_premod_r=$d[4];
$d_count_r=$d[5];
$d_plus=$d[6];
$d_with=$d[7];
$d_plus_n=$d[8];
$d_with_n=$d[9];
$d_new_u=$d[10];
$free=$d_plus-$d_with-($d_plus*($tocom/100));
if($start_time-$time>0){
$d_vklad=1;
$d_popolnenie=1;
$d_vyvod=1;
}
$uu=substr($d_users,-2);
$ux1=array(2,3,4,22,23,24,32,33,34,42,43,44,52,53,54,62,63,64,72,73,74,82,83,84,92,93,94);
$ux2=array(1,21,31,41,51,61,71,81,91);
$ut='Ó÷àñòíèêîâ';
if(in_array($uu,$ux1)){ $ut='Ó÷àñòíèêà'; }
elseif(in_array($uu,$ux2)){ $ut='Ó÷àñòíèê'; }
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<title>Âêëàäû íà 12 è 24 ÷àñà ïîä ïðîöåíòû</title>
<link rel="icon" href="images/icon.png" type="image/x-icon" />
<link rel="shortcut icon" href="images/icon.png" type="image/x-icon" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="css/pages.css" type="text/css" />
<link rel="stylesheet" href="css/cabinet.css" type="text/css" />
<script type="text/javascript" src="js.js"></script>
<script type="text/javascript" src="http://vk.com/js/api/share.js?90" charset="windows-1251"></script>
</head>
<body>
<br>
<table class="index_top" align="center" cellpadding="0px" cellspacing="0px">
<tr>
<td height="105px"></td>
<td align="right"></td>
</tr>
<tr>
<td class="index_menu" colspan="2">
<a href="/">Ãëàâíàÿ</a>
<a href="/?page=marketing">Ìàðêåòèíã</a>
<a href="/?page=faq">Âîïðîñ-Îòâåò</a>
<a href="/?page=advert" style="background:none;margin:0;padding:0;margin-top:-5px;">Áàííåðû</a>
</td></tr>
<tr><td class="index_vklady" colspan="2"></td></tr>
<tr><td class="index_center" colspan="2"></td></tr>
<tr><td class="index_referalu" colspan="2">
</td></tr>
<tr>
<td class="index_stat_left"><font color="#ffffff"><?php echo $d_users; ?></font> <font color="#ffffff"><?php echo $ut; ?></font></td>
<td class="index_stat_right">
<span class="index_stat_plus"><font color="#ffffff">Ïîïîëíåíî: <?php echo number_format($d_plus,2,'.',','); ?> Ðóá.</font></span>
<span class="index_stat_with"><font color="#ffffff">Âûâåëè: <?php echo number_format($d_with,2,'.',','); ?> Ðóá.</font></span>
<span class="index_stat_free"><font color="#ffffff">Áàëàíñ: <?php echo number_format($free,2,'.',','); ?> Ðóá.</font></span>
</td>
</tr>
</table>
<table class="osnova_table" align="center" cellpadding="0px" cellspacing="0px" width="980px">
<tr>
<td class="osnova_left">
<?php if(!USER_LOGGED){ ?>
<?php if(!empty($wrong_lq)){ echo '<div class="wrong_lq">Íåâåðíûé ëîãèí-êîøåë¸ê</div>'; } ?>
<div class="osnova_title"><font color="#ffffff">Âõîä â àêêàóíò</font></div>
<table class="osnova_vhod" cellpadding="0px" cellspacing="0px">
<tr>
<td colspan="2">
<form id="enter" action="/" method="POST" style="margin:0;padding:0">
<input class="osnova_vhod_input_login" type="text" name="login" placeholder="Ëîãèí" maxlength="20">
<input class="osnova_vhod_input_qiwi" type="text" name="qiwi" placeholder="Ïàðîëü" maxlength="30">
</form>
</td>
</tr>
<tr>
<td><a class="osnova_vhod_registration" href="/?page=registration">Ðåãèñòðàöèÿ</a></td>
<td align="right"><a class="osnova_vhod_enter" href="javascript:with(document.getElementById('enter')){ submit(); }">Âîéòè</a></td>
</tr>
<tr><td colspan="2"><br></td></tr>
</table>
<?php } else { ?>
<div class="osnova_title"><font color="#ffffff">Ëè÷íûé êàáèíåò</font></div>
<div class="cabinet">
<a href="/?page=vklady">Ìîè âêëàäû</a>
<a href="/?page=popolnit">Ïîïîëíèòü áàëàíñ</a>
<a href="/?page=vyvesti">Âûâåñòè äåíüãè</a>
<a href="/?page=refs">Ìîè ðåôåðàëû</a>
<a href="/logout.php">Âûõîä</a>
</div>
<?php } ?>
<div class="osnova_title"><font color="#ffffff">Ìû â ñîö.ñåòÿõ</font></div>
<script type="text/javascript" src="//vk.com/js/api/openapi.js?105"></script>
<!-- VK Widget -->
<center><div id="vk_groups"></div>
<script type="text/javascript">
VK.Widgets.Group("vk_groups", {mode: 0, width: "230", height: "400", color1: 'FFFFFF', color2: 'FF0000', color3: 'FF0000'}, 20003922);
</script></center>
<br>
<div class="osnova_online">Íà ñàéòå: <font color="#778899"><?php echo count_online($ip,$time); ?></font></div>
</td>
<td class="osnova_right">
<?php
$nay=0;
if(!empty($_GET['page'])){
$req=$_GET['page'];
$req=str_replace('/?page=','',$req);
if(in_array($req,$inc)){ $nay=1; include ('pages/'.$req.'.php'); }
if(USER_LOGGED && in_array($req,$inc_cab)){ $nay=1; include ('cabinet/'.$req.'.php'); }
if(!USER_LOGGED && $req=='registration'){ $nay=1; include ('pages/registration.php'); }
}
if($nay!=1){ include ('pages/main.php'); }
?>
</td>
</tr>
</table>
<table align="center" cellpadding="0px" cellspacing="0px">
<tr><td class="footer">
<div class="podel">
<script type="text/javascript"><!--
document.write(VK.Share.button(false,{type: "round", text: "Ïîäåëèòüñÿ"}));
--></script></div>
</td></tr>
</table>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.1.25 , 7.2.0 - 7.2.13 , 7.3.0 - 7.3.1 Warning: include(): open_basedir restriction in effect. File(conf.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/mAJr5 on line 4
Warning: include(conf.php): failed to open stream: Operation not permitted in /in/mAJr5 on line 4
Warning: include(): Failed opening 'conf.php' for inclusion (include_path='.:') in /in/mAJr5 on line 4
Notice: Undefined index: HTTP_HOST in /in/mAJr5 on line 6
Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/mAJr5:8
Stack trace:
#0 {main}
thrown in /in/mAJr5 on line 8
Process exited with code 255 . Output for 7.1.20 Warning: include(): open_basedir restriction in effect. File(conf.php) is not within the allowed path(s): (/tmp:/in) in /in/mAJr5 on line 4
Warning: include(conf.php): failed to open stream: Operation not permitted in /in/mAJr5 on line 4
Warning: include(): Failed opening 'conf.php' for inclusion (include_path='.:') in /in/mAJr5 on line 4
Notice: Undefined index: HTTP_HOST in /in/mAJr5 on line 6
Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/mAJr5:8
Stack trace:
#0 {main}
thrown in /in/mAJr5 on line 8
Process exited with code 255 . Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.10 Warning: include(conf.php): failed to open stream: No such file or directory in /in/mAJr5 on line 4
Warning: include(): Failed opening 'conf.php' for inclusion (include_path='.:') in /in/mAJr5 on line 4
Notice: Undefined index: HTTP_HOST in /in/mAJr5 on line 6
Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/mAJr5:8
Stack trace:
#0 {main}
thrown in /in/mAJr5 on line 8
Process exited with code 255 . Output for 5.5.0 - 5.5.37 , 5.6.0 - 5.6.28 Warning: include(conf.php): failed to open stream: No such file or directory in /in/mAJr5 on line 4
Warning: include(): Failed opening 'conf.php' for inclusion (include_path='.:') in /in/mAJr5 on line 4
Notice: Undefined index: HTTP_HOST in /in/mAJr5 on line 6
Process exited with code 255 . preferences:dark mode live preview
107.97 ms | 402 KiB | 100 Q