Commit Graph

124 Commits

Author SHA1 Message Date
Ralf Becker
e26cda55f8 fixed preferences wrong comparison causing unchanged preferences were search for changes, and fixed IDE warnings 2015-01-15 20:12:42 +00:00
Ralf Becker
b3c2bebd5f fixe PHP Fatal error in preferences::copy_preferences() in mail install 2014-07-22 16:52:22 +00:00
Ralf Becker
f2ca4d2762 copy felamimail preferences to new mail app, if they still exist there 2014-07-22 14:57:23 +00:00
Klaus Leithoff
003f36afdb avoid warning on unexpected accounts->memberships result 2014-07-18 11:14:33 +00:00
Ralf Becker
d6a5c93e01 new php_safe_unserialize function refusing to unserialize objects and using it for config, preferences and DB-backups 2014-06-26 17:38:29 +00:00
Ralf Becker
9e67848243 force new Pixelegg template on update 2014-06-25 16:46:36 +00:00
Ralf Becker
ad85c88c72 only save preferences of apps whos preferences actually changed 2014-06-13 16:08:42 +00:00
Ralf Becker
541e6f9bb5 need to remove /e modifier, when using preg_replace_callback 2014-06-13 13:30:36 +00:00
Ralf Becker
60106975aa * Preferences: now stored JSON encoded in database (also removed many deprecated methods) 2014-06-13 13:15:21 +00:00
Nathan Gray
5be831d9dc Fix broken cache update when deleting a preference.
Before, it would only store the preference for the updated app instead of all.
2014-03-31 16:59:01 +00:00
Ralf Becker
8b3b5c84fc fixed can NOT unset last (forced) preference of an app, also fixed not working delete_(user|group) code 2014-01-23 12:33:25 +00:00
Ralf Becker
5a8b145b7f fixed caching in a couple of places:
- user.php was not reloaded if (session-)preferences changed eg. language via select-box in login, because we used Expires header, but did not force a different url
- (user|config|images).php now has etag on url, to force reload by browser as we use an Expires header (changed images still need Admin >> clear cache to rebuild image cache)
- preferences are now loaded via a cachable GET request
2014-01-18 17:43:15 +00:00
Ralf Becker
57240d4e8a fixed typo causing preferences not to be deleted, when users or groups get deleted 2014-01-14 11:53:53 +00:00
Ralf Becker
f51f7f5731 allow to use "default" or "forced" as parameter to preferences::set_account() to load default or forced preferences 2013-11-14 15:33:12 +00:00
Hadi Nategh
86dfe42104 replace no longer existing depricated egw_info->user email and fullname 2013-07-04 17:45:20 +00:00
Nathan Gray
936c375a2d Fix cache not being updated when clearing a preference 2013-06-11 22:43:42 +00:00
Ralf Becker
2b2938d2dd methods to get/set current account_id taking care of necessary offset for groups 2013-05-10 17:20:37 +00:00
Nathan Gray
5e84ddd935 Change admin column selection to allow setting / clearing / forcing column selection 2013-04-22 22:32:40 +00:00
Ralf Becker
52ac0dd0b3 fix lang.php always returning all translations, because preferences::standard_substitutes loads them 2013-02-07 15:32:18 +00:00
Ralf Becker
06bc5ea552 do NOT delete preferences, before writing them in preferences::save_repository (might be cause for race-condition causing preferences to be lost) 2012-10-31 14:16:17 +00:00
Ralf Becker
7cd606e529 cumulate group-preferences of all memberships of a user, not just his primary group 2012-10-30 10:22:05 +00:00
Ralf Becker
c9074f936d additionally check prefs read from cache, if they are of type array, otherwise read them from db, might help with APC at least in some versions not seem to deal correctly with out-of-memory 2012-09-26 10:18:18 +00:00
Klaus Leithoff
4cd32b9deb silence warnings 2012-08-22 08:00:36 +00:00
Ralf Becker
0e0993863c * API/preferences: caching preferences in instance cache instead of session, to get immediate update in long running sessions (eg. sync) and get smaller sessions 2012-08-07 13:57:56 +00:00
Ralf Becker
bd273c1b45 fixed typo in setting date- and time-format in egw_time::check_set_tz_offset(), causing eg. importexport to fail, if async job before had no account or account had different format 2012-03-02 09:53:41 +00:00
Ralf Becker
1c386e2d6b new method preferences->default_prefs($app=null,$name=null) to access default prefs, taking into account forced preferences 2012-03-01 18:03:13 +00:00
Klaus Leithoff
d37ee80161 mending Warnings: Cannot use a scalar value as an array 2011-12-20 15:57:03 +00:00
Klaus Leithoff
ac2279d933 * API: is_a compatibility vs. php5.3.8 resolving to instanceof operator for most common basic classes 2011-09-26 09:52:43 +00:00
Ralf Becker
eb6bea34b2 some fixes to run save_repository() reliable within setup 2011-06-14 08:44:24 +00:00
Ralf Becker
e9d789bafe updating preferences object in session too 2010-11-16 14:27:35 +00:00
Ralf Becker
53e1f3a96e no need to invalidate session cache, if we write the prefs to the session too 2010-11-16 09:34:47 +00:00
Ralf Becker
f49eaf39ce fixed in some update situations called unset_datetime on egw_minimal object 2010-09-08 07:45:38 +00:00
Ralf Becker
6799864392 fixed wrong language in notifications 2010-05-20 19:32:52 +00:00
Ralf Becker
259ae6fe24 "fixed not working delete of a preference (was set to an empty string in the db)" 2010-05-12 09:23:50 +00:00
Klaus Leithoff
5339d85c56 rework of home area (moving of portal_boxes, deletion of portal_boxes); modification/fixes to preferences::delete; adding app_id to trackers portal-box 2010-04-21 11:09:38 +00:00
Ralf Becker
30e13c4acf first step of group prefs (backend only for now) 2010-01-27 05:44:31 +00:00
Christian Binder
c7966ba8a4 little helper for prefs if unserialize failed - this can happen if the pref comes from an installation with another charset than the current system charset 2009-10-19 21:15:12 +00:00
Ralf Becker
e1e712c9fb php5 constructor and constants for default and forced prefs owner 2009-10-18 12:45:09 +00:00
Ralf Becker
3ef01bc589 Refined egw_time class a bit more and and integrated it with preferences
class, to automatically set relevant user prefs (tz, dateformat,
timeformat).
2009-10-08 16:14:18 +00:00
Ralf Becker
e0795f7328 "fixed session preferences, were broken since 1.6" 2009-10-07 18:59:01 +00:00
Christian Binder
efad9168fa fixed typo 2009-10-07 08:05:10 +00:00
Ralf Becker
610b629325 first step for real timezones in EGroupware 2009-10-06 06:45:28 +00:00
Klaus Leithoff
76faf17eb0 strange phenomenon with existing debug variable 2008-12-09 15:25:26 +00:00
Klaus Leithoff
91c5e6d23c print out the standard substitutes, if debug is switched on 2008-12-09 13:07:29 +00:00
Klaus Leithoff
f28eed1973 enabling debug in some cases, switched off, as default 2008-12-09 12:59:03 +00:00
Ralf Becker
81a0b796d9 "using the global db object" 2008-03-15 15:11:48 +00:00
Ralf Becker
42698c08b6 some more stupid php5.2 fixes 2006-12-21 14:10:59 +00:00
Ralf Becker
3660b40851 fixed typo 2006-12-20 09:25:29 +00:00
Ralf Becker
0af8df4caa new param to not invalidate the session-cache 2006-06-17 18:37:35 +00:00
Ralf Becker
2c604b7b06 invalid session cache on change of session preference, otherwise session prefs only work in login 2006-04-05 15:17:41 +00:00