Eric Lippmann
c12c4a9e4c
Modules: Call `Module::registerWebIntegration()' after including the run script
...
Routes added via a module's run script were not respected since
`Module::registerRoutes()' is called from `Module::registerWebIntegration()'.
refs #6303
2014-05-28 13:29:02 +02:00
Eric Lippmann
b58ec5f445
Add Module::addRoute() to add a route to the route chain
...
refs #6303
2014-05-27 15:11:33 +02:00
Thomas Gelf
8a770007ff
Modules\Module: provide a lighter header sample
...
We should get rid of the current way of copying license snippets to
every single file. This is a first example of how a lighter header
could look like. I'd add a short slogan to the title and place a
copy of the license to icinga.org, so our links could point there
instead of gnu.org.
refs #6309
2014-05-26 14:17:46 +00:00
Thomas Gelf
7c68d0a30f
Modules\Module: clean up phpdoc blocks
2014-05-26 14:14:34 +00:00
Thomas Gelf
5b87d6238b
Modules\Module: improve provided metadata
...
refs #4095
2014-05-26 14:11:43 +00:00
Eric Lippmann
6ff5a986dd
Modules: Don't call `FrontController::getRoute()' twice
...
refs #6303
2014-05-26 13:08:47 +02:00
Thomas Gelf
24f2ae607f
Pdf/Charts: add initial chart support to PDFs
...
Problem: TCPDF had SVG support, dompdf hasn't. This patch adds a
first rudimentary PNG conversion and a sample implementation making
use of such.
2014-05-20 22:48:06 +00:00
Thomas Gelf
78bc2b4ec7
Modules\Manager: no warning for duplicate modules
...
Formerly we logged a warning if a module was found in multiple module
paths. This is pointless, because as soon as you got a default module
installed by your distribution and "upgraded" it via your web frontend
this "error" will be the default. Logging at debug level right now.
2014-05-20 22:39:32 +00:00
Johannes Meyer
c711e3405d
Fix cli default log configuration and js-loader debug message
2014-05-05 16:17:21 +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
Michael Friedrich
f510130797
Look for ICINGAWEB_CONFIGDIR in $_ENV too.
...
Refs #5638
2014-04-23 11:23:29 +02:00
Thomas Gelf
fa3e7f9fc2
Module list should not throw Exceptions if no config is present
2014-04-17 21:16:51 +00:00
Thomas Gelf
0d6aeb3877
Make CLI logging robust against missing config
2014-04-17 21:09:30 +00:00
Thomas Gelf
3f9bc5dea6
Use no space in syslog application name
2014-04-17 21:04:15 +00:00
Thomas Gelf
f04d765365
Fix routing for static content with internal webserver
2014-04-17 20:59:37 +00:00
Thomas Gelf
6f9c187d47
Default configDir in App bootstrap related to last commit
2014-04-17 17:01:23 +00:00
Thomas Gelf
5fdec39475
More consistent default config dir handling, less configuration
2014-04-17 16:59:10 +00:00
Thomas Gelf
3b20833495
Cosmetic web router changes
2014-04-17 16:47:01 +00:00
Johannes Meyer
a844d33735
Do not create alias mock for Icinga\Application\Icinga
...
refs #4639
2014-04-14 08:31:46 +02:00
Johannes Meyer
f9324032cb
Fix autoloader not ignoring vendor prefixed class names
...
refs #4639
2014-04-09 14:20:05 +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
Thomas Gelf
947ad34153
Get web router ready for .htaccess removal
2014-03-28 19:46:58 +00:00
Thomas Gelf
ade2121302
Router, once again
2014-03-27 20:00:43 +00:00
Thomas Gelf
ff6859d1d1
One more router fix
2014-03-27 19:47:11 +00:00
Thomas Gelf
fcde513c24
Router fixes for SVG images
2014-03-27 19:39:38 +00:00
Johannes Meyer
3beec6e102
Fix exception thrown during re-routing without parameters
2014-03-27 12:04:10 +01:00
Thomas Gelf
08945257dc
Add alias detection to web router script
2014-03-27 09:33:45 +01:00
Thomas Gelf
cb5d90ad41
Simplify pre-bootstrapping web routing
2014-03-27 07:25:53 +00:00
Johannes Meyer
f802b36ca9
Move session class files
2014-03-25 11:13:10 +01:00
Thomas Gelf
3059228378
Fix JS support for modules
2014-03-20 09:55:29 +00:00
Thomas Gelf
c76729a821
Fix CLI complaining without log config
2014-03-11 20:45:01 +01:00
Alexander Klimov
7d08636af4
Handle missing config files more intelligent
2014-03-11 15:43:41 +01:00
Thomas Gelf
3286dfe202
Style benchmark output
2014-03-07 17:03:43 +00:00
Alexander Klimov
b410ebeed6
Remove unnecessary spaces at end of line
2014-03-06 13:08:11 +01:00
Thomas Gelf
127b7ad389
Allow us to find out where /public is to be found
2014-03-04 15:13:13 +00:00
Thomas Gelf
76c322901c
Prototype for icingacli web serve
2014-03-04 11:13:43 +00:00
Thomas Gelf
c1177b72e7
loadConfig renamed in EmbeddedWeb
2014-03-04 10:14:00 +00:00
Thomas Gelf
3ac276e652
Quickfix to get master-1 running
2014-03-04 09:31:17 +00: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
ec308ece93
Remove old log wrapper
...
refs #5683
2014-02-26 13:49:29 +01:00
Johannes Meyer
3555e66018
Make IcingaWeb using the new log wrapper
...
refs #5683
2014-02-26 11:19:52 +01:00
Johannes Meyer
68357e9ca2
Fix coding style
2014-02-21 14:07:32 +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
8edf421c45
Replace debug log with respecting log priorities
...
refs #5638
fixes #5522
2014-02-18 14:46:15 +01:00
Markus Frosch
971a87c608
Fixed executable flags on normal files.
...
Refs #5040
2014-02-18 09:42:13 +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
Thomas Gelf
e115d8e893
Sample module metadata implementation
2014-02-14 13:48:51 +00:00
Thomas Gelf
cb923453c9
getCssFilename signature added
2014-02-14 13:42:57 +00:00
Thomas Gelf
6b027a0dc3
Make module CSS (less) filename accessible
2014-02-14 13:41:03 +00:00
Thomas Gelf
3cfa05d420
Static controller parameter must match registered route
2014-02-14 13:40:10 +00:00
Thomas Gelf
db6dbdd381
Autoloader should not fail on missing module library directory
2014-02-14 13:38:55 +00:00
Thomas Gelf
7dbede12fb
Remove obsolete register script traces
2014-02-14 13:37:45 +00:00
Thomas Gelf
c68bce2f3d
Embedded "light" web bootstrapping adapted new module loading
2014-02-14 13:22:15 +00:00
Thomas Gelf
6096b23a76
CLI fix for --watch, hide autocomplete documentation
2014-02-14 13:19:56 +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
Marius Hein
1a6d1a20fb
Fix: Simplify TopBar hook
...
refs #5597
2014-02-12 09:58:59 +01:00
Marius Hein
7b55f3a2bd
Implement register and run php scripts for modules
...
refs #5597
2014-02-11 17:12:17 +01:00
Thomas Gelf
89f6bedb10
Afoid flickering on CLI when using --watch
2014-02-07 10:23:29 +00:00
Johannes Meyer
56abc53a2b
Properly fix the default locale issue
2014-02-03 12:22:13 +01:00
Johannes Meyer
85639a3990
Add language selection to general config and preference forms
...
refs #5533
2014-01-30 13:17:15 +01:00
Johannes Meyer
005c52bb4a
Refactor translation cli commands and implement po-file compilation
...
refs #5533
2014-01-30 10:51:10 +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
e0af544c14
Multiple installations paths for all Bootstrappers
...
No longer instantiating moduleManager twice, now the CLI is also
able to benefit from multiple module installation paths. Modules
lists are now sorted.
2014-01-24 09:48:30 +00:00
Matthias Jentsch
5d8081ad09
Add support for multiple module installation paths
...
Read the module paths from the configuration file and add form fields
to edit the path from the web interface.
refs #4607
2014-01-22 18:28: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
Thomas Gelf
ad56868af5
Fix Stream writer, has been broken with syslog fix
2014-01-22 12:02:25 +00:00
Thomas Gelf
3008527b41
Autocompletion for the BASH
...
Implemented in a dedicated Icinga Web CLI command, bash config snippet
is therefore pretty compact.
fixes #5520
2014-01-22 11:45:42 +00:00
Thomas Gelf
6e3e9b46a4
Last commit was incomplete
...
refs #4108
2014-01-22 10:31:24 +00:00
Thomas Gelf
c29e742570
Module configuration script can provide restrictions and permissions
...
Extended the module, created CLI commands showing available permissions
and restrictions, added a sample configuration.php to the monitoring
module.
refs #4108
2014-01-22 10:26:18 +00:00
Thomas Gelf
30208c3a30
Internally rename module registerscript to runScript
...
We will probably rename the 'register' script itself, as we need to
distinct between setup/configuration-related tasks and tasks that need
to be executed with each single click.
refs #4108
2014-01-22 09:54:59 +00:00
Thomas Gelf
aa1a2316cb
Avoid syslog-related exceptions
...
refs #5522
2014-01-22 09:26:45 +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
Matthias Jentsch
ad08691362
Extend resources.ini to contain all resources, including ldap
...
Remove the old calls to DbAdapterFactory and use ResourceFactory instead. Remove
the DbAdapterFactory and fix all unit tests that have been broken due to the changes.
Change the functionality of the ResourceFactory to also handle LdapConnections
resolves #4587
2013-11-06 10:20:15 +01:00
Eric Lippmann
ca1d50ae53
Rename Icinga 2 Web to Icinga Web 2
2013-10-23 15:11:06 +02:00
Thomas Gelf
e57b75b354
Cleaning up ugly path
2013-10-22 20:20:06 +00:00
Marius Hein
9ebd2c0478
Fix port for internal db
...
Fix db factory to use that port
refs #4941
2013-10-22 17:50:20 +02:00
Marius Hein
6017432750
Logger: Same default file names as installes
...
refs #4941
2013-10-22 17:50:20 +02:00
Thomas Gelf
a3099c82f2
CLI parameters override log config, writer is STDERR
2013-10-22 14:15:49 +00:00
Thomas Gelf
add8c4094b
Do not create STDIN/STDOUT streams
2013-10-22 14:15:49 +00:00
Thomas Gelf
a25cd80ec0
CLI interface: initial import
2013-10-22 12:26:45 +00:00
Eric Lippmann
077c2a078e
Modules: Catch and log register.php exceptions
2013-10-20 16:40:57 +02:00
Eric Lippmann
36e9cdb549
Monitoring/register: Add status summary to the top bar
2013-10-20 16:08:53 +02:00
Marius Hein
460e0fe242
Implement on-the-fly less compilation
...
refs #4892
2013-10-16 12:00:09 +02:00
Eric Lippmann
b89d61add3
Monitoring: Refactor data views (WIP)
...
refs #4663
2013-10-09 09:20:16 +02:00
Eric Lippmann
24f64e6d30
Fix conflicts from rebase, using inet_aton with pgsql, PHP strict standards violations, CS compliance
...
refs #4255
2013-09-17 15:12:18 +02:00
Thomas Gelf
4237e3e53e
modules/README triggers pointless warning
2013-09-16 16:38:51 +02:00
root
72df979791
Zend_Db::FETCH_MODE is not available before ZF 1.11 (ZF-6620)
...
* TODO: Check whether passing 'fetchMode' really works?!
2013-09-16 16:38:50 +02:00
Eric Lippmann
35fd9fd391
CS: Remove whitespaces at end of line
...
find application/ library/ test/ modules/ -name *.php | xargs sed -i 's/\s\+$//'
2013-09-04 18:27: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
Eric Lippmann
03f081ce33
Module/Autoloader: Register Icinga\Module\<module> namespace
...
refs #4586
2013-09-04 11:21:11 +02:00