3 * FusionForge Documentation Manager
5 * Copyright 2010-2011, Franck Villaume - Capgemini
6 * Copyright 2013-2014, Franck Villaume - TrivialDev
7 * http://fusionforge.org
9 * This file is part of FusionForge. FusionForge is free software;
10 * you can redistribute it and/or modify it under the terms of the
11 * GNU General Public License as published by the Free Software
12 * Foundation; either version 2 of the Licence, or (at your option)
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 /* please do not add require here : use www/docman/index.php to add require */
26 /* global variables used */
27 global $group_id; // id of the group
28 global $g; // the project object
30 if (!forge_check_perm('docman', $group_id, 'read')) {
31 $warning_msg = _('Document Manager Access Denied');
32 session_redirect('/docman/?group_id='.$group_id);
35 echo html_ao('div', array('class' => 'docmanDivIncluded'));
36 plugin_hook('blocks', 'doc help');
37 if (forge_get_config('use_webdav') && $g->useWebdav()) {
38 echo html_e('p', array(), _('Documents parsing is also available thru webdav. Only for registred users.'), false);
39 echo html_e('p', array(), util_make_link('/docman/view.php/'.$group_id.'/webdav',_('Direct Webdav URL')), false);
41 echo html_ac(html_ap() - 1);