diff --git a/setup/inc/functions.inc.php b/setup/inc/functions.inc.php index d16af85341..c404dc5bed 100644 --- a/setup/inc/functions.inc.php +++ b/setup/inc/functions.inc.php @@ -25,7 +25,7 @@ // password in ../header.inc.php to protect all of the setup // pages from unauthorized use. - if(file_exists("../version.inc.php") || is_file("../version.inc.php")) { + if(file_exists("../version.inc.php")) { include("../version.inc.php"); // To set the current core version }else{ $phpgw_info["server"]["versions"]["phpgwapi"] = "Undetected"; @@ -35,8 +35,5 @@ include("./inc/phpgw_setup.inc.php"); include("./inc/phpgw_schema_proc.inc.php"); - include("./inc/phpgw_template.inc.php"); - $phpgw_setup = new phpgw_setup; - $phpgw_setup->template = new Template("../"); ?> \ No newline at end of file diff --git a/setup/inc/phpgw_setup.inc.php b/setup/inc/phpgw_setup.inc.php index b86e06b43d..c76c944bfb 100644 --- a/setup/inc/phpgw_setup.inc.php +++ b/setup/inc/phpgw_setup.inc.php @@ -14,35 +14,26 @@ class phpgw_setup { var $db; - var $template; function show_header($title = "",$nologoutbutton = False, $logoutfrom = "config") { global $phpgw_info, $PHP_SELF; - echo ' - -
-phpGroupWare version '.$phpgw_info["server"]["versions"]["phpgwapi"].' setup - | -- '; - if ($nologoutbutton) { - echo " "; - } else { - echo 'Logout '; - } - echo " |
phpGroupWare version ".$phpgw_info["server"]["versions"]["phpgwapi"]." setup | "; + echo ""; + if ($nologoutbutton) { + echo " | "; + } else { + echo "Logout "; + } + echo "
phpGroupWare version setup - | --Logout '; - } - echo " |
Step 0 - header.inc.php | ||||||
Step 1 - database management | ||||||
Not ready for this stage yet. | ||||||
';
- echo '
- You appear to be running a pre-beta version of phpGroupWare - We are providing an automated upgrade system, but we highly recommend backing up your tables incase the script causes damage to your data. - These automated scripts can easily destroy your data. Please backup before going any further! - | ||||||
Make sure that your database is created and the account permissions are set. '; - if ($phpgw_domain[$SetupDomain]["db_type"] == "mysql"){ - echo " - Instructions for creating the database in MySQL: - Login to mysql - - [user@server user]# mysql -u root -p - Create the empty database and grant user permissions - - mysql> create database phpgroupware; - mysql> grant all on phpgroupware.* to phpgroupware@localhost identified by 'password'; - "; - }elseif ($phpgw_domain[$SetupDomain]["db_type"] == "pgsql"){ - echo " - Instructions for creating the database in PostgreSQL: - Start the postmaster - [user@server user]# postmaster -i -D /home/[username]/[dataDir] - Create the empty database - - [user@server user]# createdb phpgroupware - "; - } - echo ' the tables | ||||||
';
- echo "You appear to be running version ".$phpgw_info["setup"]["oldver"]["phpgwapi"]." of phpGroupWare. \n"; - echo "We will automaticly update your tables/records to ".$phpgw_info["server"]["versions"]["phpgwapi"].", but we highly recommend backing up your tables in case the script causes damage to your data.\n"; - echo "These automated scripts can easily destroy your data. Please backup before going any further!\n"; - echo " | ||||||
';
- echo "
\n"; - echo ' | ||||||
Your tables are current.';
- echo " Insanity: \n"; - echo ' | ||||||
';
+ echo '
+ You appear to be running a pre-beta version of phpGroupWare + We are providing an automated upgrade system, but we highly recommend backing up your tables incase the script causes damage to your data. + These automated scripts can easily destroy your data. Please backup before going any further! + | ||||||
Make sure that your database is created and the account permissions are set. '; + switch ($phpgw_domain[$SetupDomain]["db_type"]){ + case "mysql": + echo " + Instructions for creating the database in MySQL: + Login to mysql - + [user@server user]# mysql -u root -p + Create the empty database and grant user permissions - + mysql> create database phpgroupware; + mysql> grant all on phpgroupware.* to phpgroupware@localhost identified by 'password'; + "; + break; + case "pgsql": + echo " + Instructions for creating the database in PostgreSQL: + Start the postmaster + [user@server user]# postmaster -i -D /home/[username]/[dataDir] + Create the empty database - + [user@server user]# createdb phpgroupware + "; + break; + } + echo ' the tables | ||||||
';
+ echo "You appear to be running version ".$phpgw_info["setup"]["oldver"]["phpgwapi"]." of phpGroupWare. \n"; + echo "We will automaticly update your tables/records to ".$phpgw_info["server"]["versions"]["phpgwapi"].", but we highly recommend backing up your tables in case the script causes damage to your data.\n"; + echo "These automated scripts can easily destroy your data. Please backup before going any further!\n"; + echo " | ||||||
';
+ echo "
\n"; + echo ' | ||||||
Your tables are current.';
+ echo " Insanity: \n"; + echo ' | ||||||
Step 2 - Configuration | ||||||
Not ready for this stage yet. | ||||||
Please configure phpGroupWare for your environment.';
- echo " | ||||||
Configuration completed.';
- echo " Click Here to setup 1 admin account and 3 demo accounts. This will delete all existing accounts'; - echo ' | ||||||
Please configure phpGroupWare for your environment.';
+ echo " | ||||||
Configuration completed.';
+ echo " Click Here to setup 1 admin account and 3 demo accounts. This will delete all existing accounts'; + echo ' | ||||||
Not ready for this stage yet. | ||||||
Step 3 - language management | ||||||
Not ready for this stage yet. | ||||||
You are ready for this stage, but this stage is not yet written. | ||||||
This stage is completed | ||||||
You are ready for this stage, but this stage is not yet written. | ||||||
This stage is completed | ||||||
Not ready for this stage yet. | ||||||
Step 4 - Add-on Application Installation | ||||||
Not ready for this stage yet. | ||||||
You are ready for this stage, but this stage is not yet written. | ||||||
This stage is completed | ||||||
You are ready for this stage, but this stage is not yet written. | ||||||
This stage is completed | ||||||
Not ready for this stage yet. |