diff --git a/addressbook/doc/fieldnames.txt b/addressbook/doc/fieldnames.txt new file mode 100644 index 0000000000..88b5ba8fe6 --- /dev/null +++ b/addressbook/doc/fieldnames.txt @@ -0,0 +1,60 @@ +This are the internal fieldnames and their meaning of the 1.4 addressbook: +------------------------------------------------------------------------- +id => Contact ID +tid => Typ +owner => Addressbook +private => private +cat_id => Category +n_prefix => prefix +n_given => first name +n_middle => middle name +n_family => last name +n_suffix => suffix +n_fn => full name +n_fileas => own sorting +bday => birthday +org_name => Company +org_unit => Department +title => Title +role => Role +assistent => Assistent +room => Room +adr_one_street => street business +adr_one_street2 => address line 2 business +adr_one_locality => city business +adr_one_region => state business +adr_one_postalcode => zip code business +adr_one_countryname => country business +label => label +adr_two_street => street private +adr_two_street2 => address line 2 private +adr_two_locality => city private +adr_two_region => state private +adr_two_postalcode => zip code private +adr_two_countryname => country private +tel_work => work phone +tel_cell => mobile phone +tel_fax => fax business +tel_assistent => assistent phone +tel_car => car phone +tel_pager => pager +tel_home => home phone +tel_fax_home => fax private +tel_cell_private => mobile phone private +tel_other => other phone +tel_prefer => preferred phone +email => email business +email_home => email private +url => url business +url_home => url private +freebusy_uri => Freebusy URI +calendar_uri => Calendar URI +note => note +tz => time zone +geo => geo +pubkey => public key +created => created +creator => created by +modified => last modified +modifier => last modified by +jpegphoto => photo diff --git a/admin/admin-cli.php b/admin/admin-cli.php index c79ca85153..f37996a296 100755 --- a/admin/admin-cli.php +++ b/admin/admin-cli.php @@ -51,6 +51,9 @@ switch($action) case '--change-account-id': return do_change_account_id($arg0s); + + case '--check-acl'; + return do_check_acl(); default: usage($action); @@ -100,9 +103,28 @@ function usage($action=null,$ret=0) echo " Deletes a user from eGroupWare. It's data can be moved to an other user or it get deleted too.\n"; echo "--change-account-id admin-account[@domain],admin-password,from1,to1[...,fromN,toN]\n"; echo " Changes one or more account_id's in the database (make a backup before!).\n"; + echo "--check-acl admin-account[@domain],admin-password\n"; + echo " Deletes ACL entries of not longer existing accounts (make a database backup before!).\n"; exit; } +function do_check_acl() +{ + $deleted = 0; + if (($all_accounts = $GLOBALS['egw']->accounts->search(array('type'=>'both')))) + { + $ids = array(); + foreach($all_accounts as $account) + { + $ids[] = $account['account_id']; + } + // does not work for LDAP! $ids = array_keys($all_accounts); + $GLOBALS['egw']->db->query("DELETE FROM egw_acl WHERE acl_account NOT IN (".implode(',',$ids).") OR acl_appname='phpgw_group' AND acl_location NOT IN ('".implode("','",$ids)."')",__LINE__,__FILE__); + $deleted = $GLOBALS['egw']->db->affected_rows(); + } + echo "\n$deleted ACL records of not (longer) existing accounts deleted.\n\n"; +} + /** * Delete a given user from eGW * diff --git a/admin/check_acl.php b/admin/check_acl.php deleted file mode 100644 index c487180e1c..0000000000 --- a/admin/check_acl.php +++ /dev/null @@ -1,47 +0,0 @@ - * -* -------------------------------------------- * -* This program is free software; you can redistribute it and/or modify it * -* under the terms of the GNU General Public License as published by the * -* Free Software Foundation; either version 2 of the License, or (at your * -* option) any later version. * -\**************************************************************************/ - -/* $Id$ */ - -/** - * delete ACL records of deleted accounts (can be called only via the URL) - * - * ACL records of deleted accounts have very irritating effects on the ACL (specialy calendar) - * - * @package admin - * @author RalfBecker@outdoor-training.de - * @license GPL - */ - -$GLOBALS['egw_info'] = array( - 'flags' => array( - 'currentapp' => 'admin', -)); -include('../header.inc.php'); - -if (!$GLOBALS['egw_info']['user']['apps']['admin']) -{ - echo '

'.lang('Permission denied')."

\n"; -} -else -{ - $deleted = 0; - if (($all_accounts = $GLOBALS['egw']->accounts->search(array('type'=>'both')))) - { - $all_accounts = array_keys($all_accounts); - $GLOBALS['egw']->db->query("DELETE FROM egw_acl WHERE acl_account NOT IN (".implode(',',$all_accounts).") OR acl_appname='phpgw_group' AND acl_location NOT IN ('".implode("','",$all_accounts)."')",__LINE__,__FILE__); - $deleted = $GLOBALS['egw']->db->affected_rows(); - } - echo '

'.lang('%1 ACL records of not (longer) existing accounts deleted.',$deleted)."

\n"; -} -$GLOBALS['egw']->common->egw_footer(); -$GLOBALS['egw']->common->egw_exit(); diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index 83ac1078ef..d04b49b5c3 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -281,7 +281,7 @@ } else { - echo '
'."\n"; + echo '
'."\n"; if ($GLOBALS['egw_info']['user']['apps']['manual']) // adding a manual icon to every popup { $manual =& new etemplate('etemplate.popup.manual'); diff --git a/felamimail/setup/phpgw_de.lang b/felamimail/setup/phpgw_de.lang index dcd67f9402..7c4c464199 100644 --- a/felamimail/setup/phpgw_de.lang +++ b/felamimail/setup/phpgw_de.lang @@ -145,7 +145,7 @@ file into felamimail de verschiebe nach files felamimail de Dateien filter active felamimail de Filter aktiv filter name felamimail de Filtername -filter rules preferences de Filter Regeln +filter rules common de Filter Regeln first name felamimail de Vorname flagged felamimail de wichtig flags felamimail de Markierungen @@ -224,7 +224,7 @@ location of buttons when composing felamimail de Ort der Kn mail server login type admin de Typ der Mailserver Anmeldung mail settings felamimail de E-Mail-Einstellungen mainmessage felamimail de Hauptnachricht -manage emailaccounts felamimail de E-Mail-Konten verwalten +manage emailaccounts preferences de E-Mail-Konten verwalten manage emailfilter / vacation preferences de Verwalten der E-Mail-Filter und Abwesenheitsnotiz manage folders common de Ordner verwalten manage sieve common de Sieve Scripte verwalten @@ -403,7 +403,7 @@ use custom settings felamimail de benutze angepa use regular expressions felamimail de reguläre Ausdrücke verwenden use smtp auth admin de SMTP Auth benutzen users can define their own emailaccounts admin de Anwender können ihre eigenen Konten definieren -vacation notice preferences de Abwesenheitsnotiz +vacation notice common de Abwesenheitsnotiz vacation notice is active felamimail de Abwesenheitsnotiz ist aktiv validate certificate felamimail de Zertifikat überprüfen view full header felamimail de alle Kopfzeilen anzeigen diff --git a/felamimail/setup/phpgw_en.lang b/felamimail/setup/phpgw_en.lang index ea51d86548..95d5fb4258 100644 --- a/felamimail/setup/phpgw_en.lang +++ b/felamimail/setup/phpgw_en.lang @@ -145,7 +145,7 @@ file into felamimail en file into files felamimail en files filter active felamimail en filter active filter name felamimail en Filter name -filter rules preferences en filter rules +filter rules common en filter rules first name felamimail en First name flagged felamimail en flagged flags felamimail en Flags @@ -403,7 +403,7 @@ use custom settings felamimail en Use Custom Settings use regular expressions felamimail en use regular expressions use smtp auth admin en Use SMTP auth users can define their own emailaccounts admin en Users can define their own emailaccounts -vacation notice preferences en vacation notice +vacation notice common en vacation notice vacation notice is active felamimail en Vacation notice is active validate certificate felamimail en validate certificate view full header felamimail en View full header diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index ca3696fd8d..414b9d7228 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -621,6 +621,7 @@ class html switch($_mode) { case 'simple': $oFCKeditor->ToolbarSet = 'egw_simple'; + $oFCKeditor->Config['ContextMenu'] = false; break; default: @@ -661,6 +662,7 @@ class html return ""; break; case 'simple': + $oFCKeditor->Config['ContextMenu'] = false; $oFCKeditor->ToolbarSet = 'egw_simple'; return $oFCKeditor->CreateHTML() ; break; diff --git a/phpgwapi/inc/horde/Horde/SyncML/State_egw.php b/phpgwapi/inc/horde/Horde/SyncML/State_egw.php index 3073882adc..2fb6f6ce0e 100644 --- a/phpgwapi/inc/horde/Horde/SyncML/State_egw.php +++ b/phpgwapi/inc/horde/Horde/SyncML/State_egw.php @@ -227,7 +227,7 @@ class EGW_SyncML_State extends Horde_SyncML_State return FALSE; } - if(strstr($this->_locName,'@') === False) + if(strpos($this->_locName,'@') === False) { $this->_locName .= '@'.$GLOBALS['egw_info']['server']['default_domain']; } diff --git a/phpgwapi/js/fckeditor/editor/_source/internals/fck_gecko.js b/phpgwapi/js/fckeditor/editor/_source/internals/fck_gecko.js index 0a35d68e67..20030fd12c 100644 --- a/phpgwapi/js/fckeditor/editor/_source/internals/fck_gecko.js +++ b/phpgwapi/js/fckeditor/editor/_source/internals/fck_gecko.js @@ -60,8 +60,10 @@ FCK.InitializeBehaviors = function() this.EditorDocument.addEventListener( 'dblclick', this._DblClickListener, true ) ; // Reset the context menu. - FCK.ContextMenu._InnerContextMenu.SetMouseClickWindow( FCK.EditorWindow ) ; - FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument ) ; + if ( FCKConfig.ContextMenu != null ) { + FCK.ContextMenu._InnerContextMenu.SetMouseClickWindow( FCK.EditorWindow ) ; + FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument ) ; + } } FCK.MakeEditable = function() diff --git a/phpgwapi/js/fckeditor/editor/_source/internals/fck_ie.js b/phpgwapi/js/fckeditor/editor/_source/internals/fck_ie.js index a6df4b4f44..4aabce8799 100644 --- a/phpgwapi/js/fckeditor/editor/_source/internals/fck_ie.js +++ b/phpgwapi/js/fckeditor/editor/_source/internals/fck_ie.js @@ -127,7 +127,8 @@ FCK.InitializeBehaviors = function( dontReturn ) this.EditorDocument.body.attachEvent( 'onpaste', Doc_OnPaste ) ; // Reset the context menu. - FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body ) ; + if ( FCKConfig.ContextMenu != null ) + FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body ) ; // Build the "TAB" key replacement (if necessary). if ( FCKConfig.TabSpaces > 0 ) diff --git a/phpgwapi/js/fckeditor/editor/fckeditor.html b/phpgwapi/js/fckeditor/editor/fckeditor.html index 92beaf4d20..5abcf31a57 100644 --- a/phpgwapi/js/fckeditor/editor/fckeditor.html +++ b/phpgwapi/js/fckeditor/editor/fckeditor.html @@ -101,7 +101,8 @@ LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ;