From: <ro...@us...> - 2003-08-06 20:53:09
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1:/tmp/cvs-serv17518 Modified Files: tiki-page_loader.php Log Message: Trita fix Index: tiki-page_loader.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-page_loader.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- tiki-page_loader.php 1 Aug 2003 10:30:45 -0000 1.4 +++ tiki-page_loader.php 6 Aug 2003 20:53:06 -0000 1.5 @@ -1,25 +1,36 @@ <?php -include_once('tiki-setup.php'); -include_once('lib/htmlpages/htmlpageslib.php'); -$refresh=1000*$_REQUEST["refresh"]; +include_once ('tiki-setup.php'); + +include_once ('lib/htmlpages/htmlpageslib.php'); + +$refresh = 1000 * $_REQUEST["refresh"]; + ?> + <html> -<head> -<script language='Javascript' type='text/javascript'> -<?php -$zones = $htmlpageslib->list_html_page_content($_REQUEST["pageName"],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"].'";'; - print($cmd); -} -?> -</script> -</head> -<?php -print('<body onLoad="window.setInterval(\'location.reload()\','.$refresh.');">'); -//print_r($cmds); -?> -</body> -</html> + <head> + <script language = 'Javascript' type = 'text/javascript'> + + <?php + + $zones = $htmlpageslib->list_html_page_content($_REQUEST["pageName"], 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> \ No newline at end of file |