Ralf Becker
8315cbfee0
move egw and applications class to api including (common_)functions.inc.php
2016-04-26 14:38:08 +00:00
Ralf Becker
8c87cf9dfc
move egw_framework to api and refactor it
2016-04-07 20:42:06 +00:00
Ralf Becker
2baf654e14
move all tables to new api and update api to 16.1
2016-04-02 19:55:08 +00:00
Ralf Becker
3453021a6d
allow api as app like home for everyone, and implement calling of namespaced class-names from EGroupware namespace in index.php and json.php
2016-03-19 15:24:36 +00:00
Ralf Becker
564b2b0fd7
fixes and first successful tests with Ldap backend
2016-03-08 08:13:26 +00:00
Ralf Becker
2ccb5cd58d
create old accounts object with deprecated methods for old apps using it
2016-03-06 21:15:55 +00:00
Ralf Becker
b95727bb6f
move auth classes to Api\Auth, only Sql is currently tested!
2016-03-06 20:47:10 +00:00
Ralf Becker
d407b9aae1
moved accounts classes to Api\Accounts
2016-03-06 15:54:07 +00:00
Ralf Becker
1ab66dd811
move exceptions to new api structure, thought to catch an exception by its deprecated name, new exceptions have to extend deprecated ones
2016-02-28 13:43:06 +00:00
Ralf Becker
67df38ddbf
set our default "utf-8" charset when opening db-connection, as some setup code, does not use egw-object and fail if php defaults to a different one
2015-11-13 12:47:17 +00:00
Ralf Becker
7bf6a497b0
fix wired PHP Fatal error: Call to a member function commit_session on null, thought isset should stop that ...
2015-08-02 09:04:57 +00:00
Ralf Becker
6c3ff9b792
Fix errors in async service, since r53254 "run shutdown callbacks after sending output to user"
2015-07-30 07:17:22 +00:00
Ralf Becker
ae9d87ed97
* Nginx/FastCGI: run shutdown callbacks (eg. link notification processing) after sending response to user
...
was broken since some time, because a not closed session kept it from working
--> we are now run all callbacks containing "session" it there name, closing session, calling fastcgi_finish_request() and then run rest of the callbacks
2015-07-29 12:36:37 +00:00
Ralf Becker
7eff188dcf
fix sometimes not working redirect to login page (session could not be verified), because inline script is not allowed by our content-security-policy, redirecting top window now in login.js
2015-07-04 07:53:50 +00:00
Ralf Becker
01860bc469
* Mobile: fix redirect loop, if template_set was forced to something else then "pixelegg"
...
- refactored generation of framework object to egw_framework::factory used now in login.php and egw object
- using now $framework->template_dir for *.tpl files of template-sets
2015-05-27 14:01:32 +00:00
Ralf Becker
e7f4bb0848
move defining of (deprecated) SEP constant to common functions, as there are cases where it gets used before defined
2014-12-13 09:53:18 +00:00
Ralf Becker
efc14ee2dc
fixed session creation for Pixelegg or Stylite template and added extra css for a simplified sharing GUI
2014-12-09 12:08:00 +00:00
Ralf Becker
5eeac7093c
use filemanager UI as UI for sharing directories
2014-11-18 12:55:32 +00:00
Ralf Becker
5ba884f4a6
* Admin/API: remove old database based error-log
2014-07-05 08:54:36 +00:00
Ralf Becker
f45c1e7d53
fixed all methods of common class are static
2014-03-03 17:33:55 +00:00
Ralf Becker
a786894c27
new egw::on_shutdown($callback, $args) method to register shutdonw handlers to run after output send back to user, thought only really working with fastCGI, Apache mod_php waits ...
2014-02-21 15:38:38 +00:00
Ralf Becker
2f8b7064d8
allow to send a redirect from server-side via client-side egw.link_handler(url, app) allowing to specify which tab to use and a top-level (ajax=true) url
2014-02-19 15:08:51 +00:00
Ralf Becker
d40025f732
allow to specify app for redirects (for Stylite or Pixelegg template)
2014-01-28 11:00:39 +00:00
Ralf Becker
b2c563e5aa
restoring current app/tab, if pressing save or cancel, to do so let server know which is current app and run under that appname (otherwise redirect will happen to currently views app
2013-12-06 00:02:16 +00:00
Ralf Becker
9523ba79c2
removed not used assignment
2013-09-12 08:31:10 +00:00
Ralf Becker
93710e09e1
* Setup/API: improved diagnostics about db connection problem and not installed EGroupware
...
- removed deprecated egw_db->Halt_On_Error handling in favor of just exceptions
- added a couple of exceptions extending egw_exception_db to be able to detect different problem areas
- fixed setup to use / catch exceptions
- new egw_exception_db_setup displays link to setup below exception message, to cope with no longer allowed html in exception messages
2013-03-05 10:50:43 +00:00
Ralf Becker
5cafed6381
fixed since r39109 (merge for filemanager) not working install
2012-05-11 08:35:32 +00:00
Ralf Becker
56f286e877
using instance-wide cache for categories, so updates from other sessions are immediatly available and sessions get smaller
2012-02-10 20:14:44 +00:00
Ralf Becker
e9ba37173a
remove old ISS specific redirect code and default of $_SERVER[PHP_SELF] for $url parameter of egw::redirect (not used in current EGroupware)
2011-11-30 20:32:45 +00:00
Ralf Becker
ae5cde8259
fix bug reported on devel-list:
...
egw_cache::get_provider(Instance) no provider found (error instanciating provider egw_cache_files: egw_cache_files::__construct() server/temp_dir
--> made egw_cache::get_config_value public, so egw_cache_files can use it and for regular egw sessions read install_id and temp_dir together with system_charset, before calling config::read()
2011-08-29 05:58:54 +00:00
Ralf Becker
389486793d
- config is now cached on instance level
...
- arrays in $GLOBALS[egw_info][server] are now automatically serialized and unserialized
- new static method to check if user is export-limit excepted
--> saves to query it on each request (for non-phpgwapi, which was already cached in the session)
2011-08-26 13:50:20 +00:00
Ralf Becker
0aa128b53e
Loading translations like other javascript files:
...
setting headers to allow browser to cache the file until it's etag containing the creationdates of the used langfiles changes
--> et2 can now use egw_lang object to translate labels, options, ...
2011-08-21 20:09:14 +00:00
Ralf Becker
30f5025431
* API fix webserver_url of just a domain eg. http://domain.com gives PHP Warning empty delimiter ...
2011-08-05 08:00:58 +00:00
Andreas Stöckel
49ece38c6c
Don't send a location header if we currently handle an ajax response/request - use the corresponding json function instead. Doing this on the server side is neccessary as the location header is one of the few ones which is handled by the browser before any XMLHttpRequest event is fired (according to W3C specification)
2011-06-11 21:27:15 +00:00
Ralf Becker
574911d077
* Setup/API: new option to enforce ssl (without specifying a domain in Webserver-URL)
2011-05-31 13:33:26 +00:00
Ralf Becker
4039fdf415
* give everyone implicit rights for home app, as taking them away makes to many support problems
2011-03-30 07:54:29 +00:00
Andreas Stöckel
0d88ac8799
Reversed most changes made for egw-stylite #8295 , commited changes proposed by Ingo Ratsdorf in egroupware.org #2834 , probably fixes egroupware.org #2831
2011-02-04 14:28:12 +00:00
Andreas Stöckel
0f0e57f398
Got remote applications in the jdots template finally working as they should - this unfortunately required a lot of 'dirty' hacks, as egroupware had not been designed to do this. So e.g. there had to be a litte bit code added to the login page, which prevented it from redirecting to a page with a full framework rebuild.
2011-01-20 14:11:47 +00:00
Ralf Becker
a66cb42789
fixed not always working redirect after login: we have to use only path component, to cope with domains like http://egroupware.domain.com and /egroupware
2010-11-12 09:13:54 +00:00
Ralf Becker
65bd2f4e24
allow template to NOT support certain browser types / user agents
2010-10-28 16:24:58 +00:00
Ralf Becker
dce834b93b
present a login page, if anon user has no right for an application, makes more sense then throwing an exception
2010-09-17 09:11:44 +00:00
Ralf Becker
e977610a4b
Integrated (used) javascript methods:
...
- js->validate_file()
- js->set_on(Load|Unload|Resize)
into egw_framwork and made them static
(egw::__get('js') returns now the framework so all old code should
continue to work)
2010-06-09 15:30:53 +00:00
Ralf Becker
b5ade8635a
do NOT redirect, but set top.location, as this works in framed template too
2010-06-07 06:54:07 +00:00
Ralf Becker
bec64ee336
allow specify value for template specific link handler and using a javascript link, instead a a-tag
2010-06-02 17:11:48 +00:00
Ralf Becker
472a420231
allow to package templates like applicatons in an own directory, cleand up index.php a bit
2010-06-02 09:20:55 +00:00
Ralf Becker
b9f98321f5
allow template to overwrite link and redirect_link methods
2010-06-01 21:38:00 +00:00
Ralf Becker
8ce9813e4d
"only add \"your session could not be verified\", if a sessionid is given (cookie or on url)"
2010-05-11 16:19:26 +00:00
Ralf Becker
930f1052d5
supporting digest auth (see RFC 2617), which is more secure then basic auth on http (no cleartext password), it currently requires cleartext passwords in the database, to calculate the A1 hash!
2010-05-05 09:19:37 +00:00
Ralf Becker
7f3651e3f2
Do NOT store "System/Localtime" as server_timezone, as it is no valid timezone
2010-03-15 07:51:38 +00:00
Ralf Becker
0e405049b3
A few improvments with hooks:
...
- register_all_hooks deletes now hooks of no longer existing apps
- hooks get instanciated directly with egw object, to cache the hooks
read from the DB (and not read it again on each request)
- hooks get now stored by location, so no need anymore too loop for each
hooks::process() call to all apps to find applying hooks
- hooks::process($location,$order,$no_permission_check) no longer
defaults automatically puts current app in $order, if $order is not
given, without $order hooks are executed in application order!
2010-01-21 23:31:28 +00:00