Exemplo n.º 1
0
 ********************************************************************************/
include_once $_SERVER['DOCUMENT_ROOT'] . '/config.php';
include_once $HUB_FLM->getCodeDirPath("ui/headerstats.php");
$nodeid = required_param("nodeid", PARAM_ALPHANUMEXT);
$view = getView($nodeid);
$node = $view->viewnode;
$viewnodes = $view->nodes;
$nodes = array();
array_push($nodes, $node);
$checkNodes = array();
$countj = count($viewnodes);
for ($j = 0; $j < $countj; $j++) {
    $viewnode = $viewnodes[$j];
    array_push($nodes, $viewnode->node);
}
$json = getStackedAreaData($nodes);
?>

<script type='text/javascript'>
var NODE_ARGS = new Array();

Event.observe(window, 'load', function() {
	NODE_ARGS['jsondata'] = <?php 
echo $json;
?>
;

	var bObj = new JSONscriptRequest('<?php 
echo $HUB_FLM->getCodeWebPath("ui/networkmaps/stats-stackedarea.js.php");
?>
');
Exemplo n.º 2
0
 *  arising in any way out of the use of this software, even if advised of the  *
 *  possibility of such damage.                                                 *
 *                                                                              *
 ********************************************************************************/
/**
 * @author Michelle Bachler
 */
require_once $_SERVER['DOCUMENT_ROOT'] . '/config.php';
require_once $HUB_FLM->getCodeDirPath("core/embedlib.php");
$url = required_param('url', PARAM_URL);
$withposts = optional_param('withposts', false, PARAM_BOOL);
$timeout = optional_param('timeout', 60, PARAM_INT);
$withtitle = optional_param('withtitle', true, PARAM_BOOL);
$withdesc = optional_param('withdesc', true, PARAM_BOOL);
$dashboard = optional_param('dashboard', false, PARAM_BOOL);
$json = getStackedAreaData($url, $timeout, $withposts);
if ($dashboard) {
    include_once $HUB_FLM->getCodeDirPath("ui/headerdashboard.php");
} else {
    include_once $HUB_FLM->getCodeDirPath("ui/headerembed.php");
}
?>
<script type='text/javascript'>
var NODE_ARGS = new Array();

Event.observe(window, 'load', function() {
	NODE_ARGS['jsondata'] = <?php 
echo $json;
?>
;