';
+ $phpgw_setup->show_header($phpgw_info["setup"]["HeaderFormMSG"], False, "header");
+ echo $phpgw_info["setup"]["PageMSG"];
+/*
+ echo '';
+ echo ' Analysis | ';
+ echo ' ';
+*/
+ echo '';
+ echo ' Analysis | ';
// Hardly try to find what DB-support is compiled in
// this dont work with PHP 3.0.10 and lower !
diff --git a/setup/setup_demo.php b/setup/setup_demo.php
index 096fad4203..3593489769 100644
--- a/setup/setup_demo.php
+++ b/setup/setup_demo.php
@@ -14,43 +14,40 @@
}
if (! $submit) {
+ $phpgw_setup->show_header("Demo Server Setup");
?>
-
+
+
+ This will create 1 admin account and 3 demo accounts
+ The username/passwords are: demo/guest, demo2/guest and demo3/guest.
+ !!!THIS WILL DELETE ALL EXISTING ACCOUNTS!!!
+ |
+ Details for Admin account | |
+
+
+ |
loaddb();
@@ -98,14 +95,7 @@
$phpgw_setup->db->query($sql);
$phpgw_setup->db->query("insert into preferences (preference_owner, preference_value) values ('1', '$defaultprefs')");
- /* Create system records */
- $this_dir = dirname($SCRIPT_FILENAME);
- $rootdir = ereg_replace("/setup","",$this_dir);
- $phpgw_setup->db->query("update config set config_value = '/tmp' where config_name = 'temp_dir'");
- $phpgw_setup->db->query("update config set config_value = '$rootdir/files' where config_name = 'files_dir'");
- $phpgw_setup->db->query("update config set config_value = '$mail_suffix' where config_name = 'mail_suffix'");
- $phpgw_setup->db->query("update config set config_value = '$mail_login_type' where config_name = 'mail_login_type'");
- $phpgw_setup->db->query("delete from config where config_name = 'freshinstall'");
- echo "Done";
+ Header("Location: index.php");
+ exit;
}
?>
\ No newline at end of file
| |