Commit Graph

69 Commits

Author SHA1 Message Date
Ralf Becker
f99f2ef4e8 1) eGW enviroment (egw_info-array and egw-object) can now be stored in a php-session and restored from there. It is no longer necessary to create it on every page-request.
At the moment you need to log out to activate any changes in the config, preferences or the apps enabled for a user. This can be changed easily by invalidating the cache.
2) New way to create an anoymous session: you can specify a callback function, which gets called if the session could not be verified. The callback can use the DB or instanciate a config object to get the account-date, which it returns. A new session get then created.
2005-07-17 21:00:49 +00:00
Ralf Becker
fd5576e3ee - phpgw --> egw
- fixed a problem php5 complained about, which is present in php4 too: arrays in $GLOBALS[egw][server] are NOT unserialized. As this seems to be only used for the lang_ctimes, I just took care of it here
2005-05-31 13:52:14 +00:00
Ralf Becker
69c93b3f2b $GLOBALS['phpgw{_info}'] ==> $GLOBALS['egw{_info}'] 2005-03-04 15:47:08 +00:00
Ralf Becker
fe6b0728de fix for system with mbstring.func_overload set and NOT using utf-8 2004-10-23 10:53:17 +00:00
Ralf Becker
940deb08a9 finished DB backup and restore for eGW:
- the backup is independent of the used DB and can eg. be used to port an install to an other DB type
- autom. backup before upgrades of the DB structure
- installing backups instead an installation from scratch
- own backup screen in setup and admin to:
  + shedule repeating backups
  + up- and download of backups
  + creating and restoring backups
2004-10-15 23:06:34 +00:00
Ralf Becker
35ef5df8a3 fixed MsSQL and MaxDB problem: DISTINCT on text column in function get_installed_charsets 2004-09-19 12:46:22 +00:00
Ralf Becker
9c5edb9b04 reworked to use the new db-functions 2004-08-04 15:34:14 +00:00
Ralf Becker
1ef5e6e3ad small fix 2004-08-03 22:53:45 +00:00
Ralf Becker
bb9f10fb29 removed ereg_replace which causes problems with multibyte charsets and mbstring.function_overload=7 2004-08-01 08:05:44 +00:00
Ralf Becker
c591c2c221 fixed / added mssql support for egw and fixed some other Windows probs on the way ;-)
- knowledgebase is not working: select distinct is not possible with text-columns
- fudforum is not working: is does not use ADOdb and has no own db-layer for mssql
- other apps seem to work, everthing needs through testing - incl. our "old" db's
2004-07-25 01:41:37 +00:00
bgigon
4e6fa932cb Add feature "rejected line"
Somes lines has been rejected.
This features warn admin directly
2004-07-20 16:11:31 +00:00
Lars Kneschke
f2c52cc197 handle macroman as iso8859-1 2004-06-11 05:32:03 +00:00
zhangweiwu
1f799dd84d patch [ 962307 ] Chinese charset conversion patch
"I am alost certain this is the best solution. I just
commited the change, please close this patch.

This is a typical problem (GB2312~GB18030) that many
opensource/commercial mailers fail to handle."
2004-05-29 01:14:29 +00:00
Ralf Becker
291da54d43 fix for mbstring.overload=7, hopefully that works now in all cases 2004-05-09 10:17:44 +00:00
Ralf Becker
731a50b29f - fix for mbstring.overload=7
- potential multibyte/charset problem: addslashes was done before translate !!!
2004-05-08 22:30:19 +00:00
reinerj
48f840d7de move from old projct to new one 2004-05-05 12:06:13 +00:00
Ralf Becker
3e24a6db3b gives better performance 2004-05-04 20:26:08 +00:00
Ralf Becker
0e649819d8 fixed prob with localised list and not already loaded translations: setup was only installing the first language on upgrad of an app, as the translate-call changed the db-cursor 2004-04-13 14:19:52 +00:00
Ralf Becker
5e406355f9 localised the list of availible languages 2004-03-21 21:16:57 +00:00
Miles Lott
06b80fa3bf Formatting cleanup 2004-03-14 17:31:43 +00:00
Carsten Wolff
f11dd0e255 fixed typo in iconv-call and detection of the right lib to use 2004-02-26 10:57:57 +00:00
Lars Kneschke
c7daab6c2b add fix for chinese language conversion 2004-02-26 06:42:20 +00:00
Ralf Becker
3782e0c397 fix for pgsql: as it reports boolean values as 't' and 'f' and not like mysql as 1 and 0 2004-02-08 20:00:35 +00:00
Miles Lott
1dabd74aa0 Cleanup format of if() 2004-01-25 21:29:20 +00:00
Miles Lott
4f612cbbde intval -> (int), replace gettype() and ereg_replace() where possible 2003-12-14 17:07:16 +00:00
Ralf Becker
bfb6f3b494 use config::save_value to update the ctimes of the lang-files 2003-11-03 14:41:17 +00:00
shrykedude
e52887d989 Hid some PHP notices behind a '@' to minimize new user confusion. 2003-10-24 00:54:28 +00:00
Ralf Becker
0d35fcc72a fix to allow to load non-iso-8859-1 languages without an system-charset set 2003-10-20 19:03:46 +00:00
Lars Kneschke
b2e4e6327e big-5 is supported by php 4.3.X 2003-10-16 04:59:46 +00:00
Lars Kneschke
616a09880a hide errormessage about unsupported charset 2003-10-15 19:15:25 +00:00
Ralf Becker
7363643128 removed stupid debug messages 2003-10-15 12:29:27 +00:00
Ralf Becker
692767bcf0 fixed problem with not set system-charset and non-ascii chars in user-name with accounts in ldap:
Username did not get translated, as at the time when the accounts-class get instanciated the user preferences, which determine the language, which determine the charset (if no system-charset), are not loaded. I use iso-8859-1 as default then, which gives us the same behavior then before all the changes.
2003-10-15 12:24:38 +00:00
Lars Kneschke
73d8277b40 fixes for warning about unsupported charset 2003-10-11 20:55:16 +00:00
Lars Kneschke
00db10168f fix convert for us-ascii 2003-10-10 05:01:49 +00:00
Ralf Becker
33389df33d new param to translate, for string to add if no translation present, default '*' 2003-10-10 00:07:20 +00:00
Lars Kneschke
43ec195c6e added check if function iconv exists 2003-10-09 23:38:24 +00:00
Ralf Becker
0cba91137e added fallback to iconv if mbstring is not availible and killed a waring if no langs installed 2003-10-08 10:50:24 +00:00
Lars Kneschke
b3dfa3d386 little fix for gb2312 2003-10-07 20:56:33 +00:00
Ralf Becker
49d4216305 fix for not set up user-charset 2003-10-07 15:05:14 +00:00
Ralf Becker
10318b0554 fixed annoying typo, that caused the lang-files to be loaded on every login 2003-10-07 09:59:40 +00:00
Ralf Becker
cb01770f48 small fix 2003-10-07 01:02:19 +00:00
Ralf Becker
6e69d6965f converting all charsets to lowercase 2003-10-06 11:30:21 +00:00
Ralf Becker
cfc0ec8eb4 updated translation_sql::convert:
- now handles arrays or strings
- autodetects the from charset if not set
- uses the system_charset as to charset if not set
2003-10-05 15:41:59 +00:00
Ralf Becker
c7407b9ed1 small addition to automaticaly deal with a not set system-charset 2003-10-05 13:45:46 +00:00
Ralf Becker
def9a6e4df fix for new install 2003-10-05 10:57:50 +00:00
Ralf Becker
0ca093c04f added multibyte-support for conversation of other charsets then utf-8 and iso-8859-1 2003-10-05 10:44:16 +00:00
Ralf Becker
fd2d96d063 1) implemented a share system-charset, which can be different from the charset of the lang-files
2) moved sql-specific part of setup_translation to translation_sql
3) TO-DO: get the translation-tools working in this setting
2003-10-05 02:06:11 +00:00
Ralf Becker
658dfdce96 restructured setup a bit:
- move most of the lang-code from setup/lang.php to phpgwapi/inc/class.translation_sql.inc.php
- added a minimal-auto-configuration, so one does not need to enter the config-step at all for a running installation
- added the language of the admin to the installed languages
2003-10-04 13:24:34 +00:00
Ralf Becker
060311ab7d fixed prob with login-scree-message and no cookie 2003-09-23 21:26:58 +00:00
Ralf Becker
43024ba1cc second (optional) param. to add_app to specify the language 2003-09-15 08:42:47 +00:00