True, "nonavbar" => True, "currentapp" => "home", "noapi" => True); include("./inc/functions.inc.php"); include("../header.inc.php"); // Authorize the user to use setup app and load the database // Does not return unless user is authorized if (!$phpgw_setup->auth("Config")){ Header("Location: index.php"); exit; } $phpgw_setup->loaddb(); /* Guessing default paths. */ $current_config["files_dir"] = ereg_replace("/setup","/files",dirname($SCRIPT_FILENAME)); if (is_dir("/tmp")){ $current_config["temp_dir"] = "/tmp"; }else{ $current_config["temp_dir"] = "/path/to/temp/dir"; } if ($submit) { @$phpgw_setup->db->query("delete from config"); while ($newsetting = each($newsettings)) { if ($newsetting[0] == "nntp_server") { $phpgw_setup->db->query("select config_value FROM config WHERE config_name='nntp_server'"); if ($phpgw_setup->db->num_rows()) { $phpgw_setup->db->next_record(); if ($phpgw_setup->db->f("config_value") <> $newsetting[1]) { $phpgw_setup->db->query("DELETE FROM newsgroups"); // $phpgw_setup->db->query("DELETE FROM users_newsgroups"); } } } $phpgw_setup->db->query("insert into config (config_name, config_value) values ('" . addslashes($newsetting[0]) . "','" . addslashes($newsetting[1]) . "')"); } if ($newsettings["auth_type"] == "ldap") { Header("Location: ldap.php"); exit; } else { //echo "
Your config has been updated
Click here to login"; Header("Location: index.php"); exit; } } if ($newsettings["auth_type"] != "ldap") { $phpgw_setup->show_header("Configuration"); } @$phpgw_setup->db->query("select * from config"); while (@$phpgw_setup->db->next_record()) { $current_config[$phpgw_setup->db->f("config_name")] = $phpgw_setup->db->f("config_value"); } if ($current_config["files_dir"] == "/path/to/dir/phpgroupware/files") { $current_config["files_dir"] = $phpgw_info["server"]["server_root"] . "/files"; } if ($error == "badldapconnection") { // Please check the number and dial again :) echo "
Error: There was a problem tring to connect to your LDAP server, please " . "check your config.
"; } ?>
 Directory information
Enter path for temporary files. " size="40">
Enter path for users and group files. " size="40">
Enter the location of phpGroupWare's URL.
Example: /phpGroupWare
(leave blank if at http://yourserver/)
">
 
 Mail settings
Enter the location of your mail server: ">
Select your mail server type:
IMAP server type:
Enter your mail sufix: ">
Mail server login type:
Enter your SMTP server hostname: ">
Enter your SMTP server port: ">
 
 Authentication / Accounts
Select which type of authentication you are using.
Select where you want to store/retrieve user accounts.
Auto create account records for authenticated users: >
If no ACL records for user or any group the user is a member of:
LDAP host: ">
LDAP context: " size="40">
LDAP root dn: " size="40">
LDAP root password: ">
LDAP encryption type
Use cookies to pass sessionid: >
Enter some random text for app_session
encryption (requires mcrypt)
" size="40">
 
 Server information
Enter your default FTP server. ">
Enter your HTTP proxy server. ">
Enter your HTTP proxy server port. ">
Showed powered by logo on:
Interface/Template Selection:
(if user choice, and they dont make a selection, then classic will be used)
Frame support:
Use pure HTML compliant code (not fully working yet):
Would like like phpGroupWare to check for new version
when admins login ?:
>
Enter the title for your site. ">
Enter the hostname of the machine this server is running on.
 
 NNTP settings
Enter your NNTP server hostname: ">
Enter your NNTP server port: ">
Enter your NNTP sender: ">
Enter your NNTP organization: ">
Enter your NNTP admins email address: ">
Enter your NNTP login: ">
Enter your NNTP password: ">