* @package projectmanager * @copyright (c) 2005 by Ralf Becker * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @version $Id: ganttchart.php 22355 2006-08-26 16:30:45Z ralfbecker $ */ error_reporting(E_ALL & ~E_NOTICE); $tmp = $GLOBALS['phpgw_info']['server']['temp_dir']; if (!$tmp || !is_dir($tmp) || !is_writable($tmp)) { @unlink($tmp = tempnam('','test')); // get the systems temp-dir $tmp = dirname($tmp); } if (isset($_GET['img']) && is_readable($ganttchart = $tmp.'/'.basename($_GET['img']))) { header('Content-type: image/png'); readfile($ganttchart); @unlink($ganttchart); exit; } $GLOBALS['phpgw_info'] = array( 'flags' => array( 'currentapp' => 'projectmanager', 'noheader' => True, 'nonavbar' => True )); include('../header.inc.php'); ExecMethod('projectmanager.ganttchart.create'); $GLOBALS['phpgw']->common->phpgw_exit();