Converted header management to use lang() and templates -- TRANSLATORS, SEE

lang/newheaderlangs FILE...
This commit is contained in:
Miles Lott 2002-04-07 04:11:50 +00:00
parent 4be11c0737
commit f8e28b2257
4 changed files with 476 additions and 225 deletions

61
setup/lang/newheaderlangs Normal file
View File

@ -0,0 +1,61 @@
admin password to header manager setup en Admin password to header manager
after retrieving the file, put it into place as the header.inc.php. then, click "continue". setup en After retrieving the file, put it into place as the header.inc.php. Then, click "continue".
analysis setup en Analysis
cannot create the header.inc.php due to file permission restrictions.<br> instead you can x the file. setup en Cannot create the header.inc.php due to file permission restrictions.<br> Instead you can %1 the file.
configuration password setup en Configuration Password
could not open header.inc.php for writing! setup en Could not open header.inc.php for writing!
create your header.inc.php setup en Create your header.inc.php
db host setup en DB Host
db name setup en DB Name
db password setup en DB Password
db type setup en DB Type
db user setup en DB User
did not find any valid db support! setup en Did not find any valid DB support!
do you want persistent connections (higher performance, but consumes more resources) setup en Do you want persistent connections (higher performance, but consumes more resources)
domain select box on login setup en Domain select box on login
edit your existing header.inc.php setup en Edit your existing header.inc.php
edit your header.inc.php setup en Edit your header.inc.php
enable mcrypt setup en Enable MCrypt
found existing configuration file. loading settings from the file... setup en Found existing configuration file. Loading settings from the file...
importing old settings into the new format.... setup en Importing old settings into the new format....
include root (this should be the same as server root unless you know what you are doing) setup en Include Root (this should be the same as Server Root unless you know what you are doing)
mcrypt initialization vector setup en MCrypt initialization vector
mcrypt version setup en MCrypt version
no microsoft sql server support found. disabling setup en No Microsoft SQL Server support found. Disabling
no mysql support found. disabling setup en No MySQL support found. Disabling
no oracle-db support found. disabling setup en No Oracle-DB support found. Disabling
no postgres-db support found. disabling setup en No Postgres-DB support found. Disabling
no xml support found. disabling setup en No XML support found. Disabling
now guessing better values for defaults... setup en Now guessing better values for defaults...
or setup en or
password needed for configuration setup en Password needed for configuration
persistent connections setup en Persistent connections
please check read/write permissions on directories, or back up and use another option. setup en Please check read/write permissions on directories, or back up and use another option.
sample configuration not found. using built in defaults setup en Sample configuration not found. using built in defaults
save this text as contents of your header.inc.php setup en Save this text as contents of your header.inc.php
server root setup en Server Root
sessions type setup en Sessions Type
set this to "old" for versions &lt; 2.4, otherwise the exact mcrypt version you use. setup en Set this to "old" for versions &lt; 2.4, otherwise the exact mcrypt version you use.
settings setup en Settings
the db_type in defaults (x) is not supported on this server. using first supported type. setup en The db_type in defaults (x) is not supported on this server. using first supported type.
this should be around 30 bytes in length.<br>note: the default has been randomly generated. setup en This should be around 30 bytes in length.<br>Note: The default has been randomly generated.
try to configure your php to support one of the above mentioned dbms, or install phpgroupware by hand. setup en Try to configure your php to support one of the above mentioned DBMS, or install phpGroupWare by hand.
warning! setup en Warning!
what type of sessions management do you want to use (php4 session management may perform better)? setup en What type of sessions management do you want to use (PHP4 session management may perform better)?
which database type do you want to use with phpgroupware? setup en Which database type do you want to use with phpGroupWare?
you appear to be using php3. disabling php4 sessions support setup en You appear to be using PHP3. Disabling PHP4 sessions support
you appear to be using php4. enabling php4 sessions support setup en You appear to be using PHP4. Enabling PHP4 sessions support
you appear to have microsoft sql server support enabled setup en You appear to have Microsoft SQL Server support enabled
you appear to have mysql support enabled setup en You appear to have MySQL support enabled
you appear to have oracle support enabled setup en You appear to have Oracle support enabled
you appear to have oracle v8 (oci) support enabled setup en You appear to have Oracle V8 (OCI) support enabled
you appear to have postgres-db support enabled setup en You appear to have Postgres-DB support enabled
you appear to have xml support enabled setup en You appear to have XML support enabled
you didn't enter a config password setup en You didn't enter a config password
you didn't enter a header admin password setup en You didn't enter a header admin password
you have not created your header.inc.php yet!<br> you can create it now. setup en You have not created your header.inc.php yet!<br> You can create it now.
your header admin password is not set. please set it now! setup en Your header admin password is NOT set. Please set it now!
your header.inc.php needs upgrading. setup en Your header.inc.php needs upgrading.
your header.inc.php needs upgrading.<br><blink><font color=cc0000><b>warning!</b></font></blink><br>if you are using virtual domain support, this will <b>not</b> copy those domains over. you will need to do this manually, <b>make backups!</b> setup en Your header.inc.php needs upgrading.<br><blink><font color=CC0000><b>WARNING!</b></font></blink><br>If you are using virtual domain support, this will <b>NOT</b> copy those domains over. You will need to do this manually, <b>MAKE BACKUPS!</b>
you're using an old configuration file format... setup en You're using an old configuration file format...
you're using an old header.inc.php version... setup en You're using an old header.inc.php version...

View File

@ -1,30 +1,34 @@
(account deletion in SQL Only) setup en (account deletion in SQL Only)
<br><center>Import has been completed! Click <a href="index.php">here</a> to return to setup </center> setup en <br><center>Import has been completed! Click <a href="index.php">here</a> to return to setup </center>
actions setup en Actions
Add auto-created users to this group ('Default' will be attempted if this is empty.) setup en Add auto-created users to this group ('Default' will be attempted if this is empty.)
add auto-created users to this group ('Default' will be attempted if this is empty.) setup en Add auto-created users to this group ('Default' will be attempted if this is empty.)
admin first name setup en Admin first name
admin last name setup en Admin last name
admin password setup en Admin password
Admins setup en Admins
admin password to header manager setup en Admin password to header manager
admin username setup en Admin username
admins setup en Admins
after retrieving the file, put it into place as the header.inc.php. then, click "continue". setup en After retrieving the file, put it into place as the header.inc.php. Then, click "continue".
all applications setup en all applications
All Users setup en All Users
all users setup en All Users
analysis setup en Analysis
app details setup en App details
app install/remove/upgrade setup en App install/remove/upgrade
application data setup en Application Data
application management setup en Application Management
application name and status information setup en Application Name and Status Information
application name and status setup en Application Name and Status
application name and status information setup en Application Name and Status Information
application title setup en Application Title
are you sure? setup en ARE YOU SURE?
Attempt to use correct mimetype for FTP instead of default 'application/octet-stream' setup en Attempt to use correct mimetype for FTP instead of default 'application/octet-stream'
at your request, this script is going to attempt to create the database and assign the db user rights to it setup en At your request, this script is going to attempt to create the database and assign the db user rights to it
at your request, this script is going to attempt to install all the applications for you setup en At your request, this script is going to attempt to install all the applications for you
at your request, this script is going to attempt to upgrade your old applications to the current versions setup en At your request, this script is going to attempt to upgrade your old applications to the current versions
at your request, this script is going to attempt to upgrade your old tables to the new format setup en At your request, this script is going to attempt to upgrade your old tables to the new format
at your request, this script is going to take the evil action of deleting your existing tables and re-creating them in the new format setup en At your request, this script is going to take the evil action of deleting your existing tables and re-creating them in the new format
at your request, this script is going to take the evil action of uninstalling all your apps, which deletes your existing tables and data setup en At your request, this script is going to take the evil action of uninstalling all your apps, which deletes your existing tables and data
Authentication / Accounts setup en Authentication / Accounts
Auto create account records for authenticated users setup en Auto create account records for authenticated users
attempt to use correct mimetype for FTP instead of default 'application/octet-stream' setup en Attempt to use correct mimetype for FTP instead of default 'application/octet-stream'
authentication / Accounts setup en Authentication / Accounts
auto create account records for authenticated users setup en Auto create account records for authenticated users
auto-created user accounts expire setup en Auto-created user accounts expire
available version setup en Available Version
backupwarn setup en but we <u>highly recommend backing up</u> your tables in case the script causes damage to your data.<br><strong>These automated scripts can easily destroy your data.</strong><br><em>Please backup before going any further!</em>
@ -36,143 +40,173 @@ because of a failed upgrade or install setup en because of a failed upgrade or i
because of a failed upgrade, or the database is newer than the installed version of this app setup en because of a failed upgrade, or the database is newer than the installed version of this app
because the enable flag for this app is set to 0, or is undefined setup en because the enable flag for this app is set to 0, or is undefined
bottom setup en bottom
<br><center>Import has been completed! Click <a href="index.php">here</a> to return to setup </center> setup en <br><center>Import has been completed! Click <a href="index.php">here</a> to return to setup </center>
cancel setup en Cancel
cannot create the header.inc.php due to file permission restrictions.<br> instead you can x the file. setup en Cannot create the header.inc.php due to file permission restrictions.<br> Instead you can %1 the file.
charset setup en ISO-8859-1
check ip address of all sessions setup en check ip address of all sessions
click here setup en Click Here
completed setup en Completed
configuration completed setup en Configuration completed
configuration setup en Configuration
configuration completed setup en Configuration completed
configuration password setup en Configuration Password
configure now setup en Configure Now
Country Selection setup en Country Selection
could not open header.inc.php for writing! setup en Could not open header.inc.php for writing!
country Selection setup en Country Selection
create setup en Create
create database setup en Create Database
create one now setup en Create one now
create setup en Create
create your header.inc.php setup en Create your header.inc.php
creating tables setup en Creating Tables
currently installed languages: x <br> setup en Currently installed languages: %1 <br>
current version setup en Current Version
currently installed languages: x <br> setup en Currently installed languages: %1 <br>
db host setup en DB Host
db name setup en DB Name
db password setup en DB Password
db root password setup en DB root password
db root username setup en DB root username
Default file system space per user/group ? setup en Default file system space per user/group ?
db type setup en DB Type
db user setup en DB User
default file system space per user/group ? setup en Default file system space per user/group ?
delete all my tables and data setup en Delete all my tables and data
delete all old languages and install new ones setup en Delete all old languages and install new ones
deleting tables setup en Deleting Tables
demo server setup setup en Demo Server Setup
deny access setup en Deny Access
Deny all users access to grant other users access to their entries ? setup en Deny all users access to grant other users access to their entries ?
deny all users access to grant other users access to their entries ? setup en Deny all users access to grant other users access to their entries ?
deregistered setup en deregistered
details for admin account setup en Details for Admin account
did not find any valid db support! setup en Did not find any valid DB support!
do you want persistent connections (higher performance, but consumes more resources) setup en Do you want persistent connections (higher performance, but consumes more resources)
domain setup en Domain
domain select box on login setup en Domain select box on login
dont touch my data setup en Dont touch my data
edit current configuration setup en Edit Current Configuration
Enter some random text for app_session <br>encryption (requires mcrypt) setup en Enter some random text for app_session <br>encryption (requires mcrypt)
edit your existing header.inc.php setup en Edit your existing header.inc.php
edit your header.inc.php setup en Edit your header.inc.php
enable mcrypt setup en Enable MCrypt
enter some random text for app session encryption setup en Enter some random text for app session encryption
Enter the full path for temporary files.<br>Examples: /tmp, C:\TEMP setup en Enter the full path for temporary files.<br>Examples: /tmp, C:\TEMP
Enter the full path for users and group files.<br>Examples: /files, E:\FILES setup en Enter the full path for users and group files.<br>Examples: /files, E:\FILES
Enter the hostname of the machine on which this server is running setup en Enter the hostname of the machine on which this server is running
Enter the location of phpGroupWare's URL.<br>Example: http://www.domain.com/phpgroupware &nbsp; or &nbsp; /phpgroupware<br><b>No trailing slash</b> setup en Enter the location of phpGroupWare's URL.<br>Example: http://www.domain.com/phpgroupware &nbsp; or &nbsp; /phpgroupware<br><b>No trailing slash</b>
Enter the site password for peer servers setup en Enter the site password for peer servers
Enter the site username for peer servers setup en Enter the site username for peer servers
Enter the title for your site setup en Enter the title for your site
Enter your default FTP server setup en Enter your default FTP server
Enter your HTTP proxy server port setup en Enter your HTTP proxy server port
Enter your HTTP proxy server setup en Enter your HTTP proxy server
enter some random text for app_session <br>encryption (requires mcrypt) setup en Enter some random text for app_session <br>encryption (requires mcrypt)
enter the full path for temporary files.<br>Examples: /tmp, C:\TEMP setup en Enter the full path for temporary files.<br>Examples: /tmp, C:\TEMP
enter the full path for users and group files.<br>Examples: /files, E:\FILES setup en Enter the full path for users and group files.<br>Examples: /files, E:\FILES
enter the hostname of the machine on which this server is running setup en Enter the hostname of the machine on which this server is running
enter the location of phpGroupWare's URL.<br>Example: http://www.domain.com/phpgroupware &nbsp; or &nbsp; /phpgroupware<br><b>No trailing slash</b> setup en Enter the location of phpGroupWare's URL.<br>Example: http://www.domain.com/phpgroupware &nbsp; or &nbsp; /phpgroupware<br><b>No trailing slash</b>
enter the site password for peer servers setup en Enter the site password for peer servers
enter the site username for peer servers setup en Enter the site username for peer servers
enter the title for your site setup en Enter the title for your site
enter your HTTP proxy server setup en Enter your HTTP proxy server
enter your HTTP proxy server port setup en Enter your HTTP proxy server port
enter your default FTP server setup en Enter your default FTP server
export phpgroupware accounts from sql to ldap setup en Export phpGroupWare accounts from SQL to LDAP
export sql users to ldap setup en Export SQL users to LDAP
for a new install, select import. to convert existing sql accounts to ldap, select export setup en For a new install, select import. To convert existing SQL accounts to LDAP, select export
force selectbox setup en Force Selectbox
found existing configuration file. loading settings from the file... setup en Found existing configuration file. Loading settings from the file...
go back setup en Go back
go to setup en Go to
grant access setup en Grant Access
has a version mismatch setup en has a version mismatch
hooks deregistered setup en hooks deregistered
hooks registered setup en hooks registered
Host information setup en Host information
host information setup en Host information
however, the application is otherwise installed setup en However, the application is otherwise installed
If no ACL records for user or any group the user is a member of setup en If no ACL records for user or any group the user is a member of
if no ACL records for user or any group the user is a member of setup en If no ACL records for user or any group the user is a member of
if the application has no defined tables, selecting upgrade should remedy the problem setup en If the application has no defined tables, selecting upgrade should remedy the problem
If using LDAP, do you want to manage homedirectory and loginshell attributes? setup en If using LDAP, do you want to manage homedirectory and loginshell attributes?
if using LDAP, do you want to manage homedirectory and loginshell attributes? setup en If using LDAP, do you want to manage homedirectory and loginshell attributes?
if you did not receive any errors, your applications have been setup en If you did not receive any errors, your applications have been
if you did not receive any errors, your tables have been setup en If you did not receive any errors, your tables have been
image type selection order setup en Image type selection order
import accounts from ldap to the phpgroupware accounts table (for a new install using sql accounts) setup en Import accounts from LDAP to the phpGroupWare accounts table (for a new install using SQL accounts)
import ldap users/groups setup en Import LDAP users/groups
importing old settings into the new format.... setup en Importing old settings into the new format....
include root (this should be the same as server root unless you know what you are doing) setup en Include Root (this should be the same as Server Root unless you know what you are doing)
insanity setup en Insanity
install Applications setup en Install Applications
installed setup en installed
install language setup en Install Language
install setup en Install
install Applications setup en Install Applications
install language setup en Install Language
installed setup en installed
invalid password setup en Invalid password
is broken setup en is broken
is disabled setup en is disabled
ldap Default homedirectory prefix (e.g. /home for /home/username) setup en LDAP Default homedirectory prefix (e.g. /home for /home/username)
ldap Default shell (e.g. /bin/bash) setup en LDAP Default shell (e.g. /bin/bash)
ldap account import/export setup en LDAP account import/export
ldap accounts configuration setup en LDAP Accounts Configuration
LDAP accounts context setup en LDAP accounts context
LDAP Default homedirectory prefix (e.g. /home for /home/username) setup en LDAP Default homedirectory prefix (e.g. /home for /home/username)
LDAP Default shell (e.g. /bin/bash) setup en LDAP Default shell (e.g. /bin/bash)
LDAP encryption type setup en LDAP encryption type
ldap accounts context setup en LDAP accounts context
ldap encryption type setup en LDAP encryption type
ldap export users setup en LDAP export users
LDAP groups context setup en LDAP groups context
LDAP host setup en LDAP host
ldap groups context setup en LDAP groups context
ldap host setup en LDAP host
ldap import users setup en LDAP import users
LDAP rootdn setup en LDAP rootdn
LDAP root password setup en LDAP root password
ldap root password setup en LDAP root password
ldap rootdn setup en LDAP rootdn
logout setup en Logout
makesure setup en Make sure that your database is created and the account permissions are set
manage applications setup en Manage Applications
manage languages setup en Manage Languages
Maximum account id (e.g. 65535 or 1000000) setup en Maximum account id (e.g. 65535 or 1000000)
maximum account id (e.g. 65535 or 1000000) setup en Maximum account id (e.g. 65535 or 1000000)
mcrypt algorithm (default tripledes) setup en Mcrypt algorithm (default TRIPLEDES)
mcrypt initialization vector setup en MCrypt initialization vector
mcrypt mode (default cbc) setup en Mcrypt mode (default CBC)
mcrypt settings (requires mcrypt php extension) setup en Mcrypt Settings (requires mcrypt PHP extension)
Minimum account id (e.g. 500 or 100, etc.) setup en Minimum account id (e.g. 500 or 100, etc.)
mcrypt version setup en MCrypt version
minimum account id (e.g. 500 or 100, etc.) setup en Minimum account id (e.g. 500 or 100, etc.)
modify an existing ldap account store for use with phpgroupware (for a new install using ldap accounts) setup en Modify an existing LDAP account store for use with phpGroupWare (for a new install using LDAP accounts)
multi-language support setup setup en Multi-Language support setup
mysqlinstr setup en Instructions for creating the database in MySQL:<br>Login to mysql -<br><i>[user@server user]# mysql -u root -p</i><br>Create the empty database and grant user permissions -<br><i>mysql> create database phpgroupware;</i><br><i>mysql> grant all on phpgroupware.* to phpgroupware@localhost identified by 'password';</i>
never setup en never
no algorithms available setup en no algorithms available
no modes available setup en no modes available
no setup en No
no algorithms available setup en no algorithms available
no microsoft sql server support found. disabling setup en No Microsoft SQL Server support found. Disabling
no modes available setup en no modes available
no mysql support found. disabling setup en No MySQL support found. Disabling
no oracle-db support found. disabling setup en No Oracle-DB support found. Disabling
no postgres-db support found. disabling setup en No Postgres-DB support found. Disabling
no xml support found. disabling setup en No XML support found. Disabling
not complete setup en not complete
not completed setup en Not Completed
note: you will be able to customize this later setup en Note: You will be able to customize this later
not ready for this stage yet setup en Not ready for this stage yet
note: you will be able to customize this later setup en Note: You will be able to customize this later
now guessing better values for defaults... setup en Now guessing better values for defaults...
ok setup en OK
once the database is setup correctly setup en Once the database is setup correctly
one month setup en one month
one week setup en one week
only add languages that are not in the database already setup en Only add languages that are not in the database already
only add new phrases setup en Only add new phrases
or setup en or
password needed for configuration setup en Password needed for configuration
passwords did not match, please re-enter setup en Passwords did not match, please re-enter
Path information setup en Path information
path information setup en Path information
persistent connections setup en Persistent connections
pgsqlinstr setup en Instructions for creating the database in PostgreSQL:<br>Start the postmaster<br><i>[user@server user]# postmaster -i -D /home/[username]/[dataDir]</i><br>Create the empty database -<br><i>[user@server user]# createdb phpgroupware</i>
please check for sql scripts within the application's directory setup en Please check for sql scripts within the application's directory
please check read/write permissions on directories, or back up and use another option. setup en Please check read/write permissions on directories, or back up and use another option.
please configure phpGroupWare for your environment setup en Please configure phpGroupWare for your environment
please install setup en Please install
please login to phpgroupware and run the admin application for additional site configuration setup en Please login to phpgroupware and run the admin application for additional site configuration
please wait... setup en Please Wait...
possible solutions setup en Possible Solutions
potential problem setup en Potential Problem
Preferences setup en Preferences
preferences setup en Preferences
problem resolution setup en Problem resolution
process setup en Process
really uninstall all applications setup en REALLY Uninstall all applications
re-check my database setup en Re-Check my database
re-check my installation setup en Re-Check My Installation
re-enter password setup en Re-enter password
really uninstall all applications setup en REALLY Uninstall all applications
registered setup en registered
remove setup en Remove
requires reinstall or manual repair setup en Requires reinstall or manual repair
requires upgrade setup en Requires upgrade
resolve setup en Resolve
Select an app, enter a target version, then submit to process to that version.<br>If you do not enter a version, only the baseline tables will be installed for the app.<br><blink>THIS WILL DROP ALL OF THE APPS' TABLES FIRST!</blink> setup en Select an app, enter a target version, then submit to process to that version.<br>If you do not enter a version, only the baseline tables will be installed for the app.<br><blink>THIS WILL DROP ALL OF THE APPS' TABLES FIRST!</blink>
Selectbox setup en Selectbox
sample configuration not found. using built in defaults setup en Sample configuration not found. using built in defaults
save this text as contents of your header.inc.php setup en Save this text as contents of your header.inc.php
select an app, enter a target version, then submit to process to that version.<br>If you do not enter a version, only the baseline tables will be installed for the app.<br><blink>THIS WILL DROP ALL OF THE APPS' TABLES FIRST!</blink> setup en Select an app, enter a target version, then submit to process to that version.<br>If you do not enter a version, only the baseline tables will be installed for the app.<br><blink>THIS WILL DROP ALL OF THE APPS' TABLES FIRST!</blink>
select the default applications to which your users will have access setup en Select the default applications to which your users will have access
select the desired action(s) from the available choices setup en Select the desired action(s) from the available choices
select to download file setup en Select to download file
Select where you want to store/retrieve filesystem information setup en Select where you want to store/retrieve filesystem information
Select where you want to store/retrieve user accounts setup en Select where you want to store/retrieve user accounts
select where you want to store/retrieve filesystem information setup en Select where you want to store/retrieve filesystem information
select where you want to store/retrieve user accounts setup en Select where you want to store/retrieve user accounts
select which group(s) will be exported (group membership will be maintained) setup en Select which group(s) will be exported (group membership will be maintained)
select which group(s) will be imported (group membership will be maintained) setup en Select which group(s) will be imported (group membership will be maintained)
select which languages you would like to use setup en Select which languages you would like to use
@ -182,9 +216,14 @@ select which user(s) will be exported setup en Select which user(s) will be expo
select which user(s) will be imported setup en Select which user(s) will be imported
select which user(s) will have admin privileges setup en Select which user(s) will have admin privileges
select your old version setup en Select your old version
setup demo accounts in ldap setup en Setup demo accounts in LDAP
selectbox setup en Selectbox
server root setup en Server Root
sessions type setup en Sessions Type
set this to "old" for versions &lt; 2.4, otherwise the exact mcrypt version you use. setup en Set this to "old" for versions &lt; 2.4, otherwise the exact mcrypt version you use.
settings setup en Settings
setup setup en Setup
Show 'powered by' logo on setup en Show 'powered by' logo on
setup demo accounts in ldap setup en Setup demo accounts in LDAP
show 'powered by' logo on setup en Show 'powered by' logo on
some or all of its tables are missing setup en Some or all of its tables are missing
status setup en Status
step 1 - simple application management setup en Step 1 - Simple Application Management
@ -197,46 +236,68 @@ tables dropped setup en tables dropped
tables installed, unless there are errors printed above setup en tables installed, unless there are errors printed above
tables upgraded setup en tables upgraded
target version setup en Target Version
Text Entry setup en Text Entry
there was a problem tring to connect to your ldap server. <br>please check your LDAP server configuration setup en There was a problem tring to connect to your LDAP server. <br>please check your LDAP server configuration
text Entry setup en Text Entry
the db_type in defaults (x) is not supported on this server. using first supported type. setup en The db_type in defaults (x) is not supported on this server. using first supported type.
the table definition was correct, and the tables were installed setup en The table definition was correct, and the tables were installed
the tables setup en the tables
there was a problem tring to connect to your ldap server. <br>please check your LDAP server configuration setup en There was a problem tring to connect to your LDAP server. <br>please check your LDAP server configuration
this program will help you upgrade or install different languages for phpGroupWare setup en This program will help you upgrade or install different languages for phpGroupWare
this section will help you export users and groups from phpgroupWare's account tables into your ldap tree setup en This section will help you export users and groups from phpGroupWare's account tables into your LDAP tree
this section will help you import users and groups from your ldap tree into phpGroupWare's account tables setup en This section will help you import users and groups from your LDAP tree into phpGroupWare's account tables
this should be around 30 bytes in length.<br>note: the default has been randomly generated. setup en This should be around 30 bytes in length.<br>Note: The default has been randomly generated.
this stage is completed<br> setup en This stage is completed<br>
this will create 1 admin account and 3 demo accounts<br>the username/passwords are: demo/guest, demo2/guest and demo3/guest.<br><b>!!!THIS WILL DELETE ALL EXISTING ACCOUNTS!!!</b><br> setup en This will create 1 admin account and 3 demo accounts<br>The username/passwords are: demo/guest, demo2/guest and demo3/guest.<br><b>!!!THIS WILL DELETE ALL EXISTING ACCOUNTS!!!</b><br>
top setup en top
to setup 1 admin account and 3 demo accounts.<br><b>this will delete all existing accounts</b> setup en to setup 1 admin account and 3 demo accounts.<br><b>This will delete all existing accounts</b>
top setup en top
translations added setup en Translations Added
translations removed setup en Translations Removed
translations upgraded setup en Translations Upgraded
try to configure your php to support one of the above mentioned dbms, or install phpgroupware by hand. setup en Try to configure your php to support one of the above mentioned DBMS, or install phpGroupWare by hand.
two weeks setup en two weeks
uninstall all applications setup en Uninstall all applications
uninstalled setup en uninstalled
upgraded setup en upgraded
upgrade setup en Upgrade
upgraded setup en upgraded
upgrading tables setup en Upgrading Tables
Use cookies to pass sessionid setup en Use cookies to pass sessionid
Use pure HTML compliant code (not fully working yet) setup en Use pure HTML compliant code (not fully working yet)
Users Choice setup en Users Choice
use cookies to pass sessionid setup en Use cookies to pass sessionid
use pure HTML compliant code (not fully working yet) setup en Use pure HTML compliant code (not fully working yet)
users Choice setup en Users Choice
version mismatch setup en Version Mismatch
warning! setup en Warning!
we will automatically update your tables/records to x setup en We will automatically update your tables/records to %1
Would you like phpGroupWare to cache the phpgw info array ? setup en Would you like phpGroupWare to cache the phpgw info array ?
Would you like phpGroupWare to check for a new version<br>when admins login ? setup en Would you like phpGroupWare to check for a new version<br>when admins login ?
Would you like to show each application's upgrade status ? setup en Would you like to show each application's upgrade status ?
what type of sessions management do you want to use (php4 session management may perform better)? setup en What type of sessions management do you want to use (PHP4 session management may perform better)?
which database type do you want to use with phpgroupware? setup en Which database type do you want to use with phpGroupWare?
would you like phpGroupWare to cache the phpgw info array ? setup en Would you like phpGroupWare to cache the phpgw info array ?
would you like phpGroupWare to check for a new version<br>when admins login ? setup en Would you like phpGroupWare to check for a new version<br>when admins login ?
would you like to show each application's upgrade status ? setup en Would you like to show each application's upgrade status ?
yes setup en Yes
you appear to be running a pre-beta version of phpGroupWare.<br>These versions are no longer supported, and there is no upgrade path for them in setup.<br> You may wish to first upgrade to 0.9.10 (the last version to support pre-beta upgrades) <br>and then upgrade from there with the current version. setup en You appear to be running a pre-beta version of phpGroupWare.<br>These versions are no longer supported, and there is no upgrade path for them in setup.<br> You may wish to first upgrade to 0.9.10 (the last version to support pre-beta upgrades) <br>and then upgrade from there with the current version.
you appear to be running an old version of PHP <br>It its recommend that you upgrade to a new version. <br>Older version of PHP might not run phpGroupWare correctly, if at all. <br><br>Please upgrade to at least version 3.0.16 setup en You appear to be running an old version of PHP <br>It its recommend that you upgrade to a new version. <br>Older version of PHP might not run phpGroupWare correctly, if at all. <br><br>Please upgrade to at least version 3.0.16
You appear to be running a pre-beta version of phpGroupWare.<br>These versions are no longer supported, and there is no upgrade path for them in setup.<br> You may wish to first upgrade to 0.9.10 (the last version to support pre-beta upgrades) <br>and then upgrade from there with the current version. setup en You appear to be running a pre-beta version of phpGroupWare.<br>These versions are no longer supported, and there is no upgrade path for them in setup.<br> You may wish to first upgrade to 0.9.10 (the last version to support pre-beta upgrades) <br>and then upgrade from there with the current version.
you appear to be running version x of phpGroupWare setup en You appear to be running version %1 of phpGroupWare
you appear to be using php3. disabling php4 sessions support setup en You appear to be using PHP3. Disabling PHP4 sessions support
you appear to be using php4. enabling php4 sessions support setup en You appear to be using PHP4. Enabling PHP4 sessions support
you appear to have microsoft sql server support enabled setup en You appear to have Microsoft SQL Server support enabled
you appear to have mysql support enabled setup en You appear to have MySQL support enabled
you appear to have oracle support enabled setup en You appear to have Oracle support enabled
you appear to have oracle v8 (oci) support enabled setup en You appear to have Oracle V8 (OCI) support enabled
you appear to have postgres-db support enabled setup en You appear to have Postgres-DB support enabled
you appear to have xml support enabled setup en You appear to have XML support enabled
you are ready for this stage, but this stage is not yet written.<br> setup en You are ready for this stage, but this stage is not yet written.<br>
you didn't enter a config password setup en You didn't enter a config password
you didn't enter a header admin password setup en You didn't enter a header admin password
you do not have any languages installed. please install one now <br> setup en You do not have any languages installed. Please install one now <br>
you have not created your header.inc.php yet!<br> you can create it now. setup en You have not created your header.inc.php yet!<br> You can create it now.
you have successfully logged out setup en You have successfully logged out
you must enter a username for the admin setup en You must enter a username for the admin
you should either uninstall and then reinstall it, or attempt manual repairs setup en You should either uninstall and then reinstall it, or attempt manual repairs
you're using an old configuration file format... setup en You're using an old configuration file format...
you're using an old header.inc.php version... setup en You're using an old header.inc.php version...
your applications are current setup en Your applications are current
your database does not exist setup en Your database does not exist
your database is working, but you dont have any applications installed setup en Your database is working, but you dont have any applications installed
your header admin password is not set. please set it now! setup en Your header admin password is NOT set. Please set it now!
your header.inc.php needs upgrading. setup en Your header.inc.php needs upgrading.
your header.inc.php needs upgrading.<br><blink><font color=cc0000><b>warning!</b></font></blink><br>if you are using virtual domain support, this will <b>not</b> copy those domains over. you will need to do this manually, <b>make backups!</b> setup en Your header.inc.php needs upgrading.<br><blink><font color=CC0000><b>WARNING!</b></font></blink><br>If you are using virtual domain support, this will <b>NOT</b> copy those domains over. You will need to do this manually, <b>MAKE BACKUPS!</b>
your tables are current setup en Your tables are current
your tables may be altered and you may lose data setup en Your tables may be altered and you may lose data.
your tables will be dropped and you will lose data setup en Your tables will be dropped and you will lose data !!
you have successfully logged out setup en You have successfully logged out
you should either uninstall and then reinstall it, or attempt manual repairs setup en You should either uninstall and then reinstall it, or attempt manual repairs

View File

@ -30,11 +30,11 @@
{
if (! $GLOBALS['HTTP_POST_VARS']['setting']['config_pass'])
{
$errors .= "<br>You didn't enter a config password";
$errors .= '<br>' . lang("You didn't enter a config password");
}
if (! $GLOBALS['HTTP_POST_VARS']['setting']['HEADER_ADMIN_PASSWORD'])
{
$errors .= "<br>You didn't enter a header admin password";
$errors .= '<br>' . lang("You didn't enter a header admin password");
}
if ($errors)
@ -57,26 +57,26 @@
'T_alert_msg' => 'msg_alert_msg.tpl',
'T_login_main' => 'login_main.tpl',
'T_login_stage_header' => 'login_stage_header.tpl',
'T_setup_main' => 'setup_main.tpl',
'T_setup_db_blocks' => 'setup_db_blocks.tpl'
'T_setup_manage' => 'manageheader.tpl'
));
$setup_tpl->set_block('T_login_stage_header','B_multi_domain','V_multi_domain');
$setup_tpl->set_block('T_login_stage_header','B_single_domain','V_single_domain');
/* Detect current mode */
switch($GLOBALS['phpgw_info']['setup']['stage']['header'])
{
case '1':
$GLOBALS['phpgw_info']['setup']['HeaderFormMSG'] = 'Create your header.inc.php';
$GLOBALS['phpgw_info']['setup']['PageMSG'] = 'You have not created your header.inc.php yet!<br> You can create it now.';
$GLOBALS['phpgw_info']['setup']['HeaderFormMSG'] = lang('Create your header.inc.php');
$GLOBALS['phpgw_info']['setup']['PageMSG'] = lang('You have not created your header.inc.php yet!<br> You can create it now.');
break;
case '2':
$GLOBALS['phpgw_info']['setup']['HeaderFormMSG'] = 'Your header admin password is NOT set. Please set it now!';
$GLOBALS['phpgw_info']['setup']['PageMSG'] = 'Your header admin password is NOT set. Please set it now!';
$GLOBALS['phpgw_info']['setup']['HeaderFormMSG'] = lang('Your header admin password is NOT set. Please set it now!');
$GLOBALS['phpgw_info']['setup']['PageMSG'] = lang('Your header admin password is NOT set. Please set it now!');
break;
case '3':
$GLOBALS['phpgw_info']['setup']['HeaderFormMSG'] = 'Your header.inc.php needs upgrading.';
$GLOBALS['phpgw_info']['setup']['PageMSG'] = 'Your header.inc.php needs upgrading.<br><blink><font color=CC0000><b>WARNING!</b></font></blink><br>If you are using virtual domain support, this will <b>NOT</b> copy those domains over. You will need to do this manually, <b>MAKE BACKUPS!</b>';
$GLOBALS['phpgw_info']['setup']['HeaderLoginMSG'] = 'Your header.inc.php needs upgrading.';
$GLOBALS['phpgw_info']['setup']['HeaderFormMSG'] = lang('Your header.inc.php needs upgrading.');
$GLOBALS['phpgw_info']['setup']['PageMSG'] = lang('Your header.inc.php needs upgrading.<br><blink><font color=CC0000><b>WARNING!</b></font></blink><br>If you are using virtual domain support, this will <b>NOT</b> copy those domains over. You will need to do this manually, <b>MAKE BACKUPS!</b>');
$GLOBALS['phpgw_info']['setup']['HeaderLoginMSG'] = lang('Your header.inc.php needs upgrading.');
if (!$GLOBALS['phpgw_setup']->auth('Header'))
{
$GLOBALS['phpgw_setup']->html->show_header('Please login',True);
@ -93,8 +93,8 @@
$GLOBALS['phpgw_setup']->html->show_footer();
exit;
}
$GLOBALS['phpgw_info']['setup']['HeaderFormMSG'] = 'Edit your header.inc.php';
$GLOBALS['phpgw_info']['setup']['PageMSG'] = 'Edit your existing header.inc.php';
$GLOBALS['phpgw_info']['setup']['HeaderFormMSG'] = lang('Edit your header.inc.php');
$GLOBALS['phpgw_info']['setup']['PageMSG'] = lang('Edit your existing header.inc.php');
break;
}
@ -103,10 +103,14 @@
case 'download':
check_form_values();
$header_template = CreateObject('phpgwapi.Template','../');
$b = CreateObject('phpgwapi.browser');
$b->content_header('header.inc.php','application/octet-stream');
/*
header('Content-disposition: attachment; filename="header.inc.php"');
header('Content-type: application/octet-stream');
header('Pragma: no-cache');
header('Expires: 0');
*/
$newheader = $GLOBALS['phpgw_setup']->html->generate_header();
echo $newheader;
break;
@ -114,32 +118,32 @@
check_form_values();
$header_template = CreateObject('phpgwapi.Template','../');
$GLOBALS['phpgw_setup']->html->show_header('Generated header.inc.php', False, 'header');
echo '<br>Save this text as contents of your header.inc.php<br><hr>';
echo '<br>' . lang('Save this text as contents of your header.inc.php') . '<br><hr>';
$newheader = $GLOBALS['phpgw_setup']->html->generate_header();
echo '<pre>';
echo htmlentities($newheader);
echo '</pre><hr>';
echo '<form action="index.php" method=post>';
echo '<br> After retrieving the file put it into place as the header.inc.php, then click continue.<br>';
echo '<input type=hidden name="FormLogout" value="header">';
echo '<input type=submit name="junk" value="continue">';
echo '<form action="index.php" method="post">';
echo '<br>' . lang('After retrieving the file, put it into place as the header.inc.php. Then, click "continue".') . '<br>';
echo '<input type="hidden" name="FormLogout" value="header">';
echo '<input type="submit" name="junk" value="continue">';
echo '</form>';
echo '</body></html>';
break;
case 'write config':
check_form_values();
$header_template = CreateObject('phpgwapi.Template','../');
if(is_writeable ('../header.inc.php')|| (!file_exists ('../header.inc.php') && is_writeable ('../')))
if(is_writeable('../header.inc.php') || (!file_exists('../header.inc.php') && is_writeable('../')))
{
$newheader = $GLOBALS['phpgw_setup']->html->generate_header();
$fsetup = fopen('../header.inc.php','wb');
fwrite($fsetup,$newheader);
fclose($fsetup);
$GLOBALS['phpgw_setup']->html->show_header('Saved header.inc.php', False, 'header');
echo '<form action="index.php" method=post>';
echo '<form action="index.php" method="post">';
echo '<br>Created header.inc.php! ';
echo '<input type=hidden name="FormLogout" value="header">';
echo '<input type=submit name="junk" value="continue">';
echo '<input type="hidden" name="FormLogout" value="header">';
echo '<input type="submit" name="junk" value="continue">';
echo '</form>';
echo '</body></html>';
break;
@ -147,111 +151,122 @@
else
{
$GLOBALS['phpgw_setup']->html->show_header('Error generating header.inc.php', False, 'header');
echo 'Could not open header.inc.php for writing!<br>' . "\n";
echo 'Please check read/write permissions on directories or back up and use another option.<br>';
echo lang('Could not open header.inc.php for writing!') . '<br>' . "\n";
echo lang('Please check read/write permissions on directories, or back up and use another option.') . '<br>';
echo '</td></tr></table></body></html>';
}
break;
default:
$GLOBALS['phpgw_setup']->html->show_header($GLOBALS['phpgw_info']['setup']['HeaderFormMSG'], False, 'header');
echo $GLOBALS['phpgw_info']['setup']['PageMSG'];
/*
echo '<table border="0" width="100%" cellspacing="0" cellpadding="2">';
echo ' <tr><td align="center" WIDTH="20%" bgcolor="486591" colspan=2><font color="fefefe">Analysis</td></tr>';
echo '</table>';
*/
echo '<table border="0" width="100%" cellspacing="0" cellpadding="2">';
echo '<tr bgcolor="486591"><td align="center" colspan=2><font color="fefefe"> Analysis </font></td></tr><tr><td colspan=2>';
// Hardly try to find what DB-support is compiled in
// this dont work with PHP 3.0.10 and lower !
$detected = $GLOBALS['phpgw_info']['setup']['PageMSG'];
$detected .= '<table border="0" width="100%" cellspacing="0" cellpadding="2">';
$detected .= '<tr bgcolor="486591"><td align="center" colspan="2"><font color="fefefe">' . lang('Analysis') . '</font></td></tr><tr><td colspan="2">';
$supported_db = array();
if (extension_loaded('mysql') || function_exists('mysql_connect'))
{
echo 'You appear to have MySQL support enabled<br>' . "\n";
$detected .= lang('You appear to have MySQL support enabled') . '<br>' . "\n";
$supported_db[] = 'mysql';
}
else
{
echo 'No MySQL support found. Disabling<br>' . "\n";
$detected .= lang('No MySQL support found. Disabling') . '<br>' . "\n";
}
if (extension_loaded('pgsql') || function_exists('pg_connect'))
{
echo 'You appear to have Postgres-DB support enabled<br>' . "\n";
$detected .= lang('You appear to have Postgres-DB support enabled') . '<br>' . "\n";
$supported_db[] = 'pgsql';
}
else
{
echo 'No Postgres-DB support found. Disabling<br>' . "\n";
$detected .= lang('No Postgres-DB support found. Disabling') . '<br>' . "\n";
}
if (extension_loaded('mssql') || function_exists('mssql_connect'))
{
echo 'You appear to have Microsoft SQL Server support enabled<br>' . "\n";
$detected .= lang('You appear to have Microsoft SQL Server support enabled') . '<br>' . "\n";
$supported_db[] = 'mssql';
}
else
{
echo 'No Microsoft SQL Server support found. Disabling<br>' . "\n";
$detected .= lang('No Microsoft SQL Server support found. Disabling') . '<br>' . "\n";
}
if (extension_loaded('oci8'))
{
echo 'You appear to have Oracle V8 (OCI) support enabled<br>' . "\n";
$detected .= lang('You appear to have Oracle V8 (OCI) support enabled') . '<br>' . "\n";
$supported_db[] = 'oracle';
}
else
{
if(extension_loaded('oracle'))
{
echo 'You appear to have Oracle support enabled<br>' . "\n";
$detected .= lang('You appear to have Oracle support enabled') . '<br>' . "\n";
$supported_db[] = 'oracle';
}
else
{
echo 'No Oracle-DB support found. Disabling<br>' . "\n";
$detected .= lang('No Oracle-DB support found. Disabling') . '<br>' . "\n";
}
}
if(!count($supported_db))
{
echo '<b><p align=center><font size=+2 color=red>did not found any valid DB support !<br>try to configure your php to support one of the above mentioned dbs or install phpgroupware by hand </font></p></b><td></tr></table></body></html>';
$detected .= '<b><p align="center"><font size="+2" color="red">'
. lang('Did not find any valid DB support!')
. '<br>'
. lang('Try to configure your php to support one of the above mentioned DBMS, or install phpGroupWare by hand.')
. '</font></p></b><td></tr></table></body></html>';
echo $detected;
exit;
}
if (floor(phpversion()) == 3)
{
echo 'You appear to be using PHP3. Disabling PHP4 sessions support<br>' . "\n";
$detected .= lang('You appear to be using PHP3. Disabling PHP4 sessions support') . '<br>' . "\n";
$supported_sessions_type[] = 'db';
}
else
{
echo 'You appear to be using PHP4. Enabling PHP4 sessions support<br>' . "\n";
$detected .= lang('You appear to be using PHP4. Enabling PHP4 sessions support') . '<br>' . "\n";
$supported_sessions_type[] = 'db';
$supported_sessions_type[] = 'php4';
}
$no_guess = false;
/*
if (extension_loaded('xml') || function_exists('xml_parser_create'))
{
$detected .= lang('You appear to have XML support enabled') . '<br>' . "\n";
$xml_enabled = 'True';
}
else
{
$detected .= lang('No XML support found. Disabling') . '<br>' . "\n";
}
*/
$no_guess = False;
if(file_exists('../header.inc.php') && is_file('../header.inc.php'))
{
echo 'Found existing configuration file. Loading settings from the file...<br>' . "\n";
$detected .= lang('Found existing configuration file. Loading settings from the file...') . '<br>' . "\n";
$GLOBALS['phpgw_info']['flags']['noapi'] = True;
include('../header.inc.php');
$no_guess = true;
/* This code makes sure the newer multi-domain supporting header.inc.php is being used */
if (!isset($phpgw_domain))
/* This code makes sure the newer multi-domain supporting header.inc.php is being used */
if(!isset($phpgw_domain))
{
echo 'Your using an old configuration file format...<br>' . "\n";
echo 'Importing old settings into the new format....<br>' . "\n";
$detected .= lang("You're using an old configuration file format...") . '<br>' . "\n";
$detected .= lang('Importing old settings into the new format....') . '<br>' . "\n";
}
else
{
if ($GLOBALS['phpgw_info']['server']['header_version'] != $GLOBALS['phpgw_info']['server']['current_header_version'])
if($GLOBALS['phpgw_info']['server']['header_version'] != $GLOBALS['phpgw_info']['server']['current_header_version'])
{
echo 'Your using an old header.inc.php version...<br>' . "\n";
echo 'Importing old settings into the new format....<br>' . "\n";
$detected .= lang("You're using an old header.inc.php version...") . '<br>' . "\n";
$detected .= lang('Importing old settings into the new format....') . '<br>' . "\n";
}
reset($phpgw_domain);
$default_domain = each($phpgw_domain);
$GLOBALS['phpgw_info']['server']['default_domain'] = $default_domain[0];
unset ($default_domain); // we kill this for security reasons
unset($default_domain); // we kill this for security reasons
$GLOBALS['phpgw_info']['server']['db_host'] = $phpgw_domain[$GLOBALS['phpgw_info']['server']['default_domain']]['db_host'];
$GLOBALS['phpgw_info']['server']['db_name'] = $phpgw_domain[$GLOBALS['phpgw_info']['server']['default_domain']]['db_name'];
$GLOBALS['phpgw_info']['server']['db_user'] = $phpgw_domain[$GLOBALS['phpgw_info']['server']['default_domain']]['db_user'];
@ -264,18 +279,18 @@
$GLOBALS['phpgw_info']['server']['server_root'] = PHPGW_SERVER_ROOT;
$GLOBALS['phpgw_info']['server']['include_root'] = PHPGW_INCLUDE_ROOT;
}
elseif (!isset($GLOBALS['phpgw_info']['server']['include_root']) && $GLOBALS['phpgw_info']['server']['header_version'] <= 1.6)
elseif(!isset($GLOBALS['phpgw_info']['server']['include_root']) && $GLOBALS['phpgw_info']['server']['header_version'] <= 1.6)
{
$GLOBALS['phpgw_info']['server']['include_root'] = $GLOBALS['phpgw_info']['server']['server_root'];
}
elseif (!isset($GLOBALS['phpgw_info']['server']['header_version']) && $GLOBALS['phpgw_info']['server']['header_version'] <= 1.6)
elseif(!isset($GLOBALS['phpgw_info']['server']['header_version']) && $GLOBALS['phpgw_info']['server']['header_version'] <= 1.6)
{
$GLOBALS['phpgw_info']['server']['include_root'] = $GLOBALS['phpgw_info']['server']['server_root'];
}
}
else
{
echo 'sample configuration not found. using built in defaults<br>' . "\n";
$detected .= lang('Sample configuration not found. using built in defaults') . '<br>' . "\n";
$GLOBALS['phpgw_info']['server']['server_root'] = '/path/to/phpgroupware';
$GLOBALS['phpgw_info']['server']['include_root'] = '/path/to/phpgroupware';
/* This is the basic include needed on each page for phpGroupWare application compliance */
@ -299,9 +314,10 @@
'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f',
'g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v',
'w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L',
'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
'M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'
);
for ($i=0; $i<30; $i++)
for($i=0; $i<30; $i++)
{
$GLOBALS['phpgw_info']['server']['mcrypt_iv'] .= $random_char[rand(1,count($random_char))];
}
@ -310,121 +326,139 @@
// now guessing better settings then the default ones
if(!$no_guess)
{
echo 'Now guessing better values for defaults <br>' . "\n";
$detected .= lang('Now guessing better values for defaults...') . '<br>' . "\n";
$this_dir = dirname($SCRIPT_FILENAME);
$updir = ereg_replace('/setup','',$this_dir);
$GLOBALS['phpgw_info']['server']['server_root'] = $updir;
$GLOBALS['phpgw_info']['server']['include_root'] = $updir;
}
?>
</td></tr>
<tr bgcolor="486591"><th colspan="2"><font color="fefefe">Settings</font></th></tr>
<form action="manageheader.php" method="post">
<input type="hidden" name="setting[write_config]" value="true">
<tr><td colspan="2"><b>Server Root</b><br><input type="text" name="setting[server_root]" size="80" value="<?php echo $GLOBALS['phpgw_info']['server']['server_root'] ?>"></td></tr>
<tr><td colspan="2"><b>Include Root (this should be the same as Server Root unless you know what you are doing)</b><br><input type="text" name="setting[include_root]" size="80" value="<?php echo $GLOBALS['phpgw_info']['server']['include_root'] ?>"></td></tr>
<tr><td colspan="2"><b>Admin password to header manager </b><br><input type="text" name="setting[HEADER_ADMIN_PASSWORD]" size="80" value="<?php echo $GLOBALS['phpgw_info']['server']['header_admin_password'] ?>"></td></tr>
<br><br>
<tr><td><b>DB Host</b><br><input type="text" name="setting[db_host]" value="<?php echo $GLOBALS['phpgw_info']['server']['db_host'] ?>"></td><td>Hostname/IP of Databaseserver</td></tr>
<tr><td><b>DB Name</b><br><input type="text" name="setting[db_name]" value="<?php echo $GLOBALS['phpgw_info']['server']['db_name'] ?>"></td><td>Name of Database</td></tr>
<tr><td><b>DB User</b><br><input type="text" name="setting[db_user]" value="<?php echo $GLOBALS['phpgw_info']['server']['db_user'] ?>"></td><td>Name of DB User as phpgroupware has to connect as</td></tr>
<tr><td><b>DB Password</b><br><input type="text" name="setting[db_pass]" value="<?php echo $GLOBALS['phpgw_info']['server']['db_pass'] ?>"></td><td>Password of DB User</td></tr>
<tr><td><b>DB Type</b><br><select name="setting[db_type]">
<?php
$selected = '';
$found_dbtype = false;
while(list($k,$v) = each($supported_db))
{
if($v == $GLOBALS['phpgw_info']['server']['db_type'])
$setup_tpl->set_var('detected',$detected);
/* End of detected settings, now display the form with the detected or prior values */
$setup_tpl->set_var('server_root',$GLOBALS['phpgw_info']['server']['server_root']);
$setup_tpl->set_var('include_root',$GLOBALS['phpgw_info']['server']['include_root']);
$setup_tpl->set_var('header_admin_password',$GLOBALS['phpgw_info']['server']['header_admin_password']);
$setup_tpl->set_var('db_host',$GLOBALS['phpgw_info']['server']['db_host']);
$setup_tpl->set_var('db_name',$GLOBALS['phpgw_info']['server']['db_name']);
$setup_tpl->set_var('db_user',$GLOBALS['phpgw_info']['server']['db_user']);
$setup_tpl->set_var('db_pass',$GLOBALS['phpgw_info']['server']['db_pass']);
$selected = '';
$db_type_option = '';
$found_dbtype = False;
while(list($k,$v) = each($supported_db))
{
$selected = ' selected ';
$found_dbtype = true;
if($v == $GLOBALS['phpgw_info']['server']['db_type'])
{
$selected = ' selected ';
$found_dbtype = true;
}
else
{
$selected = '';
}
$dbtype_options .= '<option ' . $selected . ' value="' . $v . '">' . $v . "\n";
}
$setup_tpl->set_var('dbtype_options',$dbtype_options);
$setup_tpl->set_var('config_passwd',$GLOBALS['phpgw_info']['server']['config_passwd']);
if($GLOBALS['phpgw_info']['server']['db_persistent'])
{
$setup_tpl->set_var('db_persistent_yes',' selected');
}
else
{
$selected = '';
$setup_tpl->set_var('db_persistent_no',' selected');
}
print '<option ' . $selected . ' value="' . $v . '">' . $v . "\n";
}
?>
</select>
</td><td>What Database do you want to use with PHPGroupWare?</td></tr>
<tr><td><b>Configuration Password</b><br><input type=text name="setting[config_pass]" value="<?php echo $GLOBALS['phpgw_info']['server']['config_passwd'] ?>"></td><td>Password needed for configuration</td></tr>
<tr><td><b>Persistent connection</b><br>
<select type="checkbox" name="setting[db_persistent]">
<option value="True"<?php echo ($GLOBALS['phpgw_info']['server']['db_persistent']?' selected':''); ?>>True</option>
<option value="False"<?php echo (! $GLOBALS['phpgw_info']['server']['db_persistent']?' selected':''); ?>>False</option>
</select></td>
<td>Do you want persistent connections (higher performance, but eats memory)</td></tr>
<tr><td><b>Sessions Type</b><br><select name="setting[sessions_type]">
<?php
$selected = '';
while(list($k,$v) = each($supported_sessions_type))
{
if($v == $GLOBALS['phpgw_info']['server']['sessions_type'])
$selected = '';
$session_type_option = '';
while(list($k,$v) = each($supported_sessions_type))
{
$selected = ' selected ';
if($v == $GLOBALS['phpgw_info']['server']['sessions_type'])
{
$selected = ' selected ';
}
else
{
$selected = '';
}
$session_options .= '<option ' . $selected . ' value="' . $v . '">' . $v . "\n";
}
$setup_tpl->set_var('session_options',$session_options);
if($GLOBALS['phpgw_info']['server']['mcrypt_enabled'])
{
$setup_tpl->set_var('mcrypt_enabled_yes',' selected');
}
else
{
$selected = '';
$setup_tpl->set_var('mcrypt_enabled_no',' selected');
}
print '<option ' . $selected . ' value="' . $v . '">' . $v . "\n";
}
?>
</select>
</td><td>What sessions management type do you want to use (PHP4 session management often performs better)?</td></tr>
<tr><td colspan=2><b>Enable MCrypt</b><br>
<select name="setting[enable_mcrypt]">
<?php if($GLOBALS['phpgw_info']["server"]["mcrypt_enabled"] == True) { ?>
<option value="True" selected>True
<option value="False">False
<?php } else { ?>
<option value="True">True
<option value="False" selected>False
<?php } ?>
</select>
</td></tr>
<tr><td><b>MCrypt version</b><br><input type="text" name="setting[mcrypt_version]" value="<?php echo $GLOBALS['phpgw_info']['server']['versions']['mcrypt'] ?>"></td><td>Set this to "old" for versions &lt; 2.4, otherwise the exact mcrypt version you use</td></tr>
<tr><td><b>MCrypt initilazation vector</b><br><input type="text" name="setting[mcrypt_iv]" value="<?php echo $GLOBALS['phpgw_info']['server']['mcrypt_iv'] ?>" size="30"></td><td>It should be around 30 bytes in length.<br>Note: The default has been randomly generated.</td></tr>
<tr><td><b>Domain select box on login</b><br>
<select name="setting[domain_selectbox]">
<option value="True"<?php echo ($GLOBALS['phpgw_info']['server']['domain_selectbox']?' selected':''); ?>>True</option>
<option value="False"<?php echo (! $GLOBALS['phpgw_info']['server']['domain_selectbox']?' selected':''); ?>>False</option>
</select></td><td>&nbsp;</td>
</tr>
</table>
<?php
if(!$found_dbtype)
{
echo '<br><font color=red>Warning!<br>The db_type in defaults ('.$GLOBALS['phpgw_info']['server']['db_type'].') is not supported on this server. using first supported type.</font>';
}
echo "<br>";
if(is_writeable ('../header.inc.php')|| (!file_exists ('../header.inc.php') && is_writeable ('../')))
{
echo '<input type=submit name="action" value="write config">';
echo ' or <input type=submit name="action" value="download"> or <input type=submit name="action" value="view"> the file.</form>';
}
else
{
echo 'Cannot create the header.inc.php due to file permission restrictions.<br> Instead you can ';
echo '<input type=submit name="action" value="download">or <input type=submit name="action" value="view"> the file.</form>';
}
echo '<form action="index.php" method=post>';
echo '<br> After retrieving the file put it into place as the header.inc.php, then click continue.<br>';
echo '<input type=hidden name="FormLogout" value="header">';
//echo '<input type=hidden name="FormLogout" value="config">';
//echo '<input type=hidden name="ConfigLogin" value="Login">';
//echo '<input type=hidden name="FormPW" value="'.$phpgw_domain[$GLOBALS['phpgw_info']["server"]["default_domain"]]["config_passwd"].'">';
//echo '<input type=hidden name="FormDomain" value="'.$GLOBALS['phpgw_info']["server"]["default_domain"].'">';
echo '<input type=submit name="junk" value="continue">';
echo '</form>';
echo '</body>';
echo '</html>';
$setup_tpl->set_var('mcrypt',$GLOBALS['phpgw_info']['server']['versions']['mcrypt']);
$setup_tpl->set_var('mcrypt_iv',$GLOBALS['phpgw_info']['server']['mcrypt_iv']);
break; // ending the switch default
if($GLOBALS['phpgw_info']['server']['domain_selectbox'])
{
$setup_tpl->set_var('domain_selectbox_yes',' selected');
}
else
{
$setup_tpl->set_var('domain_selectbox_no',' selected');
}
$errors = '';
if(!$found_dbtype)
{
$errors .= '<br><font color="red">' . lang('Warning!') . '<br>'
. lang('The db_type in defaults (x) is not supported on this server. using first supported type.',$GLOBALS['phpgw_info']['server']['db_type'])
. '</font>';
}
if(is_writeable('../header.inc.php') ||
(!file_exists('../header.inc.php') && is_writeable('../')))
{
$errors .= '<br><input type="submit" name="action" value="write config">&nbsp;'
. lang('or') . '&nbsp;<input type="submit" name="action" value="download">&nbsp;'
. lang('or') . '&nbsp;<input type=submit name="action" value="view"> the file.</form>';
}
else
{
$errors .= '<br>'
. lang('Cannot create the header.inc.php due to file permission restrictions.<br> Instead you can x the file.',
'<input type="submit" name="action" value="download">' . lang('or') . '&nbsp;<input type="submit" name="action" value="view">')
. '</form>';
}
$setup_tpl->set_var('errors',$errors);
$setup_tpl->set_var('lang_settings',lang('Settings'));
$setup_tpl->set_var('lang_serverroot',lang('Server Root'));
$setup_tpl->set_var('lang_includeroot',lang('Include Root (this should be the same as Server Root unless you know what you are doing)'));
$setup_tpl->set_var('lang_adminpass',lang('Admin password to header manager'));
$setup_tpl->set_var('lang_dbhost',lang('DB Host'));
$setup_tpl->set_var('lang_dbname',lang('DB Name'));
$setup_tpl->set_var('lang_dbuser',lang('DB User'));
$setup_tpl->set_var('lang_dbpass',lang('DB Password'));
$setup_tpl->set_var('lang_dbtype',lang('DB Type'));
$setup_tpl->set_var('lang_whichdb',lang('Which database type do you want to use with phpGroupWare?'));
$setup_tpl->set_var('lang_configpass',lang('Configuration Password'));
$setup_tpl->set_var('lang_passforconfig',lang('Password needed for configuration'));
$setup_tpl->set_var('lang_persist',lang('Persistent connections'));
$setup_tpl->set_var('lang_persistdescr',lang('Do you want persistent connections (higher performance, but consumes more resources)'));
$setup_tpl->set_var('lang_sesstype',lang('Sessions Type'));
$setup_tpl->set_var('lang_sesstypedescr',lang('What type of sessions management do you want to use (PHP4 session management may perform better)?'));
$setup_tpl->set_var('lang_enablemcrypt',lang('Enable MCrypt'));
$setup_tpl->set_var('lang_mcryptversion',lang('MCrypt version'));
$setup_tpl->set_var('lang_mcryptversiondescr',lang('Set this to "old" for versions &lt; 2.4, otherwise the exact mcrypt version you use.'));
$setup_tpl->set_var('lang_mcryptiv',lang('MCrypt initialization vector'));
$setup_tpl->set_var('lang_mcryptivdescr',lang('This should be around 30 bytes in length.<br>Note: The default has been randomly generated.'));
$setup_tpl->set_var('lang_domselect',lang('Domain select box on login'));
$setup_tpl->set_var('lang_finaldescr',lang('After retrieving the file, put it into place as the header.inc.php. Then, click "continue".'));
$setup_tpl->pfp('out','T_setup_manage');
break; // ending the switch default
}
?>

View File

@ -0,0 +1,95 @@
<!-- BEGIN manageheader -->
{detected}
<tr bgcolor="486591"><th colspan="2"><font color="fefefe">{lang_settings}</font></th></tr>
<form action="manageheader.php" method="post">
<input type="hidden" name="setting[write_config]" value="true">
<tr>
<td colspan="2"><b>{lang_serverroot}</b>
<br><input type="text" name="setting[server_root]" size="80" value="{server_root}"></td>
</tr>
<tr>
<td colspan="2"><b>{lang_includeroot}</b><br><input type="text" name="setting[include_root]" size="80" value="{include_root}"></td>
</tr>
<tr>
<td colspan="2"><b>{lang_adminpass}</b><br><input type="text" name="setting[HEADER_ADMIN_PASSWORD]" size="80" value="{header_admin_password}"></td>
</tr>
<br><br>
<tr>
<td><b>{lang_dbhost}</b><br><input type="text" name="setting[db_host]" value="{db_host}"></td><td>Hostname/IP of database server</td>
</tr>
<tr>
<td><b>{lang_dbname}</b><br><input type="text" name="setting[db_name]" value="{db_name}"></td><td>Name of database</td>
</tr>
<tr>
<td><b>{lang_dbuser}</b><br><input type="text" name="setting[db_user]" value="{db_user}"></td><td>Name of db user phpGroupWare uses to connect</td>
</tr>
<tr>
<td><b>{lang_dbpass}</b><br><input type="text" name="setting[db_pass]" value="{db_pass}"></td><td>Password of db user</td>
</tr>
<tr>
<td><b>{lang_dbtype}</b><br>
<select name="setting[db_type]">
{dbtype_options}
</select>
</td>
<td>{lang_whichdb}</td>
</tr>
<tr>
<td><b>{lang_configpass}</b><br><input type="text" name="setting[config_pass]" value="{config_passwd}"></td>
<td>{lang_passforconfig}</td>
</tr>
<tr>
<td><b>{lang_persist}</b><br>
<select type="checkbox" name="setting[db_persistent]">
<option value="True"{db_persistent_yes}>True</option>
<option value="False"{db_persistent_no}>False</option>
</select>
</td>
<td>{lang_persistdescr}</td>
</tr>
<tr>
<td><b>{lang_sesstype}</b><br>
<select name="setting[sessions_type]">
{session_options}
</select>
</td>
<td>{lang_sesstypedescr}</td>
</tr>
<tr>
<td colspan=2><b>{lang_enablemcrypt}</b><br>
<select name="setting[enable_mcrypt]">
<option value="True"{mcrypt_enabled}>True
<option value="False"{mcrypt_disabled}>False
</select>
</td>
</tr>
<tr>
<td><b>{lang_mcryptversion}</b><br><input type="text" name="setting[mcrypt_version]" value="{mcrypt"></td>
<td>{lang_mcryptversiondescr}</td>
</tr>
<tr>
<td><b>{lang_mcryptiv}</b><br><input type="text" name="setting[mcrypt_iv]" value="{mcrypt_iv}" size="30"></td>
<td>{lang_mcryptivdescr}</td>
</tr>
<tr>
<td><b>{lang_domselect}</b><br>
<select name="setting[domain_selectbox]">
<option value="True"{domain_selectbox_yes}>True</option>
<option value="False"{domain_selectbox_no}>False</option>
</select></td><td>&nbsp;
</td>
</tr>
</table>
{errors}
{formend}
<form action="index.php" method="post">
<br>{lang_finaldescr}<br>
<input type="hidden" name="FormLogout" value="header">
<input type="hidden" name="FormLogout" value="config">
<input type="hidden" name="ConfigLogin" value="Login">
<input type="hidden" name="FormPW" value="{FormPW}">
<input type="hidden" name="FormDomain" value="{FormDomain}">
<input type="submit" name="junk" value="continue">
</form>
</body>
</html>