Debug v17
This commit is contained in:
parent
1231604d14
commit
4df225a8e4
@ -11276,6 +11276,22 @@ function currentToken()
|
|||||||
return isset($_SESSION['token']) ? $_SESSION['token'] : '';
|
return isset($_SESSION['token']) ? $_SESSION['token'] : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return a random string to be used as a nonce value for js
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function getNonce()
|
||||||
|
{
|
||||||
|
global $conf;
|
||||||
|
|
||||||
|
if (empty($conf->cache['nonce'])) {
|
||||||
|
$conf->cache['nonce'] = dolGetRandomBytes(8);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $conf->cache['nonce'];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start a table with headers and a optinal clickable number (don't forget to use "finishSimpleTable()" after the last table row)
|
* Start a table with headers and a optinal clickable number (don't forget to use "finishSimpleTable()" after the last table row)
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user