Initial commit
This commit is contained in:
commit
43ad32700c
7085 changed files with 447606 additions and 0 deletions
33
modules/chatusers/chatusers.plugins.php
Normal file
33
modules/chatusers/chatusers.plugins.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
If (!defined("in_astat")) {
|
||||
die("Dieses Script kann nicht ausserhalb des Frameworks laufen!");
|
||||
}
|
||||
class plugins_chatusers{
|
||||
|
||||
function register_plugins(& $plugin){
|
||||
$plugin->use_hook('frontpage_start',array($this,"chatuser_refresh"));
|
||||
}
|
||||
|
||||
function chatuser_refresh(){
|
||||
global $db, $config, $footer;
|
||||
$footer .= "<script type=\"text/javascript\">
|
||||
<!--
|
||||
function chatusers()
|
||||
{
|
||||
$.ajax({
|
||||
url: \"/ajax.php?task=chatusers\",
|
||||
timeout: 1000,
|
||||
success: function(data) {
|
||||
$('.odometer').html(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
chatusers();
|
||||
setInterval(\"chatusers()\",60000);
|
||||
// -->
|
||||
</script>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue