]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove calls to error.php
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 31 Mar 2006 05:34:26 +0000 (06:34 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 31 Mar 2006 05:34:26 +0000 (06:34 +0100)
stats.php
tt-rss.js

index 730bea252eced4824ecc3d6a23c19d79e120a9aa..1d7d5efc0522729da050cf5a46b045df7329f7d5 100644 (file)
--- a/stats.php
+++ b/stats.php
@@ -12,8 +12,7 @@
        login_sequence($link);
 
        if ($_SESSION["access_level"] < 10) { 
-               header("Location: error.php?c=8");
-               exit;
+               header("Location: login.php"); die;
        }
 ?>
 
index 9b77aa53a4ad7292a03e31d03d845e59f81bbfee..81c1c40fee90c5b87cf9f54275a776d562bc6355 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -699,13 +699,6 @@ function debug(msg) {
 }
 
 function fatalError(code, message) {
-/*     if (!params) {
-               window.location = "error.php?c=" + param_escape(code);
-       } else {
-               window.location = "error.php?c=" + param_escape(code) + 
-                       "&p=" + param_escape(params);
-       } */
-
        try {   
                var fe = document.getElementById("fatal_error");
                var fc = document.getElementById("fatal_error_msg");