View file sdark.mobi/ok/index.php

File size: 1.89Kb
<?
require_once'../core/system.php';
$header='Первый шаг';
require_once'../core/head.php';


if (isset($_GET['sig']) && isset($_GET['session_key']) && isset($_GET['session_secret_key']) && isset($_GET['logged_user_id']))
{

setcookie('nick', '', time() - 84600 * 30, '/');
setcookie('pass', '', time() - 84600 * 30, '/');

$_SESSION['fs_key']   = '';
$_SESSION['fs_id']   = '';
$_SESSION['m_key']   = '';
$_SESSION['m_id']  = '';
$_SESSION['mobile_spec']  = '';
$_SESSION['ok_key']   = $_GET['session_key'];
$_SESSION['ok_sec_key']   = $_GET['session_secret_key'];
$_SESSION['ok_id']  = $_GET['logged_user_id'];

$req = mysql_query("SELECT * FROM `user` WHERE `ok`=".$_GET['logged_user_id']."");
$nick = mysql_fetch_array($req);
$avto = mysql_num_rows($req);
if($avto==0){
   echo'<table width="100%" border="0"  cellpadding="0" cellspacing="0" style="color:#E5CBB7;font-size:11px;">
<tbody>
<tr>
<div class="mli">
<div class="empty2"></div>
<center>
Выбери, кем ты будешь в этом жестоком мире - храбрым и сильным воином или хрупкой, но прекрасной воительницей 
</center>
<div class="empty2"></div>
</div>
<div class="line"></div>
<td align="center" width="45%"><div class="dli">
<div class="foot">
<a href="/start/step-1?act=m'.(!empty($inv['id'])?'&inv='.$inv['id']:null).'"><img src="/images/start/step-1-m.png"></a>
</td>
</div>
<td align="center" width="45%">
<div class="dli">
<div class="foot">
<a href="/start/step-1?act=w'.(!empty($inv['id'])?'&inv='.$inv['id']:null).'"><img src="/images/start/step-1-w.png"></a>
</div>
</td>
</tbody>
</table>
</div>';
} else {
	
setcookie('nick', $nick['nick'], time() + 84600 * 30, '/');
setcookie('pass', $nick['pass'], time() + 84600 * 30, '/');
header('Location: /');
exit();
}
}

header('Location: /'.(!empty($inv['id'])?'?ref='.$inv['id']:null).'');
  

require_once '../core/foot.php';

?>