forked from extern/egroupware
switched to using a config table and removed the globalconfig files
This commit is contained in:
parent
8d52ea0dc7
commit
d01218ad23
@ -1,5 +1,48 @@
|
||||
# $Id$
|
||||
|
||||
CREATE TABLE config (
|
||||
config_name varchar(25) NOT NULL,
|
||||
config_value varchar(100),
|
||||
UNIQUE config_name (config_name)
|
||||
);
|
||||
|
||||
insert into config (config_name, config_value) values ('default_tplset', 'default');
|
||||
insert into config (config_name, config_value) values ('temp_dir', '/path/to/tmp');
|
||||
insert into config (config_name, config_value) values ('files_dir', '/path/to/dir/phpgroupware/files');
|
||||
insert into config (config_name, config_value) values ('encryptkey', 'change this phrase 2 something else');
|
||||
insert into config (config_name, config_value) values ('site_title', 'phpGroupWare');
|
||||
insert into config (config_name, config_value) values ('hostname', 'local.machine.name');
|
||||
insert into config (config_name, config_value) values ('webserver_url', '/phpgroupware');
|
||||
insert into config (config_name, config_value) values ('db_host', 'localhost');
|
||||
insert into config (config_name, config_value) values ('db_name', 'phpGroupWare_dev');
|
||||
insert into config (config_name, config_value) values ('db_user', 'phpgroupware');
|
||||
insert into config (config_name, config_value) values ('db_pass', 'phpgr0upwar3');
|
||||
insert into config (config_name, config_value) values ('db_type', 'mysql');
|
||||
insert into config (config_name, config_value) values ('auth_type', 'sql');
|
||||
insert into config (config_name, config_value) values ('ldap_host', 'localhost');
|
||||
insert into config (config_name, config_value) values ('ldap_context', 'o=phpGroupWare');
|
||||
insert into config (config_name, config_value) values ('usecookies', 'True');
|
||||
insert into config (config_name, config_value) values ('mail_server', 'localhost');
|
||||
insert into config (config_name, config_value) values ('mail_server_type', 'imap');
|
||||
insert into config (config_name, config_value) values ('imap_server_type', 'Cyrus');
|
||||
insert into config (config_name, config_value) values ('mail_suffix', 'yourdomain.com');
|
||||
insert into config (config_name, config_value) values ('mail_login_type', 'standard');
|
||||
insert into config (config_name, config_value) values ('smtp_server', 'localhost');
|
||||
insert into config (config_name, config_value) values ('smtp_port', '25');
|
||||
insert into config (config_name, config_value) values ('nntp_server', 'yournewsserver.com');
|
||||
insert into config (config_name, config_value) values ('nntp_port', '119');
|
||||
insert into config (config_name, config_value) values ('nntp_sender', 'complaints@yourserver.com');
|
||||
insert into config (config_name, config_value) values ('nntp_organization', 'phpGroupWare');
|
||||
insert into config (config_name, config_value) values ('nntp_admin', 'admin@yourserver.com');
|
||||
insert into config (config_name, config_value) values ('nntp_login_username', '');
|
||||
insert into config (config_name, config_value) values ('nntp_login_password', '');
|
||||
insert into config (config_name, config_value) values ('charset', 'iso-8859-1');
|
||||
insert into config (config_name, config_value) values ('default_ftp_server', 'localhost');
|
||||
insert into config (config_name, config_value) values ('httpproxy_server', '');
|
||||
insert into config (config_name, config_value) values ('httpproxy_port', '');
|
||||
insert into config (config_name, config_value) values ('showpoweredbyon', 'bottom');
|
||||
insert into config (config_name, config_value) values ('checkfornewversion', 'False');
|
||||
|
||||
CREATE TABLE applications (
|
||||
app_name varchar(25) NOT NULL,
|
||||
app_title varchar(50),
|
||||
|
@ -19,12 +19,26 @@
|
||||
* to fit your site, and you should be up and running. *
|
||||
\**************************************************************************/
|
||||
|
||||
$phpgw_info["server"]["server_root"] = "/path/to/phpgroupware";
|
||||
$phpgw_info["server"]["include_root"] = "/path/to/phpgroupware/inc";
|
||||
/* This is the basic include needed on each page for phpGroupWare application compliance */
|
||||
$phpgw_info["flags"]["htmlcompliant"] = True;
|
||||
|
||||
/* These are the settings for the database system */
|
||||
$phpgw_info["server"]["db_host"] = "localhost";
|
||||
$phpgw_info["server"]["db_name"] = "phpgroupware";
|
||||
$phpgw_info["server"]["db_user"] = "phpgroupware";
|
||||
$phpgw_info["server"]["db_pass"] = "your_password";
|
||||
/* Look at the README file */
|
||||
$phpgw_info["server"]["db_type"] = "mysql"; //mysql, postgresql, or oracle
|
||||
|
||||
/* This will limit who is allowed to make configuration modifcations */
|
||||
$phpgw_info["server"]["config_passwd"] = "changeme";
|
||||
|
||||
/**************************************************************************\
|
||||
* Do not edit this line *
|
||||
* Do not edit these lines *
|
||||
\**************************************************************************/
|
||||
include($phpgw_info["server"]["include_root"] . "/phpgwapi/phpgw.inc.php");
|
||||
if (!$phpgw_info["flags"]["noapi"] == True){
|
||||
include($phpgw_info["server"]["include_root"] . "/phpgwapi/phpgw.inc.php");
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue
Block a user