Files
Phraseanet/www/admin/taskfacility.php
Romain Neutron c2f0d5dc47 Merge with master
2012-01-04 10:47:01 +01:00

32 lines
745 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 dirname(dirname(__DIR__)) . "/lib/bootstrap.php";
$request = http_request::getInstance();
$parm = $request->get_parms('cls', 'taskid');
$cls = 'task_period_' . $parm['cls'];
$registry = registry::get_instance();
$tskfile = $registry->get('GV_RootPath') . 'lib/classes/task/period/' . $parm['cls'] . '.class.php';
// require_once $tskfile;
$ztask = new $cls($parm['taskid']);
echo $ztask->facility();