FIX link to home in takepos
This commit is contained in:
parent
becf91904f
commit
0e820d4c2b
@ -623,7 +623,12 @@ if (!defined('NOLOGIN'))
|
|||||||
// No data to test login, so we show the login page.
|
// No data to test login, so we show the login page.
|
||||||
dol_syslog("--- Access to ".$_SERVER["PHP_SELF"]." - action=".GETPOST('action', 'aZ09')." - actionlogin=".GETPOST('actionlogin', 'aZ09')." - showing the login form and exit");
|
dol_syslog("--- Access to ".$_SERVER["PHP_SELF"]." - action=".GETPOST('action', 'aZ09')." - actionlogin=".GETPOST('actionlogin', 'aZ09')." - showing the login form and exit");
|
||||||
if (defined('NOREDIRECTBYMAINTOLOGIN')) return 'ERROR_NOT_LOGGED';
|
if (defined('NOREDIRECTBYMAINTOLOGIN')) return 'ERROR_NOT_LOGGED';
|
||||||
else dol_loginfunction($langs, $conf, (!empty($mysoc) ? $mysoc : ''));
|
else {
|
||||||
|
if ($_SERVER["HTTP_USER_AGENT"] == 'securitytest') {
|
||||||
|
http_response_code(401); // It makes easier to understand if session was broken during security tests
|
||||||
|
}
|
||||||
|
dol_loginfunction($langs, $conf, (!empty($mysoc) ? $mysoc : ''));
|
||||||
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -836,7 +836,7 @@ if (empty($conf->global->TAKEPOS_HIDE_HEAD_BAR)) {
|
|||||||
<div class="login_block_other">
|
<div class="login_block_other">
|
||||||
<input type="text" id="search" name="search" onkeyup="Search2(<?php echo $keyCodeForEnter; ?>);" placeholder="<?php echo $langs->trans("Search"); ?>" autofocus>
|
<input type="text" id="search" name="search" onkeyup="Search2(<?php echo $keyCodeForEnter; ?>);" placeholder="<?php echo $langs->trans("Search"); ?>" autofocus>
|
||||||
<a onclick="ClearSearch();"><span class="fa fa-backspace"></span></a>
|
<a onclick="ClearSearch();"><span class="fa fa-backspace"></span></a>
|
||||||
<a onclick="window.location.href='<?php echo DOL_URL_ROOT; ?>';"><span class="fas fa-home"></span></a>
|
<a onclick="window.location.href='<?php echo DOL_URL_ROOT.'/'; ?>';"><span class="fas fa-home"></span></a>
|
||||||
<?php if (empty($conf->dol_use_jmobile)) { ?>
|
<?php if (empty($conf->dol_use_jmobile)) { ?>
|
||||||
<a onclick="FullScreen();"><span class="fa fa-expand-arrows-alt"></span></a>
|
<a onclick="FullScreen();"><span class="fa fa-expand-arrows-alt"></span></a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user