tiki-page_loader.php 1007 Bytes
Newer Older
1
<?php
changi67's avatar
changi67 committed
2 3 4
/**
 * @package tikiwiki
 */
5
// (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
changi67's avatar
changi67 committed
6
// 
7 8
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
9
// $Id$
changi67's avatar
changi67 committed
10

rossta's avatar
rossta committed
11
include_once ('tiki-setup.php');
12
$access->check_feature('feature_html_pages');
rossta's avatar
rossta committed
13 14
include_once ('lib/htmlpages/htmlpageslib.php');
$refresh = 1000 * $_REQUEST["refresh"];
15
?>
rossta's avatar
rossta committed
16

17
<html>
rossta's avatar
rossta committed
18 19 20 21
	<head>
		<script language = 'Javascript' type = 'text/javascript'>

		<?php
changi67's avatar
changi67 committed
22 23 24 25 26 27 28 29
$zones = $htmlpageslib->list_html_page_content($_REQUEST["pageName"], 0, -1, 'zone_asc', '');
$cmds = array();
$temp_max = count($zones["data"]);
for ($i = 0; $i < $temp_max; $i++) {
	$cmd = 'top.document.getElementById("' . $zones["data"][$i]["zone"] . '").innerHTML="' . $zones["data"][$i]["content"] . '";';
	echo $cmd;
}
?>
rossta's avatar
rossta committed
30 31 32 33

		</script>
	</head>

changi67's avatar
changi67 committed
34 35
	<body onload = "window.setInterval('location.reload()','<?php
echo $refresh ?>');">
36

rossta's avatar
rossta committed
37
	</body>
38
</html>