Files
Phraseanet/www/report/index.php
Romain Neutron 6203835d0d Update report
2012-10-04 15:43:31 +02:00

51 lines
1.2 KiB
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2012 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Alchemy\Phrasea\Application;
/**
*
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
require_once __DIR__ . "/../../lib/bootstrap.php";
$app = new Application();
$registry = $app['phraseanet.registry'];
require($registry->get('GV_RootPath') . 'lib/classes/deprecated/countries.php');
phrasea::headers();
User_Adapter::updateClientInfos($app, 4);
///////Construct dashboard
$user = $app['phraseanet.user'];
$dashboard = new module_report_dashboard($app, $user);
$dashboard->execute();
$var = array(
'ajax_dash' => true,
'dashboard' => $dashboard,
'home_title' => $registry->get('GV_homeTitle'),
'module' => "report",
"module_name" => "Report",
'anonymous' => $registry->get('GV_anonymousReport'),
'g_anal' => $registry->get('GV_googleAnalytics'),
'ajax' => false,
'ajax_chart' => false
);
$twig = $app['twig'];
echo $twig->render('report/report_layout_child.html.twig', $var);