Skip to content
Snippets Groups Projects
Commit 1b2abcf9 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

construct toolbar signature from $INFO (FS#1274)

darcs-hash:20071203191945-7ad00-76968829ba4b20bf10e453eadaed0216e05e61de.gz
parent a1207a93
No related branches found
No related tags found
No related merge requests found
......@@ -190,12 +190,13 @@ function toolbar_JSdefines($varname){
*/
function toolbar_signature(){
global $conf;
global $INFO;
$sig = $conf['signature'];
$sig = strftime($sig);
$sig = str_replace('@USER@',$_SERVER['REMOTE_USER'],$sig);
$sig = str_replace('@NAME@',$_SESSION[DOKU_COOKIE]['auth']['info']['name'],$sig);
$sig = str_replace('@MAIL@',$_SESSION[DOKU_COOKIE]['auth']['info']['mail'],$sig);
$sig = str_replace('@NAME@',$INFO['userinfo']['name'],$sig);
$sig = str_replace('@MAIL@',$INFO['userinfo']['mail'],$sig);
$sig = str_replace('@DATE@',date($conf['dformat']),$sig);
$sig = str_replace('\\\\n','\\n',addslashes($sig));
return $sig;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment