Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
vault_movefs.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * Increase size of vault file system
9  *
10  * @author Anakeen 2006
11  * @version $Id: vault_movefs.php,v 1.1 2006/12/06 12:25:58 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage
15  */
16 /**
17  */
18 
19 include_once ("VAULT/Class.VaultDiskStorage.php");
20 include_once ("VAULT/Class.VaultDiskFsStorage.php");
21 include_once ("FDL/Class.DocVaultIndex.php");
22 // -----------------------------------
24 {
25  // GetAllParameters
26  $idfs = GetHttpVars("idfs");
27  $directory = GetHttpVars("directory");
28  // Set the globals elements
29  $dbaccess = $action->GetParam("FREEDOM_DB");
30  $fs = new VaultDiskFsStorage($dbaccess, $idfs);
31 
32  if ($fs->isAffected()) {
33 
34  if (!is_dir($directory)) $action->AddWarningMsg(sprintf(_("%s directory not found") , $directory));
35  else if (!is_writable($directory)) $action->AddWarningMsg(sprintf(_("%s directory not writable") , $directory));
36  else {
37  $action->AddWarningMsg(sprintf(_("new directory %s") , $directory));
38  $fs->r_path = $directory;
39  $err = $fs->modify();
40  }
41  }
42  redirect($action, "VAULT", "VAULT_VIEW", $action->GetParam("CORE_STANDURL"));
43 }
44 ?>
← centre documentaire © anakeen - published under CC License - Dynacase