]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Fix version showing in footer after logout
authorValerie Pond <redacted>
Thu, 23 Feb 2023 16:39:16 +0000 (16:39 +0000)
committerValerie Pond <redacted>
Thu, 23 Feb 2023 16:39:16 +0000 (16:39 +0000)
footer.php
login/index.php
plugins/sql_auth/sql_auth.php

index a68cbcf3f715a64e70ee3d92e46e7435730ac3e6..a887717a10659892d68c5e85bdb61688b966aa73 100644 (file)
@@ -6,7 +6,7 @@
                <?php $arr = []; Hook::run(HOOKTYPE_PRE_FOOTER, $arr); ?>
 
                <section class="mt-1">
-               © 1999-<?php echo date('Y'); ?> UnrealIRCd
+               <a href="https://unrealircd.org/" class="btn btn-default" style="color:white">© 1999-<?php echo date('Y'); ?> UnrealIRCd</a>
 
                        <!-- Twitter -->
                        <a
@@ -29,7 +29,7 @@
                                href="https://unrealircd.org"
                                role="button"
                                data-mdb-ripple-color="dark">
-                               <img    class="btn btn-link btn-floating btn-xs text-white" src="<?php echo BASE_URL; ?>img/favicon.ico" width="25" height="25"></a>
+                               <img class="btn btn-link btn-floating btn-xs text-white" src="<?php echo BASE_URL; ?>img/favicon.ico" width="25" height="25"></a>
                
                
                <?php
index 3cbb34b816bdbf8ddbf2300c15aa113a23a57b36..fb294b2b0614a8972f70503467c13b23c4ad99fc 100644 (file)
@@ -10,6 +10,7 @@ if (!empty($_GET['logout']))
        if (!isset($_SESSION['id']))
                $failmsg = "Nothing to logout from";
        else {
+               $_SESSION = NULL;
                session_destroy();
                $logout = true;
        }
index f6e450b39c0cdb9f9cd909d620aee62616bb66f5..31478e99acadf57a6982d439b755691ae639c1f9 100644 (file)
@@ -42,7 +42,7 @@ class sql_auth
 
        public static function add_footer_info($empty)
        {
-               if (!($user = unreal_get_current_user()))
+               if (!($user = unreal_get_current_user())->id)
                        return;
 
                else {