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