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_sql.inc.php,1.15,1.16


From: Jason Wies <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.vfs_sql.inc.php,1.15,1.16
Date: Wed, 16 Jan 2002 01:36:54 -0500

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

Modified Files:
        class.vfs_sql.inc.php 
Log Message:
Switch to arrayized parameters, various fixes

Index: class.vfs_sql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.vfs_sql.inc.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** class.vfs_sql.inc.php       7 Jan 2002 10:50:42 -0000       1.15
--- class.vfs_sql.inc.php       16 Jan 2002 06:36:51 -0000      1.16
***************
*** 2,6 ****
    /**************************************************************************\
    * phpGroupWare API - VFS                                                   *
!   * This file written by Jason Wies (Zone) <address@hidden>      *
    * This class handles file/dir access for phpGroupWare                      *
    * Copyright (C) 2001 Jason Wies                                          *
--- 2,6 ----
    /**************************************************************************\
    * phpGroupWare API - VFS                                                   *
!   * This file written by Jason Wies (Zone) <address@hidden>           *
    * This class handles file/dir access for phpGroupWare                      *
[...4509 lines suppressed...]
                        else
                        {
!                               $mime_type = $this->get_ext_mime_type (array(
!                                               'string'        => $p->fake_name
!                                       )
!                               );
! 
                                if($mime_type)
                                {
!                                       $GLOBALS['phpgw']->db->query ("UPDATE 
phpgw_vfs SET mime_type='".$mime_type."' WHERE 
directory='".$p->fake_leading_dirs_clean."' AND name='".$p->fake_name_clean."'" 
. $this->extra_sql (array ('query_type' => VFS_SQL_SELECT)), __LINE__, 
__FILE__);
                                }
                        }
  
+                       $size = filesize ($p->real_full_path);
                        $rarray = array(
                                'directory' => $p->fake_leading_dirs,
                                'name' => $p->fake_name,
!                               'size' => $size,
                                'mime_type' => $mime_type
                        );




reply via email to

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