PHP WebShell
Текущая директория: /var/www/bitcardoApp/Old folder/chat
Просмотр файла: unread_chats.php
<?php include '../config.php'; ?>
<!DOCTYPE html>
<html>
<head>
<title>Unread Chats</title>
<style>
#unread-users { font-family: Arial; }
.chat-user { padding: 10px; border-bottom: 1px solid #ccc; }
.chat-user:hover { background-color: #f0f0f0; cursor: pointer; }
.unread-count { color: red; font-weight: bold; margin-left: 10px; }
</style>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<h3>Users with Unread Messages</h3>
<div id="unread-users"></div>
<script>
function loadUnreadUsers() {
$.get('fetch_unread_users.php', function(data) {
$('#unread-users').html(data);
});
}
$(document).ready(function() {
loadUnreadUsers();
setInterval(loadUnreadUsers, 3000); // refresh every 3 seconds
});
</script>
</body>
</html>
Выполнить команду
Для локальной разработки. Не используйте в интернете!