mirror of
https://github.com/BeitDina/AutoIndex.git
synced 2026-02-28 05:20:42 +01:00
Update UserLoggedIn.php for fixing index url at logout
This commit is contained in:
committed by
GitHub
parent
f42e2c5528
commit
79ad9d8c05
@@ -46,9 +46,12 @@ class UserLoggedIn extends User
|
||||
*/
|
||||
public function login_box()
|
||||
{
|
||||
global $words, $request, $you, $subdir;
|
||||
global $config, $words, $request, $you, $subdir;
|
||||
|
||||
$txt = '<p><a class="autoindex_a" href="' . Url::html_output($request->server('PHP_SELF', ''))
|
||||
$autoindex_u = empty($request->server('PHP_SELF')) ? $config->__get('base_dir') : $request->server('PHP_SELF');
|
||||
$autoindex_a = str_replace(array('&logout=true', '&logout=true'), array('', ''), $autoindex_u);
|
||||
|
||||
$txt = '<p><a class="autoindex_a" href="' . Url::html_output($autoindex_a)
|
||||
. '?dir=' . (isset($subdir) ? rawurlencode($subdir) : '')
|
||||
. '&logout=true">' . $words->__get('logout')
|
||||
. ' [ ' . Url::html_output($this->username) . ' ]</a></p>';
|
||||
|
||||
Reference in New Issue
Block a user