Last active
May 20, 2021 21:29
-
-
Save joelemanoel/0ee339e3fe9c3769a18ba6a3a841b3c1 to your computer and use it in GitHub Desktop.
logout and terminal fix mk-auth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script>alert('Terminal desativado. Contate a MKCloud para mais detalhes.'); location.href = '/admin/';</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
session_destroy(); | |
if (isset($_SERVER['HTTP_COOKIE'])) { | |
$cookies = explode(';', $_SERVER['HTTP_COOKIE']); | |
foreach($cookies as $cookie) { | |
$parts = explode('=', $cookie); | |
$name = trim($parts[0]); | |
setcookie($name, '', time()-1000); | |
setcookie($name, '', time()-1000, '/'); | |
} | |
} | |
Header("Location: /admin/"); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script>alert('Terminal desativado. Contate a VolareHost para mais detalhes.'); location.href = '/admin/';</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment