-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathonline_list.php
executable file
·55 lines (41 loc) · 1.08 KB
/
online_list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/* I codici qui inseriti sono proprietà di
* Francesco Stasi, pertanto ne è vietata la
* vendita e la cessione a terzi senza previa
* autorizzazione dell' autore.
*/
require_once("config.php");
require_once("libs/common.php");
require_once("libs/character_lib.php");
if(!isset($_SESSION))
{
session_start();
}
if ($_REQUEST['request']){
show_onlineList($_REQUEST['room'],1);
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="author" content="Francesco Stasi"/>
<title>Elenco Presenti</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script>
function onlinelist(){
$.post("<?php echo $_SERVER['REQUEST_URI']; ?>", {request: '1'}, function(data){
$("#online_list_container").html(data);
});
}
$(document).ready(function(){
onlinelist();
online_timer = setInterval(onlinelist, 5000);
});
</script>
</head>
<div id="online_list_container" class="center width90 panel_bg clearborder roundcorner"></div>
</html>