<?php
include('chat.class.php');
$chat = new chat();
?>
<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="10 ; URL=<?=$_SERVER['PHP_SELF']?>">
<title>Chat Admin</title>
<script>
function janela(session, admin){
window.open('chatFrame.php?session='+session+'&admin='+admin,'page','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=360,height=370');
}
</script>
</head>
<body>
<?php
foreach($chat->showUsers() as $row){
echo "<a href=\"javascript: janela('$row[sessao]', '$chat->adminNick')\">".$row['email']."</a><br />";
}
?>
</body>
</html>
<?php
$chat->clearStatus();
?>
|