Location: PHPKode > projects > RabbitBB - Online Web Storage Project > mywebdrive/config.php
<?PHP

$webappcfg['APPPATH'] = "PHP_CON";
$webappcfg['db_server'] = "localhost";
//$webappcfg['db_server'] = "www.traland.com:13306";
//$webappcfg['db_login'] = "moquo";
//$webappcfg['db_password'] = "2sdjfaw";
$webappcfg['db_login'] = "root";
$webappcfg['db_password'] = "";
$webappcfg['db_selectdb'] = "mywebdrive";
$webappcfg['md5_pre'] = "A2js72k";
$webappcfg['httphost'] = $_SERVER['HTTP_HOST'];
$webappcfg['filestorage'] = $_SERVER['DOCUMENT_ROOT'] . "/" . "filestorage";
$webappcfg['thumbnail'] = "thumbnail";
$webappcfg['themebase'] = $_SERVER['DOCUMENT_ROOT'] . "/" . "theme";
$webappcfg['maxfilesize'] = "20M";
$webappcfg['contactemail'] = "hide@address.com";

$webappcfg['imagemagickpath'] = "C:\\\"Program Files\"\ImageMagick-6.2.6-Q16";
//$webappcfg['imagemagickpath'] = "/usr/bin";

$webappcfg['thumbsize'] = array(100,100);


$db_table['sessiondb'] = "sessiondb";
$db_field['sessiondb'] = array("id", "uid", "sesstime", "ip", "sesskey", "login");

$db_table['loggingdb'] = "loggingdb";
$db_field['loggingdb'] = array("id", "logmsg", "logtime", "ownerid");

// Base File and Directory linkage
$db_table['filedirdb'] = "filedirdb";
$db_field['filedirdb'] = array("id", "linkid", "type", "pid", "status", "ownerid", "ownertype");

// Virtual Directory only for browsing Directory by level
$db_table['dirattr'] = "dirattr";
$db_field['dirattr'] = array("id", "dirname", "fullpath", "temppass");

// Fullpath is added for faster selecting of fileattr
$db_table['fileattr'] = "fileattr";
$db_field['fileattr'] = array("id", "fullpath", "filename", "filesize", "contenttype", "location", "status", "temppass");

// Searching Index (Reverse Index)
$db_table['dirindex'] = "dirindex";
$db_field['dirindex'] = array("id", "dirname", "totalword", "fileid");

// Default Access Denied to all directories and files
// If there is no param setting, use it's parent
// Sample Data
// /MyDocument/officeDoc/invoice0231.doc
//		id, linkid	, type	, status	Type => 1 for Dir, 2 for File
// filedirdb -> "1, 1		, 1	, 1"
// 		"2, 2		, 1	, 1"
//		"3, 1		, 2	, 1"
//
//		id, Dir Name	, fullpath		, pid
// dirattr ->	"1, "MyDocument", MyDocument		, 0  "
//		"2, "officeDoc"	, MyDocument/officeDoc	, 1  "
//
//		id, filepath			, Filename		, dirpid   	size	content type	, location	, status
// fileattr ->	"1, "MyDocument/officeDoc"	, "invoice0231.doc"	, 2 		, 1021	, "doc"		, "1/1"		, 1"
//
//		id, dirname		, fileid
// dirindex ->	"1, "MyDocument"	, 1"
//		"2, "officeDoc" 	, 1"
//
// userparamattr -> 
// id, filedirdb_id, user_id, owner, createdir, updatedir, deldir, createfile, updatefile, delfile, show
$db_table['userdirparamattr'] = "userdirparamattr";
$db_field['userdirparamattr'] = array("id", "dirdb_id", "user_id", "owner", "createdir", "updatedir", "deldir", "createfile", "updatefile", "delfile", "allowread");

$db_table['userfileparamattr'] = "userfileparamattr";
$db_field['userfileparamattr'] = array("id", "filedb_id", "user_id", "owner", "allowread", "allowwrite");

//
// groupparamattr ->
// id, filedirdb_id, group_id, owner,  createdir, updatedir, deldir, createfile, updatefile, delfile, show
$db_table['groupdirparamattr'] = "groupdirparamattr";
$db_field['groupdirparamattr'] = array("id", "dirdb_id", "group_id", "owner", "createdir", "updatedir", "deldir", "createfile", "updatefile", "delfile", "allowread");

$db_table['groupfileparamattr'] = "groupfileparamattr";
$db_field['groupfileparamattr'] = array("id", "filedb_id", "group_id", "owner", "allowread", "allowwrite");

//
// userdb
// "id", "username", "userpassword", "firstname", "lastname", "age",
// "gender", "occupation", "position", "company", "email", "mobile",
// "addr1", "addr2", "balance", "acctype", "level", "status"
//
$db_table['userdb'] = "userdb";
$db_field['userdb'] = array("id", "username", "userpassword", "firstname", "lastname", "age",
			"gender", "occupation", "position", "company", "email", "mobile",
			"addr1", "addr2", "balance", "acctype", "status");
//
// groupdb
// "id", "groupname", "status"
$db_table['groupdb'] = "groupdb";
$db_field['groupdb'] = array("id", "groupname", "status");

//
//
// groupmemberlist
// "id", "group_id", "user_id"
$db_table['groupmemberlist'] = "groupmemberlist";
$db_field['groupmemberlist'] = array("id", "group_id", "user_id");


//
// groupsharedb
// "id", "groupname", "company", "email", "tel", "fax", "addr1", "addr2", "acctype", "status"
$db_table['groupsharedb'] = "groupsharedb";
$db_field['groupsharedb'] = array("id", "groupname", "company", "email", "tel", "fax", "addr1", "addr2", "acctype", "status");

//
// groupacl for groupsharedb only
// id, group_id, updateinfo, usercontrol, creategroup, updategroup, delgroup, createdir, updatedir, deldir, createfile, updatefile, delfile
$db_table['groupacl'] = "groupacl";
$db_field['groupacl'] = array("id", "group_id", "updateinfo", "usercontrol", "creategroup", "delgroup", "createdir", "updatedir", "deldir", "createfile", "updatefile", "delfile");

//
//
//

$db_table['themedb'] = "themedb";
$db_field['themedb'] = array("id", "themename", "themepath");

$db_table['acctypedb'] = "acctypedb";
$db_field['acctypedb'] = array("id", "acctype", "totalsize", "filemaxsize", "charges", "status");

?>
Return current item: RabbitBB - Online Web Storage Project