[Fusionforge-commits] r10581 - in trunk/src: common/docman/views www/docman

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Tue Sep 21 09:24:38 CEST 2010


Author: nerville
Date: 2010-09-21 09:24:37 +0200 (Tue, 21 Sep 2010)
New Revision: 10581

Modified:
   trunk/src/common/docman/views/admin.php
   trunk/src/www/docman/view.php
Log:
disable not implemented function : archive

Modified: trunk/src/common/docman/views/admin.php
===================================================================
--- trunk/src/common/docman/views/admin.php	2010-09-20 21:14:42 UTC (rev 10580)
+++ trunk/src/common/docman/views/admin.php	2010-09-21 07:24:37 UTC (rev 10581)
@@ -71,7 +71,7 @@
 	echo '<div id="adminoptions" style="display:none;" >';
 	echo '<form id="backup" name="backup" method="post" action="'. util_make_url ('/docman/view.php/'.$group_id.'/backup') .'" >';
 	echo '<ul>';
-	echo '<li>'. _('Extract documents and directories as an archive') .' <input id="submitbackup" type="button" value="Yes" onclick="javascript:doIt(\'backup\')"></li>';
+	echo '<li>'. _('Extract documents and directories as an archive') .' <input id="submitbackup" type="button" disabled="yes" value="Yes" onclick="javascript:doIt(\'backup\')"></li>';
 	echo '</ul>';
 	echo '</form>';
 	echo '<form id="searchengine" name="searchengine" method="post" action="?group_id='.$group_id.'&action=updateenginesearch" >';

Modified: trunk/src/www/docman/view.php
===================================================================
--- trunk/src/www/docman/view.php	2010-09-20 21:14:42 UTC (rev 10580)
+++ trunk/src/www/docman/view.php	2010-09-21 07:24:37 UTC (rev 10581)
@@ -35,7 +35,7 @@
 $group_id=$arr[3];
 $docid=$arr[4];
 
-if ($docid) {
+if ($docid != 'backup' ) {
 	$docname=urldecode($arr[5]);
 
 	$g =& group_get_object($group_id);
@@ -75,6 +75,8 @@
 
 	echo $d->getFileData();
 
+} else if ( $docid == 'backup' ) {
+    exit_error(_('Not implemented yet'),'docman');
 } else {
 	exit_error(_('No document to display - invalid or inactive document number.'),'docman');
 }




More information about the Fusionforge-commits mailing list