Add a sorting mark in member list
[platal.git] / modules / core.php
index c6a5911..787e236 100644 (file)
@@ -38,27 +38,16 @@ class CoreModule extends PLModule
         exit;
     }
 
-    function handler_index(&$page)
-    {
-        if (logged()) {
-            redirect("events");
-        }
-
-        return PL_OK;
-    }
-
     function handler_403(&$page)
     {
         header('HTTP/1.0 403 Forbidden');
         $page->changeTpl('403.tpl');
-        return PL_OK;
     }
 
     function handler_404(&$page)
     {
         header('HTTP/1.0 404 Not Found');
         $page->changeTpl('404.tpl');
-        return PL_OK;
     }
 
     function handler_purge_cache(&$page)
@@ -68,7 +57,7 @@ class CoreModule extends PLModule
         $page->clear_compiled_tpl();
         wiki_clear_all_cache();
 
-        redirect(empty($_SERVER['HTTP_REFERER']) ? './' : $_SERVER['HTTP_REFERER']);
+        http_redirect(empty($_SERVER['HTTP_REFERER']) ? './' : $_SERVER['HTTP_REFERER']);
     }
 }