Вход Регистрация
Файл: public_html/avatar.php
Строк: 16
<?php
include ('./system/common.php');
include (
'./system/functions.php');
include (
'./system/user.php');
$title 'Аватар';
include (
'./system/h.php');
if(!
$user) {
header('location: /');
exit;
}
if(
$_GET['avatar'] == 2) {
mysql_query("update `users` set `avatar` = 0 where `id` = '".$user['id']."'");
header('location: /user');
exit();
}
if(
$_GET['avatar'] == 1) {
mysql_query("update `users` set `avatar` = 1 where `id` = '".$user['id']."'");
header('location: /user');
exit();
}
echo 
'<a href="?avatar=2" class="link"><img src="/images/avatars/0.png"></a>';
echo 
'<a href="?avatar=1" class="link"><img src="/images/avatars/1.png"></a>';
include (
'./system/f.php');
?>
Онлайн: 0
Реклама