Example #1
0
function get($lastmodified, $api)
{
    $sync = new Sync();
    $output = array();
    if ($lastmodified < $sync->get(Sync::USER)) {
        $output[Sync::USER] = getUser($api);
    }
    if ($lastmodified < $sync->get(Sync::SCENARIOS)) {
        $output[Sync::SCENARIOS] = getScenarios();
    }
    if ($lastmodified < $sync->get(Sync::LIGHTS)) {
        $output[Sync::LIGHTS] = getLights();
    }
    if ($lastmodified < $sync->get(Sync::ROOMS)) {
        $output[Sync::ROOMS] = getRooms();
    }
    if ($lastmodified < $sync->get(Sync::PLANTS)) {
        $output[Sync::PLANTS] = getPlants();
    }
    if ($lastmodified < $sync->get(Sync::DEVICES)) {
        $output[Sync::DEVICES] = getDevices();
    }
    if ($lastmodified < $sync->get(Sync::SENSORS)) {
        $output[Sync::SENSORS] = getSensors();
    }
    if ($lastmodified < $sync->get(Sync::EAN)) {
        $output[Sync::EAN] = getEan();
    }
    return $output;
}
Example #2
0
			<div id="containerLogo">openmano-gui</div>
			<div id="logo"><img height="60" src="images/nfvlabs_.png" /></div>
		</div>

		<div id="containerDown" style="visibility: visible">
			<div id="containerVNFs">
				<h4 style="text-align: center">Scenarios/Instances</h4>
				<hr>
				<?php 
global $db_server, $db_user, $db_passwd, $db_name, $mano_port, $mano_path, $mano_domain, $mano_tenant;
require 'config.php';
require 'get_scenarios.php';
require 'get_vnfs.php';
getConfig();
getVnfs(false);
getScenarios();
echo "<script>\n";
echo "    mano_url_base='http://" . ($mano_domain != null ? "{$mano_domain}" : "'+window.location.host+'") . ":{$mano_port}{$mano_path}';\n";
#echo "    mano_url_base='http://" . ($mano_domain!=null? "{$mano_domain}" : $_SERVER['HTTP_HOST']). ":{$mano_port}{$mano_path}';\n";
echo "    mano_tenant='{$mano_tenant}';\n";
echo "</script>\n";
?>
			</div>
			<div id="aux1">
				<div id="containerCommands">
					<select title="Select DataCenter" id="datacenterCombo" >
						<option	value="TODO1">Datacenter 1</option>
						<option value="TODO2">Datacenter 2</option>
					</select>
				</div>
				<div id="containerLogicalDrawing"></div>