short doc/INSTALL text added and var/conf.php reformatted
This commit is contained in:
parent
5a49ab5223
commit
53d1e15b44
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: tomas $
|
||||||
Version : $Revision: 1.4 $
|
Version : $Revision: 1.5 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/GreenBox.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/GreenBox.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -48,7 +48,7 @@ require_once "Transport.php";
|
||||||
* LiveSupport file storage module
|
* LiveSupport file storage module
|
||||||
*
|
*
|
||||||
* @author $Author: tomas $
|
* @author $Author: tomas $
|
||||||
* @version $Revision: 1.4 $
|
* @version $Revision: 1.5 $
|
||||||
* @see Alib
|
* @see Alib
|
||||||
*/
|
*/
|
||||||
class GreenBox extends Alib{
|
class GreenBox extends Alib{
|
||||||
|
@ -479,9 +479,6 @@ class GreenBox extends Alib{
|
||||||
$res4 = $tr->getTransportStatus($res2);
|
$res4 = $tr->getTransportStatus($res2);
|
||||||
# return $res;
|
# return $res;
|
||||||
return array($res, $res2, $res3, $res4);
|
return array($res, $res2, $res3, $res4);
|
||||||
# return PEAR::raiseError(
|
|
||||||
# 'GreenBox::uploadFile: not implemented', GBERR_NOTIMPL
|
|
||||||
# );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -507,9 +504,6 @@ class GreenBox extends Alib{
|
||||||
$res4 = $tr->getTransportStatus($res2);
|
$res4 = $tr->getTransportStatus($res2);
|
||||||
# return $res;
|
# return $res;
|
||||||
return array($res, $res2, $res3, $res4);
|
return array($res, $res2, $res3, $res4);
|
||||||
# return PEAR::raiseError(
|
|
||||||
# 'GreenBox::downloadFile: not implemented', GBERR_NOTIMPL
|
|
||||||
# );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,23 +23,60 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: tomas $
|
||||||
Version : $Revision: 1.3 $
|
Version : $Revision: 1.4 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/conf.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/conf.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* configuration structure:
|
||||||
|
* <dl>
|
||||||
|
* <dt>dsn<dd> datasource setting
|
||||||
|
* <dt>tblNamePrefix <dd>prefix for table names in the database
|
||||||
|
* <dt>authCookieName <dd>secret token cookie name
|
||||||
|
* <dt>storageDir <dd>main directory for storing binary media files
|
||||||
|
* <dt>bufferDir <dd>directory for temporary files
|
||||||
|
* <dt>transDir <dd>directory for incomplete transferred files
|
||||||
|
* <dt>accessDir <dd>directory for symlinks to accessed files
|
||||||
|
* <dt>storageUrlPath<dd>path-URL-part of storageServer base dir
|
||||||
|
* <dt>storageXMLRPC<dd>XMLRPC server script address relative to storageUrlPath
|
||||||
|
* <dt>storageUrlHost, storageUrlPort<dd>host and port of storageServer
|
||||||
|
* <dt>archiveUrlPath<dd>path-URL-part of archiveServer base dir
|
||||||
|
* <dt>archiveXMLRPC<dd>XMLRPC server script address relative to archiveUrlPath
|
||||||
|
* <dt>archiveUrlHost, archiveUrlPort<dd>host and port of archiveServer
|
||||||
|
* </dl>
|
||||||
|
*/
|
||||||
$config = array(
|
$config = array(
|
||||||
|
/* ================================================== basic configuration */
|
||||||
'dsn' => array(
|
'dsn' => array(
|
||||||
'username' => 'test',
|
'username' => 'test',
|
||||||
'password' => 'test',
|
'password' => 'test',
|
||||||
'hostspec' => 'localhost',
|
'hostspec' => 'localhost',
|
||||||
# 'hostspec' => '127.0.0.1', // for bad resolver
|
|
||||||
'phptype' => 'pgsql',
|
'phptype' => 'pgsql',
|
||||||
'database' => 'LiveSupport-test',
|
'database' => 'LiveSupport-test',
|
||||||
),
|
),
|
||||||
'tblNamePrefix' => 'ls_',
|
'tblNamePrefix' => 'ls_',
|
||||||
'authCookieName'=> 'lssid',
|
'authCookieName'=> 'lssid',
|
||||||
'RootNode' => 'RootNode',
|
'storageDir' => dirname(getcwd()).'/stor',
|
||||||
'tmpRootPass' => 'q',
|
'bufferDir' => dirname(getcwd()).'/stor/buffer',
|
||||||
|
'transDir' => dirname(getcwd()).'/trans',
|
||||||
|
'accessDir' => dirname(getcwd()).'/access',
|
||||||
|
|
||||||
|
/* ==================================================== URL configuration */
|
||||||
|
'storageUrlPath' => '/livesupport/modules/storageServer/var',
|
||||||
|
'storageXMLRPC' => 'xmlrpc/xrLocStor.php',
|
||||||
|
'storageUrlHost' => 'localhost',
|
||||||
|
'storageUrlPort' => 80,
|
||||||
|
|
||||||
|
/* ================================================ archive configuration */
|
||||||
|
'archiveUrlPath' => '/livesupport/modules/archiveServer/var',
|
||||||
|
'archiveXMLRPC' => 'xmlrpc/xrArchive.php',
|
||||||
|
'archiveUrlHost' => 'localhost',
|
||||||
|
'archiveUrlPort' => 80,
|
||||||
|
'archiveAccountLogin' => 'root',
|
||||||
|
'archiveAccountPass' => 'q',
|
||||||
|
|
||||||
|
/* ==================================== aplication-specific configuration */
|
||||||
'objtypes' => array(
|
'objtypes' => array(
|
||||||
'RootNode' => array('Folder'),
|
'RootNode' => array('Folder'),
|
||||||
'Storage' => array('Folder', 'File', 'Replica'),
|
'Storage' => array('Folder', 'File', 'Replica'),
|
||||||
|
@ -57,22 +94,9 @@ $config = array(
|
||||||
'allActions' => array(
|
'allActions' => array(
|
||||||
'editPrivs', 'write', 'read', 'classes', 'subjects'
|
'editPrivs', 'write', 'read', 'classes', 'subjects'
|
||||||
),
|
),
|
||||||
'storageDir' => dirname(getcwd()).'/stor',
|
|
||||||
'bufferDir' => dirname(getcwd()).'/stor/buffer',
|
|
||||||
'transDir' => dirname(getcwd()).'/trans',
|
|
||||||
'accessDir' => dirname(getcwd()).'/access',
|
|
||||||
|
|
||||||
'storageUrlPath' => '/livesupport/modules/storageServer/var',
|
|
||||||
'storageXMLRPC' => 'xmlrpc/xrLocStor.php',
|
|
||||||
'storageUrlHost' => 'localhost',
|
|
||||||
'storageUrlPort' => 80,
|
|
||||||
|
|
||||||
'archiveUrlPath' => '/livesupport/modules/archiveServer/var',
|
|
||||||
'archiveXMLRPC' => 'xmlrpc/xrArchive.php',
|
|
||||||
'archiveUrlHost' => 'localhost',
|
|
||||||
'archiveUrlPort' => 80,
|
|
||||||
'archiveAccountLogin' => 'root',
|
|
||||||
'archiveAccountPass' => 'q',
|
|
||||||
|
|
||||||
|
/* ============================================== auxiliary configuration */
|
||||||
|
'RootNode' => 'RootNode',
|
||||||
|
'tmpRootPass' => 'q',
|
||||||
);
|
);
|
||||||
?>
|
?>
|
|
@ -1,6 +1,6 @@
|
||||||
<?
|
<?
|
||||||
header("Content-type: text/plain");
|
header("Content-type: text/plain");
|
||||||
$gid = posix_getgid();
|
# $gid = posix_getgid();
|
||||||
$egid = posix_getegid();
|
$egid = posix_getegid();
|
||||||
$info = posix_getgrgid($egid);
|
$info = posix_getgrgid($egid);
|
||||||
echo $info['name'];
|
echo $info['name'];
|
||||||
|
|
Loading…
Reference in New Issue