View file sdark.mobi/user/settings.php

File size: 2.18Kb
<?php
require_once '../core/system.php';

$req = mysql_query("SELECT ban from `ban` where `id_us` = '".$user['id']."'  and `time` > '".$_SERVER['REQUEST_TIME']."'");
$ban = mysql_fetch_array($req);

if($ban['ban'] == 3){
	header('Location: /moduls/ban');
}

if(!isset($user['id'])) header('Location: /');

$header = 'Настройки';

require_once'../core/head.php';

if($user['mesto'] != 'Настройки') mysql_query("UPDATE `user` set `mesto` = 'Настройки' where `id` = '".$user['id']."'");

if($user['save'] < 1){
	
	header('Location: /');

}

echo"<div class='but-list'>
<a href='/set/nick'>
<img src='/images/icon/r.png'>
Сменить ник 
<img src='/images/icon/gold.png'>
<font color='C9C9C9'>250</font>
</div>
</a>

<div class='but-list'>
<a href='/set/sex'>
<img src='/images/icon/r.png'>
Сменить пол 
<img src='/images/icon/gold.png'>
<font color='C9C9C9'>50</font>
</div>
</a>

<div class='but-list'>
<a href='/set/empire'>
<img src='/images/icon/r.png'>
Сменить империю 
<img src='/images/icon/gold.png'>
<font color='C9C9C9'>100</font>
</div>
</a>";

if($user['pumpit'] == 0 AND $user['fs_id'] == 0 AND $user['ok'] == 0 AND $user['mail'] == ''){

echo"<div class='but-list'>
<a href='/set/email'>
<img src='/images/icon/r.png'>
Сменить e-mail
</a>
</div>";

}
if($user['pumpit'] == 0 AND $user['fs_id'] == 0 AND $user['ok'] == 0 AND $user['mail'] == 0) echo"<div class='but-list'>
<a href='/set/pass'>
<img src='/images/icon/r.png'>
Сменить пароль
</div>
</a>";


if($user['kom'] == 1){
	
	$kom = 'Выключено';
	
} else {
	
	$kom = 'Включено';
	
}


echo"<div class='but-list'>
<a href='/set/team'>
<img src='/images/icon/r.png'>
Приглашения в команды 
<font color='grey'>(".$kom.")
</font>
</a>
</div>";

//echo "<div class='but-list'><a href='/set/msg'><img src='/images/icon/r.png'> Почта только для друзей <font color='C9C9C9'>(Включено)</font></a></div>";


echo"<div class='but-list'>
<a href='/set/color'>
<img src='/images/icon/r.png'>
Сменить цвет ника 
<img src='/images/icon/gold.png'>
<font color='C9C9C9'>5</font>
</a>
</div>";

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