-
Notifications
You must be signed in to change notification settings - Fork 1
/
page_loader.php
38 lines (37 loc) · 1.09 KB
/
page_loader.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
* Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
*
* @package wiki
* @subpackage functions
*/
/**
* required setup
*/
include_once( '../../kernel/includes/setup_inc.php' );
include_once (HTML_PKG_INCLUDE_PATH.'htmlpages_lib.php');
$refresh = 1000 * $_REQUEST["refresh"];
?>
<html>
<head>
<script type = 'text/javascript'>
<?php
$zones = $htmlpageslib->list_html_page_content($_REQUEST["title"], 0, -1, 'zone_asc', '');
$cmds = array();
for ($i = 0; $i < count($zones["data"]); $i++) {
$cmd = 'top.document.getElementById("' . $zones["data"][$i]["zone"] . '").innerHTML="' . $zones["data"][$i]["content"] . '";';
echo $cmd;
}
?>
</script>
</head>
<body onLoad = "window.setInterval('location.reload()','<?php echo $refresh ?>');">
<?php
//print_r($cmds);
?>
</body>
</html>