#!/usr/bin/php
<?php
/**
 * @version $Id: get_conf 32342 2015-05-01 21:45:23Z jenkins $
 * ------------------------------------------------------------------------------
 * get configuration for object from DB
 * ------------------------------------------------------------------------------
 * @author Andrey Starostin
 * @QA
 * @copyright videoNEXT Network Solutions, Inc, 2010
 * ------------------------------------------------------------------------------
 */

require_once $_SERVER["APL"] . "/api/lib/php/bootstrap.php";

// audit from admin user
$_SESSION["userid"] = User::ADMIN;

if (($options = getopt("o:")) === FALSE)
{
	print("-o required option\n");
	exit(1);
}

$obj = $options["o"];

$camera = new Camera();
$attributes = $camera->getAttributes($obj);

print json_encode($attributes) . "\n";

exit(0);
