2025-06-02 10:01:12 +02:00
|
|
|
<?php
|
2025-06-23 20:45:15 +02:00
|
|
|
If (!defined("INBCWE")) {
|
2025-06-02 10:01:12 +02:00
|
|
|
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>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|