Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-16 15:24:26 +0400
committerRobin Appelman <icewind1991@gmail.com>2011-04-16 15:24:26 +0400
commit50035f5a923de5e9dea75291df55a8c505291386 (patch)
treeadf32e097bcecdeb3b2198e8e8d257ffa4d38bd6 /index.php
parent9dd0d90f69d7737d03b6747ae46394035396ef5b (diff)
redirect to owncloud root after logout
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index 2f56510bfbb..89c24cac52f 100644
--- a/index.php
+++ b/index.php
@@ -29,7 +29,8 @@ var_dump( $_SESSION );
if( OC_USER::isLoggedIn()){
if( $_GET["logout"] ){
OC_USER::logout();
- OC_TEMPLATE::printGuestPage( "", "logout" );
+ header( "Location: $WEBROOT");
+ exit();
}
else{
header( "Location: ".OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" ));