Nach
------------------------
<title>Paidlink by <?=$seitenname;?></title>
------------------------
Einfügen:
------------------------
<?
if ($_GET['ac'] == 1) { $ac = true; } else { $ac = false; }
if ($_GET['rt'] == 1) { $rt = true; } else { $rt = false; }
?>
<script type="text/javascript">
var i = <? echo $text['aufendhalt']?>;
var title = document.title;
<? if($rt == true) { ?>
function status() {
if (i > -1) {
if (i >= 10) {
document.title = i-- + " | " + title;
} else {
document.title = "0" + i-- + " | " + title;
}
window.setTimeout("status();",1000);
} else {
<? if($ac == true) { echo 'window.setTimeout("window.close();", 3000);'; } ?>
}
}
status();
<? } else { ?>
window.setTimeout("window.close();", i * 1000 + 3000);
<?
}
?>
</script>