mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
58 lines
1.5 KiB
PHP
58 lines
1.5 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;
|
|
use Alchemy\Phrasea\Core\Configuration;
|
|
|
|
/**
|
|
*
|
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
|
* @link www.phraseanet.com
|
|
*/
|
|
|
|
require_once __DIR__ . "/../../lib/bootstrap.php";
|
|
$app = new Application();
|
|
$appbox = $app['phraseanet.appbox'];
|
|
$registry = $appbox->get_registry();
|
|
|
|
$user = $app['phraseanet.user'];
|
|
|
|
$request = http_request::getInstance();
|
|
$parm = $request->get_parms("lst", "SSTTID", "story");
|
|
|
|
$gatekeeper = gatekeeper::getInstance($app);
|
|
$gatekeeper->require_session();
|
|
|
|
if ($registry->get('GV_needAuth2DL') && $user->is_guest()) {
|
|
?>
|
|
<script>
|
|
parent.hideDwnl();
|
|
parent.login('{act:"dwnl",lst:"<?php echo $parm['lst'] ?>",SSTTID:"<?php echo $parm['SSTTID'] ?>"}');
|
|
</script>
|
|
<?php
|
|
exit();
|
|
}
|
|
|
|
|
|
$download = new set_export($app, $parm['lst'], $parm['SSTTID'], $parm['story']);
|
|
$user = $app['phraseanet.user'];
|
|
|
|
echo $app['twig']->render('common/dialog_export.html.twig', array(
|
|
'download' => $download,
|
|
'ssttid' => $parm['SSTTID'],
|
|
'lst' => $download->serialize_list(),
|
|
'user' => $user,
|
|
'default_export_title' => $registry->get('GV_default_export_title'),
|
|
'choose_export_title' => $registry->get('GV_choose_export_title')
|
|
));
|
|
|
|
|
|
|