runIf('upload', function () use ($parent) { $_SESSION['sig_file'] = \Paheko\Files\Files::uploadMultiple($parent, 'file'); }, $csrf_key, PLUGIN_ROOT . '/admin/config.php'); $tpl->assign(compact('parent', 'csrf_key')); $tpl->display(PLUGIN_ROOT . '/templates/upload.tpl');