# mod for tinc wiki
# by wopot
# Licence GNU GPL 2
+# http://www.codejungle.org/site/Shoutbox+mit+PHP+und+Ajax.html
//config
$filename="wishlist.txt";
die();
}
?>
-<html>
-<head>
-<title>shoutbox demo</title>
-<script type="text/javascript" language="javascript">
-
- var http_request = false;
-
- function macheRequest(url) {
-
- http_request = false;
-
- if (window.XMLHttpRequest) { // Mozilla, Safari,...
- http_request = new XMLHttpRequest();
- if (http_request.overrideMimeType) {
- http_request.overrideMimeType('text/xml');
- // zu dieser Zeile siehe weiter unten
- }
- } else if (window.ActiveXObject) { // IE
- try {
- http_request = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {
- http_request = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (e) {}
- }
- }
-
- if (!http_request) {
- alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen');
- return false;
- }
- http_request.onreadystatechange = alertInhalt;
- http_request.open('GET', url, true);
- http_request.send(null);
-
- }
-
- function alertInhalt() {
-
- if (http_request.readyState == 4) {
- if (http_request.status == 200) {
- document.getElementById("shoutbox").innerHTML=http_request.responseText;
- var objDiv = document.getElementById("shoutbox");
- objDiv.scrollTop = objDiv.scrollHeight;
- setTimeout('macheRequest("<?php echo $url; ?>?content=true")',2000);
-
- } else {
- alert('Bei dem Request ist ein Problem aufgetreten.');
- }
- }
-
- }
-</script>
-</head>
-<body onload="macheRequest('<?php echo $url; ?>?content=true');">
-<h1>Wislist</h1>
-<h2>Drop your Ideas into this Box</h2>
-<h4>(The Idea will stay for a while and will check form the dev. Team)</h4>
+#Wislist
+##Drop your Ideas into this Box
+####(The Idea will stay for a while and will check form the dev. Team)
+<br />
<?php add_content(); ?>
<div style="border:1px solid #ccc; width:500px; height:300px; max-height:300px; overflow:auto;" name="shoutbox" id="shoutbox"></div>
<?php output_form(); ?>
-
-</body>
-</html>