View file sdark.mobi/fs/index.php

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

require_once'../core/head.php';
require_once'resources/fotostrana.sdk.php';


if (FOTOSTRANA_SESSION_KEY || FOTOSTRANA_VIEWER_ID)
{ 
define('FOTOSTRANA_SESSIONKEY', $_REQUEST['sessionKey']);
define('FOTOSTRANA_VIEWER_ID', $_REQUEST['viewerId']);

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

$_SESSION['fs_id']   = $_GET['viewerId'];
$_SESSION['fs_key']  = $_GET['sessionKey'];

$_SESSION['ok_key']   = '';
$_SESSION['ok_sec_key']   = '';
$_SESSION['ok_id']  = '';

$req = mysql_query("SELECT * FROM `user` WHERE `fs_id`=".$_GET['viewerId']."");
$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';

?>