true, 'upload_image' => true ); /** * @var array $workflow_acl * @access public */ var $workflow_acl; /** * Constructor * @access public * @return object */ function ui_external_applications() { } /** * Draw external applications interface * @return void * @access public */ function draw() { if (!Factory::getInstance('workflow_acl')->checkWorkflowAdmin($GLOBALS['phpgw_info']['user']['account_id'])) { $GLOBALS['phpgw']->common->phpgw_header(); echo parse_navbar(); echo lang('access not permitted'); $GLOBALS['phpgw']->log->message('F-Abort, Unauthorized access to workflow.ui_orgchart'); $GLOBALS['phpgw']->log->commit(); $GLOBALS['phpgw']->common->phpgw_exit(); } $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['workflow']['title']; $GLOBALS['phpgw_info']['flags'] = array('noheader' => false, 'nonavbar' => false, 'currentapp' => 'workflow'); $smarty = Factory::getInstance('workflow_smarty'); $this->set_wf_session(); $javaScripts = $this->get_common_js(); $javaScripts .= $this->get_js_link('workflow','scriptaculous', 'prototype'); $javaScripts .= $this->get_js_link('workflow','scriptaculous', 'scriptaculous', 'load=effects'); $javaScripts .= $this->get_js_link('workflow','external_applications', 'main'); $css = $this->get_common_css(); $css .= $this->get_css_link('external_applications'); $smarty->assign('header', $smarty->expressoHeader); $smarty->assign('footer', $smarty->expressoFooter); $smarty->assign('txt_loading', lang("loading")); $smarty->assign('javaScripts', $javaScripts); $smarty->assign('css', $css); $smarty->display('external_applications.tpl'); } /** * Upload image * @access public * @return void */ function upload_image() { if (isset($_FILES['image_tmp'])) { $data = array( 'name' => $_FILES['image_tmp']['name'], 'contents' => file_get_contents($_FILES['image_tmp']['tmp_name'])); $data = base64_encode(serialize($data)); $output = '