-
Notifications
You must be signed in to change notification settings - Fork 4
/
onlinemods.php
61 lines (48 loc) · 1.17 KB
/
onlinemods.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
56
57
58
59
60
61
<?php
include"main.php";
database_con();
if($settings['maintenance'] == "yes" && $user['level'] != "4") {
die("<meta http-equiv='refresh' content='0; url=maintenance.php'>"); }
pagetop("Online mods scanner");
include"includes/subheader_fancenter.php";
pagemid();
echo"<b>Online moderatorer:</b><br/><br/>";
?>
<script type="text/javascript">
function Ajax(){
var xmlHttp;
try{
xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari
}
catch (e){
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer
}
catch (e){
try{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){
alert("Din browser har ikke Ajax. Vi anbefaler deg å laste ned FireFox :)");
return false;
}
}
}
xmlHttp.onreadystatechange=function(){
if(xmlHttp.readyState==4){
document.getElementById('ReloadThis1').innerHTML=xmlHttp.responseText;
}
}
<?php
echo"xmlHttp.open(\"GET\",\"includes/get_online_mods.php\",true);";
?>
xmlHttp.send(null);
}
window.onload=function(){
setTimeout('Ajax()',100);
}
</script>
<?php
echo"<text id='ReloadThis1'><img src='images/loading.gif' alt='Laster inn...'></text>";
pagebot($settings['footer']);
?>