[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/class.vfs_shared.php, 1.1.2.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/class.vfs_shared.php, 1.1.2.2 |
Date: |
Sun, 23 May 2004 04:15:07 -0000 |
Update of /property
Modified Files:
Branch: proposal-branch
class.vfs_shared.php
date: 2004/05/01 20:00:28; author: sigurdne; state: Exp; lines: +10 -5
Log Message:
no message
=====================================================================
Index: property/class.vfs_shared.php
diff -u property/class.vfs_shared.php:1.1.2.1
property/class.vfs_shared.php:1.1.2.2
--- property/class.vfs_shared.php:1.1.2.1 Fri Apr 30 17:35:58 2004
+++ property/class.vfs_shared.php Sat May 1 20:00:28 2004
@@ -197,6 +197,8 @@
*/
function vfs_shared ()
{
+ $this->currentapp = 'property';
//$GLOBALS['phpgw_data']['flags']['req_app'];
+ $this->fm_session =
CreateObject($this->currentapp.'_session');
}
/*
@@ -829,7 +831,10 @@
}
$file=basename($data['string']);
- $mimefile=PHPGW_API_INC.'/phpgw_mime.types';
+// $mimefile =
dirname($GLOBALS['HTTP_SERVER_VARS']['PHP_SELF']).'/property/phpgw_mime.types';
+//html_print_r(PHPGW_ROOT);
+
+ $mimefile=PHPGW_ROOT. SEP . 'property' . SEP
.'phpgw_mime.types';
$fp=fopen($mimefile,'r');
$contents =
explode("\n",fread($fp,filesize($mimefile)));
fclose($fp);
@@ -1192,7 +1197,7 @@
}
else
{
- $currentdir =
$GLOBALS['phpgw']->session->appsession('vfs','');
+ $currentdir =
$this->fm_session->appsession('vfs','');
$basedir = $this->getabsolutepath
(array(
'string' =>
$currentdir . $sep . $data['string'],
'mask' => array
($data['relatives'][0]),
@@ -1210,7 +1215,7 @@
);
}
-
$GLOBALS['phpgw']->session->appsession('vfs','',$basedir);
+ $this->fm_session->appsession('vfs','',$basedir);
return True;
}
@@ -1237,7 +1242,7 @@
$data = array_merge ($this->default_values ($data,
$default_values), $data);
- $currentdir =
$GLOBALS['phpgw']->session->appsession('vfs','');
+ $currentdir = $this->fm_session->appsession('vfs','');
if (!$data['full'])
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/class.vfs_shared.php, 1.1.2.2,
nomail <=