diff --git a/main.php b/main.php
index 8c8ad86..bd6f3e5 100644
--- a/main.php
+++ b/main.php
@@ -2,8 +2,9 @@
ob_start("ob_gzhandler");
session_start();
$errkom = '';
+$get = filter_input(INPUT_SERVER, 'QUERY_STRING');
+if ($get === 'exit') session_destroy();
if (!isset($_SESSION['uid'])) header("Location: index.php");
-
require_once 'functions.php';
$tmaz = time();
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);
diff --git a/top_menu.php b/top_menu.php
index 94dbc03..75e09bb 100644
--- a/top_menu.php
+++ b/top_menu.php
@@ -33,6 +33,7 @@
Клан
Особые умения
Форум
+ Выход