Commit Graph

911 Commits

Author SHA1 Message Date
Andreas Österreicher 590530acec Switched position of missplaced translation-text 2018-07-20 10:28:29 +02:00
Andreas Österreicher ace1e08e0b Switched to FHC-Controller to avoid notice on Job Execution 2018-07-20 10:26:20 +02:00
Paolo bb52aee900 - Moved spl_autoload_register from application/config/config.php to application/config/core_includes.php
- application/config/core_includes.php is included by index.ci.php
- Renamed the prefix of the helpers from "fhc_" to "hlp_"
- Adapted the helpers includes
2018-07-18 12:04:00 +02:00
Paolo 5635f1792c - Removed config file application/config/fhcomplete.php
- Moved config messages entries from fhcomplete.php to application/config/message.php
- Renamed the config entry addons_aufnahme_url to message_redirect_url
- Adapted application/controllers/Redirect.php to use this new entry
2018-07-17 17:13:12 +02:00
Andreas Österreicher c2c48b5045 Fehler behoben beim Öffnen der Infocenter Seite mit aktivierten
Extensions
2018-07-17 09:31:00 +02:00
Andreas Österreicher 96f78a8446 URLs für Message Reply korrigiert 2018-07-17 09:30:32 +02:00
Andreas Österreicher 7b26e513be Fixed Problem while sending Ampel Mails 2018-07-12 14:14:08 +02:00
Paolo 02cde41939 - Renamed function backwardCompatibleJSMsIe to generateBackwardCompatibleJSMsIe in fhc_header_helper
- Now function fhc_header_helper accept the path and file name as parameter
- Added jquerytreetable to FHC-Header
- Fixed includes in FHC-Header
- Now composer uses as much as possible stable releases of the packages (no git directly, no master branch directly...)
- Updated composer.json and composer.lock
2018-07-11 15:44:13 +02:00
Paolo 04e2e1c54b - Moved functions from FHC-Header to fhc_header_helper
- Added function backwardCompatibleJSMsIe to fhc_header_helper for backward compatibility with older versions of MS IE
- FHC_Controller now loads helper fhc_header too
- Added afarkas/html5shiv and scottjehl/Respond to composer
- Rename function sendMail in fhc_sancho_helper.php to sendSanchoMail
2018-07-11 13:43:18 +02:00
Paolo 37ca34a6b5 - Renamed helpers to avoid conflicts with CI helpers
- Adapted helpers includes
2018-07-11 12:13:39 +02:00
Paolo 095ce57da4 - NavigationWidget header menu dropdown fixed
- NavigationWidget optimizations
2018-07-11 11:57:17 +02:00
Paolo bfaf4e774b APIv1_Controller now loads helper fhc too 2018-07-10 11:37:04 +02:00
Paolo d08eb75b5a Adapted MessageLib, PhrasesLib and UDFLib to use the function getUserLanguage from language_helper 2018-07-05 12:13:02 +02:00
Paolo 83f262f170 - Added helper language_helper to retrive the language of the logged user
- FHC_Controller now loads also the language_helper
- Added missing comments to Auth_Controller
- Fixed comments of session_helper
2018-07-05 12:10:00 +02:00
Paolo 56524dcef2 Merge branch 'master' into permissions 2018-07-02 17:44:14 +02:00
Paolo 419e53a656 - Changed filtersupdate to better divide filters for infocenter overview and freigegeben
- Changed infocenterData to retrive overview filters
- Changed infocenterFreigegebenData to retrive freigegeben filters
- Changed InfoCenter controller to load overview and freigegeben filter's names into the left menu
2018-07-02 17:40:22 +02:00
Paolo 9ff3eeff75 - PermissionLib uses isEmptyArray, added comments
- Added requiredPermissions property to the navigation array in the config navigation.php
- Added constant PERMISSION_NAVIGATION_METHOD to NavigationLib
- Added parameter and array element requiredPermissions to method oneLevel of NavigationLib
- Renamed method _sortArray to _sortNavigationArray in NavigationLib
- Added private method _rmNotAllowedEntries to NavigationLib to remove menu entries that the logged user is not allow to use
2018-06-29 12:31:45 +02:00
Paolo 845975ebfe Method hasAtLeastOne of PermissionLib can check permissions with a fixed given permission type
or retrive the permission type from each element of the requiredPermissions array
2018-06-29 12:02:05 +02:00
Paolo 2cba129076 - Added method hasAtLeastOne to the library PermissionLib
- Adapted the method isAllowed of the library FiltersLib to use hasAtLeastOne
- Corrected/added comments
2018-06-29 11:51:16 +02:00
Paolo 2b15c88410 - Moved the loading of the fhcauth from Filters controller to the library FiltersLib
- Added comments
2018-06-29 11:24:50 +02:00
Paolo 99292f93a7 PermissionLib->isEntitled is NOT checking anymore if the HTTP method to access to the
controller method is POST or GET to define what permission type (RW/SUID) is needed
2018-06-28 16:34:26 +02:00
Paolo 8f566e0499 Auth_Controller is now able to display a better message if the user is unauthorized
This message contains:
- the name of the called controller
- the name of the called method of the called controller
- all the possible permissions and related modes needed to acces to this content
2018-06-28 16:09:12 +02:00
Paolo 46e85a2317 Merge branch 'master' into permissions 2018-06-28 14:52:09 +02:00
oesi 01ca9d61ce Klammerung korrigiert 2018-06-28 10:06:55 +02:00
Paolo 25e66bf9dd - Added function isEmptyString to fhc_helper
- Added function isEmptyArray to fhc_helper
- Adapted the code in application/* to use as much as possible this two new functions
- Removed the php function empty almost everywhere
2018-06-27 15:06:04 +02:00
Paolo d04b0450da - AuthLib is loaded only in fhcauth_helper, PermissionLib and REST_Controller
- Removed all the NOT usefull loads of helpers and libraries
- Fixed undefined index in controllers/system/UDF and model system/UDF_model
- APIv1_Controller now loads helper fhcauth
- FHC_Controller now loads ithe fhc and session helpers too
- Added/Fixed comments
- PermissionLib does NOT use anymore the getAuthUID function from the fhcauth helper, now relies on AuthLib directly
- REST_Controller loads directly the AuthLib when is needed
2018-06-27 13:12:46 +02:00
Paolo 2f0048c0c3 - Removed load->helper->('message') from the remaining libraries
- Removed AuthLib from the autoload config file
2018-06-27 11:35:58 +02:00
Paolo d4e6027c7c Removed load->helper->('message') from libs 2018-06-27 11:26:42 +02:00
Paolo d8bcc25ac2 Now the helper message is loaded only by these controllers and models:
- APIv1_Controller
- FHC_Controller
- MessageToken_model
2018-06-27 11:10:40 +02:00
Paolo 581cb69a6f - FiltersLib: fixed typo that prevents to save custom filters 2018-06-27 10:45:57 +02:00
Andreas Österreicher 2a5e36021c Added Sorting Attribute to Infocenter Menu Entries 2018-06-27 10:02:27 +02:00
Andreas Österreicher 2fed75f175 Fixed PHP compatibility issues 2018-06-26 18:10:21 +02:00
Paolo 737c9fa07e Merge branch 'master' into permissions 2018-06-26 14:02:54 +02:00
Andreas Österreicher 22a8e91e15 Fixed broken Navigation when Extensions are installed 2018-06-26 13:57:38 +02:00
Andreas Österreicher fb07ffcea0 Merge branch 'master' of github.com:FH-Complete/FHC-Core 2018-06-26 13:43:40 +02:00
Andreas Österreicher bd0979a096 PHP Version compatibility Fixes 2018-06-26 13:42:54 +02:00
Paolo bd101e154c Merge branch 'master' into permissions 2018-06-26 13:38:12 +02:00
Paolo 945d439426 - Added method _getNavigationArray to NavigationLib
- Adapted getMenuArray and getHeaderArray to use this new method
- Added comments
2018-06-26 13:35:21 +02:00
Andreas Österreicher c26289cff6 Tippfehler bei Zurück Button behoben 2018-06-26 11:22:15 +02:00
Paolo 51ab4feeea Merge branch 'master' of https://github.com/FH-Complete/FHC-Core 2018-06-26 10:55:28 +02:00
Paolo 70d865a703 - Better error message in method saveCustomFilter of Filters controller
- NavigationWidget.css: added margin-right to icons in the header menu
- FilterWidget.js: function sideMenuHook now calls the renamed refreshSideMenuHook function
- NavigationWidget.js:
	- Added comments
	- Renamed function _printNavItem to _buildLeftMenuStructure
	- Added funtion _buildHeaderMenuStructure to build the header menu
	- Added function refreshSideMenuHook to call a controller that will refresh the left menu array and GUI
- infocenterPersonDataset.js:
	- Renamed function refreshSideMenu to refreshSideMenuHook
	- Now this function calls the NavigationWidget -> refreshSideMenuHook function
2018-06-26 10:45:20 +02:00
Manfred Kindl 2adb4c91df Merge remote-tracking branch 'origin/master' 2018-06-25 18:15:02 +02:00
Manfred Kindl edbaf8d414 Infocenter Mail Notizen as list and with insertvon-user 2018-06-25 18:10:09 +02:00
Andreas Österreicher 10740a22ef Bugfix Ampelinfomail wenn Vorlaufzeit oder Verfallszeit Null ist
Pfad zu Ampelverwaltung korrigiert
Anzeige des Ampel Popup überarbeitet
2018-06-25 16:13:26 +02:00
Paolo 94563d379f Merge branch 'master' into permissions 2018-06-21 15:19:59 +02:00
Paolo b65521199d - Navigation header array structure now is the same as the structure of the navigation menu array
- Implemented the sort logic and added the "sort" attribute to sort menu and header entries for the NavigationWidget
- Added the private method _sortArray to the NavigationLib to sort menu and header entries
- Added the "target" attribute to be used with the attribute "link" to build the link of a menu or header entry
- Now the header menu supports icons on the left side of the entry description
2018-06-20 18:12:38 +02:00
Cris df04e43ad0 Added Sancho Mail cronjob (CI)
. jobs/AmpelMail.php: 
  -- generates ampel mails for new and for overdue mails
  -- this script is run by the cronjob

. sancho_helper.php: 
  -- generates and sends Sancho Mails with Sancho Design and Layout using Sancho-mail-templates

. Ampel_model.php: functions to retrieve correct ampeln

. Sancho pictures: 
  -- sancho_header_neue_nachrichten_in_ampelsystem: is set by default
  -- sancho_header_TEMPLATE.xcf: template to quickly reproduce new sancho header images (change the text and export as jpg)
2018-06-20 14:48:28 +02:00
Paolo 9a33e44491 - Replaced "index.ci.php" with $this->config->item('index_page')
- Replaced base_url that contains "index.ci.php" with site_url
- Replaced APP_ROOT with base_url or site_url where needed
- InfoCenter controller added comments and improved the code
2018-06-19 16:34:23 +02:00
Andreas Österreicher 84a0db4483 Fixed PHP Version compatibility 2018-06-18 11:27:10 +02:00
Paolo 08efaf840c - Missing permissions in the InforCenter controller
- If filters are not present for the Freigegeben page, now the page does not crash
2018-06-18 10:49:34 +02:00