fix bug, can't logout.

pull/4/head
qkqpttgf 2020-01-18 23:07:04 +08:00 committed by GitHub
parent fb63e77a10
commit 9524aace91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1563,7 +1563,7 @@ function binupfile(file,url,tdnum){
<?php }
if ($_SERVER['admin']) { // admin login. 管理登录后 ?>
function logout() {
document.cookie = "<?php echo $_SERVER['function_name'] . 'admin';?>=; path=/";
document.cookie = "admin=; path=/";
location.href = location.href;
}
function enableedit(obj) {