Skip to content
Snippets Groups Projects
Commit 15e2ce44 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #6894 chronoExpiration

parent 8cb08bf7
No related branches found
No related tags found
No related merge requests found
......@@ -2094,10 +2094,11 @@ $content .= '<iframe src="index.php?display=true&editingMode=true&dir=indexing_s
$content .= '</div>';
if(empty($_REQUEST['id'])){
$js = 'setTimeout(function(){window.parent.document.getElementById(\'liMainDocument\').click()}, 1000)';
$js = 'setTimeout(function(){window.parent.document.getElementById(\'liMainDocument\').click()}, 1000);';
} else {
$js = 'setTimeout(function(){window.top.document.getElementById(\'liAttachement\').click()}, 1000)';
$js = 'setTimeout(function(){window.top.document.getElementById(\'liAttachement\').click()}, 1000);';
}
$js .= "setInterval(function(){window.top.clearTimeout(window.top.chronoExpiration);window.top.chronoExpiration=window.top.setTimeout('redirect_to_url(\'index.php?display=true&page=logout&logout=true\')', ".$_SESSION['config']['cookietime']."*60*1000); }, 10000);";
echo "{status : " . $status . ", content : '" . addslashes(_parse($content)) . "', error : '" . addslashes($error) . "', exec_js : '".addslashes($js)."'}";
exit ();
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