16 Commits

Author SHA1 Message Date
Søren Rosiak 461b39e989 webui: Add ability to mark all notifications as read (#7489)
* feature: Add ability to mark all notifications as read

fixes:
https://community.librenms.org/t/ability-to-mark-all-notifications-as-re
ad/2368/1

* Do not add multiple read notifications_attribs

* not archive, yes non-admin

* Oops, hardcoded user_id
2017-11-28 21:22:53 -06:00
mcq8 c9728a1f71 refactor: Refactored authorizers to classes (#7497)
* Refactored authorizers to classes

* Merge changes for #7335

* ! fix php 5.3 incompatibility

* Update ADAuthorizationAuthorizer.php

* Fix get_user -> getUser

* Rename AuthorizerFactory to Auth, fix interface missing functions

* Add phpdocs to all interface methods and normalize the names a bit.

* Re-work auth_test.php AD bind tests to work properly with the new class.
Reflection is not the nicest tool, but I think it is appropriate here.
Handle exceptions more nicely in auth_test.php

* Restore AD getUseList fix

Not sure how it got removed

* fix auth_test.php style
2017-11-18 10:33:03 +00:00
Tony Murray de35e6e3a5 fix: notification read count doesn't decrement in menu bar (#7750)
* fix: notification read count doesn't decrement in menu bar

* also remove red color if we reach 0
2017-11-16 20:10:20 -06:00
Tony Murray 0def643e09 feature: Notify about failed updates, block detectable bad updates (#7188)
* Feature: Notify about failed updates, block detectable bad updates
Ability to post notifications when the update fails.
Detect and roll back updates that will cause broken installs. (Needs testing)
Add severity to notifications, critical (2) notifications will display a toast.

This will be used for removing in-tree dependencies and raising the minimum php version.

* Improve naming a bit add phpdoc to new_notification
In case multiple notifications are created, remove them all.

* Remove notifications when update is disabled.

* update travis to use db testing

* added missing index
2017-08-26 21:35:39 +01:00
Tony Murray b8e9b2d917 Implement an autoloader (#4140)
* Implement an autoloader

When cleaning up classes for psr2, things got a bit unwieldy, so I implemented a class autoloader.
I created a PSR-0 compliant LibreNMS directory and moved all classes there that made sense.
Implemented LibreNMS\ClassLoader which supports adding manual class mappings

This reduces the file includes needed and only loads classes when needed.

* Add teh autoloader to graph.php

* Add a small bit of docs
Fix incomplete class in includes/discovery/functions.inc.php
2016-08-21 14:07:14 +01:00
Tony Murray 8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
João Galaghar dd345b679c Update notifications.inc.php 2016-01-23 23:45:34 +00:00
Rosiak 14ecef76e8 Changed.. 2016-01-11 14:13:16 +01:00
Rosiak 05734803df Fix missing slash if base_url set 2016-01-11 13:14:20 +01:00
laf 93b0886567 Added datetime to notifications + Fixed sticky/unsticky notifications disappearing 2016-01-10 22:22:13 +00:00
Rosiak 730588776e Correction 2016-01-09 00:28:58 +01:00
Rosiak 82a302e135 Fix 2709
#2709
2016-01-09 00:03:09 +01:00
laf 9fce58d872 Replace \n with <br /> 2015-12-04 09:50:51 +00:00
Daniel Preussker 224ccab950 Fixed adduser bug
Always show notification bubble
Added tooltip to archive's sticky button
2015-11-21 12:15:42 +00:00
Daniel Preussker 439cb14b49 Added tooltips 2015-11-21 11:23:02 +00:00
Daniel Preussker 0ff693bd0e Added notifications poller,page,schema,display 2015-11-21 11:22:59 +00:00