S2OJ/web/app/controllers/logout.php

13 lines
187 B
PHP
Raw Normal View History

2016-07-18 16:39:37 +00:00
<?php
crsf_defend();
Auth::logout();
2022-09-18 04:58:35 +00:00
?>
2016-07-18 16:39:37 +00:00
<script type="text/javascript">
var prevUrl = document.referrer;
if (!prevUrl) {
prevUrl = '/';
};
window.location.href = prevUrl;
</script>