mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-23 19:11:53 +00:00
13 lines
186 B
PHP
13 lines
186 B
PHP
|
<?php
|
||
|
crsf_defend();
|
||
|
Auth::logout();
|
||
|
?>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
var prevUrl = document.referrer;
|
||
|
if (!prevUrl) {
|
||
|
prevUrl = '/';
|
||
|
};
|
||
|
window.location.href = prevUrl;
|
||
|
</script>
|