Johannes Meyer
7621f6642d
Adjust usages of Icinga\Application\Config
...
refs #7147
2014-11-18 13:11:52 +01:00
Eric Lippmann
029630308d
Load Zend on Web and EmbeddedWeb
...
refs #7464
2014-11-14 14:07:13 +01:00
Johannes Meyer
775c20d9ad
Rename namespace Icinga\Form to Icinga\Forms
...
refs #7553
2014-11-14 10:57:14 +01:00
Eric Lippmann
81b144d057
Fix locale setup
...
The CLI must not try to use HTTP_ACCEPT_LANGUAGE. Avoided double try-catch blocks.
refs #6073
2014-11-13 18:02:03 +01:00
Eric Lippmann
e3c70bec6d
Fix timezone setup
...
The CLI must not try to use our web timezone detection thingy.
refs #6073
2014-11-13 17:07:36 +01:00
Eric Lippmann
ac2ec83852
Merge branch 'master' into feature/localization-form-6073
...
Conflicts:
library/Icinga/Application/ApplicationBootstrap.php
test/php/library/Icinga/User/Store/DbStoreTest.php
2014-11-13 17:03:41 +01:00
Alexander Fuhr
533d2207fd
Fix `setupTimezone' and `setupInternationalization' for user preferences
2014-11-12 12:16:05 +01:00
Johannes Meyer
8af13f564b
Add support for "core" modules and make the setup module such a module
...
refs #7163
2014-11-10 17:34:49 +01:00
Alexander Fuhr
2e24c53224
Merge branch 'master' into feature/localization-form-6073
...
Conflicts:
application/forms/Config/GeneralForm.php
application/forms/Preference/GeneralForm.php
library/Icinga/Application/Web.php
2014-11-05 13:27:45 +01:00
Eric Lippmann
16352fc10c
Move Logger to the Application namespace
...
fixes #7148
2014-10-31 10:27:17 +01:00
Alexander Fuhr
c8a24f72b8
Introduce getValue() in Preferences and fix the loading of values
2014-09-26 14:15:50 +02:00
Marius Hein
a300877878
Time detection: Add receiever to bootstrap method
...
refs #6078
2014-09-05 15:24:13 +02:00
Thomas Gelf
62c0f0be03
Web\Session: implement lazy loading
...
fixes #7055
2014-09-02 13:23:15 +02:00
Johannes Meyer
eb977b7a55
Fix wrong variable assignment causing preferred languages not being set
2014-07-16 15:17:14 +02:00
Johannes Meyer
3105c2059e
Remove license headers from all files
...
refs #6309
2014-07-15 13:43:52 +02:00
Johannes Meyer
f2e5d8afa5
Remove @codeCoverageIgnoreStart/-Stop annotations
...
refs #6091
2014-06-30 13:58:37 +02:00
Johannes Meyer
77bb64bd2c
Update web bootstrapping to suit the new localization procedure
...
Icinga\Application\Web::setupInternationalization now sets up the locale
from the current session first, if any, and falls back to the one from the
user's preferences, if any.
refs #6073
2014-06-25 14:34:45 +02:00
Thomas Gelf
7d6fd45466
Application\Web: use same request everywhere
2014-06-22 14:13:00 +02:00
Thomas Gelf
b7fc0b67a8
Web/controllers: use own Request/Response objects
...
* introduces Icinga\Web\Response
* uses ModuleActionController where necessary
* no module translationDomain voodoo in base ActionController
2014-06-22 13:49:21 +02:00
Thomas Gelf
602b448505
bootstrapping: only web should depend on forms
...
This fixes the problem that CLI scripts or other applications without
an application directory would badly fail because of missing web forms.
refs #6411
2014-06-04 22:46:16 +00:00
Marius Hein
29f593a357
Authentication: Add backend to handle external authentication
...
Drop external auth configuration from config.ini and move
implementation into a single backend provider named
'autologin'. This provider can strip realm names from
username with a custom regexp.
fixes #6081
2014-06-03 17:59:22 +02:00
Marius Hein
a0459d0172
ExternalAuthentication: Move authenticationMode to config.ini
...
fixes #6214
2014-06-03 15:26:15 +02:00
Marius Hein
160a95e32d
Bootstrap/Web: Only load authentication.ini if needed
...
fixes #6238
2014-06-03 14:16:01 +02:00
Johannes Meyer
98ca15d1fb
Mark less important or non-testable code as skipped for code coverage
...
refs #6011
2014-04-28 14:06:41 +02:00
Johannes Meyer
891d36dbd7
Make DateTimeFactory expecting a string instead of a DateTimeZone
2014-04-28 14:06:39 +02:00
Johannes Meyer
ea44ae3693
Improve failure handling when setting the locale
2014-04-04 15:34:46 +02:00
Thomas Gelf
1beb837783
A few little code cleanups
2014-03-31 16:35:28 +00:00
Johannes Meyer
f802b36ca9
Move session class files
2014-03-25 11:13:10 +01:00
Eric Lippmann
07d04628cf
Merge branch 'feature/installation-and-configuration-cleanup-5638'
...
Conflicts:
config/config.ini.in
library/Icinga/Application/ApplicationBootstrap.php
library/Icinga/Application/Cli.php
library/Icinga/Application/EmbeddedWeb.php
library/Icinga/Application/Logger.php
library/Icinga/Application/Modules/Manager.php
library/Icinga/Application/Web.php
library/Icinga/Authentication/Backend/DbUserBackend.php
library/Icinga/Authentication/Manager.php
library/Icinga/User/Preferences/IniStore.php
test/php/library/Icinga/Application/LoggerTest.php
2014-03-03 19:03:39 +01:00
Matthias Jentsch
a8f765fa3b
Add extern authentication
...
Provide a new settings authenticationMode and delegate the
authentication handling to the webserver when the external authentication mode
is set. Add a new view 'logout' that will be shown after logout from external
authentication as the regular redirect to login is not possible.
refs #5405
2014-02-26 18:08:48 +01:00
Johannes Meyer
3555e66018
Make IcingaWeb using the new log wrapper
...
refs #5683
2014-02-26 11:19:52 +01:00
Eric Lippmann
7fa6668b64
Make Icinga Web 2 work without any config file
...
refs #5638
fixes #5523
2014-02-20 13:53:28 +01:00
Eric Lippmann
08d7edebfc
Decouple (automatic) preferences storage from user preferences (WIP)
...
DbStore, persisting preferences and tests not yet reworked.
2014-02-14 17:28:11 +01:00
Thomas Gelf
7a02d278ce
We don't want others to care about our bootstrap dependencies
2014-02-14 14:12:12 +00:00
Eric Lippmann
9cbfe88ea6
Do not exit the application when the logger has errors logged during bootstrap and stop preference loading on every request
...
Only fatals should exit the application.
Preferences must be loaded only once after login.
2014-02-14 10:56:29 +01:00
Eric Lippmann
3e04122e34
Do not set UTC in index.php
...
refs #5638
fixes #5530
2014-02-14 10:56:29 +01:00
Eric Lippmann
a630a96e01
Do not require ApplicationBootstrap in index.php
...
refs #5638
fixes #5529
2014-02-14 10:56:29 +01:00
Johannes Meyer
56abc53a2b
Properly fix the default locale issue
2014-02-03 12:22:13 +01:00
Johannes Meyer
bd34669357
Refactor i18n implementation
...
One can now use $this->translate(msg) in a view or controller without the
need to pass the module domain (web&cli). Forms still need to be built
with _t(msg) and _mt(dom, msg).
refs #5533
2014-01-29 16:25:08 +01:00
Johannes Meyer
ac0b041523
Remove session handling from the authentication manager
...
refs #5510
2014-01-24 14:44:19 +01:00
Thomas Gelf
bb1c560e22
Splitted module manager setup and module loading in bootstrap code
...
Allows different implementations (Web, Cli...) to behave differently
without duplicating code
2014-01-22 17:11:26 +00:00
Matthias Jentsch
941ce6d68e
Fix bug that caused ajax-request to override values written to the session
...
Authentication/Session.php and its Subclasses do not have a open/closed -state
anymore. Read will refresh the session, write will always write the changes,
and opening/closing will be handled internally.
refs #5101
2013-11-20 12:01:40 +01:00
Eric Lippmann
ca1d50ae53
Rename Icinga 2 Web to Icinga Web 2
2013-10-23 15:11:06 +02:00
Eric Lippmann
b89d61add3
Monitoring: Refactor data views (WIP)
...
refs #4663
2013-10-09 09:20:16 +02:00
Jannis Moßhammer
57e66c247a
Add sort widget, change js path from module to app, small style fixes
...
refs #4601
2013-09-04 15:22:00 +02:00
Eric Lippmann
6afeaac6b2
Make 'ini' in descriptions uppercase, add comment to index.php about date_default_timezone_set
...
refs #4529
2013-09-04 14:56:55 +02:00
Jannis Moßhammer
c9673bfea3
Catch database errors, set fallback tz
...
The fallback timezone is set in case an error occurs
before setupTimezone() is entered. In this case the user
is presented with an warning about missing timezone settings
if the php.ini doesn't contain timezone information
refs #4529
2013-09-04 14:27:37 +02:00
Jannis Moßhammer
95bc8a2f4f
Add NullStore as preference fallback
...
refs #4529
2013-09-04 14:27:37 +02:00
Johannes Meyer
28bd27d904
Fix user preference access when not authenticated
...
refs #4609
2013-08-29 15:08:31 +02:00
Johannes Meyer
f4272f482d
Apply user defined timezone during bootstrap
...
refs #4609
refs #4552
2013-08-29 15:08:31 +02:00