Skip to content

Instantly share code, notes, and snippets.

@joelemanoel
Last active May 20, 2021 21:29
Show Gist options
  • Select an option

  • Save joelemanoel/0ee339e3fe9c3769a18ba6a3a841b3c1 to your computer and use it in GitHub Desktop.

Select an option

Save joelemanoel/0ee339e3fe9c3769a18ba6a3a841b3c1 to your computer and use it in GitHub Desktop.

Revisions

  1. joelemanoel revised this gist May 20, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <script>alert('Terminal desativado. Contate a MKCloud para mais detalhes.'); location.href = '/admin/';</script>
  2. joelemanoel revised this gist May 20, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion terminal.php
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    <script>alert('Terminal desativado. Contate a VolareHost para mais detalhes.'); location.href = '/admin/'</script>
    <script>alert('Terminal desativado. Contate a VolareHost para mais detalhes.'); location.href = '/admin/';</script>
  3. joelemanoel revised this gist May 20, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions terminal.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <script>alert('Terminal desativado. Contate a VolareHost para mais detalhes.'); location.href = '/admin/'</script>
  4. joelemanoel created this gist May 20, 2021.
    14 changes: 14 additions & 0 deletions logout.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    <?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/");
    ?>