phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc class.vfs_dav.inc.php,NONE,1.1.2.1


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.vfs_dav.inc.php,NONE,1.1.2.1 class.vfs_shared.inc.php,NONE,1.2.2.1class.vfs.inc.php,1.10,1.10.4.1 class.vfs_sql.inc.php,1.15.2.6,1.15.2.6.2.1
Date: Wed, 26 Mar 2003 19:07:10 -0500

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv25390

Modified Files:
      Tag: Version-0_9_16-branch
        class.vfs.inc.php class.vfs_sql.inc.php 
Added Files:
      Tag: Version-0_9_16-branch
        class.vfs_dav.inc.php class.vfs_shared.inc.php 
Log Message:
the new vfs-classes from zeald


--- NEW FILE ---
<?php
  /**************************************************************************\
  * phpGroupWare API - VFS                                                   *
  * This file written by Jason Wies (Zone) <address@hidden>           *
  * This class handles file/dir access for phpGroupWare                      *
  * Copyright (C) 2001-2003 Jason Wies, Jonathon Sim                            
 *
  * -------------------------------------------------------------------------*
  * This library is part of the phpGroupWare API                             *
  * http://www.phpgroupware.org/api                                          * 
  * ------------------------------------------------------------------------ *
  * This library is free software; you can redistribute it and/or modify it  *
  * under the terms of the GNU Lesser General Public License as published by *
  * the Free Software Foundation; either version 2.1 of the License,         *
  * or any later version.                                                    *
  * This library is distributed in the hope that it will be useful, but      *
  * WITHOUT ANY WARRANTY; without even the implied warranty of               *
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     *
  * See the GNU Lesser General Public License for more details.              *
  * You should have received a copy of the GNU Lesser General Public License *
[...2939 lines suppressed...]
                function update_real()
                { //hmmm. things break without this, but it does nothing in 
this implementation
                        return True;
                }
                
                function save_session()
                {
                        //Save the overrided locks in the session
                        $app = $GLOBALS['phpgw_info']['flags']['currentapp'];
                        $a = array();
                        foreach ($this->override_locks as $name => $token)
                        {
                                $a[] = $name.';'.$token;        
                        }       
                        $session_data = implode('\n', $a);
                        $this->session = $GLOBALS['phpgw']->session->appsession 
('vfs_dav',$app, base64_encode($session_data));
                                
                }       
        }
?>

***** Error reading new file: [Errno 2] No such file or directory: 
'class.vfs_shared.inc.php'
Index: class.vfs.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.vfs.inc.php,v
retrieving revision 1.10
retrieving revision 1.10.4.1
diff -C2 -r1.10 -r1.10.4.1
*** class.vfs.inc.php   23 Sep 2001 19:23:49 -0000      1.10
--- class.vfs.inc.php   27 Mar 2003 00:07:08 -0000      1.10.4.1
***************
*** 5,8 ****
--- 5,9 ----
        }
  
+       include (PHPGW_API_INC . '/class.vfs_shared.inc.php');
        include (PHPGW_API_INC . '/class.vfs_' . 
$GLOBALS['phpgw_info']['server']['file_repository'] . '.inc.php');
  ?>

Index: class.vfs_sql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.vfs_sql.inc.php,v
retrieving revision 1.15.2.6
retrieving revision 1.15.2.6.2.1
diff -C2 -r1.15.2.6 -r1.15.2.6.2.1
*** class.vfs_sql.inc.php       24 Jun 2002 03:51:43 -0000      1.15.2.6
--- class.vfs_sql.inc.php       27 Mar 2003 00:07:08 -0000      1.15.2.6.2.1
***************
*** 26,44 ****
        /*!
        @class vfs
!       @abstract Virtual File System
        @description Authors: Zone
        */
  
-       /* Relative defines.  Used mainly by getabsolutepath () */
-       define ('RELATIVE_ROOT', 1);
-       define ('RELATIVE_USER', 2);
-       define ('RELATIVE_CURR_USER', 4);
[...1734 lines suppressed...]
***************
*** 3361,3377 ****
  
                /* Helper functions */
- 
-               function default_values ($data, $default_values)
-               {
-                       for ($i = 0; list ($key, $value) = each 
($default_values); $i++)
-                       {
-                               if (!isset ($data[$key]))
-                               {
-                                       $data[$key] = $value;
-                               }
-                       }
- 
-                       return $data;
-               }
  
                /* This fetchs all available file system information for string 
(not using the database) */
--- 2574,2577 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]