Commit Graph

4288 Commits

Author SHA1 Message Date
Ralf Becker
5d83c036e0 forgot to switch of error_log for not found images, as that happens regulary in some parts of EGroupware 2011-08-31 08:01:18 +00:00
Ralf Becker
19d167f5be fixed not working jerryr template set, needs image_on and previously not working template image dir 2011-08-31 07:52:19 +00:00
Ralf Becker
7868b684cd using php5 constructors 2011-08-31 07:50:28 +00:00
Ralf Becker
ea7ad6318d new clientside image-name to url map: egw.image(_name, _app="phpgwapi")
eg. egw.image('favicon') returns '/egroupware/phpgwapi/templates/default/favicon.ico'
--> pondon to serverside common::image($app,$name) method
2011-08-30 22:19:38 +00:00
Ralf Becker
dce02a03cb re-added common::find_image() and common::image_on() as deprecated 2011-08-30 22:16:31 +00:00
Ralf Becker
a048840e44 use one instance specific image_map to translate between image-names and URLs, which can be transfered to the browser for etemplate2 (next commit) 2011-08-30 22:03:17 +00:00
Ralf Becker
a654002f7b * WebDAV: allow locking of not (yet) existing files to create them
- failed before as there are no write-rights for not existing files
- now we check for not existing files the write rights of the parent directory
2011-08-30 17:03:34 +00:00
Ralf Becker
4a1f4fff8c * Filemanager: "Save as" option for files to force download and not open in browser 2011-08-29 08:40:22 +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
a8af711f11 add backtrace to failed includes, to see where it comes from 2011-08-27 08:48:27 +00:00
Ralf Becker
be6fd87783 - sending EGroupware configuration (non-sensible stuff) to browser and make it available via egw.config(_name, _app="phpgwapi")
- sending link-registry in the same file
- used javascript file uses etag to ensure there's no need to load it on each request
2011-08-26 16:27:57 +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
a925764fc4 - dynamical (synchronious) loading preferences (other then "common") from server via egw.preference(_name, _app)
- setting preferences on server via egw.set_preference(_app, _name, _value)
- enable calling of active framework / template class via using egw_framework instead of not known used framework class of user, eg. "home.egw_framework.ajax_func.template" instead of "home.idots_framework.ajax_func.template"
2011-08-26 09:34:18 +00:00
Klaus Leithoff
4effb9931e fix problem with double encoding html special chars (introduced with rev36141) 2011-08-26 08:21:04 +00:00
Ralf Becker
16c6a8d4f9 got clientside translations working for etemplate2 apps: egw.lang("%1 timesheet(s) %2", 5, egw.lang("deleted")) 2011-08-23 16:15:54 +00:00
Ralf Becker
24e34f7927 new clientside API object currently supporting the following methods:
- egw.preferences(_name, _app='common') return preference _name of _app (only common prefs loaded currently)
- egw.open() allowing to open app-entries utilising the link registry, deprecating egw_open from jsapi.js
- egw.lang(_msg, _arg1, ..., _argN) placeholders are not yet implemented
2011-08-23 14:29:56 +00:00
Klaus Leithoff
050a1307cb * API: take care of INNODB and STRICT_TRANS_TABLES for recent mysql installations 2011-08-22 10:16:07 +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
750f80b23b fix to work with path containing a query 2011-08-21 20:01:10 +00:00
Klaus Leithoff
bda5e014d7 * tracker: mailhandling - prevent to use rsh or ssh to establish connection 2011-08-18 14:49:16 +00:00
Ralf Becker
697a113171 url need to run throught htmlspecialchars too (like every attribute in html markup), eg. "x&reg_id=" fails otherwise 2011-08-16 11:44:33 +00:00
Hans-Jürgen Tappe
b176cb9256 - Allow sitemgr blocks to be moved between pages, categories and websitewide
(previously only moving from a page up to the cat, then up globally was
  possible).
- Allow options within a select to be formatted through the standard
  html::select_option() function
2011-08-15 16:25:08 +00:00
Ralf Becker
4f54abdda2 quietened PHP Warning: array_keys() expects parameter 1 to be array, null given on line 106 2011-08-11 07:31:47 +00:00
Ralf Becker
9c82896a7b quietened PHP Warning: in_array() expects parameter 2 to be array, boolean given on line 855 2011-08-11 07:23:29 +00:00
Ralf Becker
5e9d4f3601 * API fix PHP fatal error wakeup2 is no method ..., when comming from setup 2011-08-05 08:01:51 +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
Ralf Becker
31c9e8965b fixed creating of new translations / give [Write] button file not yet existing (permissions given) 2011-08-04 07:27:23 +00:00
Andreas Stöckel
6fff48a306 Fixed typo in comment 2011-08-03 14:27:45 +00:00
Andreas Stöckel
149c154540 Added system which allows us to define dependencies inside js files.
An introduction on how this can be done is given in class.egw_include_mgr.inc.php.
This file/class may lateron be extended to minifiy, compress and cache groups of js files - currently only the 'debug-mode' is implemented, which sends all javascript files as individual files, making it easy to debug the java-script files in the browser.

The new method should work with all old code, especially including java-script files as part of an ajax-response, if something is broken, please report that!
2011-08-03 14:03:31 +00:00
Klaus Leithoff
8d7c954544 sticking to the rules of the protocoll while writing a request to port, ensures that lighttpd (>=1.4.28) understands our requests 2011-08-03 13:36:59 +00:00
Ralf Becker
79d12b67be * CalDAV: user agent detection of OS X 10.7 Lion iCal app (CoreDav instead of DavKit) 2011-08-02 12:59:23 +00:00
Klaus Leithoff
11475a41cd * admin: allow to choose which kind of spellchecking you would like to employ when using the CK Editor (Options now: Yes, No, Without SpellCheckAsYouType, WebSpellChecker) 2011-08-02 11:39:59 +00:00
Andreas Stöckel
5a7daf61aa Fixed problem with move_files function always returning false 2011-08-02 09:33:13 +00:00
Ralf Becker
6d8c35496a - silently use server_timezone if wrong user timezone preference is set, as we can not (easily) report it to the user at the stage of initialising EGroupware
- if server_timezone is NOT valid, try (and permanently store!) date_default_timezone_get() frist and then "Europe/Berlin"
2011-08-01 13:04:40 +00:00
Ralf Becker
73450d3817 fixing 3 failed litmus tests:
- copy_coll, move_coll: using egw_vfs::find instead of System::find which we dont require and fails anyway for some reason
- copy_shallow: by updating COPY with changes from 1.0.0RC6 (depth="0" is allowed for copy, thought HTTP_WebDAV_Server still copies the whole collection!)
2011-07-31 09:23:16 +00:00
Ralf Becker
399c835f11 HTTP_WebDAV_Server 1.0.0RC6 changes without Server.php changes comming later 2011-07-29 10:33:52 +00:00
Ralf Becker
632a91774d allow dash ("-") in app name, eg. sitemgr-site 2011-07-26 13:49:53 +00:00
Klaus Leithoff
45468c801a patch to fix problem with ->not able to see mail<- egw_instant_load.html not found. provided by Vladimir Kolobkov; Thanks a lot 2011-07-25 15:52:22 +00:00
Klaus Leithoff
f297d65790 make sure there is no whitespace leading or trailling the host string, when attempting to send 2011-07-21 12:11:17 +00:00
Klaus Leithoff
6263753e80 add missing default translation for lang key tls 2011-07-14 08:54:30 +00:00
Jörg Lehrke
79fa226d83 * Generate well-formed XML for Funambol and SyncEvolution clients (community bug#2975) 2011-07-08 19:46:08 +00:00
Ralf Becker
4f60da9af5 differenciate in our serverside user-agent detection between Chrome and Safari, and disable html5 form validation for float, as Chrome 12 rejects float values with comma as decimal separator 2011-07-07 11:50:06 +00:00
Nathan Gray
e4d0a78c8d Allow setting owner when creating a new category 2011-07-06 15:09:08 +00:00
Ralf Becker
36eaa8e987 fixed not working mime parameter, if just a main type eg. "image" is given 2011-07-04 18:53:48 +00:00
Klaus Leithoff
93636849e6 put some more documentation ito the function header doc part 2011-07-04 13:23:55 +00:00
Klaus Leithoff
820dbed203 make sure we set SMTPSecure to ssl or tls if the standardports for ssl or tls are configured for the given profile 2011-07-04 13:14:45 +00:00
Ralf Becker
03e379e570 * jQuery: changed $ to $j to work around mootools use in Joomla templates and other js code in imported projects
required to change $ --> $j:
phpgwapi/*
jdots/*
etemplate/*
stylite/*
felamimail/*
admin/*
news_admin/*
projectmanager/*
importexport/*
infolog/*
ranking/*

required, but not automatic:
importexport/setup/etemplates.inc.php
phpgwapi/js/jquery/*

negative, not to touch or revert later:
phpgwapi/inc/savant2/Savant2/Savant2_Compiler_basic.php:		'(\$(.+))'            => 'print $1',
phpgwapi/js/dhtmlxtree/libCompiler/core.js
sitemgr/*
phpfreechat/*
gallery/*
activesync/include/smb.php:        '^\tIPC\\\$(.*)[ ]+IPC' => 'skip',
etemplate/inc/class.bo_merge.inc.php: if ($this->table_plugins && preg_match_all('/\\$\\$table\\/([A-Za-z0-9_]+)\\$\\$(.*?)\\$\\$endtable\\$\\$/s',$content,$matches,PREG_SET_ORDER))

find phpgwapi jdots etemplate stylite felamimail admin news_admin projectmanager importexport infolog ranking \
	\( -name '*.php' -o -name '*.js' \) -exec grep -q '\$(' {} \; -print \
	-exec sed -i '' 's|\$(|$j(|g' {} \;
svn revert phpgwapi/inc/savant2/Savant2/Savant2_Compiler_basic.php phpgwapi/js/dhtmlxtree/libCompiler/core.js \
	importexport/setup/etemplates.inc.php phpgwapi/js/jquery/jquery.js etemplate/inc/class.bo_merge.inc.php
	
additional changes:
phpgwapi/js/jquery/jquery.js:	window.$ --> window.$j
phpgwapi/js/egw_json.js:291	this.request = $j.ajax({url: this.url,
jdots/templates/jdots/head.tpl:59			$j(document).ready(function() {
phpgwapi/js/egw_action/egw_grid_view.js: $.browser --> $j.browser
importexport/setup/etemplates.inc.php: etemplate editor importexport.wizard_basic_export_csv.choose_fields onclick of check icon changed
phpgwapi/js/egw_action/tests/*.html
phpgwapi/js/egw_action/tests/js/jquery.js:	window.$ --> window.$j
2011-07-03 09:00:36 +00:00
Ralf Becker
a7aef6a4da fixed egroupware.org bug #3002: PHP Warning: mb_strpos() in class.egw_session.inc.php on line 1081 2011-07-03 06:54:32 +00:00
Ralf Becker
70b84e372c fixed catchable fatal error: param 2 to egw_vfs::propatch() must be an array 2011-07-01 14:24:22 +00:00
Ralf Becker
3f6fcf60d2 support for some html5 form features, if browser supports it 2011-06-30 15:19:08 +00:00