minor change (#590)
This commit is contained in:
parent
81180dcd10
commit
4ce979d077
|
@ -22,7 +22,7 @@ define('ALIBERR_MTREE', 10);
|
||||||
* );
|
* );
|
||||||
* </code></pre>
|
* </code></pre>
|
||||||
* @author $Author: tomas $
|
* @author $Author: tomas $
|
||||||
* @version $Revision: 1.2 $
|
* @version $Revision: 1.3 $
|
||||||
* @see ObjClasses
|
* @see ObjClasses
|
||||||
* Original author Tom Hlava
|
* Original author Tom Hlava
|
||||||
*/
|
*/
|
||||||
|
@ -414,7 +414,7 @@ class M2tree{
|
||||||
$r = array();
|
$r = array();
|
||||||
if($withRoot){
|
if($withRoot){
|
||||||
$r[] = $re = $this->getObjLevel($oid, 'id, name, level', $rootId);
|
$r[] = $re = $this->getObjLevel($oid, 'id, name, level', $rootId);
|
||||||
}
|
}else $re=NULL;
|
||||||
if($this->dbc->isError($re)) return $re;
|
if($this->dbc->isError($re)) return $re;
|
||||||
$dirarr = $this->getDir($oid, 'id, level');
|
$dirarr = $this->getDir($oid, 'id, level');
|
||||||
if($this->dbc->isError($dirarr)) return $dirarr;
|
if($this->dbc->isError($dirarr)) return $dirarr;
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: tomas $
|
||||||
Version : $Revision: 1.7 $
|
Version : $Revision: 1.8 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/conf.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/archiveServer/var/conf.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -66,6 +66,7 @@ $config = array(
|
||||||
'tblNamePrefix' => 'as_',
|
'tblNamePrefix' => 'as_',
|
||||||
'authCookieName'=> 'assid',
|
'authCookieName'=> 'assid',
|
||||||
'StationPrefsGr'=> '',
|
'StationPrefsGr'=> '',
|
||||||
|
'AllGr' => '',
|
||||||
'storageDir' => dirname(getcwd()).'/stor',
|
'storageDir' => dirname(getcwd()).'/stor',
|
||||||
'bufferDir' => dirname(getcwd()).'/stor/buffer',
|
'bufferDir' => dirname(getcwd()).'/stor/buffer',
|
||||||
'transDir' => dirname(getcwd()).'/trans',
|
'transDir' => dirname(getcwd()).'/trans',
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: tomas $
|
||||||
Version : $Revision: 1.34 $
|
Version : $Revision: 1.35 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/BasicStor.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/BasicStor.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -52,7 +52,7 @@ require_once "Transport.php";
|
||||||
* Core of LiveSupport file storage module
|
* Core of LiveSupport file storage module
|
||||||
*
|
*
|
||||||
* @author $Author: tomas $
|
* @author $Author: tomas $
|
||||||
* @version $Revision: 1.34 $
|
* @version $Revision: 1.35 $
|
||||||
* @see Alib
|
* @see Alib
|
||||||
*/
|
*/
|
||||||
class BasicStor extends Alib{
|
class BasicStor extends Alib{
|
||||||
|
@ -864,18 +864,20 @@ class BasicStor extends Alib{
|
||||||
if($this->dbc->isError($fid)) return $fid;
|
if($this->dbc->isError($fid)) return $fid;
|
||||||
$res = $this->addPerm($uid, '_all', $fid, 'A');
|
$res = $this->addPerm($uid, '_all', $fid, 'A');
|
||||||
if($this->dbc->isError($res)) return $res;
|
if($this->dbc->isError($res)) return $res;
|
||||||
$res =$this->addSubj2Gr($login, $this->config['StationPrefsGr']);
|
if(!$this->config['isArchive']){
|
||||||
if($this->dbc->isError($res)) return $res;
|
$res =$this->addSubj2Gr($login, $this->config['StationPrefsGr']);
|
||||||
$res =$this->addSubj2Gr($login, $this->config['AllGr']);
|
if($this->dbc->isError($res)) return $res;
|
||||||
if($this->dbc->isError($res)) return $res;
|
$res =$this->addSubj2Gr($login, $this->config['AllGr']);
|
||||||
$pfid = $this->bsCreateFolder($fid, 'public');
|
if($this->dbc->isError($res)) return $res;
|
||||||
if($this->dbc->isError($pfid)) return $pfid;
|
$pfid = $this->bsCreateFolder($fid, 'public');
|
||||||
$res = $this->addPerm($uid, '_all', $pfid, 'A');
|
if($this->dbc->isError($pfid)) return $pfid;
|
||||||
if($this->dbc->isError($res)) return $res;
|
$res = $this->addPerm($uid, '_all', $pfid, 'A');
|
||||||
$allGrId = $this->getSubjId($this->config['AllGr']);
|
if($this->dbc->isError($res)) return $res;
|
||||||
if($this->dbc->isError($allGrId)) return $allGrId;
|
$allGrId = $this->getSubjId($this->config['AllGr']);
|
||||||
$res = $this->addPerm($allGrId, 'read', $pfid, 'A');
|
if($this->dbc->isError($allGrId)) return $allGrId;
|
||||||
if($this->dbc->isError($res)) return $res;
|
$res = $this->addPerm($allGrId, 'read', $pfid, 'A');
|
||||||
|
if($this->dbc->isError($res)) return $res;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $uid;
|
return $uid;
|
||||||
}
|
}
|
||||||
|
@ -1320,10 +1322,12 @@ class BasicStor extends Alib{
|
||||||
$rootUid = parent::addSubj('root', $this->config['tmpRootPass']);
|
$rootUid = parent::addSubj('root', $this->config['tmpRootPass']);
|
||||||
$res = $this->addPerm($rootUid, '_all', $this->rootId, 'A');
|
$res = $this->addPerm($rootUid, '_all', $this->rootId, 'A');
|
||||||
$fid = $this->bsCreateFolder($this->storId, 'root');
|
$fid = $this->bsCreateFolder($this->storId, 'root');
|
||||||
$stPrefGr = parent::addSubj($this->config['StationPrefsGr']);
|
if(!$this->config['isArchive']){
|
||||||
$this->addSubj2Gr('root', $this->config['StationPrefsGr']);
|
$stPrefGr = parent::addSubj($this->config['StationPrefsGr']);
|
||||||
$stPrefGr = parent::addSubj($this->config['AllGr']);
|
$this->addSubj2Gr('root', $this->config['StationPrefsGr']);
|
||||||
$this->addSubj2Gr('root', $this->config['AllGr']);
|
$stPrefGr = parent::addSubj($this->config['AllGr']);
|
||||||
|
$this->addSubj2Gr('root', $this->config['AllGr']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* install - create tables
|
* install - create tables
|
||||||
|
|
Loading…
Reference in New Issue