mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
@@ -73,7 +73,6 @@ if ($setcurrency != "") {
|
||||
// We will recalculate amount for foreign currency at next call of invoice.php when $_SESSION["takeposcustomercurrency"] differs from invoice->multicurrency_code.
|
||||
}
|
||||
|
||||
$_SESSION["urlfrom"] = '/takepos/index.php';
|
||||
|
||||
$langs->loadLangs(array("bills", "orders", "commercial", "cashdesk", "receiptprinter", "banks"));
|
||||
|
||||
@@ -1107,7 +1106,7 @@ if (empty($conf->global->TAKEPOS_HIDE_HEAD_BAR)) {
|
||||
}?>
|
||||
<div class="login_block_user">
|
||||
<?php
|
||||
print top_menu_user(1);
|
||||
print top_menu_user(1, DOL_URL_ROOT.'/user/logout.php?token='.newtoken().'&urlfrom='.urlencode('/takepos/?setterminal='.((int) $term)));
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,7 @@ if ($reshook < 0) {
|
||||
}
|
||||
|
||||
// Define url to go after disconnect
|
||||
$urlfrom = empty($_SESSION["urlfrom"]) ? '' : $_SESSION["urlfrom"];
|
||||
$urlfrom = empty($_SESSION["urlfrom"]) ? GETPOST('urlfrom') : $_SESSION["urlfrom"];
|
||||
|
||||
// Define url to go
|
||||
$url = DOL_URL_ROOT."/index.php"; // By default go to login page
|
||||
|
||||
Reference in New Issue
Block a user