aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/right.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-02-15 00:32:19 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-02-15 00:32:19 +0000
commit1854075a62c6ca0422040b4e5ebf89088b0d02b2 (patch)
tree4c725cb4ef2b6eab95c0db23cfedcfb3c1406be4 /h-source/Application/Views/right.php
parent99e87e1869e49c67bea2b779283def0e98f39bca (diff)
added wiki - part 1
Diffstat (limited to 'h-source/Application/Views/right.php')
-rw-r--r--h-source/Application/Views/right.php6
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">