Files
Phraseanet/www/prod/newimg.php
2011-12-26 20:42:31 +01:00

51 lines
994 B
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";
$registry = registry::get_instance();
phrasea::headers();
$request = http_request::getInstance();
$parm = $request->get_parms(
"lst"
, "ACT"
, "operation"
, "ForceThumbSubstit"
);
$lst = explode(";", $parm["lst"]);
$newlist = '';
if ($parm['ForceThumbSubstit'] == '1')
{
foreach ($lst as $basrec)
{
$basrec = explode('_', $basrec);
try
{
$record = new record_adapter($basrec[0], $basrec[1]);
$record->rebuild_subdefs();
unset($record);
}
catch (Exception $e)
{
echo $e->getMessage();
}
}
}