Merge branch '9.0' of git@github.com:Dolibarr/dolibarr.git into 9.0
This commit is contained in:
commit
878c4fb106
@ -7944,3 +7944,24 @@ function isAFileWithExecutableContent($filename)
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the value of token currently saved into session with name 'newtoken'.
|
||||||
|
* This token must be send by any POST as it will be used by next page for comparison with value in session.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function newToken()
|
||||||
|
{
|
||||||
|
return $_SESSION['newtoken'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the value of token currently saved into session with name 'token'.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
function currentToken()
|
||||||
|
{
|
||||||
|
return $_SESSION['token'];
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user