diff --git a/admin/editaccount.php b/admin/editaccount.php index 9ef0073d7d..94d68b572c 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -115,7 +115,7 @@ } if ($docommit) { if ($account_id <> $phpgw_info["user"]["account_id"]) { - $phpgw->preferences->commit_user($users_account_id); +// $phpgw->preferences->commit_user($users_account_id); } else { $phpgw_info["user"]["preferences"] = $phpgw_newuser["user"]["preferences"]; unset($phpgw_newuser); diff --git a/admin/inc/hook_admin_add_def_pref.inc.php b/admin/inc/hook_admin_add_def_pref.inc.php index a8b1689454..ad7be9bf0b 100755 --- a/admin/inc/hook_admin_add_def_pref.inc.php +++ b/admin/inc/hook_admin_add_def_pref.inc.php @@ -1,8 +1,8 @@ preferences->add_newuser("common","maxmatchs","15"); - $phpgw->preferences->add_newuser("common","theme","default"); - $phpgw->preferences->add_newuser("common","tz_offset","0"); - $phpgw->preferences->add_newuser("common","dateformat","m/d/Y"); - $phpgw->preferences->add_newuser("common","timeformat","12"); - $phpgw->preferences->add_newuser("common","lang","en"); +// $phpgw->preferences->add_newuser("common","maxmatchs","15"); +// $phpgw->preferences->add_newuser("common","theme","default"); +// $phpgw->preferences->add_newuser("common","tz_offset","0"); +// $phpgw->preferences->add_newuser("common","dateformat","m/d/Y"); +// $phpgw->preferences->add_newuser("common","timeformat","12"); +// $phpgw->preferences->add_newuser("common","lang","en"); ?> diff --git a/header.inc.php.template b/header.inc.php.template index 6e795ddfef..6eff2868a8 100644 --- a/header.inc.php.template +++ b/header.inc.php.template @@ -28,34 +28,34 @@ * the absolute path to fit your site, and you should be up and running. * \**************************************************************************/ - $phpgw_info["server"]["server_root"] = "__SERVER_ROOT__"; - $phpgw_info["server"]["include_root"] = "__INCLUDE_ROOT__"; + $phpgw_info["server"]["server_root"] = "{SERVER_ROOT}"; + $phpgw_info["server"]["include_root"] = "{INCLUDE_ROOT}"; $phpgw_domain["default"] = array ( - "db_host" => "__DB_HOST__", - "db_name" => "__DB_NAME__", - "db_user" => "__DB_USER__", - "db_pass" => "__DB_PASS__", + "db_host" => "{DB_HOST}", + "db_name" => "{DB_NAME}", + "db_user" => "{DB_USER}", + "db_pass" => "{DB_PASS}", /* Look at the README file */ - "db_type" => "__DB_TYPE__", + "db_type" => "{DB_TYPE}", /* This will limit who is allowed to make configuration modifcations */ - "config_passwd" => "__CONFIG_PASS__" + "config_passwd" => "{CONFIG_PASS}" ); /* If you want to have your domains in a select box, change to True */ - $phpgw_info["server"]["show_domain_selectbox"] = False; + $phpgw_info["server"]["show_domain_selectbox"] = {DOMAIN_SELECTBOX}; /* This is used to control mcrypt's use */ - $phpgw_info["server"]["mcrypt_enabled"] = __ENABLE_MCRYPT__; + $phpgw_info["server"]["mcrypt_enabled"] = {ENABLE_MCRYPT}; /* Set this to "old" for versions < 2.4, otherwise the exact mcrypt version you use. */ - $phpgw_info["server"]["versions"]["mcrypt"] = "__MCRYPT_VERSION__"; + $phpgw_info["server"]["versions"]["mcrypt"] = "{MCRYPT_VERSION}"; /* This is a random string used as the initilazation vector for mcrypt feel free to change it when setting up phpgroupware on a clean database, but you must not change it after that point! It should be around 30 bytes in length. */ - $phpgw_info["server"]["mcrypt_iv"] = "__MCRYPT_IV__"; + $phpgw_info["server"]["mcrypt_iv"] = "{MCRYPT_IV}"; /* Uncomment this out and use this for supporting different domains using this single install */ /* (ignore if you are only supporting a single domain)*/ diff --git a/setup/createheader.php b/setup/createheader.php index 6598cd5856..2e4e4c730a 100644 --- a/setup/createheader.php +++ b/setup/createheader.php @@ -145,14 +145,14 @@ Settings
- - Server Root
"> - Include Root (this should be the same as Server Root unless you know what you are doing)
"> - DB Host
">Hostname/IP of Databaseserver - DB Name
">Name of Database - DB User
">Name of DB User as phpgroupware has to connect as - DB Password
">Password of DB User - DB Type
+ Server Root
"> + Include Root (this should be the same as Server Root unless you know what you are doing)
"> + DB Host
">Hostname/IP of Databaseserver + DB Name
">Name of Database + DB User
">Name of DB User as phpgroupware has to connect as + DB Password
">Password of DB User + DB Type
">Password needed for configuration - Enable MCrypt
- ">Password needed for configuration + Enable MCrypt
+ - MCrypt version
">Set this to "old" for versions < 2.4, otherwise the exact mcrypt version you use - MCrypt initilazation vector
">It should be around 30 bytes in length - + MCrypt version
">Set this to "old" for versions < 2.4, otherwise the exact mcrypt version you use + MCrypt initilazation vector
" size="30">It should be around 30 bytes in length.
Note: The default has been randomly generated. + Domain select box on login
+ + + Warning!
The db_type in defaults (".$phpgw_info["server"]["db_type"].") is not supported on this server. using first supported type.
"; diff --git a/setup/inc/phpgw_setup.inc.php b/setup/inc/phpgw_setup.inc.php index 13ff27d304..aba2dfbc6a 100644 --- a/setup/inc/phpgw_setup.inc.php +++ b/setup/inc/phpgw_setup.inc.php @@ -101,21 +101,15 @@ } } - function generate_header(){ - global $SCRIPT_FILENAME, $HTTP_POST_VARS, $k, $v; - $ftemplate = fopen(dirname($SCRIPT_FILENAME)."/../header.inc.php.template","r"); - if($ftemplate){ - $ftemplate = fopen(dirname($SCRIPT_FILENAME)."/../header.inc.php.template","r"); - $template = fread($ftemplate,filesize(dirname($SCRIPT_FILENAME)."/../header.inc.php.template")); - fclose($ftemplate); - while(list($k,$v) = each($HTTP_POST_VARS)) { - $template = ereg_replace("__".strtoupper($k)."__",$v,$template); - } - return $template; - }else{ - echo "Could not open the header template for reading!
"; - exit; + function generate_header() + { + global $setting, $phpgw_setup; + + $phpgw_setup->template->set_file(array("header" => "header.inc.php.template")); + while(list($k,$v) = each($setting)) { + $phpgw_setup->template->set_var(strtoupper($k),$v); } + return $phpgw_setup->template->parse("out","header"); } function config_auth()