Commit Graph

2559 Commits

Author SHA1 Message Date
Miles Lott
ca8cf03ff2 Update for egw arrays 2005-07-23 11:39:20 +00:00
Ralf Becker
5cbbbb7d29 1) phpgw --> egw
2) fixed problem I came across while debuging: $p->fake_full_name --> $p->fake_full_path
3) some improvement dont set empty mime_type
2005-07-22 17:59:09 +00:00
Ralf Becker
7b1229e29a fixed problem in the new db-functions which caused eg. the vfs_class to mailfunction and create two attachments instead of one in infolog 2005-07-22 17:53:02 +00:00
Ralf Becker
c395f26dc6 added function to invalidate the session-cache if:
- global config (egw_info[server]) changes
- user prefs change
- acl of the current user changes
2005-07-22 09:20:31 +00:00
Ralf Becker
b82ac2c4d6 added function to invalidate the session-cache if:
- global config (egw_info[server]) changes
- user prefs change
- acl of the current user changes
2005-07-22 09:05:01 +00:00
Ralf Becker
d933e70c72 fixed SQL queries 2005-07-20 12:42:09 +00:00
Ralf Becker
5e97b462c4 setting defines for currentapp=login too 2005-07-20 12:31:58 +00:00
Ralf Becker
83b0801533 commit for Lars: latest SyncML updates 2005-07-20 12:09:32 +00:00
Ralf Becker
ef7bff339e commit for Lars:
1) ajax proposal: proof of concept using xajax in felamimail to work without page reloads
2) also implemented IMAP ACL for cyrus and php5 (still needs some work)
2005-07-20 08:12:21 +00:00
Ralf Becker
b495b33d0a commit for Lars:
1) ajax proposal: proof of concept using xajax in felamimail to work without page reloads
2) also implemented IMAP ACL for cyrus and php5 (still needs some work)
2005-07-20 08:07:47 +00:00
Ralf Becker
f20c9f093e the LDAP server also needs to be re-connected 2005-07-17 22:47:54 +00:00
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
5736cb296c *** empty log message *** 2005-07-17 19:58:41 +00:00
Ralf Becker
7c46b63263 1) fixed not working session kill
2) ignore (empty) login sessions created by IE and konqueror, when clicking on [login] (double submission of the form)
2005-07-13 08:29:50 +00:00
petere78
73d74fa0f3 XHTML 1.0 cleanup for setup application 2005-07-11 18:02:19 +00:00
Miles Lott
47d7968d60 Disable debugging by default, but enable for the interserv test application 2005-07-02 20:19:19 +00:00
Miles Lott
07b6cc1297 Fix for case-sensitive variable name 2005-07-02 20:13:51 +00:00
Pim Snel
cd8871a53d add fetch_string function so templates can live in a database table as well 2005-07-01 13:27:35 +00:00
Carsten Wolff
64120e723c another shot at datetime.iso8601:
- accept both simple and extended format from input

- output simple format, if the client sends a HTTP-header "isoDate: simple".
  This should maybe extended by another possibility, where the information
  is stored in the session on login. Then there is a good way for all
  clients, regardless of the use of any combination of Auth-headers,
  login/cookies and webservers.
2005-06-30 19:01:19 +00:00
Miles Lott
ff4a0d24cc CRITICAL: Implement security fixes from latest release of php-xmlrpc 2005-06-30 13:36:47 +00:00
Pim Snel
15e32ce762 create tinymce init function so this can be optinaly run before the header is sent. 2005-06-30 09:10:15 +00:00
Pim Snel
014aa6ca67 only show template set that contain a setup.inc.php 2005-06-29 21:06:52 +00:00
Pim Snel
210e5621be Add wrapper function for the TinyMCE WYSIWYG editor. This editor much cleaner then htmlarea 2005-06-21 19:46:56 +00:00
Ralf Becker
cea4c314d2 phpgw_setup --> egw_setup 2005-06-20 22:07:40 +00:00
Lars Kneschke
b3ecd8456d generate a smaller guid 2005-06-20 11:14:40 +00:00
Lars Kneschke
062f20ec42 chaning phpgw -> egw 2005-06-20 11:04:20 +00:00
Ralf Becker
84ab716959 $GLOBALS['phpgw --> $GLOBALS['egw 2005-06-20 07:51:01 +00:00
Lars Kneschke
d43bf7d44f first commit of syncml code 2005-06-19 19:00:58 +00:00
Lars Kneschke
f354eacf66 the best of my and ralfs version 2005-06-19 18:07:06 +00:00
Ralf Becker
d4760bb15c renamed our db-class to egw_db to allow easier integration of other code (eg. Lars SyncML stuff which is partially from horde) 2005-06-19 12:43:00 +00:00
viniciuscb
0a28f3812e Some changes:
- Inclusion of the following javascript directories:
  * Connector: javascript object to interface xmlhttprequest object. This object allows
      asynchronous posts and support for messages while this post is being done, such as
      "wait, contacting server", etc.
  * JsAPI: general javascript functions and methods
  * jsolait: performs conversion from a xmlrpc message to a javascript object
  * xmlRpcMsgCreator: performs conversion from a javascript object to a xmlrpc message
  * dynapi: cross-browser class to draw layers

- Update in setup version: now is 1.0.1.008; Update your versions. There was made a
  change in phpgw_vfs2_files table in handling of modified files.

- Upgrade of vfs2 classes and PclZip class

- Changes in javascript object and common object to allow the javascript backend to
  applications to work (now just filescenter will use it...)
2005-06-18 20:43:14 +00:00
Ralf Becker
332c9c41df to work around the not terminated sessions (because php is configured by default only to check it on every 100th session-creation), we terminate now all timed out sessions when a list of sessions is requested 2005-06-18 06:38:29 +00:00
Pim Snel
1d68ccb070 replace hardcoded links to home.php with links to home/index.php 2005-06-15 11:16:27 +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
a3fb79a6a4 fixing the fix ;-) now it's working in php4 + 5 2005-05-30 14:18:23 +00:00
Lars Kneschke
402d3b60e8 little type 2005-05-29 11:23:51 +00:00
Pim Snel
d9ec1f87e2 Initial addition of the savant2 template engine and the egw-wrapper class.tplsavant2.inc.php Enjoy ;) 2005-05-26 19:38:09 +00:00
petere78
c9e47a1f28 Fix broken PAM authentication 2005-05-24 13:00:13 +00:00
Ralf Becker
f2a058fccf modernized asyncservice class and renamed phpgw_async to egw_async 2005-05-23 18:57:58 +00:00
Ralf Becker
8f2420541a fixed generation of options in select-boxes: now 0 == '0' != '' when marking options as selected 2005-05-20 17:00:12 +00:00
Ralf Becker
5d763bd11e corrected a "funny" php5 behavior 2005-05-20 11:24:54 +00:00
Ralf Becker
f34b93e6ae implemented the possebility to specify the HTMLarea width and height via it's config (default is via the dimensions of the textarea). Needed if the HTMLarea is in a not displayed tab (style="display: none"). 2005-05-19 13:22:44 +00:00
Régis Leroy
c14db352f2 add a rule 7) in activities verifications. Start activities must be autorouted and interactive. Just to alert user what he is doing can't work actually. 2005-05-17 21:42:30 +00:00
viniciuscb
729b5d3d7a VFS SQL2 classes 2005-05-17 14:48:20 +00:00
Régis Leroy
5e51a5d913 Forbidden access to activities assigned to other users or already gone, the engine was too much relying on client datas. Warning the engine compile pre-activity code is changed, you need to recompile all interactive activities. 2005-05-15 18:25:51 +00:00
Régis Leroy
2990191359 thanks to neomagic: syntax fix, still the same old renamed fields error. Actually not very used function, no immediate effect 2005-05-14 21:12:20 +00:00
Ralf Becker
a9e8ee4e1c some fixes:
- using string 'not set' for a not set lastname, as LDAP allows no accounts without lastname.
- addaccount hook was not called if account was auto-created at login-time (as the apps array is not yet read). Atm. app-names with hooks need to be listed here. I just added felamimail, which need to create mailboxes for new users
2005-05-13 16:02:37 +00:00
Ralf Becker
b883eca49d new auth_ads class:
- only needs host- and domain-name
- needs NO extra account on the ADS host
- can be used with accounts in SQL or LDAP to auto-create autheticated users
- new param to lowercase the user-names before auto-creating them (to deal with case-insensitve and case-sensitive system)
2005-05-13 15:58:10 +00:00
Cornelius Weiß
632a990cfb added support for authentication via cookie. NOTE: you have to enable this in setup if u want to use it. 2005-05-11 18:25:17 +00:00
Régis Leroy
fd9d1b1ceb galaxia workflow bugfix: non interactive activities should not set the user to the actual user, the user having the role on this activity (to make a manual send for example) can be a different one as this actual user is the one having a role on the prev interactive activity 2005-05-11 14:23:23 +00:00
Cornelius Weiß
bd9f34dbd3 bugfix in password migration 2005-05-10 21:14:20 +00:00
Cornelius Weiß
79c9507039 - massive code cleanup
- added md5_hmac auth type
- added support for password migration
2005-05-10 19:00:55 +00:00
Ralf Becker
658e1a78c9 form: empty action uses now PHP_SELF?QUERY_STRING 2005-05-03 14:55:24 +00:00
Ralf Becker
b97d8b5eeb big documentation update 2005-04-25 10:09:10 +00:00
Ralf Becker
d6ba225257 fix for not working pam-auth if magic_quotes_gpc is on, as suggested by Robert Theisen <trobert@redhat.com> on the developer list 2005-04-15 14:46:29 +00:00
Ralf Becker
327c0765ea fixed not working charset conversation in setup 2005-04-15 14:01:15 +00:00
Miles Lott
3cfb82e06d Check for array or object on decrypt/unserialize. Return this even if empty. 2005-04-13 13:03:04 +00:00
Ralf Becker
93c063bd6c - applied patch from cornelius Weiss: fixes some probs with xmlrpc too
- small documentation update
2005-04-13 08:53:42 +00:00
Ralf Becker
b1b41188ad - added possebility to specify titles for options
- fixed typo in class-var $wz_tooltip_included
- fixed left-alignment of inner div of progressbar
2005-04-12 16:30:16 +00:00
Ralf Becker
a828ba73f3 added missing charset-translation of the cn (common name), thanks to Martin Dalum <martin-AT-cabo.dk> 2005-04-12 09:54:07 +00:00
Ralf Becker
167d7e7288 new param. to supply a join for the select method: eg. ",table2 WHERE x=y" or "LEFT JOIN table2 ON (x=y)" 2005-04-08 18:34:49 +00:00
Ralf Becker
2c300e8cd7 fixed bug of not removable apps in the user management 2005-03-30 14:42:32 +00:00
Ralf Becker
bc4501f2e7 added not allways set sync_changedby column, which is required as it is NOTNULL and some code modernisation ;-) 2005-03-30 08:16:31 +00:00
Ralf Becker
404ebd1a5a new function to get all locations for a given app and user 2005-03-29 15:30:08 +00:00
Régis Leroy
9d9de69793 bugfix: old vars names still there. The ProcessMonitor workflow ui wasn't able to show number of activities per processes. pId->wf_p_id 2005-03-29 13:26:29 +00:00
Régis Leroy
f8b10f7097 Bugfix: user was not setted when forms were launched, this lett multiple users run the same activity on the same instance at the same time. WARNING:: You should recompile all your activities to fix the bug. 2005-03-27 09:03:07 +00:00
Miles Lott
6bcd0f9cfb cleanup formatting 2005-03-25 09:59:48 +00:00
Ralf Becker
4e2bce12e6 modernized code and fixed problem reported on the list: new installs cant create admin-account due to not longer existing phpgw class in the api 2005-03-24 13:15:12 +00:00
Régis Leroy
4610377a66 fixing ->setOwner which were always setting empty owner 2005-03-17 14:36:06 +00:00
Ralf Becker
1a5243c9c4 _check_script_tags function:
1) fixed problems pointed out by gulftech, iframes get now unset too
2) unset variables from _check_script_tags are now found in $GLOBALS['egw_unset_vars'], eg. a posted input-field called content would be found in $GLOBALS['egw_unset_vars']['_POST[content]'] (please not the array is only 1-dimensional!), if it has been unset by check_script_tags
3) speed up the function a bit, by not checking all possible names of the superglobals arrays, if nothing found in $_GET and $_POST
2005-03-15 15:36:44 +00:00
Ralf Becker
7288defaaf the default value for $accountid has to be '', as get_account_id returns all integer (0 too) unchanged 2005-03-12 17:55:48 +00:00
Ralf Becker
12e4740941 rewrote AND documented the ACL class with new DB functions to fix the problems pointed out by GulfTech
I backported them to 1.0.0 too, but will give it a view days testing on my server and egroupware.org, before I commit them
2005-03-12 16:30:25 +00:00
Ralf Becker
8529237f82 changed ACL code to use standard get_grants method from the acl-class, the existing coded tried it on it's own and failed if directories were owned by a group 2005-03-07 17:08:54 +00:00
Ralf Becker
9c091abd5b upps 2005-03-07 17:06:01 +00:00
Ralf Becker
436a5635d2 1) $GLOBALS['phpgw{_info}'] ==> $GLOBALS['egw{_info}']
2) rewrote some methods with new db-functions
3) add possibility to delete an app/location for all accounts
4) fixed get_location_list_for_id() method (it was not returning all locations)
2005-03-07 16:59:32 +00:00
Ralf Becker
275b75be1a option to show selected items at the top of the multiselect-checkbox 2005-03-05 15:03:01 +00:00
Ralf Becker
0a104f1063 1) $GLOBALS['phpgw{_info}'] ==> $GLOBALS['egw{_info}']
2) modernized CreateObject
2005-03-04 20:48:05 +00:00
Ralf Becker
69c93b3f2b $GLOBALS['phpgw{_info}'] ==> $GLOBALS['egw{_info}'] 2005-03-04 15:47:08 +00:00
Ralf Becker
b6883d59e8 1) fixed setup-detection, to allow login into setup again
2) $GLOBALS['phpgw{_info}'] ==> $GLOBALS['egw{_info}']
3) moved setup-classes from phpgwapi/inc back to setup/inc (they are not used anywhere else, but in setup)
2005-03-04 12:40:28 +00:00
Ralf Becker
887e71e57e 1) fixed lost egw object if register_globals=On: was caused by the identicaly named session-variable used for php4-sessions (now renamed to egw_session)
2) $GLOBALS['phpgw{_info}'] ==> $GLOB ALS['egw{_info}']
2005-03-04 11:33:44 +00:00
Ralf Becker
6b2eb04274 $GLOBALS['phpgw{_info}'] ==> $GLOB ALS['egw{_info}'] 2005-03-04 11:30:00 +00:00
Ralf Becker
49c4775efd seems not to be used (anymore) 2005-03-03 15:20:13 +00:00
Ralf Becker
08bc681ab9 seems not to be used (anymore) 2005-03-03 15:13:30 +00:00
Ralf Becker
8a0ca7a6be seems not to be used (anymore) 2005-03-03 15:02:28 +00:00
Ralf Becker
8052da02bc given the regular "you need to port your header ..." message 2005-03-03 11:01:19 +00:00
Ralf Becker
e82027d0cb changing from
1) $GLOBALS['phpgw_info'] to $GLOBALS['egw_info'],
2) $GLOBALS['phpgw'] to $GLOBALS['egw'],
3) PHPGW_ to EGW_ constants
The phpgw ones ars now a reference to the new egw ones, to allow a soft migration
2005-03-03 10:47:28 +00:00
Ralf Becker
d7f1458d1a new header-template to:
1) correct the displayed page-generation-time for idots and jerry
2) use ob_start to get rid of "Header could not be sent, output started at ..." errors
3) changing from $GLOBALS['phpgw_info'] to $GLOBALS['egw_info'], the phpgw one is now a reference to the new egw one, to allow a soft migration
2005-03-03 10:45:52 +00:00
Ralf Becker
37fa750990 1) corrected fix of wrong comparison with NULL in column_data_implode
2) allow for null in array in column_data_implode
2005-02-28 11:51:10 +00:00
Lars Kneschke
0b846885ee add class to handle history of content inside egw 2005-02-27 23:29:40 +00:00
Lars Kneschke
ffc98ddd1f add 2 function sto handle global UIDs 2005-02-27 23:27:36 +00:00
Ralf Becker
0af62b80b3 fixed wrong comparison with NULL in column_data_implode 2005-02-27 21:27:36 +00:00
Ralf Becker
d9ba5f9ab8 fixed update problem of wiki, RenameColumn could not deal with column-names in mixed case 2005-02-27 19:51:24 +00:00
Ralf Becker
a53e61f903 'vfs_' column-prefix and "new" table-name for egw_vfs
- needed for the oracle support
Also put vfs and vfs_shared in one file
2005-02-26 14:00:02 +00:00
Ralf Becker
9a6b90e78f 1) enabled DB support additionaly for:
- Oracle via oci8 or odbc extension
- MsSql via odbc extension
2) added checks for the neccesary extension incl. loading them if they are not loaded by default: db extensions and session extension. This is now consitent wiht check_install.
3) sessions class tries now to load the php session extension and silently fallbacks to db-sessions
2005-02-25 07:45:37 +00:00
Ralf Becker
feadf8459e implemented a multiselectbox with checkboxes:
- it looks nearly like a multiple selectbox, eg. scrolls for further lines
- it acts in the same way in forms
- it's NOT identical if using it via javascript
2005-02-24 21:01:13 +00:00
Ralf Becker
b313272616 fallback to db sessions if php's session extension is not loadable, atm. you get cryptic errors, bugs in the bugtracker and mails on the list ;-) 2005-02-21 07:57:41 +00:00
Ralf Becker
c0bed5e88e added escaping of onclick for buttons 2005-02-20 21:47:14 +00:00
Ralf Becker
844ec779c2 optimized handling of app_session data under php4: previously there was always a copy of the data in $GLOBALS['phpgw_sessions'], which is unnecessary and needs double as much memory. Also changed the name from $_SESSION[phpgw_session] to $_SESSION[egw] 2005-02-18 20:28:06 +00:00
Ralf Becker
c04582258f 1) big documentation update
2) image method accepts now:
- image name, search in given app
- URL
- vfs:/ pseudo protocol to access the vfs, eg. vfs:/home/ralf/pic.png
- array with get-vars passed to the link-function for '/index.php'
2005-02-16 13:04:14 +00:00
Ralf Becker
021b1314c7 fix for php5 2005-02-12 14:37:25 +00:00