S2OJ/uoj/1/app/controllers/logout.php

13 lines
186 B
PHP
Raw Normal View History

2016-11-17 02:08:31 +00:00
<?php
crsf_defend();
Auth::logout();
?>
<script type="text/javascript">
var prevUrl = document.referrer;
if (!prevUrl) {
prevUrl = '/';
};
window.location.href = prevUrl;
</script>