-<?
- session_start();
-
+<?php
+ require_once "functions.php";
+ require_once "sessions.php";
+ require_once "sanity_check.php";
+ require_once "version.php";
require_once "config.php";
+ require_once "db-prefs.php";
- $_SESSION["uid"] = null;
- $_SESSION["name"] = null;
- $_SESSION["access_level"] = null;
-
- session_destroy();
-
- if (!USE_HTTP_AUTH) {
- header("Location: login.php");
- } else {
- header("Location: tt-rss.php");
- }
+ logout_user();
+ header("Location: tt-rss.php");
?>