diff options
Diffstat (limited to 'h-source/Application/Views/right.php')
-rw-r--r-- | h-source/Application/Views/right.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/h-source/Application/Views/right.php b/h-source/Application/Views/right.php index bc97fba..b931151 100644 --- a/h-source/Application/Views/right.php +++ b/h-source/Application/Views/right.php @@ -30,10 +30,12 @@ <div class="login_table_box"> + <?php $currPos = $querySanitized ? $this->controller."/".$this->action : 'home/index'; ?> + <?php if ($islogged === 'yes') { ?> <div class="login_box_logged"> <div class="who_you_are_and_logout"> - <?php echo gtext("Hello");?> <b><?php echo $username; ?></b> (<a href="<?php echo $this->baseUrl."/users/logout/".Lang::$current;?>">logout</a>) + <?php echo gtext("Hello");?> <b><?php echo $username; ?></b> (<a href="<?php echo $this->baseUrl."/users/logout/$lang?redirect=".$currPos.$queryString;?>">logout</a>) </div> <div class="your_panel_link"> <?php echo gtext("Your");?> <a href="<?php echo $this->baseUrl."/my/home/$lang";?>"><?php echo gtext("control panel");?></a> @@ -45,7 +47,7 @@ Login form: </div> <!--login form--> - <form action="<?php echo $this->baseUrl."/users/login/$lang";?>" method="POST"> + <form action="<?php echo $this->baseUrl."/users/login/$lang?redirect=".$currPos.$queryString;?>" method="POST"> <div class="login_right_box"> <div class="login_right_item"> |