mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
Some more updates.
This commit is contained in:
parent
17900a9ed8
commit
32c2f16f8c
@ -52,7 +52,7 @@
|
|||||||
var $now;
|
var $now;
|
||||||
var $matches;
|
var $matches;
|
||||||
|
|
||||||
var $debug = True;
|
// var $debug = True;
|
||||||
var $debug = False;
|
var $debug = False;
|
||||||
|
|
||||||
function bophpwebhosting()
|
function bophpwebhosting()
|
||||||
@ -197,7 +197,8 @@
|
|||||||
. 'disppath: '.$this->disppath.'<br>'
|
. 'disppath: '.$this->disppath.'<br>'
|
||||||
. 'cwd: '.$this->cwd.'<br>'
|
. 'cwd: '.$this->cwd.'<br>'
|
||||||
. 'lesspath: '.$this->lesspath.'<br>'
|
. 'lesspath: '.$this->lesspath.'<br>'
|
||||||
. 'fakebase: '.$this->fakebase.'<p>'
|
. 'fakebase: '.$this->fakebase.'<br>'
|
||||||
|
. 'homedir: '.$this->homedir.'<p>'
|
||||||
. '<b>phpGW debug:</b><br>'
|
. '<b>phpGW debug:</b><br>'
|
||||||
. 'real getabsolutepath: '.$this->vfs->getabsolutepath(False, False, False).'<br>'
|
. 'real getabsolutepath: '.$this->vfs->getabsolutepath(False, False, False).'<br>'
|
||||||
. 'fake getabsolutepath: '.$this->vfs->getabsolutepath(False).'<br>'
|
. 'fake getabsolutepath: '.$this->vfs->getabsolutepath(False).'<br>'
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
var $bo;
|
var $bo;
|
||||||
var $nextmatchs;
|
var $nextmatchs;
|
||||||
var $browser;
|
var $browser;
|
||||||
var $tempalte_dir;
|
var $template_dir;
|
||||||
var $help_info;
|
var $help_info;
|
||||||
|
|
||||||
function uiphpwebhosting()
|
function uiphpwebhosting()
|
||||||
@ -44,7 +44,7 @@
|
|||||||
{
|
{
|
||||||
if($this->bo->path != $this->bo->homedir && $this->bo->path != $this->bo->fakebase && $this->bo->path != '/' && !$this->bo->vfs->acl_check($this->bo->path,Array(RELATIVE_NONE),PHPGW_ACL_READ))
|
if($this->bo->path != $this->bo->homedir && $this->bo->path != $this->bo->fakebase && $this->bo->path != '/' && !$this->bo->vfs->acl_check($this->bo->path,Array(RELATIVE_NONE),PHPGW_ACL_READ))
|
||||||
{
|
{
|
||||||
$this->no_access_exists(lang('You do not have access to X',$this->bo->path));
|
$this->no_access_exists(lang('You do not have access to %1',$this->bo->path));
|
||||||
}
|
}
|
||||||
$this->bo->userinfo['working_id'] = $this->bo->vfs->working_id;
|
$this->bo->userinfo['working_id'] = $this->bo->vfs->working_id;
|
||||||
$this->bo->userinfo['working_lid'] = $GLOBALS['phpgw']->accounts->id2name($this->bo->userinfo['working_id']);
|
$this->bo->userinfo['working_lid'] = $GLOBALS['phpgw']->accounts->id2name($this->bo->userinfo['working_id']);
|
||||||
@ -107,27 +107,27 @@
|
|||||||
$this->bo->vfs->mkdir($this->bo->homedir,Array(RELATIVE_NONE));
|
$this->bo->vfs->mkdir($this->bo->homedir,Array(RELATIVE_NONE));
|
||||||
//$this->bo->vfs->override_acl = 0;
|
//$this->bo->vfs->override_acl = 0;
|
||||||
}
|
}
|
||||||
// elseif(preg_match("|^".$this->bo->fakebase."\/(.*)$|U",$this->bo->path,$this->bo->matches))
|
elseif(preg_match("|^".$this->bo->fakebase."\/(.*)$|U",$this->bo->path,$this->bo->matches))
|
||||||
// {
|
{
|
||||||
// if (!$this->bo->vfs->file_exists($this->bo->path,Array(RELATIVE_NONE)))
|
if (!$this->bo->vfs->file_exists($this->bo->path,Array(RELATIVE_NONE)))
|
||||||
// {
|
{
|
||||||
// //$this->bo->vfs->override_acl = 1;
|
//$this->bo->vfs->override_acl = 1;
|
||||||
// $this->bo->vfs->mkdir($this->bo->path,Array(RELATIVE_NONE));
|
$this->bo->vfs->mkdir($this->bo->path,Array(RELATIVE_NONE));
|
||||||
// //$this->bo->vfs->override_acl = 0;
|
//$this->bo->vfs->override_acl = 0;
|
||||||
//
|
|
||||||
// if($this->bo->debug)
|
if($this->bo->debug)
|
||||||
// {
|
{
|
||||||
// echo 'DEBUG: ui.create_home_dir: PATH = '.$this->bo->path.'<br>'."\n";
|
echo 'DEBUG: ui.create_home_dir: PATH = '.$this->bo->path.'<br>'."\n";
|
||||||
// echo 'DEBUG: ui.create_home_dir(): matches[1] = '.$this->bo->matches[1].'<br>'."\n";
|
echo 'DEBUG: ui.create_home_dir(): matches[1] = '.$this->bo->matches[1].'<br>'."\n";
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// $group_id = $GLOBALS['phpgw']->accounts->name2id($this->bo->matches[1]);
|
$group_id = $GLOBALS['phpgw']->accounts->name2id($this->bo->matches[1]);
|
||||||
// if($group_id)
|
if($group_id)
|
||||||
// {
|
{
|
||||||
// $this->bo->vfs->set_attributes($this->bo->path,Array(RELATIVE_NONE),Array('owner_id' => $group_id, 'createdby_id' => $group_id));
|
$this->bo->vfs->set_attributes($this->bo->path,Array(RELATIVE_NONE),Array('owner_id' => $group_id, 'createdby_id' => $group_id));
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function verify_path()
|
function verify_path()
|
||||||
@ -147,7 +147,7 @@
|
|||||||
$this->bo->path != $this->bo->fakebase &&
|
$this->bo->path != $this->bo->fakebase &&
|
||||||
!$this->bo->vfs->file_exists($this->bo->path,Array(RELATIVE_NONE)))
|
!$this->bo->vfs->file_exists($this->bo->path,Array(RELATIVE_NONE)))
|
||||||
{
|
{
|
||||||
$this->no_access_exists(lang('Directory X does not exist',$this->bo->path));
|
$this->no_access_exists(lang('Directory %1 does not exist',$this->bo->path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user