mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
49 lines
1.2 KiB
PHP
49 lines
1.2 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2010 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
/**
|
|
*
|
|
* @package
|
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
|
* @link www.phraseanet.com
|
|
*/
|
|
require_once __DIR__ . "/../../lib/bootstrap.php";
|
|
$appbox = appbox::get_instance();
|
|
$session = $appbox->get_session();
|
|
$registry = $appbox->get_registry();
|
|
require($registry->get('GV_RootPath') . 'lib/classes/deprecated/countries.php');
|
|
|
|
phrasea::headers();
|
|
User_Adapter::updateClientInfos(4);
|
|
|
|
///////Construct dashboard
|
|
$user = User_Adapter::getInstance($session->get_usr_id(), $appbox);
|
|
$dashboard = new module_report_dashboard($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
|
|
);
|
|
|
|
$core = \bootstrap::getCore();
|
|
$twig = $core->getTwig();
|
|
|
|
echo $twig->render('report/report_layout_child.twig', $var);
|