Commit Graph

340 Commits

Author SHA1 Message Date
Ralf Becker
66451aa99d "dont unlink header.inc.php for root user, as it get created again with owner root" 2009-06-18 21:21:20 +00:00
Ralf Becker
232252475f patch fixing many depricated functions (eg. posix regular expressions) and features, which fill up the error_log under php5.3 (and will no longer be available under php6).
Patch is mostly created by script in egroupware/doc/fix_depricated.php in separate commit.
I do NOT advice to apply this patch to a production system (it's commited to trunk!), as the automatic modified regular expressions have a good change to break something ...
2009-06-08 16:21:14 +00:00
Ralf Becker
bf7e7889cf if header is a symlink --> work on it's target 2009-05-31 09:51:57 +00:00
Ralf Becker
8a66799414 get exit codes for setup-cli working again (was broken in 1.6) 2009-05-31 08:15:11 +00:00
Ralf Becker
3ec3c205ee created a rpm post script to automatic install or update EGroupware:
- cleaned up exceptions in cli code (no need to log, as it goes direct to the user)
- regarding small rpm redirect header (< 200 bytes) as no header
- fixed wrong detected vars for cli install (eg. webserver_url)
- fixed egw_cache to not stall if system_charset is not yet in db
2009-05-30 20:15:31 +00:00
Ralf Becker
6503d6d0cc - updated documentation
- add feature to allow apps to choose to be automatic installed on
  updated: $setup_info[$app]['autoinstall'] = {true|'1.x.xxx'};
- run default_records.inc.php (if exists) also for apps without tables,
  as they might need to initialise some stuff
2009-05-28 11:33:30 +00:00
Ralf Becker
e763445dee "do NOT run an update, if none necessary" 2009-05-25 07:44:03 +00:00
Ralf Becker
6d72b2b297 - fixed in some cases not working setup-cli (domain not detected)
- make update a separat setup-cmd-object
- fixed handling of egw_exception_wrong_userinput, to not include a
  trace (which is unneeded for regular input-validation)
2009-05-25 06:39:38 +00:00
Ralf Becker
2175ee37b0 "allow to call directly via setup-cli" 2009-05-24 13:41:39 +00:00
Ralf Becker
9ebd2fab61 "new sub-command to drop database and user" 2009-05-21 22:16:09 +00:00
Ralf Becker
aca05a32e3 using new check_load_extension function 2009-04-20 12:43:44 +00:00
Ralf Becker
bf036043b2 - making all methods of translation class static
- caching the phrases in new egw_cache on Tree level
--> a good speed improvment on my devel system
- also added a global function
check_load_extension($extension,$throw=false)
2009-04-20 11:59:39 +00:00
Ralf Becker
cddd95b571 allow to set language via setup-cli 2008-11-23 16:46:32 +00:00
Ralf Becker
6e3c8ceda2 "allow setting install-id and vfs-root-user" 2008-11-23 13:09:51 +00:00
Ralf Becker
d379065824 "need to use verbose parameter for restore too" 2008-11-23 13:09:16 +00:00
Ralf Becker
92c5157b90 add grant host to db creation 2008-11-18 19:58:11 +00:00
Ralf Becker
59b4f49e58 fixed errors in creating the home dirs of standard groups in sqlfs during setup 2008-10-26 07:37:37 +00:00
Ralf Becker
214afe0bd5 datetime --> egw_datetime 2008-10-21 14:22:27 +00:00
Ralf Becker
3684010c3b create home dir for admin created in setup 2008-10-14 16:08:32 +00:00
Ralf Becker
cd781c228c Only check for smtp server. As Klaus is going to create an emailadmin
profile allowing the user to set there own profiles and signatures, if
no default imap server is defined in setup.
2008-10-14 14:34:41 +00:00
Ralf Becker
40f013181e "set recommend php version to 5.2+" 2008-10-14 09:27:10 +00:00
Ralf Becker
025b54917a new translation and removing not longer used ones 2008-10-09 17:08:52 +00:00
Ralf Becker
b6996bee01 reworked manageheader:
- removed include_root (is now always identical to server_root)
- removed mcrypt_version (not relevant to todays php versions)
- replaced session_type with session_handler
- look is now a bit more like setup and eGroupware itself
--> updated header-version to 1.29 forcing everyone to update
2008-10-09 16:22:42 +00:00
Ralf Becker
9e3281799f Allow to change the where VFS stores the content of files:
1. filesystem (default)
2. database (problems with files > 1mb)
3. custome set via filemanager/cli.php mount
--> If you can only access the docroot, you can use 2. AND set the files
directory to the path for temp. files
2008-10-02 15:30:44 +00:00
Ralf Becker
8d7c57e253 small fix 2008-10-02 15:27:39 +00:00
Ralf Becker
dd50a906a2 Patch from Raphael Alla allowing to specify mysqlt direct in header-admin 2008-09-27 06:56:36 +00:00
Ralf Becker
da43ab71f8 "- calling setup_header methods via magic __call method, to allow classes to extend this command and alow overwrite the setup_header methods
- added new session-handler config var"
2008-08-20 09:01:29 +00:00
Ralf Becker
9d2016ebf6 - php5 static and protected for egw_framework
- new feature allowing apps to specify with index-page and icon to use
--> allows to install sitemgr-link icon without an extra application
(which was a symlink and got lost in every version upgrade)
2008-08-18 09:00:19 +00:00
Ralf Becker
5447cd6a6d "setting currentapp='setup' for setup" 2008-08-13 07:19:32 +00:00
Ralf Becker
f4d11dc778 "fix from Frank Jas, Ontelix for renamed emailadmin bo class" 2008-06-30 07:50:29 +00:00
Ralf Becker
6b631a3dd0 "removed debug messages (error_log)" 2008-06-18 20:00:25 +00:00
Klaus Leithoff
01c02fe075 bugfix: missed that emailadmin.bo while doing the class rename 2008-06-09 06:23:53 +00:00
Klaus Leithoff
f4f0470b16 general stuff:
--------------
-emailadmin classnames
YOU MAY HAVE TO RUN "SEARCH AND REGISTER ALL HOOKS OF ALL APPLICATIONS"
2008-06-05 14:08:17 +00:00
Ralf Becker
a5a7c2d30e Additional password crypt types for ldap:
- MD5_CRYPT (9 char salt prefixed with $1$)
- BLOWFISH_CRYPT (16 char salt prefixed with $2$)
- EXT_CRYPT (9 char salt, no prefix)
2008-05-31 06:25:04 +00:00
Ralf Becker
1ab52586bd "fixed fatal error \"Exception thrown without a stack frame in Unknown on line 0\", if DB does not exist when calling setup" 2008-04-01 09:16:03 +00:00
Ralf Becker
ea3ae107d1 added minimal egw object (egw_minimal), which is shared between egw and setup 2008-03-22 09:29:29 +00:00
Ralf Becker
d36c179645 fixed account-migration to work with current accounts-class 2008-03-06 20:02:30 +00:00
Nathan Gray
c53cf5cee5 Allow applications with setup in their name to be setup 2008-02-27 16:07:35 +00:00
Ralf Becker
c27c36286e allow to call command objects via setup-cli 2008-01-14 05:44:32 +00:00
Ralf Becker
86621d7fe2 moved randomstring method to admin_cmd 2007-12-22 03:21:07 +00:00
Ralf Becker
125c300182 fixed detection of running inside eGroupWare, as debian package sets up a header.inc.php without domains, also allow to access header with password direct specified and not as hash (secret) 2007-12-21 01:54:20 +00:00
Ralf Becker
ed4a2eabd0 returning install_id too 2007-12-21 01:51:47 +00:00
Ralf Becker
d74bd8e3aa reworked the access for showheader comand a bit 2007-12-18 23:13:59 +00:00
Ralf Becker
86001bea68 changing the way the account object gets instanciated again a bit, as the new setup stuff wasnt working fully after the last fix 2007-12-14 01:28:33 +00:00
Ralf Becker
6651f0efc4 fixed problem in setup, because of not instanciated account object 2007-12-13 23:46:44 +00:00
Ralf Becker
1c2a564c14 fixed problem in setup, because of not instanciated account object 2007-12-13 23:42:17 +00:00
Ralf Becker
e3a9dc646f - installs can now be switched before the install happens to ldap, so all default records get created (eg. sitemgr is working)
- new setup command to create an admin user, used eg. from setup-cli.php
2007-12-13 02:41:55 +00:00
Ralf Becker
573e27ad2e "egw_db::create_database gives no returnvalue, so we need to test the new db by connecting to it" 2007-12-11 01:43:18 +00:00
Ralf Becker
f0e0d84e55 next step config is now also a command object and added better&shorter passwords 2007-12-11 01:28:07 +00:00
Ralf Becker
ab3c470388 moved check_dir to setup_detection, to have it available inside and outside of setup 2007-12-11 01:15:02 +00:00
Ralf Becker
0276cfae19 new setup command object to install, used in setup-cli so far 2007-12-10 04:59:01 +00:00
Ralf Becker
f2cf788aea docu update and commented some error_log, which mess up the output of the command line client 2007-12-10 04:54:57 +00:00
Ralf Becker
3a6b8ce799 typo 2007-12-09 22:48:53 +00:00
Ralf Becker
e1c115d310 docu update 2007-12-09 19:00:16 +00:00
Ralf Becker
fc1ce1fa71 removed copy of Template object in setup, using the one in the api 2007-12-09 08:03:56 +00:00
Ralf Becker
b96ebc16fc new command objects to install an instance: create database, ldap structur, create/edit header (used by setup-cli too) 2007-12-09 08:03:15 +00:00
Ralf Becker
1151deace4 added option to showheader command to only transfer the remote_hash and not the whole header 2007-12-07 00:07:08 +00:00
Ralf Becker
cae8bb40a8 added draft of an exception class for eGW, plus a global exception handler and replaced the fatal errors in the db-class plus the application rights check in the egw object with exceptions, modified the exceptions in admin_cmd* to use egw_excpetion*, instead just Exception 2007-12-06 08:00:41 +00:00
Ralf Becker
4f77162f64 first version of a setup command that can run via admins remote command execution 2007-12-05 02:27:49 +00:00
Ralf Becker
90f39cef39 "encryption" type plain for sql and ldap, to allow to store the passwords readable 2007-11-06 11:16:34 +00:00
Ralf Becker
c8eec1ae36 "fixed not working language selection after changeing the lang-filenames from phpgw_XX.lang to egw_XX.lang" 2007-10-31 07:50:56 +00:00
Oscar Manuel Gómez Senovilla
7bbfae68c6 Changes in setup to handle egw_ prefix in lang files 2007-10-14 16:13:50 +00:00
Klaus Leithoff
319f1ee907 Small Bugfix for the call of the setup-cli.php script. When checking the enviroment as command-line call DOCUMENT_ROOT is not set. The empty string
results in an error stating, that the path provided for tmp/file/backup is in DOC_ROOT. This is fixed now.
2007-09-19 12:23:07 +00:00
Ralf Becker
a33f2ab12c fix for bug #518: 2007-05-08 11:44:43 +00:00
Ralf Becker
1e0f7c71e8 allow to uninstall apps with dependency failures or which sources are no longer there, plus some missing translations 2007-05-08 09:53:11 +00:00
Lars Kneschke
f05bc701a6 reverted to revision 23513 2007-03-19 09:53:03 +00:00
Lars Kneschke
d14d8c7663 merged from trunk 2007-03-19 09:13:57 +00:00
Miles Lott
bdfcc82351 Applied patches from OMGS #61. Also added nulling of membership key to try to avoid ldap issues on group creation. 2007-03-13 03:20:53 +00:00
Lars Kneschke
aa55c600be run both pathnames trough realpath to compare equal names 2007-02-11 12:04:15 +00:00
Ralf Becker
e065856c7e automatically adding brackets around the ldap-search-filter, if the admin forgets it 2006-11-12 19:23:28 +00:00
Ralf Becker
3cd3484c2f fixed big bug in setup-cli on updating multiple domains: only the update on the first domain run correct, the further domains only get the version-number upgraded, but not the schema. This is fixed now. 2006-08-30 04:48:56 +00:00
Ralf Becker
6b327c6c4f creating of eg. the files-dir was only tried if the parent dir was writable, which failed if it does not yet exist 2006-07-09 17:24:43 +00:00
Ralf Becker
5fb740f401 some fixes for new installs:
- acl of the anon user gets now set correct
- nopasswordchange ACL for groups get no longer set
- nopasswordchange ACL for user gets only set to 1 (no 0), as in admin
2006-07-09 17:23:35 +00:00
Ralf Becker
11a9afc1ba fixed setup to deal with proxies: behind a non-transparent proxy the cookie domain was wrong, which cause the browser to refuse the setup cookies, which throw you always back to setup login 2006-07-09 06:55:35 +00:00
Cornelius Weiß
d6d795aff7 fix typo found by Ageless 2006-06-28 16:50:05 +00:00
Ralf Becker
8383d58c50 reversed password change ACL from changepassword to nopassword change, to allow eGW users created in LDAP to be full users, without the need to change/add something in the ACL table 2006-06-23 01:27:40 +00:00
Ralf Becker
7b6a2cd289 changing the setup manual url to manual.egroupware.org, as otherwise the www-redirect on egroupware.org removes the get-params 2006-06-10 16:02:00 +00:00
Ralf Becker
e8be3ed748 fixing the fix: -2 has nothing to do with the default group, it is the id for the default prefs 2006-06-09 03:19:54 +00:00
Ralf Becker
6b2d5676f9 - using new accounts::save instead accounts::create
- not setting change password acl for groups
2006-06-08 21:11:07 +00:00
Ralf Becker
a7ecb209a9 - new account-migration script which replace the former import and export
- retired the modifiy script as it's no longer necessary
- removed references and translations of the old scripts
- removed ldap version 3 switch from config
2006-06-07 23:10:06 +00:00
Ralf Becker
df3fb3b9ac rewrite of the accounts classes:
- new cleaner AND documented interfaces
- old interfaces are still availible, but depricated
- LDAP backend stores now membership information in LDAP too, and does NO longer require the phpgwAccount schema
- LDAP backend deals now well with LDAP schema in which posixGroup is no structural object (eg. newer SuSE distros)
- password from users are done now binded as that user, so if you dont need/use our admin to manage accounts, you can give a root-dn which only allows to search&read accounts
2006-06-06 23:44:50 +00:00
Ralf Becker
408a951b23 small fix to be able to upgrade a pre 1.2 header 2006-06-03 14:45:49 +00:00
Ralf Becker
478c9ab8e2 fixed not working --config (after last changes) and added output of (basic) current config 2006-05-31 17:21:25 +00:00
Ralf Becker
7690dd10f7 fixed smal prob with non existing header 2006-05-31 01:55:13 +00:00
Ralf Becker
55b9797a59 got setup command line interface fully working:
- create, edit & update the header
- install & update eGW
- config eGW
- create admin account
- install & update languages
- create & restore (install) backups
---> update, languages & backup can work for all domains at once
---> for use in 1.2 you have to update/switch the whole setup app to HEAD/trunk
2006-05-29 02:56:16 +00:00
Ralf Becker
1a3b8761a6 first step to new setup command line interface (setup/setup-cli.php):
- atm. all manageheader functionality is accessible
- reworked manageheader.php using the new setup_header class shared with setup-cli.php
=> install & update via cli is comming the next days
Works in 1.2 if you drop setup-cli.php and class.setup_header.inc.php in a 1.2 install.
2006-05-28 00:55:41 +00:00
Ralf Becker
8427a186d8 fixed typo 2006-04-09 10:54:46 +00:00
Ralf Becker
77f5b766bd added online help to setup 2006-04-06 11:19:56 +00:00
Ralf Becker
ef14c49e04 - fixed files-directory check for webdav
- fix to keep your settings on a validation error
- make Option filesystem translatable
2006-03-08 09:41:53 +00:00
Lars Kneschke
e890029659 Generate some "out of the box" useable settings
Takes LSB into account
2006-03-05 08:57:16 +00:00
Miles Lott
5f9d52623c Fix minor bug in lang() for common, and update setup's version to match common 2006-02-24 03:06:40 +00:00
Carsten Wolff
99cb0bd567 fixed a handfull of bugs that broke setup/update from 1.0 to 1.2 2006-01-06 16:21:51 +00:00
Ralf Becker
1f8f71de35 fix for not working setup under some versions / compilations of php4 2005-12-01 15:23:49 +00:00
Ralf Becker
7b2b823835 - setup uses now the system_charset, that fixes various errors reported:
+ setup_demo gives errors under postgres
 + setup_demo can save special chars in the admin name
- renamed setup_demo into admin_account, as setting up demo accounts is the least used function of it
- fixed warning db::delete missing params, if delete_all was checked
2005-11-27 07:48:22 +00:00
Ralf Becker
2ee5b02448 fixed bug reported on the list: using (constant) returnvalue as reference is not possible in php4 2005-11-25 09:21:42 +00:00
Ralf Becker
759a50c8c6 fix for 2-digit version-numbers (dependency on 1.2 is ok with a 1.2.xxx version) 2005-11-24 13:07:57 +00:00
Ralf Becker
cde824505e fixed bug of not written domains under windows with new php's:
It's a bit obscure:
$deletedomain='';
$domain='default';
isset($deletedomain[$domain]) === true
under linux this is NOT true
fixed it by using: is_array($deletedomain) && isset($deletedomain[$domain])
2005-11-20 12:43:50 +00:00
Ralf Becker
3b8febb076 1) fixed not working detection of a connection to the db (postgres)
2) fixed detection of table-names with mixed case, which get returned in lowercase
2005-11-19 20:28:39 +00:00
Cornelius Weiß
d4b865c1bd fix: removed debug messages 2005-11-17 10:41:42 +00:00
Ralf Becker
48a95410db added enhanced validation hooks for:
- tmp-dir (writable)
- files- & backup-dir (writable, not in docroot)
- mailserver configuration (also syncs the values with emailadmin)
2005-11-14 14:51:58 +00:00